Skip to content

Commit 074dbf2

Browse files
committed
chore: add example on how to automate testing in android apps
1 parent e405e74 commit 074dbf2

12 files changed

Lines changed: 29027 additions & 1 deletion

File tree

examples/android-apps/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_store
2+
.DS_Store
3+
4+
.testplane
5+
testplane-report
6+
7+
node_modules

examples/android-apps/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

examples/android-apps/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
### Testing android apps
2+
3+
A project with examples of using integration testing in android applications (web, native and hybrid).
4+
5+
#### Usage
6+
7+
1. [Install Android Studio](https://developer.android.com/studio?hl=ru)
8+
9+
2. [Create android virtual device](https://developer.android.com/studio/run/managing-avds) with API level 35 and run it
10+
11+
3. Use Node.JS version specified in `.nvmrc`:
12+
13+
```shell
14+
nvm use
15+
```
16+
17+
4. Install dependencies:
18+
19+
```shell
20+
npm ci
21+
```
22+
23+
5. Install [UiAutomator2 Driver](https://github.com/appium/appium-uiautomator2-driver) for [appium](https://appium.io):
24+
25+
```shell
26+
./node_modules/.bin/appium driver install uiautomator2
27+
```
28+
29+
6. Run Appium in separate terminal tab:
30+
31+
```shell
32+
npx appium -p 4444 --relaxed-security
33+
```
34+
35+
7. Run Testplane tests:
36+
37+
```shell
38+
npx testplane
39+
```
40+
41+
---
42+
43+
For more information on how to automate testing in android applications can be found in [this guide](https://testplane.io/docs/v8/guides/android-testing/).

0 commit comments

Comments
 (0)