Skip to content

Himani1519/Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Broker automated test

  • This project can be used for automation testing of few scenarios on basis of Page Object Model

Project Folder Structure

  • pages - It contains base_page.py and main_page.py class. base_page.py - This Base class is serving basic attributes for every single page inherited from page class, it includes basic functionality and intialization of driver. main_page.py - All the page objects are covered in these file, it is derived from base_page class and conyains all methods to execute steps.

  • tests - base_test.py and test_nobroker_page.py contains actual tests, it uses the page class object to initiating drivers and functions to run tests.

  • utils - locators.py - This class conatins all the locators to run the test. test_cases.py - In these, class test cases description are written and utilizing them in test_nobroker_page.py class as an array.

Prerequisites

  • Python 3
  • Selenium
  • Pytest
  • unittest — Unit testing framework
  • Chrome (Version 79)

Installation and Usage

To run all tests:

  • python3 -m unittest

To run a class:

  • python3 -m unittest tests.test_nobroker_page.TestNoBrokerPage

To run a method:

  • python3 -m unittest tests.test_nobroker_page.TestNoBrokerPage.test_mainPage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages