
Advanced visual testing of Web and Mobile applications with Python
Who said that Python is not friendly with Front-end?
ITArray released the 1st version of Automotion-Python framework that can be used for visual validation of the web and mobile application.
You can find it by link https://github.com/ITArray/Automotion-Python
If You want to connect the library to Your project with “Tox” – simply add this dependency to Your tox.ini file:
http://github.com/ITArray/Automotion-Python/tarball/master#egg=Automotion
It’s super simply in usage:
from automotion import responsive_ui_validator
ui_validator = responsive_ui_validator.ResponsiveUIValidator(self.driver)
result = ui_validator.init("Open navigation drawer scenario").find_element(self.driver.find_element_by_name("Name"), "Name")\ .same_size_as(self.driver.find_element_by_id("Id"), "Search Icon")\ .same_offset_bottom_as(self.driver.find_element_by_id("Id"), "Search Icon")\ .same_offset_top_as(self.driver.find_element_by_id("Id"), "Search Icon")\ .not_overlap_with(self.driver.find_element_by_id("Id"), "Search Icon")\ .inside_of(self.driver.find_element_by_id("Id"), "Toolbar")\ .width_between(100, 200)\ .height_between(100, 200)\ .draw_map()\ .validate() ui_validator.generate_report("ReportToolbarIcons")
Leave Your feedback and comments. Also join and contribute into Automotion if You have ideas.
Thanks for reading my blog!