https://github.com/nativescript/functional-tests
NativeScript Functional Tests
https://github.com/nativescript/functional-tests
Last synced: 8 months ago
JSON representation
NativeScript Functional Tests
- Host: GitHub
- URL: https://github.com/nativescript/functional-tests
- Owner: NativeScript
- Created: 2017-02-01T11:10:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T10:22:43.000Z (over 6 years ago)
- Last Synced: 2024-10-29T15:51:54.135Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 1 MB
- Stars: 7
- Watchers: 28
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# {N} Functional Tests
Project with tests for NativeScript sample apps.
Based on [NativeScript/functional-tests-core](https://github.com/NativeScript/functional-tests-core).
## 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).
## Install Dependencies
Install [Functional Tests Core](https://github.com/NativeScript/functional-tests-core):
- Clone and build [functional-tests-core](https://github.com/NativeScript/functional-tests-core/)
- Build it and place `functional.tests.core.jar` in the `lib` folder
- Install it with this command:
```
mvn install:install-file -Dfile=lib/functional.tests.core-0.0.5.jar -DgroupId=functional.tests.core -DartifactId=functional.tests.core -Dversion=0.0.5 -Dpackaging=jar
```
Alternative:
Build [Functional Tests Core](https://github.com/NativeScript/functional-tests-core) from source. Please read the [instructions](https://github.com/NativeScript/functional-tests-core#build-and-contribute).
## Run tests
**Run from command line with Maven**
Test suites and device configurations are matched in pom.xml.
Each combination of tests and device is unique configuration.
Sample entry in pom.xml:
```
cuteness.emu.default.api23
cuteness/cuteness.emu.default.api23.properties
cuteness-android
```
In this case configuration ID is `cuteness.emu.default.api23`.
Here is how you can run it:
```
mvn clean test -P cuteness.emu.default.api23
```
**Run tests in Eclipse/IntelliJ IDEA**
Place this in Vm options:
`-DappConfig=resources/config/cuteness/cuteness.emu.default.api23.properties`
## Test results
**HTML Report**
- $PROJECT_ROOT/target/surefire-reports/html/index.html
**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