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.
as per above answer using trim command for left side, one may use it to trim using right hand-side as well, for example
trim for 5 char: %=right($random$,5)%
trim for 4 char: %=right($random$,4)%
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.