As part of the pairing project activity at Qxf2 – I had to demonstrate a simple working example that included Celery and it’s monitoring tool called Flower. I knew a little bit of background as I have tested a product that includes Celery. I read the Celery guide, a few related articles, and simple examples. I also came across the […]
Testing with Celery
Rerouting outbound traffic to a simulated device on localhost
In this post, we will outline how we reroute traffic meant for a specific IP back to a synthetic device running on localhost. This is useful for testers who work with products that monitor IT infrastructure, infrastructure management application testers and network testers. We will be using a couple of Python modules (fake-switches, snmpsim) and editing the iptables of the […]
Posting messages on a Skype group channel using Python
I recently wrote a script to post messages on Skype using Python. I used the excellent SkPy module. The module’s documentation is very good but examples on how to post messages to group chats was sparse. I had to muddle around, try things out with the Python interpreter and figure things out. In fact, I am not sure if I […]
Using cProfile to get some useful statistics for Python based tests
In general, when we have some performance problem with our code, profilers can be used to help identify where the problem actually lies. It can be used to check how long the functions defined in your code took to execute, how many times a particular function is being called etc. We were able to use cProfile to find out some […]
Anonymize data using Python Faker
We have an application which holds some sensitive survey information. Now since we couldn’t share the data with everyone we wanted a good way to Anonymize the data so that we can handover the development to anyone. We found Faker as a good library that generates fake data. Why this post As a tester, we may need to work with […]
Learning Python when you already know Java
This blog is an outcome of a few adjustments that I made while moving from Java to Python when automating my tests. This will help you with basic pointers about how Python syntax is different from Java. Why this post? As an experienced Java automation engineer, when I started my journey into Automation using Python, I had this very basic […]
Saving cProfile stats to a csv file
As part of testing one of my client code, I used cProfile to profile some code. Though I had never tried profiling code before, I found cProfile easy to use. However, I faced some challenges on how to use the stats which cProfile provided. I looked at ways to use the stats but I didn’t find an option where I […]
Debugging in Python using pytest.set_trace()
Debugging the code in Python is a bit tricky when compared to other programming languages. Most of us use print statements in the code at multiple places to print the variable values and figure out the problem. Or sometimes use time.sleep() statements to pause the python program to check what’s going on in the code. Recently we started tracing our […]
Time analysis of Jira statuses using Python
We have developed a time view of statuses metrics based on Jira data as part of our engineering benchmarks application Note: This post is written in continuation with the other blog on the engineering metrics. What is time view of statuses metrics? It is the time view graph that shows how many tickets were present in a given set of statuses for each […]
Where is your engineering team spending most of its time each sprint?
We have been using Python to analyze data in Jira. We have developed sprint metrics (we call them bucket metrics) based on Jira data as part of our engineering benchmarks application. The graphs we produce helps us during sprint retrospective meetings Note: This post is written in continuation with the other blog posts on engineering team metrics An example bucket metric In this […]