This repository demonstrates how to run Appium tests in Jest on BrowserStack App Automate.
-
Node.js
-
If not installed, install Node.js from here
-
Ensure you have node & npm installed by running
node -v
&npm -v
-
For Android tests, run the following command in project's base directory :
cd android
npm install
Or,
For dependencies for iOS tests, run following command in project's base directory :
cd ios
npm install
Getting Started with Appium tests in NodeJS mocha on BrowserStack couldn't be easier!
Open Android
or in ios
folder
-
If you have uploaded your app then add the app id to the
browserstack.yml
config file, or you can directly specify the path to your app in thebrowserstack.yml
file. -
Run
npm run sample-test
-
You can access the test execution results, and debugging information such as video recording, network logs on App Automate dashboard
Open Android
or in ios
folder
-
Ensure that
browserstackLocal
capability is set totrue
in thebrowserstack.yml
file. -
If you have uploaded your app then add the app id to the
browserstack.yml
config file, or you can directly specify the path to your app in thebrowserstack.yml
file. -
Run
npm run sample-local-test
-
You can access the test execution results, and debugging information such as video recording, network logs on App Automate dashboard
For other NodeJS frameworks samples, refer to following repositories :
Note: For other test frameworks supported by App-Automate refer our Developer documentation
If you are running into any issues or have any queries, please check Browserstack Support page or get in touch with us.