If your mobile application is not a native mobile application, you might need to use some language independent testing framework such as Selenium.
Below shows how to set up this framework:
- Download and set up iPhoneDriver for Selenium via http://code.google.com/p/selenium/wiki/IPhoneDriver
- Download and set up Eclipse as the IDE via http://www.eclipse.org/downloads/
- Download the Selenium RemoteWebDriver via http://code.google.com/p/selenium/wiki/RemoteWebDriver
- To configure Eclipse to use Selenium, you need to do the following:
– Right click on the test folder you created
– Go to Build Path -> Configure Build Path
– Click on the Libraries tab and click on Add External JARs
– Select the selenium-server-standalone.jar file
- The code for my project can be found in https://github.com/ChuanChuanLaw
- Run the iPhone web driver and run the test via clicking on the Run button in Eclipse
- Select iPad emulator if you want to run tests in iPad
Leave a Reply