User code for update global parameters programatically
User code for update global parameters programatically
I want to pass global parameter to several test cases. So could you post some code to manage/update global parameter values programatically in user code.
Re: User code for update global parameters programatically
Hi,
You can access global parameters by code like this:
However, in my opinion, it's better to stick with variable/parameter binding instead of reading/writing parameters from code. Doing it form code could create a messy and hard to read/understand solution.
You can access global parameters by code like this:
Code: Select all
//read
string globalParamValue = TestSuite.Current.Parameters["GlobalParamName"];
//write
TestSuite.Current.Parameters["GlobalParamName"] = "strvalue";
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