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

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

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