Skip to content

tw-qa-gurgaon/selenium-python

Repository files navigation

Introduction

This a bare minimum framework setup of python for QA Recruitment Workshop

Test Covered

  • UI

Pre requisites:

  • Python 3
  • IDE (Any)

Technology used

  • Python 3.8 (and above)
  • Selenium 4.0
  • Pytest 6.2.5
  • Allure-pytest 2.9.45
  • WebDriver-Manager

Steps to run:

1.Clone GIT repository in named directory.
Run:

     > cd ~/workspace/
     > mkdir thoughtworks
     > git clone https://github.com/tw-arihant/selenium_python.git

2.Create virtual environment of python

python3 -m venv venv

3.Activate the venv

source ./venv/bin/activate
  • If you face permission error with the above command try
chmod -R 777 ../selenium-python
./venv/bin/activate

4.Install the dependencies that are mentioned in the script

pip install -r requirements.txt
  • In case the above command does not work try
pip3 install -r requirements.txt
  • If pip does not work go to the requirements.txt file and select option install dependencies in IDE

5.To run the tests using cmd use:

pytest -v -s location/test_name --browser=browsername
  • Default browser = Chrome

  • Example:

pytest -s -v testCases/test_login.py --browser=chrome
pytest -s -v testCases/test_login.py

Author

  • Arihant Jain
  • Ayushi Arora

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages