An open API service indexing awesome lists of open source software.

https://github.com/sencha/sencha-test-simple-example

Simple example Sencha test configuration.
https://github.com/sencha/sencha-test-simple-example

Last synced: 4 months ago
JSON representation

Simple example Sencha test configuration.

Awesome Lists containing this project

README

        

# Simple Sencha Test CLI Project
This is a simple sencha test example with a [Saucelabs](https://saucelabs.com/) configuration.

Debugging using In Browser Mode
![InBrowser Mode Debugging](./simple-debug-in-browser.gif)

Debugging using WebDriverIO Mode
![InBrowser Mode Debugging](./simple-debug-web-driver.gif)

## Reference

* [Check out the NPM guide](https://docs.sencha.com/sencha_test/2.3.0/open_tools_npm/using_npm.html).
* [Check out Sencha Test guides](https://docs.sencha.com/sencha_test/2.3.0/).

## Requirements

* You'll have to have a trial or be an enterprise customer to try this out.
* This config uses the SauceLabs browser farm. Be sure to change the user and accessKey in [./workspace.json](./workspace.json).

## Login
Start by logging into the npm repository with the stc-cli packages.

```
npm login --registry=https://npm.sencha.com --scope=@sencha
```

## Configure
* Configure the [./workspace.json](./workspace.json) user and accessKey for [Saucelabs](https://saucelabs.com/).
* Configure the [./package.json](./package.json) accessKey for [Saucelabs](https://saucelabs.com/).

## Install
Download the dependencies to node_modules by running `npm install`.

```
npm install
```

## Running
Run using npm. When running tests against SauceLabs you will have to start a tunnel.

Start the tunnel.
```
# run the command with NPM or copy the command from package.json.
# Be sure to replace the access key with yours.
npm start
```

Run the tests.
```
npm test
```

Stop the tunnel.
```
npm stop
```