Coder Social home page Coder Social logo

nightwatch's Introduction

nightwatch.py

An attempt at making a UI Automated Testing Framework using Python and Selenium. Influenced by the node.js powered framework, nightwatch.js

Demo

alt tag alt tag

Installation

$ git clone https://github.com/lpcruz/nightwatch.git
Using Pip for dependencies

$ sudo pip install -r requirements.txt

Creating a Test

  • The template folder is a good starting point as it contains each of the dependencies. The template folder is how your new project should look like when beginning.

  • Create a new folder/directory for your project within the Root Directory nightwatch

  • Within your new Project Folder, you'll need the following files to begin commands.py and nightwatch_utils.py

  • For screenshots, create a folder/directory called, screens. This is referenced within commands.py. This is where your screenshots will be located.

  • Create a new file for your test i.e: mytest.py

  • For reference, please review the template for making a test here

  • You will need to make changes to nightwatch_utils and you can refer here

  • When you're done making your test, make sure that your new project folder contains updated versions of commands.py and nightwatch_utils.py, as well as a screens directory

Running a Test

Ensure that you are in the directory where which your new test file is located. Once you're in that directory do the following in terminal:

$ python mytest.py

nightwatch's People

Contributors

lpcruz avatar

Stargazers

 avatar  avatar Yvan Sraka avatar Raju avatar Andrey Melnikov avatar laomu avatar Daniel Perez-Gomez avatar Caio Carvalho avatar Danilo Shiga avatar Felipe Frizzo avatar Mario Idival avatar Bruno Rocha avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar jaron_luo avatar  avatar

Forkers

drptbl

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.