Skip to content

rronakk/behave_selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sample Automated test using behave and selenium

Table of Contents

Introduction: Installation and Dependencies

This repo is compatible with python v 3.4++.

On your machine, make a directory for your python projects if you've not already and clone the project:

mkdir python_projects; cd python_projects

git clone https://github.com/{your_user_name}/UI-Automation.git

cd {your_clone_directory_name}

install the desired python package required for this repo by running.

pip install -r requirements.txt

Logs of the packages being downloaded will display in your shell, and you'll be good to go.

Key packages used in this repo :

Running Tests

Running test is pretty straight forward using behave. cd into the directory where feature files are located. for e.g. in this case, assuming you are inside project directory.

cd coding_challenges/features

Run the below command with intended feature file to run your test: e.g :

behave amazon.feature

Future Improvements

  • Make use of page object model.
  • seperate out locator startegies of web element into a seperate file, to make tests easy to maintain.
  • Adding more logging, making it easier to debug.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published