{"id":15018498,"url":"https://github.com/nativescript/functional-tests-demo","last_synced_at":"2025-06-20T17:36:12.495Z","repository":{"id":141977689,"uuid":"78639912","full_name":"NativeScript/functional-tests-demo","owner":"NativeScript","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-06T11:19:51.000Z","size":52257,"stargazers_count":10,"open_issues_count":2,"forks_count":6,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-06-17T01:55:05.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NativeScript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-11T13:07:36.000Z","updated_at":"2019-06-22T14:56:39.000Z","dependencies_parsed_at":"2023-07-25T21:02:32.171Z","dependency_job_id":null,"html_url":"https://github.com/NativeScript/functional-tests-demo","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":0.4444444444444444,"last_synced_commit":"fc8955bedaf7385bfbab453a96b774862d858b2f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NativeScript/functional-tests-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Ffunctional-tests-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Ffunctional-tests-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Ffunctional-tests-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Ffunctional-tests-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NativeScript","download_url":"https://codeload.github.com/NativeScript/functional-tests-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Ffunctional-tests-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260988610,"owners_count":23093528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:52:02.446Z","updated_at":"2025-06-20T17:36:12.447Z","avatar_url":"https://github.com/NativeScript.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# {N} Functional Tests - Demo Project\n\nHello-world project to demonstrate [NativeScript/functional-tests-core](https://github.com/NativeScript/functional-tests-core).\n\n## Prerequisites and Environment Setup\n\nPrerequisites and steps to setup environment are actually the same as those for [NativeScript/functional-tests-core](https://github.com/NativeScript/functional-tests-core).\n\nPlease read [this document](https://github.com/NativeScript/functional-tests-core/blob/master/docs/setup.md).\n\nThe only additional thing you need for this project is [Maven](https://maven.apache.org/install.html).\n\nPlease install it make sure `mvn` command is available in command prompt.\n\n## Before running tests\n\n**Install functional-tests-core package**\n```\nmvn 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\n```\n\n**Make sure appropriate emulator/simulator/device is available**\n\nAfter you finish steps from [this document](https://github.com/NativeScript/functional-tests-core/blob/master/docs/setup.md) make sure you have following emulators:\n```\n$ANDROID_HOME/tools/android create avd -n Emulator-Api19-Default -t android-19 --abi default/x86 -c 12M -f\n$ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f\n```\n\n**Edit configs if required**\n\nIf you want you can edit configs (for example specify unique device id of your device).\n\nConfig files are at `resources/config/\u003cname of the app\u003e/\u003cconfig name\u003e.properties`\n\n**[Config entries reference](https://github.com/NativeScript/functional-tests-core/blob/master/docs/settings.md)**\n\n\n## Run tests\n\n**Run from command line with Maven**\n\n```\nmvn clean test -P nativeapp.emu.default.api23\n```\n\n**Run tests in Eclipse/IntelliJ IDEA**\n\n- Open functional-tests-core in IntelliJ \n    - Select 'Use auto import option'\n    - Select 'Use cradle wrapper task configuration'\n    - Click OK and Build the project\n- Open functional-tests-demo project in IntelliJ\n- From the File menu select Import-\u003eModules from existing sources\n    - Select the functional-test-core folder\n- Open Project Structure menu\n- In Modules submenu for the functional-test-demo project add dependencies\n    - add Libraries - select all available\n    - add Modules dependency - select the functional.tests.core_main\n    - Switch to Sources Tab: \n      mark src-\u003etests-\u003ejava folder as 'Tests'\n      mark resources folder as 'Resources'\n- In Project submenu create output folder - \u003c project root \u003e/classes\n      \n\nPlace this in Vm options: \n```\n-DappConfig=resources/config/nativeapp/nativeapp.emu.default.api23.properties\n```\n\n## Test results\n\n**HTML Report**\n- $PROJECT_ROOT/target/surefire-reports/html/index.html\n![](docs/html-report.png?raw=true)\n\n**Logs**\n- Test Execution Logs: $PROJECT_ROOT/target/surefire-reports/logs/log4j.log\n- Device Logs: $PROJECT_ROOT/target/surefire-reports/logs/console/*\n- Screenshots: $PROJECT_ROOT/target/surefire-reports/screenshots/*\n- Perf Info: $PROJECT_ROOT/target/surefire-reports/logs/perfInfo.csv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript%2Ffunctional-tests-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnativescript%2Ffunctional-tests-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript%2Ffunctional-tests-demo/lists"}