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.


copy url

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:


copy url

Single “if” condition:

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

copy url

Single “if” condition with “else”:

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

copy url

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

copy url

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


copy url

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: Screen resolution, articles and resources

AI-Enhanced Screen Resolution Options for Web and Desktop Testing. We are excited to announce the introduction of customizable ...

Release Notes: Email Subscription, AI clicking and scrolling.

Stay Informed with Email Updates: Subscribe to Release Notes button We have introduced a convenient way to stay up-to-date with ...

Release Notes: Universal SAML

Universal SAML: SSO Authentication with Any Identity Provider testRigor now supports SAML Single Sign-On (SSO) authentication ...
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.