myucdavis
Tests for myucdavis have been implemented using Selenium web driver. The Selenium testing suite uses a main driver script called Test1CH.java. This script then calls each of the structure and tile scripts...
Location, Format & Structure
The myucdavis Selenium tests are checked into the ??please provide url to Bitbucket repository here?? repository in BitBucket.
All files for the Selenium tests reside in the ??please enter folder name here?? folder in the repository. Test1Ch.java is the main file which calls all other files(Tile based) in the project. When adding or removing individual tests it will be necessary to modify the Test1Ch.java driver file to ensure they are properly called.
Description
The Selenium testing suite uses a main driver script called Test1CH.java.
This script then calls each of the structure and tile scripts. Each of the other scripts represents a particular tile.
The idea was that 2 or more people can work on different tiles at the same time. Here is the hierarchy of scripts
Structure Details
- Test1CH.java = Has driver initialization logic as well as loads the initial home page. Then it calls each of the undermentioned scripts(Represents Tiles)
- LoginCh.java = This has Login as well as Logout Method.
- WelcomeUserNameCh.java = Has testing functionality for testing the Welcome UserName tile
- TheUpdaterCh.java = Has testing functionality for The Updater tile.
- IntroCh.java = Has testing functionality for Intro to myucdavis tile.
- MyScheduleCh = Has testing functionality for mySchedule tile.
- SmartPollCh = Has testing functionality for Smart Poll tile.
- CampusCalendarCh = Has testing functionality for Campus Calendar tile.
- ThermalFeedbackCh = Has testing functionality for Thermal Feedback tile.
- StudentAdvisingCh = Has testing functionality for Student Advising tile.
- StudentEmployeesCh = Has testing functionality for Student Employees tile.
- MyHousingCh = Has testing functionality for myHousing tile.
- Weather = Has testing functionality for Weather tile.
- UCDWellness = Has testing functionality for UC Davis Wellness tile.
- MyAccounting = Has testing functionality for myAccounting tile.
Execution
To start the automation:
- Export the files from Bitbucket into a folder(Project)
- Open the project in Eclipse
- Right click on Test1Ch.java and run as Java Application
- It will run and print results on the Console.
UC Davis Mobile
Tests for UC Davis Mobile have been implemented using Appium. The approach is:
Tool
Appium was chosen 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.
Location, Format & Structure
The UC Davis Mobile Appium tests are checked into the ??please provide url to Bitbucket repository here?? repository in BitBucket.
The test scripts are set up to run either on the appium simulator on on the device.
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.
Execution
Download and install the Appium Server.
- Install Xcode(preferably from appstore)
- Install Homebrew
- Open cmd prompt & issue this command
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Node.js
- Open a cmd prompt on your mac & give following command
- Brew install node
- Install appium
- npm install -g grunt cli
- npm install –g appium
- npm install wd
- appium &(this will start appium server)
- Download the project files from Bitbucket. ??please provide url to Bitbucket repository here??
- Open this file (AppiumIOSTest.java) in Eclipse(or whatever IDE tool you are using).
- Open the project in Xcode and run it on simulator
- Open another cmd prompt and cd to the folder where you have saved the AppiumIOSTest.java file
- mvn -Dtest=test.java.com.saucelabs.appium.AppiumIOSTest test
- Results will be printed on console
AggieFeed
Testing for AggieFeed has been implemented using Protractor. The design and plan for protractor tests is: