Build mobile tests anyone on your team can run Request a Demo Now
Turn your manual testers into automation experts!Request a Demo

Release Notes: if/else, time zones

Weekly Newsletter
Receive weekly testRigor newsletters packed with insights on test automation, codeless testing, and the latest advancements in AI.

This week, we released if/else logic and the ability to set the time zone your cases run in.

Conditionals

We have released the ability to use the if/else logic for complex scenarios with more than one possible outcome. The “if-else block” which allows multiple conditions and multiple commands per condition.

Here are the scenarios it can be used in:

Single “if” condition:

if page contains "some text"
  click "some text"
  click "some button"
end

Single “if” condition with “else”:

if page contains "some text"
  click "some text"
else 
  click "some other text"
end

Multiple “if” conditions with “else”:

if page contains "some text"
  click "some text"
  click "some button"
else if page contains button "unfollow"
  click "unfollow"
else if page contains button "follow"
  click "follow"
else 
  click "some other text"
end

All the previous examples can also be mixed with rules:

if page contains "some text"
  click "some button"
else 
  wait 10 sec
  clean up
end

For a full explanation and plenty of examples check the documentation at: https://testrigor.com/docs/language/#conditional

Time Zone

We created a new setting for timezone in Settings -> Advanced. The default value is PST. This new setting changes the timezone in which test cases will run. It also determines the times that will be generated for built-in variables. It works on all browsers/OS’s and mobile.

We also added 3 new built-in variables:

nowHourAmPm (2 pm)
nowHourTwoDigitsAmPm (02 pm)
nowAmPm (pm)

Related Articles

Release Notes: Version Control, Rerun Failed, Team Folders

Version Control for Test Cases This feature introduces test case versioning, similar to the existing functionality for rules, ...

Release Notes: New Setting for Finding Tables

New Setting for Finding Tables This update introduces a condition-based table search strategy to improve table detection ...

Release Notes: Retry Clicks, Extract Rules, Live Mode Description

Retry Clicks Functionality We’ve introduced a new enhancement to the click command designed to improve reliability when a ...
Privacy Overview
This site utilizes cookies to enhance your browsing experience. Among these, essential cookies are stored on your browser as they are necessary for ...
Read more
Strictly Necessary CookiesAlways Enabled
Essential cookies are crucial for the proper functioning and security of the website.
Non-NecessaryEnabled
Cookies that are not essential for the website's functionality but are employed to gather additional data. You can choose to opt out by using this toggle switch. These cookies gather data for analytics and performance tracking purposes.