Qxf2 automation framework supports API testing. We used Mechanize library to make REST calls for our testing framework. As we migrated from Python 2 to Python 3 and since Mechanize is not supported on Python 3 we had to come up with an alternative module compatible with Python 2 & Python 3. We decided to use Requests library. In this […]
Implementing Python Requests library in our automation testing framework
Migrating our automation framework from Python 2 to Python 3
Qxf2’s Selenium, Appium and API test automation framework using the Page Object pattern was built with Python 2. We started receiving a lot of requests for Python 3 support. With Python 2 set to retire by the end of 2020, we migrated our existing Qxf2 automation framework code from Python 2 to Python 3. In this post, we will have a […]
Run your API tests in parallel: MapReduce/Python
At a recent client engagement, I used MapReduce to run some API level checks in parallel. It was surprisingly simple and needed me to change less than a dozen lines of code in my tests. Generally MapReduce makes people think they need a farm of servers. But in this case I did it using only my local machine. I was […]
API Testing with Python Mechanize
This is the third part in our series on API testing. Rather than focus on traditional approaches to API testing, we have decided to arm you with tools that let you interact with the API at different levels of abstractions. In part I we showed you how to inspect the API calls of any web application. In part II, we […]
Python Mechanize – the missing manual
Problem: The online documentation for Mechanize in Python is lacking. Case in point, this question on stackoverflow remained unanswered until we added the answer. This post hopes to provide you with the key missing pieces. We love Python at Qxf2 Services. We chose the Mechanize module to test REST services and automate a lot of our test setup tasks by […]