Page 1 of 1

Global Parameters name with space

Posted: Fri Aug 19, 2011 8:35 am
by Jeremie
Hi

I launch my test suite with a batch and I include global parameters /pa like this
MyExeFile /pa:MyGlobalParametersName=MyVar

But when MyVar contain string with space only the first word is my globalparameters Name

Exemple :
MyVar = To To
The global Parameter Name is To

It is possible to have Global Paramaters name with space ? If yes, how i can delimitate the name ?

Thanks

Re: Global Parameters name with space

Posted: Fri Aug 19, 2011 9:51 am
by Support Team
Hi,

If you want to use spaces in the command line you have to use quotation marks.

Example:
"MyVar=To To"

Regards,
Markus
Ranorex Support Team

Re: Global Parameters name with space

Posted: Fri Aug 19, 2011 10:26 am
by Jeremie
I have try, but doesn't work

if In batch MyVar="To To"
In ranorex my global parameter Name is "To

Re: Global Parameters name with space

Posted: Fri Aug 19, 2011 11:16 am
by Support Team
Please, enclose the whole parameter assignment in quotation marks, e.g.:

Code: Select all

MyExeFile /pa:"MyGlobalParametersName=To To"
Regards,
Alex
Ranorex Team

Re: Global Parameters name with space

Posted: Fri Aug 19, 2011 11:25 am
by Jeremie
Oh sorry
I have not looking correctly your answer

It's OK now

Thanks a lot