You can now practice Python by fixing errors. We have created a GitHub repository with common errors that Python beginners are likely to make in their code. This is not meant for intermediate level of Python developers. The errors are super basic and laughably simple for intermediate users. We created only simple challenges so that beginners can develop the momentum […]
Practice Python by fixing errors
Exploring Wallaroo – Giles Sender
We have been exploring Wallaroo, a framework that makes it easy to handle streaming data and write event processing applications quickly. Wallaroo’s examples and documentation are excellent. They cover the core concepts well. But their documentation is sparse for certain tools that Wallaroo has developed to make it easy to independently test the developed application. One such example is the […]
Dynamically import Quilt packages
This post is primarily aimed at Quilt users. Read-only section 2 if you were looking for examples of dynamically importing Python modules. In this post, we will show you how to use the same code to interact with two similarly structured but different Quilt Packages. This is particularly useful when you use one Quilt package on your development environment and […]
Tesults: better reporting for automated tests
We wanted a good way to report the test results from our automation framework. So, when Tesults approached us to integrate with our Selenium, Python-based automation framework we were pleased. In this post, we are going to show you how automation can update test results directly on to Tesults. Why this post? If you have ever built a automated testing […]
AttributeError: ‘module’ object has no attribute ‘find_dotenv’ while running Flask app
We have a Flask app “cars-api” to help testers learn to write API automation. One day we hit across this issue while running the app File “C:/Git/cars-api-master/cars_app.py”, line 234, in app.run(host=”127.0.0.1″, port=5000) File “C:\Python27\lib\site-packages\flask\app.py”, line 910, in run cli.load_dotenv() File “C:\Python27\lib\site-packages\flask\cli.py”, line 600, in load_dotenv path = dotenv.find_dotenv(name, usecwd=True) AttributeError: ‘module’ object has no attribute ‘find_dotenv’ I looked at the […]
SSH using Python Paramiko
Recently, as part of an automated test, we needed to SSH into a server, toggle a service and then check the response on a web application. We used the Python module Paramiko. We ended up writing simple wrappers around the most common actions test automation may need to perform over SSH. In this post, we will share the same. We […]
Getting started with Wallaroo
We used to think writing (near) real-time applications that process multiple data streams was for the high IQ crowd and well-funded teams. This belief was probably strengthened by the fact that we (at Qxf2) love Python … and our favorite language lacked good complex event processors, stream processors. So we were excited to discover Wallaroo has set out to fill […]
Parsing Google Calendar events with Python
This post will show you how to use Python to parse Google Calendar events. Google’s API documentation is good but we haven’t found a realistic example anywhere. So we are sharing what we have. In this post, you will learn to look for all-day events with the word ‘PTO’ in the event title. Overview Here are the steps we will […]
Easily Maintainable API Test Automation Framework
For a long time, Qxf2’s API tests were not really object-oriented. We were relying on (at best) a facade pattern or (at worst) the God class anti-pattern. Our colleague, David Schwartz of Secure Code Warrior, helped us make our API automation framework more object-oriented and easier to maintain. Thanks, Dex, for all the guidance, examples, code, code reviews and for […]
Quilt – a Data Package Manager
We have been testing data-rich applications for a long time. And like any experienced tester, we realize how difficult it is to create, maintain and update data every time the data model changes. So we were excited to come across Quilt, a data package manager, via Hacker News. We were thrilled that it integrated well with our favorite programming language […]