Explaination of Pytest-BDD framework
OR
Please explain your framework which you are using to validate the API
PyTest-BDD Framework
In our framework, we have majorly 5 important components
1.
Entity :-
a.
Configuration parser :- where we have kept our
configparser/ reader you can say which we are using to read the configuration required
to run our test cases, like client secret, id, scope, username and password.
b.
Key vault helper:- using this helper class we reading
the data from Azure keyvalult.
c.
Blob strorge account :- Again to fetch the information
of files present in the blob.
d.
Cosmos db reader:- to read the content from the
cosmos db.
2.
Feature
a.
In this component we are keeping our feature files
based on the modules.
3.
Step definition
a.
Where we are creating the test files for step
definitions.
b.
Created conftest file for fixtures and hooks
4.
Test data
a.
Where we are storing the json parameters or
payloads which are required for the API’s
b.
Also we have separate folders for expected json
files and response values.
5.
Helper
a.
In this component we are storing the API base
class where we have
i.
Json file reader
ii.
API request method to request for get /post/
put/ patch and delete calls
iii.
Token generator