Skip to content

This framework comprises of Selenium-Python with pageMap model and Api testing

License

Notifications You must be signed in to change notification settings

MohammedWaasim/selapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_framework

Python Pytest Framework

To have a dry run of the framework follow below steps.

  1. Clone the repo
git clone https://github.com/MohammedWaasim/python_framework.git
  1. Have following plugin and softwares installed
   pip3 install selenium
   pip3 install pytest
   pip3 install ddt
   pip3 install allure-pytest
   pip3 install pyyaml
   pip3 install requests
   pip3 install webdriver_manager
  1. Set up the env by running this command
export PYTHONPATH=$PYTHONPATH:.
  1. Run this line in the project folder
pytest tests/test_suite_demo.py --browser chrome --alluredir=reports --env staging
  1. To run api test alone exe this command 'pytest -k api --alluredir=reports'
  2. To run Web test alone exe 'pytest -k web --browser chrome --alluredir=reports'
  3. Finally to view the report run 'allure serve reports' <- this command will open the report in the dynamic page and will remain there till we press ctrl+c on the terminal.

NOTE: To run ndtv test run below test.

 pytest tests/test_suite_demo.py --browser headless --alluredir=reports -v -s

About

This framework comprises of Selenium-Python with pageMap model and Api testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages