Pytest-BDD framework -(Explain your framework which you are using to validate the API )

 

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


  1. Vijayalakshmi said...

  2. sam kirubakar said...

    I am really very happy to visit your blog. Directly I am found which I truly need. please visit our website for more information
    Software Testing Services

  3. sam kirubakar said...

    I am really very happy to visit your blog. Directly I am found which I truly need. please visit our website for more information
    Quality Engineering Services in USA

  4. Lavanya said...

    An awesome blog for the freshers. Thanks for posting this information.
    Selenium Online Training Hyderabad
    Selenium Testing Course Online

  5. sam kirubakar said...

    Very Informative and creative contents. This concept is a good way to enhance the knowledge. thanks for sharing.
    Continue to share your knowledge through articles like these, and keep posting more blogs.
    And more Information The Top 5 Test Automation Frameworks in 2022

Post a Comment