Parametrised Test Case

Wednesday, October 31, 2012
Avatar
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
Friday, November 2, 2012
Avatar
re: hirenp Wednesday, October 31, 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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, October 31, 2012
  • Last Reply: Friday, November 2, 2012
  • Replies: 1
  • Views: 2836