7. Appendices¶
Page Status: | Development |
---|---|
Last Reviewed: |
7.1. Samples¶
sample codes in AXUI/example
, here I give a step by step guide how to launch the examples
7.1.1. windows¶
My test environment is win8.1 64bit, anyway win8.1 32bit machine is OK. For win7/win8, you may need to change the AppMap, since UI changes for different windows version.
7.1.1.1. Prepare Environment¶
- Install python 2.7
- Install setuptools + pip. check python package management
- Install comtypes
- Install AXUI
- Config windows path, add python path (usually
c:\python27
) to windows path
7.1.1.2. Run the example in example/windows
¶
- Modify the config file, check AXUI configurations
- Run the script,
python wmplayer_wrapper.py
7.1.2. selenium webdriver¶
My test environment is win8.1 64bit, with chrome browser. Other environment supported by selenium should also be OK.
7.1.2.1. Prepare Environment¶
- Install python 2.7
- Install setuptools + pip. check python package management
- Install selenium
- Install AXUI
- Config windows path, add python path (usually
c:\python27
) to windows path
7.1.2.2. Run the example in example/selenium
¶
- Modify the config file, check AXUI configurations
- Run the script,
python bing.py
7.1.3. appium webdriver¶
7.1.3.1. Prepare Environment¶
My test environment is win7 64bit, here is my steps to prepare appium environment.
- Install appium, two methods for windows
- Install node.js
- Install appium,
npm install -g appium
OR
- Download and install AppiumForWindow from github
- Prepare Android develop environment, include SDK and AVD. Check this website for available mirrors for china
- Install selenium
- Install Appium-Python-Client
- Install AXUI
7.1.3.2. Run the example in example/appium
¶
- Launch appium server, you need set the Android SDK path for appium server, should not contain white space.
- Modify the config file, check AXUI configurations
- Run the script,
python simple.py
, this sample is modified from appium sample code - Check the AVD is act as expected
7.2. ToDo list¶
- Multiple languages support, to support internationalization test
- Define an unified interfaces for different driver UI actions
- Support for python 3