Skip to content

Exercise on automation testing of web apps via Selenium IDE and RobotFramework

Notifications You must be signed in to change notification settings

memgonzales/automation-testing-selenium-robot

Repository files navigation

Selenium IDE & RobotFramework Exercise

badge

The objective of this exercise is to introduce students to automation testing of web applications using Selenium IDE and RobotFramework.

Task

This is an exercise in an advanced software engineering class under Ms. Unisse C. Chua of the Department of Software Technology, De La Salle University. The instructions are as follows:

  1. Go to SauceDemo.com (this is a dummy/fake website for practicing automation tests).
  2. Try out different username and account combinations to see what happens.
  3. Follow the test steps below and record the steps using the Selenium IDE.
  4. Add an assertion step based on what you have observed the expected outcome should be (from Step 2).
    Note: It is not going to be a check on the page title because they do not change the page title.
  5. Save the scripts as an .SIDE project for reference for your RobotFramework scripts.
  6. Update your initial RobotFramework exercise scripts to have the following test cases:
    • Successful user log in
    • Unsuccessful user log in by a locked out user
    • Typed wrong password
    • Logged in as problem user and sees a broken inventory page
    • Sort product name (A to Z)
    • Sort product name (Z to A)
    • Sort product price (low to high)
    • Sort product price (high to low)

Project Structure

This submission contains the following files and directories:

File/Directory Description
sauce_demo_selenium_ide.side .SIDE project file (Selenium IDE recordings)
tests Folder containing the .robot files (RobotFramework)
log.html
output.xml
report.html
Report after running the RobotFramework tests

Screenshots

The screenshots of the passed Selenium IDE and RobotFramework automated tests are shown below:

selenium

selenium

Author

Releases

No releases published

Packages

No packages published