Code Monkey home page Code Monkey logo

autotesttruva_py's Introduction

Installation

  1. Download the source code. You can download it as a ZIP file from GitHub. But if you're a developer, a better approach is to clone the source code using Git, thus allowing you to easily pull updates and push your changes.

  2. Download ChromeDriver. You can download it for free from Chromium project. It's an open source interface to Google Chrome browser. Therefore, you also need to have Google Chrome or Chromium browser installed.

  3. Install Python 3 and Python virtualenv.

  4. Create a new instance of Python environment. For example, using venv as its name and in Fedora Linux:

    $ pyvenv venv
    
  5. Enable the Python environment.

    $ source venv/bin/activate
    
  6. Install the required Python packages. This includes Behave BDD framework, Requests HTTP library, and bindings for Selenium WebDriver E2E.

    $ pip install behave requests selenium
    
  7. Copy ChromeDriver to a visible executable path. In Windows, this will be venv\Scripts. In other OS, hovewer, this will be venv/bin.

Usage

First, make sure the Python environment is activated. You can activate the environment below.

$ source venv/bin/activate

Then run the whole test.

$ behave

Alternatively, you can provide additional arguments. For example, if you're a developer, you might be interested to only run the specific tests that you are currently working on. You can temporarily mark such test features/scenarios with @wip tags, and then run only tests with that tags as follows.

$ behave --tags=@wip

Miscellaneous

IDE. The project can be imported to Eclipse IDE with PyDev plugin. Ensure that the location of your Python Interpreter in Window > Preferences is correct, or in the same environment as where Selenium library and ChromeDriver are located.

Changing Git user name. Example:

git config --local user.name "John Doe"
git config --local user.email "[email protected]"

autotesttruva_py's People

Contributors

buherman avatar ccs1910 avatar

Stargazers

 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.