Certification: AI-driven Test Automation
Certification: AI-driven Test Automation
Variables
Parameters
You can use global (stored) variables as parameter in most commands:
enter from the string with parameters "${homePrefix}/my/path" into "urlPath"
Generate unique date and time with unique parameters:
generate from template by string with escaped parameters "${nowDateTimeIso}-**********", then enter into "Data" and save as "generatedData"
Multiple files upload can be done like so:
enter from the string with parameters text starting from next line and ending with [END]
${file_var_one}
<FILE_URL>
[END] into file input "myFileInput"
In the case of identical syntax, a defined rule always has higher priority than general syntax
You can combine static text with variables, for example:
Fill in the form:
generate unique name, then enter into "First Name" and save as "firstName"
generate unique name, then enter into "Last Name" and save as "lastName"
Then, on the next page, perform a validation
check that page contains a string with parameters "Welcome, ${firstName} ${lastName}!"
Test data
You can use built-in testRigor test data storage to save screenshots or upload files to it for subsequent manipulation.
For example:
compare screen to stored value "Saved Screenshot"
Or
upload file from saved value "sampleFile"
upload file "https://some-page.com/path-to-file" to mobile device