on 03-19-2015 9:11 PM
Hey there,
I'm automating a test case with CBTA and I need to randomize a value, wich is 5 characters long only, and the %random% token will make a 6 digit number.
How do I customize it to bring only the 5 digits number I need?
Is it possible?
As you can see in the image attached, we were able to figure out a way to customize dates to the SAP format (the default date token, %today%, brings up your PC's date format), but we can't seem to be able to figure out the %random% token.
Your help will be greatly appreciated!
If you want to reply privately my e-mail is lionel.lerner@gmail.com
Cheers, Lionel.
I found the answer with a colleague, in case anybody in the future comes across this silly problem, the answer is as silly:
%=left($random$,5)%
There you go. A 5 digit random number.
Thanks me! You're welcome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.