Turn your manual testers into automation experts! Request a Demo

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: Dataset filters, Oracle and proxy DB support

Dataset Page with Test Case Count and Direct Navigation We have upgraded the Dataset Page by introducing a dynamic count that ...

Release Notes: MCP and Function Calling

MCP and Function Calling: Advanced AI-Driven Test Case Generation in testRigor testRigor now introduces robust support for MCP ...
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.