Sikuli is a free tool picture driven developed by MIT using python programming language. This tool allow to automate regression tests, you can find the tutorials and presetations in the sikuli web site.
The requirements to use Sikuli to test windows phone are:
- Use a computer with S.O. Windows 8.1
- Download and install Sikuli in your computer.
- Download and Install Project my Screen for Windows Phone available on microsoft page -> http://www.microsoft.com/en-us/download/details.aspx?id=42536.
- Connect your mobile device Windows Phone 8.1 and project the screen on your computer. Example of how to project the screen here.
Steps to automate tests using Sikuli:
- Open the Project My Screen and plug your Mobile Phone Windows Phone 8.1 by USB port.
- The Mobile Phone' home screen must to appears ins your computer.
- Open Sikuli program in your computer.
- The Sikuli IDE must be opened as showed in Figure 1.
- The left bar shows the commands to be used in Sikuli.
- Click on command "Click()"
- Now Select the area of the screen of your Mobile Phone . For example, select the icon of your application (To open the application to be tested).
- The sikuli will script the command with the image selected. Click (image)
- Now you tap on icon of your mobile application to open it.
- Then, back to Sikuli and choose the command Click() again.
- Select the application area, for example a button.
- Tap on button select in your mobile phone.
- In Sikuli, you can click on command Find()
- Select an image of your mobile application or a message for example.
- Go to your mobile initial state, for example home screen.
- In Sikuli click on button Play to reproduce your steps and observe it executing.
Figure 1 - Sikuli IDE
The video attached will shows how the steps recorded can be reproduced using sikuli.
- The Project my screen must be opened in the same size and position in your computer to be exactly reproduced.
- The home screen of your mobile phone and localization of icons and image must be the same of the mobile recorded.
- The Sikuli will recognize the application through the image and position.
- You can use python language to improve your test script , example:
else print "Test Failed"