Forum Discussion
Thanks!
What I am trying to achieve is to input a value into a field, but on every run I want this value to be different. Is there a way to do this automatically without manually changing the input value before the test run?
First , use the Table choice rather than the One Value choice.
Then, you can do something like create 60 columns and fill them from the Data Generator with your strings and then use
aqDateTime.GetSeconds(Now) + 1
as an index to that table. It will probably be random enough for what you need. You can always refresh the table every once in a while, but this will work for multiple test runs.
- NisHera10 years agoValued Contributor
You can write simple script and call it from keyword test
following is using jscript to give you random number between 1 and 100
Math.floor((Math.random() * 100) + 1)
Related Content
- 2 years ago
- 7 years ago
- 2 years ago
Recent Discussions
- 4 hours ago