pytest and Browserstack

BrowserStack is a cloud-based testing tool that enables developers/testers to test their application across various browsers on different operating systems and mobile devices. We use Browserstack a lot at Qxf2 and recommend it to all our clients. We recently started using pytest to run our tests. We were surprised how quick and easy it was to configure pytest to run […]

How to investigate pytest-warnings

We recently integrated pytest, a Pythonic test runner, with our framework. After the tests were executed, pytest threw a couple of warnings. We decided to share our findings as the Google search results to debug the pytest-warnings were not quite revealing. Solution: Use thepy.test -r wcommand to gather additional information about the warnings. Reporting in pytest: The py.test command runs […]

Python+Selenium+pytest tutorial

One of our clients recently introduced us to a really nice, Pythonic test runner called pytest. Thank you Vachan Wodeyar of Kahuna, Inc. for introducing and helping us get started with pytest!   Our GUI automation framework lacked a good test runner. So it was tough to run all our tests with just one command. It also made reporting results […]

Get started with SQLite and Python

There are times when we repurpose our automated checks to scrape information off the pages it visits. This can happen when you are using automation to explore a product, looking for patterns in client data, analyzing production data to spot patterns, etc. Storing the scraped data can be tricky. Approaches to storing the scraped data range between two extremes: a) […]

How to write CSS selectors

Why this post? Testers need to know multiple ways of locating an element in a webpage as different strategies have to be used based on the context since each has its own advantage. The Cascading Style Sheet(CSS) is defined to structure and style the HTML in the webpage. These CSS patterns can be used to uniquely identify elements in the […]

Common XPath mistakes

Ever wondered if your XPath is good enough? Did your XPath break for any minor changes made in the webpage? Did your XPath return a different element? If your answer to one of those questions is yes, then this is the right post for you. Why this post? While learning to write XPaths, I made a few mistakes that were […]

Getting started with XPaths

Assuming you already know what you want to automate and that you have a good reason to automate it, then GUI automation is largely about: a) identifying a web element you want to interact with b) performing an action on the identified element c) repeat steps a),b) until you have automated the workflow that you identified. To perform step a), […]