1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add the instructions for using BrowserStack

Kazuhito Yokoi 2020-02-06 13:02:15 +09:00
parent 70a2f4caf4
commit c2c6208a8e

@ -18,8 +18,8 @@ This is an overview of UI testing framework.
## Install
* Follow the steps of how to get started for developers.
* https://github.com/node-red/node-red#developers
* Run the following command.
* npm install chromedriver@2
* Run the following script.
* scripts/install-ui-test-dependencies.sh
## Run
@ -38,6 +38,13 @@ grunt test-ui --non-headless
grunt webdriver [--non-headless]
```
* Run tests on BrowserStack (set BrowserStack credentials to environment variables before executing test).
```
BROWSERSTACK_USERNAME=<user name>
BROWSERSTACK_ACCESS_KEY=<accesss key>
grunt test-ui --browserstack
```
# Components
### Separation of test specifications and object manipulations
If a test script contains the XPATH of HTML elements here and there, once an HTML element of Node-RED editor was changed, all test scripts using such element will be affected.