Skip to content

Latest commit

 

History

History
76 lines (49 loc) · 3.42 KB

README.md

File metadata and controls

76 lines (49 loc) · 3.42 KB

Southern Web Automation Challenge

Build a small testing framework for web pages

  • Add the following tests for DuckDuckGo — Privacy, simplified.
    • Search for Michael Jordan and verify:
    • A picture of Michael Jordan is displayed in the search results page
    • There is at least one wikipedia page results
    • There is at least one nba.com page result
    • Go to the 'Theme' page of duckduckgo, change the theme to 'Terminal'. Save and go to the main page. Verify the background color has changed.
    • Go to the 'All settings' page of duckduckgo, change the language to 'Lingvo' and verify the 'Language' label has been changed by 'Lingvo'

Installation

  • The code has been tested on Node v14.8.0 and Windows 11
  • Cypress, cypress-cucumber-preprocessor and multiple-cucumber-html-reporter libraries were used
  1. Clone repository:
git clone https://github.com/EfrainAndres/Challenge-Automation-Web.git
  1. Install Node:
  1. Install the dependencies:
npm install
  1. Running the tests:
npm test
  • When running the tests, Cypress generate a diferents videos with the step to step of the tests, so this videos we can found in the folder called cypress/videos/duckduckgo
    • Search for Michael Jordan and verify:

      SearchDuckDuckGofeature

    • Settings DuckDuckGo:

      SettingsDuckDuckGofeature

Test Report

  • When running the tests, a folder called report is generated and inside the folder there is a file called index.html we open this file in the browser and we will be able to see the status of the test execution.

    test1

    Search for Michael Jordan and verify:

    test1

    • Test 1: A picture of Michael Jordan is displayed in the search results page

    test1

    • Test 2: There is at least one wikipedia page results

    test2

    • Test 3: There is at least one nba.com page result

    test3

    Settings DuckDuckGo

    feature2

    • Test 4: Go to the 'Theme' page of duckduckgo, change the theme to 'Terminal'. Save and go to the main page. Verify the background color has changed.

    image

    • Test 5: Go to the 'All settings' page of duckduckgo, change the language to 'Lingvo' and verify the 'Language' label has been changed by 'Lingvo'

    image