Parameters command line

Ask general questions here.
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Parameters command line

Post by Mayra » Sat Jan 18, 2014 3:18 am

I am still working in eval of Ranorex:

I can only seem to pass one parameter to my test case, how can I pass multiple parameters?
abc.exe /tcpa:testcase:parameter=value:parameter2=value2 or abc.exe /tcpa:test case:parameter=value,:parameter2=value2 is not working, I can only see the first parameter set.

How can I pass a string array of parameters to a test case? For example of I want several values picked in a list and those have to be passed by command line to the test case, of course this needs to be passed to the module.


Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Parameters command line

Post by krstcs » Mon Jan 20, 2014 3:38 pm

You need to do a switch action for each parameter.

Code: Select all

abc.exe /tcpa:testcase:parameter=value /tcpa:testcase/parameter2=value2

You cannot pass an array into the command line without changing the code in your Program.cs Main() function.
Shortcuts usually aren't...