Skip to content

This is an Automation Testing Project in Javascript that performs testing in Web Applications with usage of Selenium , Mocha & Chai.

License

Notifications You must be signed in to change notification settings

godpower13/AutomationTestingPlayground

Repository files navigation

AutomationTestingPlayground

The Automated Testing for Web Applications is a comprehensive quality assurance project aimed at enhancing the reliability and stability of web-based software systems. Leveraging the power of Selenium, Mocha & Chai, this project is designed to automate the testing process, ensuring consistent and efficient evaluation of web applications.

Design Pattern

The Page Object Model (POM) is a widely adopted design pattern in automated software testing, specifically for web applications. It provides a structured and organized approach to test automation by separating the test code from the elements and actions on web pages. The primary goal of the Page Object Model is to enhance test maintainability, reusability, and readability, thereby improving the overall efficiency of automated testing efforts.

Capabilities

  • Run test in Selenium Grid
  • Run test local to your computer
  • Run test in 3 browsers (Chrome, Edge, Firefox)
  • Run test in parallel execution
  • Export reports from test execution

Required Actions & Settings

  1. Download and install the required browsers (Google Chrome, Firefox, Microsoft Edge )
  2. Downolad the require browser drivers (Google Chrome, Firefox, Microsoft Edge )
  3. To run tests successfully local must add in config.js file your path to driver and browser executables for all browsers Chrome, Firefox, Edge.
  • DRIVER_EXECUTABLE : Path to driver executable.
  • EXECUTABLE : Path to browser executable.
 pathToChrome: {
        EXECUTABLE: "-> FILL THE PATH <-",
        DRIVER_EXECUTABLE: "-> FILL THE PATH <-"
    },
    pathToFirefox: {
        EXECUTABLE: "-> FILL THE PATH <-",
        DRIVER_EXECUTABLE: "-> FILL THE PATH <-"
    },
    pathToEdge: {
        EXECUTABLE: "-> FILL THE PATH <-",
        DRIVER_EXECUTABLE: "-> FILL THE PATH <-"
    },

Configurations

In config.js file you can modify the configuration of the project :

  • timeoutTest : Change the timeout of test in milliseconds
  • commandsTimeout : Change the timeout of command execution
  • browser : Specify the browsers for test (chrome, MicrosoftEdge, firefox)
  • environment : Specify the environment for test to run :
    • local : Tests will run locally to your computer.
    • grid : Tests will run in Selenium Grid.
    • cicd : Tests will run to your CI CD (must set this settings when you are ready to push in github)

Run Tests

In package.json they have specify execution scripts :

  • test-serial : Run tests in serial mode.
  • test-parallel : Run tests in parallel mode.
  • test-mochawesome : Run tests in serial mode and save a report file to TestResults/NormalExecution.
  • test-parallel-mochawesome : Run tests in parallel mode and save a report file to TestResults/ParallelExecution.

About

This is an Automation Testing Project in Javascript that performs testing in Web Applications with usage of Selenium , Mocha & Chai.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published