Turn your manual testers into automation experts! Request a DemoStart testRigor Free

Release Notes: if/else, time zones

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: New Built-in Reusable Rules.

New Built-in Reusable Rules testRigor now includes a variety of built-in reusable rules to streamline common actions in all test ...

Release Notes: Live mode commands

Live mode recorder: generate meaningful commands using Click While using live mode recorder, meaningful command (click / enter / ...
On our website, we utilize cookies to ensure that your browsing experience is tailored to your preferences and needs. By clicking "Accept," you agree to the use of all cookies. Learn more.
Cookie settings
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.