Project with tests for NativeScript sample apps.
Based on NativeScript/functional-tests-core.
Prerequisites and steps to setup environment are actually the same as those for NativeScript/functional-tests-core.
Please read this document.
Install Functional Tests Core:
- Clone and build functional-tests-core
- Build it and place
functional.tests.core.jar
in thelib
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 from source. Please read the instructions.
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:
<profile>
<id>cuteness.emu.default.api23</id>
<properties>
<app.config>cuteness/cuteness.emu.default.api23.properties</app.config>
<testsuite>cuteness-android</testsuite>
</properties>
</profile>
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
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