This post will help you in understanding how the Qxf2’s page object model captures the screenshots when a test is run. Why this post: Screenshots are desirable for bug analysis. Suppose you write a test script to automate a web page, you would not keep monitoring to see if it’s working right every time. You would let the script do its job and […]
How screenshots are captured for a test run in Qxf2’s Page Object Model framework
Highlight feature of Qxf2’s Page Object Model framework
Are you lost with locating the web elements while debugging your test script? The highlight feature of Qxf2’s Page Object Model framework helps you to debug locators by giving a visual clue. This blog post will guide you with the steps involved in using the highlight feature of Qxf2’s Page Object Model framework in your test script. The highlight feature […]
Converting test screenshots into Gif
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 […]
How to run Qxf2 framework tests in parallel using pytest-xdist plugin
In this blog, we will show you how easily Qxf2’s page object model framework can be run in parallel using pytest-xdist plugin. As pre-requisite, Fork, and clone our framework. Follow the Readme.md and set up the framework. To run GUI tests in the framework parallel use the below command. As we have only 3 GUI tests I have passed 3 […]
Email your pytest results as html report
We have noticed that sometimes we want to see test results in our email inbox even though good reporting tools are being used. We at Qxf2 Services, use pytest as our test runner. A simple utility email_pytest_reports.py has been added to our framework which can send pytest results as simple HTML reports. This blog is on how we built an […]
Exploring pytest command line options
This post will serve as a quick tutorial for using pytest command-line options. Anyone who is new to pytest will benefit from this article. Pytest comes with many useful command-line options right out of the box. When I started learning pytest, I had to search through a lot of material available on the official pytest website as well as other […]
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 […]
Qxf2’s automation testing framework uses Python 3
We have updated our open-sourced GUI automation testing framework to use Python3. This update was due for a long time. We have had a lot of requests from people asking for our framework to use Python3 and we finally found the bandwidth needed to migrate to Python3. We will also no longer support Python2. If you already use our framework […]
Sending images and log messages to ReportPortal
Problem: There is not much information on how to send or attach images to ReportPortal Why this post? We started using ReportPortal for reporting automation test results. Along with the test results we also need to send log messages and images/screenshot to ReportPortal. These are useful artifacts which help people monitoring them check the success and failure reasons and take […]
ReportPortal integration with pytest and pytest markers
Problem: If QA wants to make a difference with their testing and influence decision-making, we should convey our test results clearly. Hence test reporting becomes an important part of testing. There are several test reporting tools available and recently many AI based test reporting tools are getting popular. Integrating with these reporting tools is useful. In this post, we […]