Recently I was required to do security testing as well as check obligatory field validation such as radio buttons or pre-filled fields for one of the clients. We were looking for a tool that could be set up quickly and do both. While the OWASP’s Zap tool is commonly used for security testing, we think it can also be used […]
Learn security testing basics by exploring the Zap tool
Set up a CI/CD pipeline to run lambda tests using AWS cloud service emulator named LocalStack
Recently, I have explored LocalStack AWS local stack to test cloud application locally. You can test the lambda in the AWS lambda console or Moto i.e. mocking. However running tests against LocalStack, would be good as this would not incur any cost of using AWS Services. LocalStack can be used for running any AWS service locally as well as on […]
State of Testing Survey: 2022
Hey testers, hope you all are fine and safe!! and would want to start new year with great enthusiasm and learning new technologies. State of Testing Survey 2022 has gone live. Please do take part in the survey and help the testing community to identify common testing trends. Why take this survey? This time the survey is going to explore, […]
Mocking date using Python freezegun library
Recently, I used freezegun library to mock date for writing unit test for microservices endpoint. This is a fairly new library and I could not find many examples online. So, I wanted to blog about my experience of using this library. Freezegun library allows our Python tests to travel through time by mocking the datetime module. Once the decorator or […]
Writing end to end test for microservices based architecture used for posting skype messages
Recently, I have attempted to test microservices based architecture where the AWS Lambda function consumes messages from a microservices endpoint and posts them to the skype channel. I have made an attempt to add most of the validations for the flow. I have included this end-to-end test in the below blog. Background: The above architecture explains, microservices based architecture which […]
Extract message from AWS CloudWatch log record using log record pointer
This post shows you a short example of how to use the CloudWatch log record pointer to extract message from the AWS CloudWatch log record. Background Recently I have written end to end test for skype sender lambda. In the end to end test, I have compared message from AWS SQS queue with AWS CloudWatch logs. I have used log […]
How to stop Pact Mock Service manually?
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 […]
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 […]
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 […]
Compare json objects in AWS S3 bucket using deepdiff
Recently, I got a chance to work on the AWS S3 bucket, where I compared the JSON files stored in the S3 bucket with the pre-defined data structure stored as a dictionary object using deepdiff. I can’t actually replicate, the entire system, I had tested. For the blog purpose I have come up with the following prerequisites/setup/flow: Pre-requisite: 1. AWS […]