Hi Team,
We have a query, we need to get the parameter passed through RunConfig to the Ranorex usercode. We have added a global variable to get the parameter(strSignID), But we couldn't find the solution.
xxx.exe/RunConfig:SuiteName /param: strSignID = "ABC"
Could please help us?
Regards,
Faheem
Get parameter pass via run config to the Ranorex usercode
Re: Get parameter pass via run config to the Ranorex usercode
Hi,
You need to create a Global Parameter (at test suite level) and connect that global parameter with module variable (recorder/code module). Only then, there will be passed a string from command line to user code of your choice.
You need to create a Global Parameter (at test suite level) and connect that global parameter with module variable (recorder/code module). Only then, there will be passed a string from command line to user code of your choice.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Get parameter pass via run config to the Ranorex usercode
Hi,
Thank you very much for the reply, that got worked.
But now we are passing password using global parameter and that is getting displayed in command prompt, but it should not be.
Could you please help us to mask global variable value getting displayed in console?
Regards,
Faheem
Thank you very much for the reply, that got worked.
But now we are passing password using global parameter and that is getting displayed in command prompt, but it should not be.
Could you please help us to mask global variable value getting displayed in console?
Regards,
Faheem
Re: Get parameter pass via run config to the Ranorex usercode
Hi,
I’m afraid, there is no such option available. For TA purposes, you should not use a normal user account and instead use a “service” account and isolated test environment. So you don’t have to worry much about it.
I’m afraid, there is no such option available. For TA purposes, you should not use a normal user account and instead use a “service” account and isolated test environment. So you don’t have to worry much about it.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration