How we debugged a Flask session error

Qxf2‘s CI test started failing recently, debugging the error helped us learn about an important aspect of serving Flask application using Uvicorn workers. In this short post I will be going over the details on how we went about identifying the error. Understanding the problem We started with the pytest output summary for the failed API test to validate our […]

Tcases: Auto-generating API Tests

Most development teams that Qxf2 works with, describe and document their APIs using Open API specification. This means, there is a set structure for folks to write tests. Handcrafting the simple test cases can be cumbersome and time consuming. Given there is a set structure, we started to look out for solutions that could create API tests based on an […]

Introduction to Bi-Directional Contract Testing

In our previous blog we gave you an introduction to contract testing, explained Consumer-Driven Contract Testing approach ,setting up Consumer-Driven Contract tests, using Provider states and some of its drawbacks as well. In this blog we will introduce you to the concept of Bi-Directional Contract Testing. We will also show you how to setup Bi-Directional contract tests with an illustrative […]

Creating a virtualized Service for MailChimp

You might have come across a situation where you felt the need of creating a virtualized service for your testing purpose. This is especially true if your application is integrating with third party applications. One such situation led me to creating a virtualized service for MailChimp and I am going to talk about it in this blog. This post will […]

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 […]

Hosting cars-api Flask app using Docker

This blog talks about hosting cars-api Flask app using Docker. Docker is a set of platform as a service to deliver software as packages, called Docker containers. These are the standalone, lightweight, executable packages that could include necessary packages to run an application. Docker Images would turn to containers when they run on the Docker Engine. In the below steps, […]