This repository has some sample code that demonstrates using Happo with an Appium test suite.
There's sample code for JavaScript and Ruby.
If you want to try running these tests yourself, you need to do some preparations first:
- Clone https://github.com/appium/ios-test-app locally and run
npm install
in the ios-test-app folder after cloning - Clone this repo
- In the happo-appium folder, run
yarn install
- Make sure that you have XCode installed
- Sign up for a Happo trial at https://happo.io/signup
- Create a file called
.env
with the following content:
HAPPO_API_KEY=<apiKey>
HAPPO_API_SECRET=<apiSecret>
Where <apiKey>
and <apiSecret>
is replaced by tokens found at https://happo.io/account
To run the JavaScript/NodeJS test, run this command:
yarn happo-e2e -- -- node test.js
First, run bundle install
to install Ruby dependencies. Then run this command:
yarn happo-e2e -- -- ruby test.rb