Mastering testRigor: A Practical Guide to Using the Platform Effectively

Rajesh Vinayagam
5 min readJan 18, 2025

--

In our previous article, we introduced testRigor, the AI-driven test automation platform that allows teams to create and maintain test cases with plain English commands. This follow-up guide provides a detailed, hands-on approach to effectively using testRigor, showcasing its versatility, advanced features, and best practices to maximize its potential.

Why testRigor? A Quick Recap

Traditional test automation tools often struggle with:

  • High Maintenance Overhead: Test scripts break frequently with UI changes.
  • Skill Dependencies: Requires technical expertise to create and maintain scripts.
  • Scalability Issues: Managing large test suites and executing tests efficiently can be challenging.

testRigor addresses these challenges by offering:

  • Codeless Test Creation: Write tests in plain English, accessible to all team members.
  • AI-Powered Self-Healing: Automatically adapts to UI changes, minimizing maintenance.
  • Generative AI: Automates test creation from user stories or descriptions.
  • Cross-Platform Support: Test web, mobile, desktop, and APIs in a unified framework.

With these strengths, testRigor is an indispensable tool for modern testing teams.

Getting Started: From Setup to Execution

Step 1: Setting Up Your Account

  1. Sign Up: Visit testRigor Sign-Up to create an account.
  2. Choose Deployment: Select either:
  • Cloud: Quick setup, ideal for most users.
  • On-Premise: For organizations with strict security or compliance needs.

3. Customize Configuration: Adjust settings based on your requirements:

  • Platforms: Windows, macOS, iOS, Android.
  • Parallelizations: Define the number of parallel executions to optimize test speed.

Creating Your First Test Case

Option 1: Using Generative AI

  • Describe your test scenario in plain English.
  • Example:
I want to test the login flow for my application. 
The user should enter an email and password, click login, and
verify they are on the dashboard page.
  • testRigor will generate the corresponding test steps in plain English.
open url "https://example.com"
enter "user@example.com" into "Email"
enter "password123" into "Password"
click "Login"
check that page contains "Dashboard"

Option 2: Writing Tests Manually

  • Navigate to the test creation interface and Write test steps in plain English.
  • Example:
open url "https://example.com" 
enter "testuser@example.com" into "Email"
enter "password123" into "Password"
click "Login"
check that page contains "Welcome to the Dashboard"

Option 3: Using the Record-and-Playback Tool

  • Start the recorder and perform actions on the application.
  • Save the recorded steps, refine them, and replay to validate.

Exploring Common Use Cases

1. Web Application Testing

  • Automate workflows such as user registration, login, and cart management.
  • Example:
open url "https://example.com"
enter "user@example.com" into "Email"
enter "securepassword" into "Password"
click "Login"
check that page contains "Welcome, User"

2. Mobile App Testing

  • Test native and hybrid mobile applications on Android and iOS.
  • Example:
start device "Pixel 6"
click "Login"
enter "mobileuser@example.com" into "Email"
enter "123456" into "OTP"
click "Submit"
check that page contains "Account Dashboard"

3. API Testing

  • Validate API endpoints, responses, and payloads.
  • Example:
call api post "https://api.example.com/auth" with headers "Content-Type:application/json" and body "{\"username\":\"test\",\"password\":\"1234\"}" and save it as "response"
check that stored value "response" contains "token"

4. Visual Testing

  • Compare screenshots to detect visual changes.
  • Example:
compare screen to previous version with allowance of "2%"

5. File Download and Validation

  • Validate downloaded files’ content.
  • Example:
click button "Download Report"
check that file "report.pdf" was downloaded
check that downloaded file contains "Summary Report"

Advanced Features to Streamline Testing

Reusable Rules (Subroutines)

Save repetitive steps as reusable rules to maintain consistency and reduce redundancy.

  • Define a rule:
Rule: login
enter stored value "username" into "Email"
enter stored value "password" into "Password"
click "Login"
  • Use the rule in tests:
login
check that page contains "Welcome Back"

Dynamic Data Generation

Generate unique values to test scenarios involving dynamic inputs.

  • Example:
generate unique email, then enter into "Email"
generate from regex "[A-Za-z0-9]{8}" and save as "userId"

Conditional Execution

Run steps conditionally based on application state.

  • Example:
if page contains "Welcome" then
click "Continue"
else
click "Retry Login"
end

API Mocking

Mock API responses to test edge cases or reduce dependency on third-party APIs.

  • Example:
mock api call "https://api.example.com/orders" returning body "{\"status\":\"success\"}"

Data-Driven Testing

Run the same test with different data sets.

  • Example:
for each in table "UserData" do
enter ${Email} into "Email"
enter ${Password} into "Password"
click "Login"
check that page contains "Welcome"
end

Best Practices with testRigor

  1. Keep Tests Modular: Use reusable rules to maintain modularity and reduce redundancy.
  2. Focus on End-User Behavior: Write tests from the perspective of what the end user will do.
  3. Leverage Self-Healing: Rely on testRigor’s AI to adapt to UI changes instead of hardcoding locators.
  4. Use Parallel Execution: Configure parallel test runs for faster execution.
  5. Regularly Review and Refactor Tests: As your application evolves, periodically review test cases to ensure relevance.

Troubleshooting Common Issues

1. Test Fails Due to Missing Elements

  • Use conditional commands like if exists to avoid failures. Example:
click "Retry" if exists

2. Dynamic Data Issues

  • Use generated values to handle dynamic data inputs. Example:
generate from regex "[a-zA-Z0-9]{8}" and save as "orderId"

3. Debugging Failures

  • Analyze detailed reports and logs to identify root causes.

Resources to Deepen Your Knowledge

Conclusion

testRigor isn’t just another test automation tool; it’s a transformative platform that empowers teams to focus on delivering quality software without the technical complexity of traditional automation tools. By leveraging its AI-driven features, reusable rules, and natural language commands, teams can enhance collaboration, reduce maintenance, and achieve faster release cycles.

Whether you’re a QA engineer, developer, or product manager, testRigor is designed to simplify your testing journey. Start exploring its capabilities today and see the difference it can make in your software delivery pipeline.

--

--

No responses yet