Python Conference APAC 2024

Build my own Pytest plugin for automated visual testing
2024-10-26 , CLASS #4 - 3A
Language: English

As a Software tester who love Python, I've often struggled with verifying visual elements during testing, such as design and components. This challenge led me to develop a solution for automated visual testing using Selenium for web and Appium for Android. I created a custom pytest plugin that performs visual comparisons, helping testers and developers detect discrepancies between actual and expected visuals. This plugin generates comparison images highlighting differences, making visual testing more efficient and reliable.


Visual verification in software testing can be tedious when done manually. As a seasoned software tester using Python, I frequently faced difficulties ensuring visual elements matched design specifications. This inspired me to create an automated visual testing solution using Selenium for web automation and Appium for Android.

Introducing my custom pytest plugin, designed to streamline visual testing. It uses structural similarity index (SSIM) and color histogram comparison to detect visual differences accurately. By integrating this plugin into your testing framework, you can automate visual verification, making your tests more efficient and reliable.

The plugin generates visual comparison images that highlight discrepancies between the actual state of the application and the expected design. This helps identify issues quickly and provides clear visual evidence for debugging and reporting. My presentation will cover the development process and demonstrate how to integrate this tool into your testing workflow.

Join me at PyCon APAC 2024 to see my idea in action and learn how to use the pytest plugin for automated visual testing. This plugin aims to make the work of QA and developers easier and faster when testing software.

I am Aria "Uno" Suseno, a Senior Quality Engineer and the founder of idejongkok.com. I specialize in Software Testing, primarily focusing on developing automation frameworks for applications. I also built the YouTube channel "Ide Jongkok," where I focus on IT Automation, technology, and the Python programming language. Additionally, I founded PyAuto ID, an IT community centered on IT automation using Python, and I mentor in "Kelas Otomesyen."

Senior Quality Engineer.
Content Creator & Founder idejongkok.com
Founder Pyauto ID & Mentor Kelas Otomesyen