Skip to content

Mohammad-Faiz/Packt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packt

Automation Test cases for Packt.


In this repository, I have created some test cases based on scenarios.
Using selenium with Python.

a-Automation software and reporting:
I chose Selenium for automation, programming language as Python and software as Visual studio code because I am familiar with the mentioned language and I did all my practised on these only.

b-Installation instructions:
Download latest version of web driver of Chrome browser.
Install python and selenium package on Visual studio code.
Import all the required packages mentioned on the top of code/scripts.

c-Instruction to run code:
Always change Chrome driver path as per your system path.
I added comment for each execution for better reference.
Sometimes the website take more time to load, you will get run time exception as error, then we have to increase the sleep time to make sure the page is loaded properly.

d-Other information.
Always make sure to use latest version of Web driver.
I have completed all the Test-Cases on windows 10.


Test Case 1:

Imported all the required libraries
Completed login of page successfully.
Verified title of the page succcessfully.
Verifying color of background.
Verified text.
Verified Posititon of the element.

Test Case 2:

Imported all the required libraries
Completed login of page successfully.
Verified title of the page succcessfully.
Login to Packt successfully.
verified top navigation bar(My library) succcessfully.
Clicked and Verified title of each sub options successfully.

Test Case 3:

Imported all the required libraries
Completed login of page successfully.
Verified title of the page succcessfully.
Login to Packt successfully.
Fetched the title of Home page.
Clicked to "Edit your preference here" link.
Fetched the title of "Edit your preference here" page.
Compared both the titles successfully.

Test Case 4:

Imported all the required libraries
Completed login of the page successfully.
Verified title of the page succcessfully.
Login to Packt successfully.
Clicked "Browse Library" succcessfully.
Clicked on "All Books" option succcessfully.
Clicked on Clear filter option succcessfully.
Selected "2021" as a Publication Year in a filter section succcessfully.
Checked all the mentioned keywords in "Search Bar" succcessfully.

Author: Mohammad Faiz
Contact: +91 9631011108

About

Automation Test cases for Packt by using Selenium with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages