Giter Site home page Giter Site logo

cdohotaru / e2e-testing-public Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 171 KB

This is the accompanying code for the my Principles of end-to-end web testing article

Home Page: https://medium.com/@cdohotaru/principles-of-end-to-end-web-testing-7fa7d27d7826

JavaScript 87.91% HTML 7.84% CSS 4.25%

e2e-testing-public's Introduction

This is the accompanying source code for the Principles of end-to-end web-testing article. To read the article follow this link: https://medium.com/@cdohotaru/principles-of-end-to-end-web-testing-7fa7d27d7826

Commands to start and use the project:

Clone the source project:

git clone [email protected]:cdohotaru/e2e-testing-public.git

Install all dependencies (run this in the project directory, that is, where the package.json file is located):

npm install

Start the project. In the project directory, you can run:

npm start

You can login with the username and password displayed on the login page and click around to get familiar.

To run all the tests, run this command in a Linux or Mac environment:

./node_modules/nightwatch/bin/nightwatch

or

.\node_modules\nightwatch\bin\nightwatch

if you're in a Windows environment

To run a specific test you can run these commands (Linux/Mac or Windows):

./node_modules/nightwatch/bin/nightwatch e2e/tests/ProductPageTests.js

.\node_modules\nightwatch\bin\nightwatch e2e\tests\ProductPageTests.js

If you're on Mac or Linux you can also run:

npm run tests

to run the e2e tests

Note: the e2e tests are set to run on the default port 3000. If you didn't run npm start on the default port, adjust the new port in e2e/constants.js before running the tests.

This project was bootstrapped with Create React App.

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.