question

dhana avatar image
dhana asked dhana posted

Dynamically change the value of the parameters

I have define the parameters in testbed file and I'm using the parameter in the script [param var1].

Is there any way to dynamically change the value to this parameter after performing some operation in the script?

 

For example like this,

 

eval set a [param var1]

[expr $a+1] to be assigned back to var1?


and the next script i will use this var1.

iTest
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
msandeep avatar image
msandeep answered msandeep posted

Hi,

 

We can modify the parameter name dynamically as shown in below screenshot and use the same within the testcase but unfortunately it is not possible in iTest to set back the new value to  parameters (testbed/global/session/testcase) and to use the new value in other scripts.

 

Thanks,


dynamic_param.jpg (13.7 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.