https://github.com/nativescript/playground-tests
NativeScript playground functional tests
https://github.com/nativescript/playground-tests
Last synced: 3 months ago
JSON representation
NativeScript playground functional tests
- Host: GitHub
- URL: https://github.com/nativescript/playground-tests
- Owner: NativeScript
- Created: 2017-08-30T12:22:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T09:36:57.000Z (about 6 years ago)
- Last Synced: 2025-04-02T13:22:19.410Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 140 MB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# {N} Playground Functional Tests
## Prerequisites and Environment Setup
Prerequisites and steps to setup environment are actually the same as those for [NativeScript/functional-tests-core](https://github.com/NativeScript/functional-tests-core).
Please read [this document](https://github.com/NativeScript/functional-tests-core/blob/master/docs/setup.md).
The only additional thing you need for this project is [Maven](https://maven.apache.org/install.html).
Please install it make sure `mvn` command is available in command prompt.
## Before running tests
**Install functional-tests-core package**
```
mvn install:install-file -Dfile=libs/functional.tests.core-0.0.5.jar -DgroupId=functional.tests.core -DartifactId=functional.tests.core -Dversion=0.0.5 -Dpackaging=jar
```
**Make sure appropriate emulator/simulator/device is available**
After you finish steps from [this document](https://github.com/NativeScript/functional-tests-core/blob/master/docs/setup.md) make sure you have following emulators:
```
$ANDROID_HOME/tools/android create avd -n Emulator-Api19-Default -t android-19 --abi default/x86 -c 12M -f
$ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f
```
**Edit configs if required**
If you want you can edit configs (for example specify unique device id of your device).
Config files are at `resources/config//.properties`
**[Config entries reference](https://github.com/NativeScript/functional-tests-core/blob/master/docs/settings.md)**
## Run tests
**Run from command line with Maven**
```
mvn clean test -P tabnavigation.emu.default.api23
```
**Run tests in Eclipse/IntelliJ IDEA**
Place this in Vm options:
```
-DappConfig=resources/config/tabnavigation/tabnavigation.emu.default.api23.properties
```
**Logs**
- Test Execution Logs: $PROJECT_ROOT/target/surefire-reports/logs/log4j.log
- Device Logs: $PROJECT_ROOT/target/surefire-reports/logs/console/*
- Screenshots: $PROJECT_ROOT/target/surefire-reports/screenshots/*
- Perf Info: $PROJECT_ROOT/target/surefire-reports/logs/perfInfo.csv