Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Sep 13, 2017 11:21

Convert timer results from String into Number

 

The String Convert command can be used to convert timer results from String into Number.

For example, in the script below, we want to verify that the text 'Hello' appears on the screen in no more than 3.5 seconds.

So, we are getting the timer results (in milliseconds), assigning the value into 'timerStr' variable (String variable), and converting it into 'timerNum' variable (Number variable). Now we can verify that the result is less or equal 3500 ms.

[Notice: in v8.0 the function name is 'Text Convert'. Starting v8.1, the function name will be changed into 'String Convert'].

Convert String into number example


  • No labels