This post shows you a short example of how to use the Python module Pact to write Consumer Contract tests against Provider Contract. We will use Trello API endpoints for writing sample test. Note that this blog will only cover one sample test. Testers can write many more for a different response such as unauthorized access, server not found. What […]
Writing Contract test for API endpoint using Pact
The Weather Shopper application – a tool for QA
Qxf2 has been using a web application called Weather Shopper to train our interns on Python and Selenium, interview candidates that list GUI automation as a skill on their resume, validate the capabilities of new GUI automation frameworks, etc. While we shared a write up about this tool several months ago on Reddit, I realized we hadn’t shown it to […]
How to use moto with AWS DynamoDB
Do you want to test the function that uses AWS resources like DynamoDB? The Python moto module is very useful while patching AWS resources. This post will take you through, how we can mock DynamoDB with the help of moto. Here, we will be mocking a method that stores input data into a given DynamoDB table. The idea would be […]
Testing FastAPI endpoints using fastapi.testclient
This post shows you an example of how to use fastapi.testclient provided by FastAPI. This testclient will help anyone to write code level tests quickly. Background Recently, we have developed an internal application using FastAPI. I thought to document a quick testing approach which may help software engineers to write test cases quickly. Here I have used fastapi.testclient instead of […]