When we run the tests using qxf2 page object model framework we capture the screenshots of the test run at certain steps using decorators Screenshots utility. Often, it is time-consuming to view each of these screenshots. We thought of adding a utility that can convert all this screenshot into a single Gif that is more convenient to use and debug any […]
Converting test screenshots into Gif
Build and Test iOS app with Qxf2 Framework and Appium.
Why this post? In this post, we are going to look into, how to test an iOS app with Python-based testing framework using appium. This is a step by step procedure, right from building an app, writing a test for iOS app in Python using Qxf2 test automation framework and then actual testing of app with Appium on Mac OS […]
Testing with Celery
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 […]
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 […]