Coder Social home page Coder Social logo

vivifyhealthcare / playwright_api_testing Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 168 KB

API Automation Testing Via Playwright

Home Page: https://vivifyhealthcare.com/blogs

License: MIT License

Python 100.00%
lifeeazy playwright python vivifyhealthcare

playwright_api_testing's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

playwright_api_testing's Issues

Playwright

Playwright provides a powerful and flexible API for automating web browsers and performing API testing. With its support for multiple browsers and its rich set of features, it can be a valuable tool for any Python developer looking to test their web applications.

Multiple TestCases for Multiple Projects/Products : using Fixtures

Problem Statement
Testing Setup at one place for API Endpoints related to multiple Products/ Projects (Grouping) : Using Fixtures

Solution
Executing the Testcases for Specific Project form the reshaped Testing Code Block with Grouping of Endpoints with Product/Project and Save the Test Cases and their respective outcomes in to different collections. for example:

  1. Product A - Lifeeazy
    i. API Collections Mapped in a Group
    ii. Test Cases uploaded via API
    iii. Test Case saved in MongoDB Collection for Lifeeazy
    iv. Test Case Execution and Saved Data for the processed / executed test cases in MongoDB
  2. Product B - IVINPro
    i. API Collections Mapped in a Group
    ii. Test Cases uploaded via API
    iii. Test Case saved in MongoDB Collection for IVINPro
    iv. Test Case Execution and Saved Data for the processed / executed test cases in MongoDB

Additional context
By Using Fixtures on execution of the testing; test cases will be executed for the Specific Product/Project.

Playwright Report In Excel

About Playwright_Excel:

Excel Report for the API Testing via Playwright has been devised to represnt the data in the analytical form and and make it readily available for the asessment. Report in excel is easily understandable and highly customizable.
We are summarizing Data in excel for the set of API endpoints with the set of test cases executed having structutred like this Sample View shown below

image

Primarily, This customized report is prepaired to analyze endpoints working status, i.e. 200.

The report typically contains detailed information about the API and it's Sections; such as the name of the API, Status, Status code, API Type, Section Name, Date & Time of Execution, and the Environment Name. All these headers can be customized as per the usability and expected output for the visibility of the Report.

Multiple TestCases for Multiple Projects/Products

Problem Statement
Testing Setup at one place for API Endpoints related to multiple Products/ Projects (Grouping)

Solution
Reshaped the Testing Code Block for Grouping the Endpoints with Product/Project and Save the Test Cases and their respective outcomes in to different collections. for example:

  1. Product A - Lifeeazy
    i. API Collections Mapped in a Group
    ii. Test Cases uploaded via API
    iii. Test Case saved in MongoDB Collection for Lifeeazy
    iv. Test Case Execution and Saved Data for the processed / executed test cases in MongoDB
  2. Product B - IVINPro
    i. API Collections Mapped in a Group
    ii. Test Cases uploaded via API
    iii. Test Case saved in MongoDB Collection for IVINPro
    iv. Test Case Execution and Saved Data for the processed / executed test cases in MongoDB

Additional context
on execution of the testing; by default - test cases will be executed for both the Products, however it can be switched to specific by commenting the grouped API set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.