We have open-sourced our test automation framework. You can now write Selenium and Appium tests in Python using the Page Object pattern. Our Pythonic web, mobile and REST API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like – email, Slack, TestRail, BrowserStack, Sauce Labs, etc.
You can find it over here:
https://github.com/qxf2/qxf2-page-object-model
We have written several popular posts about our GUI automation using Python. But we have never had a chance to share our entire GUI automation code base until now. This framework has let us quickly implement both web and mobile automation for our clients. In most cases, we have GUI automation setup and going within the first week of our engagement. We hope you find it equally useful too.
The automation framework is written in Python and follows the Page Object pattern. We have written robust and intuitive wrappers around Appium and Selenium. We use pytest as our test runner and you get a decent pytest configuration right out of the box. The framework has excellent built-in debug capabilities like verbose logging and intelligent screenshots. We also have some useful utility scripts to check emails, run the automation on BrowserStack or Sauce Labs and report results to TestRail.
The framework is always going to be work in progress. We update the framework as and when we learn something new or figure out something useful at our clients. We also plan to add the code we use for API automation. So watch the Github project to get all our updates.
How to use the web, mobile and REST API automation testing framework
Pull the code from Github. The readme file has detailed notes on how to get setup and run the tests. You can get setup in 5 easy steps. It’s that simple! Hopefully, you find the code and patterns intuitive too. Several engineers at our clients have managed to use and enhance the framework without any additional help.
Want to contribute?
Want to contribute to our project? Send an email to [email protected] with your Github account.
We’ll follow up with posts that show you how to write tests from scratch. In the meantime, if you have any questions, feel free to ask them in the comments below. Team Qxf2 will be happy to help you.
If you are a startup finding it hard to hire technical QA engineers, learn more about Qxf2 Services.
I want to find out what conditions produce remarkable software. A few years ago, I chose to work as the first professional tester at a startup. I successfully won credibility for testers and established a world-class team. I have lead the testing for early versions of multiple products. Today, I run Qxf2 Services. Qxf2 provides software testing services for startups. If you are interested in what Qxf2 offers or simply want to talk about testing, you can contact me at: [email protected]. I like testing, math, chess and dogs.
Nice Post…Very Helpful.
I feel I have found the right place! Thanks for sharing, there is so much to learn from this site. Hail opensource!
Hi Arun, Avinash and team,
Thanks for sharing your knowledge with the larger audience. I’m a regular visitor to Qxf2 blogs and like the way it is written.
I just had one query. While working on Java/Selenium, TestNG is the most used framework and it also has good features. Do we have any framework that provides similar features while automating with Python? I’ve heard about Pytest, but not sure about the features it provides. I’ve tried looking for information in google, but haven’t seen convincing results. It would be great if you can provide more information on this.
Hi Pradeep,
We have used pytest and it served us good. Please refer to our blogs on pytest for more information.
Python+Selenium+pytest tutorial
pytest and Browserstack.
Better failure summary using pytest
pytest: Cross browser, cross platform Selenium tests
You can also have a look at our framework and follow the instructions in readme.md here. We have open sourced our framework.
Thanks Indira!!. Just one question not related to the topic. Earlier the search option was available in qxf2 blog post.But now, i’m unable to see that. It would be easy to search through the articles. Kindly let me know if i’m missing something.
Hi Pradeep,
Yes, we don’t have the search option available now. You can google for qxf2 + any topic you want in the search box.
Thanks,
Indira Nellutla
Great blog,Thanks for sharing the information !