Skip to content

amusenow/amuse-automation

Repository files navigation

Amuse mobile automation repository

Based on

  • WebdriverIO v7
  • cucumber v7
  • Node version 10.16 or higher
  • Appium

Supports

  • Android Chrome browser
  • iOS Safari browser

Source

Click below to know more

Steps to run tests

Follow the below commands: - (after setting uo the WDA)

  • Install dependencies using npm i in the terminal.

  • Install appium globally on your PC: npm install -g appium

  • Export Android and Java environment variables

export JAVA_HOME=$(/usr/libexec/java_home)
export ANDROID_HOME=/Users/YOUR_USER/Library/Android/sdk
export ANDROID_SDK_ROOT=/Users/YOUR_USER/Library/Android/sdk
export ANDROID_AVD_HOME=/Users/YOUR_USER/.android/avd
export HTTP_PROXY=myserver:1981
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
  • Save your exports
source ~/.zshrc
  • Ask for the .env variables and import the file in repository root

  • Update the deviceName and platFormVersion in config/android.info.js and config/ios.info.js respectively.

  • Execute BASEURL={DESIRED_URL} npm run iosBrowser to run ios safari browser

  • Execute BASEURL={DESIRED_URL} npm run androidBrowser to run android chrome browser

Setting up WDA for Running tests on IOS Real devices / simulators

  • Download and Install appium Desktop on your PC

  • You can follow the steps in this link: http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/#basic-manual-configuration

  • Or follow these ones (Almost the same as the link posted above):

  • Create an Apple Developer ID with your account (Ask the IOS Team for help in this one)

  • Download the Apple Developer ID Certificate and install it on your MAC

  • Install Xcode on your MAC

  • Connect IOS device to the PC

  • Open the WDA project in Xcode. For this, go to: Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent

  • Open the "WebDriverAgent.xcodepro"

  • On the Targets displayed on Xcode select "WebDriverAgentLib" and Select the "Signing and Capabilities" tab

  • Check the "Automatically manage signing" checkbox

  • Select "YOUR TEAM" on the Team dropdown list

  • Select "Development" on the Signing Certificate dropdown list

  • Click on the "Build" project button in the Xcode Navbar and wait for the project to build successfully

  • Repeat these last 5 steps for the "WebDriverAgentRunner" Target

  • Once the "WebDriverAgentRunner" Target is build successfully on XCode, select the "Product" tab on Xcode bar

  • Click the "Test" button and wait for the WDA to be installed on the IOS Device

  • Once the WDA is installed, you can run the IOS tests successfully. Refer to the "Running sample test" Section of this README

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published