Adding Variable to global parameter
Posted: Fri Dec 08, 2017 6:10 am
Hello,
I have the following problem...
I want to add different parameter as variable to my base URL which is a Global Parameter. The Goal is to add parameters to the url before starting the Open Browser action.
I tried something like this as User Code:
Public void (string args1)
{
URL=URL+VarURLParameter;
}
It works for the first test case with the global parameter URL...but within the second testcase it adds "VarURLParameter" again, that the URL looks more like this:
URL=URL+VarURLParameter+VarURLParameter
..for the third Test Case it opens the URL like this
URL=URL+VarURLParameter+VarURLParameter+VarURLParameter
...so on for 4th, 5th and 6th testcase
Maybe someone has a Solution or can help me? Can i reset the global parameter to the input value after the Open Browser action for TC1?
Best regards,
Chriszzoo
I have the following problem...
I want to add different parameter as variable to my base URL which is a Global Parameter. The Goal is to add parameters to the url before starting the Open Browser action.
I tried something like this as User Code:
Public void (string args1)
{
URL=URL+VarURLParameter;
}
It works for the first test case with the global parameter URL...but within the second testcase it adds "VarURLParameter" again, that the URL looks more like this:
URL=URL+VarURLParameter+VarURLParameter
..for the third Test Case it opens the URL like this
URL=URL+VarURLParameter+VarURLParameter+VarURLParameter
...so on for 4th, 5th and 6th testcase
Maybe someone has a Solution or can help me? Can i reset the global parameter to the input value after the Open Browser action for TC1?
Best regards,
Chriszzoo