Coder Social home page Coder Social logo

e2enodeone's Introduction

e2enodeone

  • Plans
    Create a working pipeline
    Add more tests to pipeline
    Write the code to make tests assert a result (dropdownTest.js) \

  • Instructions on how to run the tests

    From the command line do the following clone this repo

    git clone https://github.com/zm-coder-gamer/e2enodeone.git
    
    • cd to the repo directory; e2enodeone
    cd e2enodeone
    • install packages
npm install
  • run the tests
npm node checkboxTestSelenium.js

Web Testing Project README

Project Overview

This Node.js project focuses on web testing using the Selenium WebDriver for automated browser interactions. The tests are designed to verify the functionality of checkboxes and dropdowns on the the-internet.herokuapp.com website.

Files in the Project

  1. checkboxTestSelenium.js: This file contains a test script that interacts with checkboxes on the webpage, checks and unchecks them, and asserts the expected states.

  2. dropdownTest.js: This file contains a test script that interacts with a dropdown on the webpage, selects a specific option, and performs assertions.

Getting Started

To run the tests locally, follow the instructions below:

Prerequisites

Before running the tests, ensure you have Node.js and npm (Node Package Manager) installed on your machine.

Installation

  1. Open a terminal or command prompt.

  2. Navigate to the project directory.

  3. Run the following command to install the required dependencies:

    npm install selenium-webdriver chromedriver

Running the Tests

Checkbox Test

  1. Execute the following commands in the terminal:

    node checkboxTestSelenium.js
  2. The browser will open, interact with the checkboxes, and close automatically. Review the terminal for any test results or errors.

Dropdown Test

  1. Execute the following commands in the terminal:

    node dropdownTest.js
  2. The browser will open, interact with the dropdown, and close automatically. Review the terminal for any test results or errors.

Note

  • Ensure that you have a stable internet connection, as the tests navigate to the-internet.herokuapp.com to perform the web interactions.

e2enodeone's People

Contributors

zm-coder-gamer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.