0% found this document useful (0 votes)
15 views

STQA-P2

Uploaded by

dcruzsophia24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

STQA-P2

Uploaded by

dcruzsophia24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PRACTICAL 2

AIM: Conduct a test suite for two different websites using Selenium IDE. Perform various
actions like clicking links, filling forms, and verifying content.

Step 1: Create a Test Suite in Selenium IDE

1. Open Selenium IDE: Click on the Selenium IDE icon in your browser toolbar.
2. Create a New Project:
o Click on "Create a new project".
o Name your project (e.g., "STQA-P2").

Step 2: Create Test Cases

Test Case 1: Redbus - Search for Buses

1. Click on "Record a new test".


2. Name your test (e.g., "Redbus Search Test").
3. Enter the URL of Redbus (https://www.redbus.in/).
4. Perform the following actions:
o Enter "From" location: Locate the 'From' input field and type a city name (e.g.,
"Goa").
o Enter "To" location: Locate the 'To' input field and type a destination city name (e.g.,
"Mumbai").
o Select a date: Choose a travel date from the date picker.
o Click the 'Search Buses' button: Locate and click the search button.
5. Add assertions:
o Assert title: Right-click on the page and select Selenium IDE - "Assert Title" to
ensure the page title is correct.
o Assert text: Right-click on a part of the results page and select Selenium IDE - "Assert
Text" to ensure expected text is present.
6. Stop the recording and save the test case.

Test Case 2: Redbus - Verify Offers

1. Click on "Create a new test".


2. Name your test (e.g., "Redbus Offers Test").
3. Enter the URL of Redbus (https://www.redbus.in/).
4. Perform the following actions:
o Click on the 'Offers' link: Locate and click the 'Offers' link.
5. Add assertions:
o Assert title: Right-click on the page and select "assert title" to ensure the page title
is correct.
o Verify text: Right-click on the offers section and select "verify text" to check if
specific offers are listed.
6. Stop the recording and save the test case.

Ms. Sophia Dcruz STQA-P2


Test Case 3: Amazon - Search for a Product

1. Click on "Record a new test".


2. Name your test (e.g., "Amazon Search Test").
3. Enter the URL of Amazon (https://www.amazon.in/).
4. Perform the following actions:
o Enter product name: Locate the search bar and type a product name (e.g., "Laptop").
o Click the 'Search' button: Locate and click the search button.
5. Add assertions:
o Assert title: Right-click on the page and select "assert title" to ensure the page title is
correct.
o Assert text: Right-click on a part of the results page and select "assert text" to ensure
expected text is present.
6. Stop the recording and save the test case.

Test Case 4: Amazon - Verify Deals

1. Click on "Create a new test".


2. Name your test (e.g., "Amazon Deals Test").
3. Enter the URL of Amazon (https://www.amazon.in/).
4. Perform the following actions:
o Click on the 'Today's Deals' link: Locate and click the 'Today's Deals' link.
5. Add assertions:
o Assert title: Right-click on the page and select "assert title" to ensure the page title is
correct.
o Verify text: Right-click on the deals section and select "verify text" to check if specific
deals are listed.
o Store text: Right-click on a deal and select "store text" to store the text of a deal.
o Echo command: Use the "echo" command to print the stored text in the log.
6. Stop the recording and save the test case.

Step 3: Organize Test Cases into a Test Suite

1. Go to the Selenium IDE project you created.


2. Click on the "Test Suites" tab.
3. Click on "Add Test Suite" and name your test suite (e.g., "STQA-P2 Test Suite").
4. Drag and drop the test cases you created into the test suite.

Step 4: Run the Test Suite

1. Select the test suite you created.


2. Click on the "Run" button to execute all the test cases in the suite.
3. Review the test results to ensure all test cases pass successfully.

Ms. Sophia Dcruz STQA-P2

You might also like