Skip to content

Automated API Testing Framework with Pytest. Applying Selenium Page Object Model design pattern to create a Keyword Driven-like testing framework

Notifications You must be signed in to change notification settings

aifakhri/keyword-driven-api-testing-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keyword Driven API Automation Testing Framework

Description

This is a Keyword-driven API automation testing framework that is built on top of Pytest. It is built by following Page Object Model design pattern to make a modular test framework.

How to

Install

This program uses python 3.10.0, however the minimum requirement of Pytest is Python 3.7, so, it can be downloaded from Python website.

If using the same python version, the Pytest and requests libraries can be installed with this command:

C:\{Your Directory}\TestDir>python -m pip install requirements.txt

If using different python version, Pytest installation can be found in pytest website..

Run the Project

Clone the repo with Git to your desired local machine directory:

git clone [url] 

Run the test with the following command:

Windows Console
C:\{Your Directory}\TestDir>pytest test_validation_api.py

Resource

You could find the API documentation below: Simple-Book-Api

And for more detail explanation on how to build this framework, please check out my medium story

About

Automated API Testing Framework with Pytest. Applying Selenium Page Object Model design pattern to create a Keyword Driven-like testing framework

Topics

Resources

Stars

Watchers

Forks

Languages