UIAutomation Test Framework For Games ( iOS ONLY FOR NOW)
Python2.7/3.4+
Mac OS X 10.13.6+
XCode10 For iOS9~12
Recommend Environment:Xcode10+iOS11
libimobiledevice
(brew install libimobiledevice
)
Mac OS X 10.13.6+
XCode11+ For ios12+
Recommend Environment:Xcode11+ios13
libimobiledevice
(brew install libimobiledevice
)
RUN:
python setup.py install
0.make sure your game has integrated with GAutomator SDK
1.connect you iPhone to Mac by USB and get your device udid(idevice_id -l
)
2.1 Unity: build && run wt-wda(or WebDriverAgent) on the target device by xcodebuild(see wt-wda for details
UE4: build && run apm-wda(or Appium/WebDriverAgent) on the target device by xcodebuild(see apm-wda for details
3.run iproxy $your_port 8100 $your_udid
4.edit and run scripts with ga2 (See sample/IOSTestTutorial for details)
We offer a recorder plugin for Pycharm. See docs/GA Recorder.md for interfaces.
demo ipa files: (Unity UGUI and Unity NGUI)
ios test sample code : sample/iOSTestTutorial.py (just edit the udid before run)
ga2_contrib package is intended for development of so-called "extra" modules, contributed functionality.
login_helper is an extension on logining wechat/qq.
sample_engine_extension is a demo about how to support other engine types .
if you want to install both ga2 and ga2_contrib packages:
RUN:
env ENABLE_CONTRIB=1 python setup.py install --user
- rename your entry script with "main.py"
- go to https://wetest.qq.com/console/cloud/autotest
- upload the ipa file signed by a enterprise development certificate.
- pack your "main.py" with any other files into a ".zip" and upload the zip as scripts
- choose iPhones in device list and start the test.
WebDriverAgent: https://github.com/facebook/WebDriverAgent
Appium/WebDriverAgent: https://github.com/appium/WebDriverAgent
openatx/facebook-wda: https://github.com/openatx/facebook-wda
libimobiledevice: https://github.com/libimobiledevice/libimobiledevice