In this blog, I will discuss one troubleshooting tip for Pact Mock Service not stopping, after Pact Contract test completed. The console shows a connection error, not directly related to the solution worked out for me. However, when I stopped Pact Mock Service manually, I was able to proceed with the Pact test. Background I am using the following code […]
How to stop Pact Mock Service manually?
Writing Contract test for API endpoint using Pact
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 […]
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 […]
Simulate your own hardware devices as templates for testing
This blog gives an idea to simulate your own devices by creating device templates. It would be helpful to QA or any user who has dependency with the device data for testing the application. Before getting into technical details about simulation, the following summary is about snmp and snmpwalk. What is SNMP? SNMP is a Simple Network Management Protocol, which is […]
Skype sender as a web service
I used the fantastic Python module Skpy to setup a ‘Skype sender’ as a web service. I did this work because I wanted to make it as easy to programmatically post to a Skype channel as it is to programmatically post to a Slack channel. If you know your channel id and have an API key, then posting a message […]
Writing a Skype listener using skpy
I implemented a Skype listener service that listens to messages posted on our common Skype channels. The Skype listener is written using an excellent Python module skpy. This listener serves as a building block for a few AI-based internal applications. This post outlines the implementation details. I hope it helps companies that still use Skype as their instant messaging tool. […]
Mocking an AWS SQS queue using moto
This post shows you a short example of how to use the Python module moto to mock a SQS queue. This technique is useful when writing code level tests for applications hosted on an AWS stack. We will work with a method that takes a string as an input, processes the string and then writes it to an SQS queue. […]
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, […]