Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 MyUCDavis 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.

...

To start the automation:

  1. Export the files/Folder(MyUCDavis) from Bitbucket into a folder(Project)
  2. Open the project in Eclipse
  3. Right click on Test1Ch.java and run as Java Application
  4. It will run and print results on the Console.

...

The UC Davis Mobile Appium tests are checked into the ??please provide url to Bitbucket repository here?? repository the repository in BitBucket.

-To have one main to connect to appium server and open the app on device or simulatorThe 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.

...

  1. Install Xcode(preferably from appstore)
  2. Install Homebrew
  3. Open cmd prompt & issue this command
    1. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. Install Node.js
    1. Open a cmd prompt on your mac & give following command
    2. Brew install node
  5. Install appium
    1. npm install  -g grunt cli
    2. npm install –g appium
    3. npm install wd
    4. appium &(this will start appium server)
  6. Download the project files/Folder from Bitbucket. ??please provide url to Bitbucket repository here?? 
  7. Open this file (AppiumIOSTest.java) in Eclipse(or whatever IDE tool you are using).
  8. Open the project in Xcode and run it on simulator
  9. Open another cmd prompt and cd to the folder where you have saved the AppiumIOSTest.java file
    1. mvn -Dtest=test.java.com.saucelabs.appium.AppiumIOSTest test
  10. Results will be printed on console

 

...

AggieFeed

Description

Testing for AggieFeed has been implemented using Protractor.  The design and plan for protractor tests is: 

Goal was to automate AggieFeed Admin/Management pages using Protractor.

Plan was to design scripts in a way that we have a testscript for each functionality

  1. Main File TestScript calls
  2. Login File TestScript(Done)
  3. CreateNotification TestScript(Done-Most Positive & Negative Scenarios)
  4. CreateActivity TestScript

Execution

Here are the step by step instrcutions:
To Run The Automation Scripts

  1. Download the folder AggieFeed from Bitbucket and install(or place or save) it in your local drive
  2. Open a command prompt and type webdriver-manager start to start the webdriver
  3. Open 2nd command prompt and CD to the local folder where you saved the AggieFeed folder.
  4. type protractor conf.js to start the automation testing(or scripts)

Note: Since there was an AgieeFeed-Redesign inbetween automation so automation was stopped. These are not complete scripts.