Thread

Skip Navigation LinksForums > RemoteLaunch Forums > RemoteLaunch Issues & Que... > Parametrised Test Case

Parametrised Test Case RSS Feed

Wednesday, October 31, 2012
Hi,
I am using C:\QA\apache-maven-3.0.4\bin\mvn.bat | -f  "C:\QA\nna-automated-tests\WebDriver\Nissan\nissan-main-site\pom.xml" -DsuiteXmlFile=src\test\resources\Leads\AltimaCoupe\Prod\En\Local-Firefox.xml  clean test | in the filename  and works fine.

but i want the file name to be passed as parameter do, what i did was
C:\QA\apache-maven-3.0.4\bin\mvn.bat | -f  "C:\QA\nna-automated-tests\WebDriver\Nissan\nissan-main-site\pom.xml" -DsuiteXmlFile=${fname}  clean test |  and set the parameter value in the test set is "src\test\resources\Leads\AltimaCoupe\Prod\En\Local-Firefox.xml"  and its not working for me.
 can any one help me , how to pass paraemter and what should be in the filename section of the test case.
thanks,

1 Replies
Adam SAdam S
re: Hiren Patel on Wednesday, October 31, 2012
Thursday, November 1, 2012
Hi Hiren

The filenames in RemoteLaunch consist of three parts:

executable|static arguments|parameter template

The static arguments are fixed and do not change with parameter values.

The parameter template should just include the word "name" and/or "value" plus the symbols.

For example, if you use arguments:

mycommand.exe -param1=value1 -param2=value2 -someother

You would use in SpiraTest:

mycommand.exe|-someother|-name=value

Does that make sense now?

Regards

Adam

Tagged
Statistics
  • Started: 10/31/2012
  • Last Reply: 11/1/2012
  • Replies: 1
  • Views: 1178
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.