update the value of a global parameter in every test run

Ask general questions here.
friluk
Posts: 2
Joined: Tue Mar 28, 2017 9:11 am

update the value of a global parameter in every test run

Post by friluk » Tue Mar 28, 2017 11:21 am

Hey Ranorex community,

I'm new in this forum and also a beginner with ranorex.

I hope you can help me.

I would like to update the value of a global Parameter with every run of the Testsuite. The story behind this is that I need consecutively number for one of my Test Cases. In this test case I automate the registration process of a web application with ranorex. And the simple way to do this with an infinite number of email addresses with sub-addressing where I only change a number at the end of the address.

I hope you understand what I mean, english is not my native language, sorry :-P

Thanks for your help.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: update the value of a global parameter in every test run

Post by odklizec » Thu Mar 30, 2017 8:06 am

Hi,

The easiest way to change the Global/TC parameter with each run is to use a command line parameter (as described here)...
pa:<global parameter name>=<value>
tcpa:<name or guid of test case or smart folder>:<parameter name>=<value>

Example:
YourTest.exe /pa:UserEmail=[email protected]
Pavel Kudrys
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