vikassardesai
6 years agoOccasional Contributor
Call Checkpoints dynamically
I want to define Installation screens checkpoints (Region and Object) for each version say version 4.1, 4.2, 4.3 4.4 etc. And for each version some contents of the installation screen are different. ...
- 6 years ago
Hi,
Yes, this is possible.
Use eval() or evaluate() function provided by scripting language you are using.
For example, considering that your checkpoints are named like Screen1_v4_1, Screen2_v4_1, ..., Screen1_v4_2, ... with the current version in proper format stored in the strVersion variable and screen number stored in the strScreenNo variable, consider this code snippet:
strCmd := 'Regions.Screen' + strScreenNo + '_v' + strVersion + '.Check()'; // the value of strCmd should be like 'Regions.Screen1_v4_1.Check()' (without quotes)
eval(strCmd);