Test Automation with Python
The first week of my internship was spent primarily setting up my dev environment on the laptop I received.
I had also never used a Mac before, so there were some basics to learn as well.
Although, since MacOS is Unix-based now, all of the important things were pretty much the same.
(I’m worthless with a Windows command line)
Once I had everything configured, I started fiddling with python and pytest.
I’ve done some development in python, like a scrabble-esque game, but I’d never written tests in python before.
axe-core
In order to automate regression testing for accessibility, we need an API of some sort.
I did some research on the available web accessibility APIs before settling on the axe-core API.
The axe-core API was created by Deque, a company that specializes in accessibility.
Deque offers assessment services, certifications, and more.
axe-core is written in JavaScript and distributed as an an npm package.
Eventually, I will create a more seamless integration of axe-core into python, by writing a python library.
DequeLabs did this with Java in their tool axe-selenium-java.
To get started, though, I will be using Selenium’s execute_script()
function to handle the JavaScript directly.
Continue reading “Mozilla Internship: Diving into Test Automation with Python”