Ramya P
YavarTechWorks
Published in
3 min readOct 31, 2023

--

Test for Simple Login and writing parameterized test in TestRigor

Hi all!!…In this post we are going to see how to write simple test for login and parameterized test in Testrigor.

Create New Test Suite

Step 1: Log in to the testRigor and Create the new Test Suite.

Step 2: Enter the suitable name for your test suite in the field of Test Suite Name.Enter the URL to run the tests.

Step 3: Select the type of Testing which is Desktop Web Testing or Mobile Web Testing.

Step 4: Choose the OS which you want to run and select the browser.Click create test suite.The new test will be created as shown in below Fig 1.1

Fig 1.1

Create new test for simple login page

We can record the script using the TestRigor extension or write the write the custom testcase

Method 1: Recording Script in TestRigor

Step 1: Create new test suite and download the TestRigor extension.

Step 2: Record the script and that test will run in the TestRigor after the recording script is stopped.

Method 2 : Writing custom test case in testRigor

Step 1: Click the “Add Custom Test case” where we can write the custom test case in plain English.

Step 2: Write new custom steps test case for simple login page.

Example:

Login
click “Sign In”
enter “testemail@gmail.com” into “Email Address”
enter “TestPassword123” into “Password"
click “LOGIN”

Step 3: The test will run and the detailed explanation of test execution for each and every page will be displayed

Fig 1.2
Fig 1.3

Step 4: Save and Run the test and check for the results.

Step 5: The test which gets failed will be displayed in “Errors” tab and the overall reports will be displayed in “Reports” tab.

Parameterized test in TestRigor[declaring variable]

Step 1: Click the “Test Data” and declare the variable along with their values.

Step 2: Write the test case along with variable declared in the global variables.

Step 3: Save and Run the test and check for the results.

Thanks for reading this post!!!!!!!!!!!!

--

--