Simple python framework for automating client apps in Mac OS X using atomac and accessibility controls
This framework is written to automate the mac os x client side applications. Especially for UI testing and validation.
I have used the atomac (https://github.com/pyatom/pyatom) python library for automating this stuff.
-
First try to run cli_automation.py
-
Install the dependencies in your machine like atomac and openpyxl
-
Make sure you have give the accessibility permissions to run the application (/data/snaps)
python cli_automation.py -h python cli_automation.py --help python cli_automation.py -c app_store_ui_test.json python cli_automation.py --config app_store_ui_test.json Note: ui_test_json file should be configured early in the path /data/configurations/
/data/configurations/
{ "test_cases" : "app_store.py", "test_case_xl" : "app_store_ui_test.xlsx" }
"test_cases" denotes the python file where you written your testcases for automation "test_case_xl" denotes the excel file where you have the testcaes id and description Note: Make sure you have used only column A and B alone. Kindly refer my xlsx file.
/test_cases
this folder is maintained for writing the testcases
/data/logs/
Logging for the execution of the testc cases are stored and maintained in automation.log
/data/results/
{ "test_cases" : "app_store.py", "test_case_xl" : "app_store_ui_test.xlsx" }
Result file will be same as "test_case_xl" : "app_store_ui_test.xlsx"
i. Passed testcases are denoted in DARK GREEN ii. Failed testcases are denoted in RED iii. Warning/Exception testcases are denoted in THICK BLUE
/lib/
This folder is maintained for the common functions and reusable codes for reducing the code repetition.