...
Tests for UC Davis Mobile have been implemented using Appium. The approach is:
Tool :-
Appium was decided to be the tool to automate IOS Builds since it an open source tool and Java and other programming languages can be used to automate IOS as well as Android apps using Appium.
Due to time Constraint Appium logic has been implemented as all(tabs) in one file.
Format & Structure
-To have one main to connect to appium server and open the app on device or simulator.
-We have different methods in the class(AppiumIOSTest) depending upon functionality.
Class = AppiumIOSTest
Method = setUp() = To initialize connection and start app on device(is commented out) or simulator.
Method = teardown() = to quit the driver.
Method = test1FeedScripts() = To test feed tab on Mobile App.
Method = test2CourseScripts() = To test Course tab on Mobile App.
Method = test3MapScripts() = To test Maps tab on Mobile App.
Method = test4BusScripts()= To test Bus tab on Mobile App.
Method = test5MoreScripts()= To test More tab on Mobile App.
Description:-
Download and install the Appium Server.
1) Install Xcode(preferably from appstore)
2) Install Homebrew
- Open cmd prompt & issue this command
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3) Install Node.js
- Open a cmd prompt on your mac & give following command
- Brew install node
4) Install appium
- npm install -g grunt cli
- npm install –g appium
- npm install wd
- appium &(this will start appium server)
5) Download the project files from Bitbucket.
6) Open this file (AppiumIOSTest.java) in Eclipse(or whatever IDE tool you are using).
7) Open the project in Xcode and run it on simulator
8) Open another cmd prompt and cd to the folder where you have saved the AppiumIOSTest.java file
9) mvn -Dtest=test.java.com.saucelabs.appium.AppiumIOSTest test
10) Results will be printed on console
AggieFeed
Testing for AggieFeed has been implemented using Protractor. The design and plan for protractor tests is: