Forum Discussion
ebarbera
3 years agoStaff
Hi bev77 -
Would it be possible for you to send an image of the step in your testcase? My guess is it is some type of syntax issue .
Thanks,
Emma
- bev773 years agoNew Contributor
Hi
So I'm 1st setting a variable of 'CurrentNumber' to get a random number with this line of code
Math.floor(Math.random() * 100) + 1
Then I'm using the SetText operation with this command as a mode of Code Expression (which I'm assuming is the correct one to use?) to add the text from either a data table or excel spreadsheet that contains a list of names. I'm using the number variable 'CurrentNumber' to select the random name.
Variables.Names("Name", KeywordTests.addEmployeePage.Variables.CurrentNumber)
Hope this makes sense
Thanks
Ian
Related Content
- 10 years ago
Recent Discussions
- 53 minutes ago
- 2 days ago