Skip to content

Commit

Permalink
Merge pull request #414 from KasperskyLab/issue-406/Add_allure_report…
Browse files Browse the repository at this point in the history
…s_pulling_documentation

#406: Updated allure documentation with how to pull results instructions
  • Loading branch information
Nikitae57 authored Nov 9, 2022
2 parents ee3297a + 10c72da commit 18876c9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions wiki/09_Kaspresso-Allure.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ So you added the list of needed Allure-supporting interceptors to your Kaspresso

This dir should be moved from the device to the host machine which will do generate the report.

For example, you can use **adb pull** command on your host for this. Let say you want to locate the data for the report at **/Users/username/Desktop/allure-results**, so you call:
Assuming your package is com.example
```
adb pull /sdcard/allure-results /Users/username/Desktop
adb exec-out run-as com.example sh -c 'cd /data/data/com.example/files && tar cf - allure-results' > ~/allure-results.tar
```
If there are few devices connected to yout host you should specify the needed device id. To watch the list of connected devices you can call:
`exec-out` runs passed command and returns result as a file which we save by `> allure-results.tar` in the end

If there are few devices connected to your host you should specify the needed device id. To watch the list of connected devices you can call:
```
adb devices
```
Expand All @@ -98,9 +100,9 @@ emulator-5554 device
```
Select the needed device and call:
```
adb -s emulator-5554 pull /sdcard/allure-results /Users/username/Desktop
adb -s emulator-5554 exec-out run-as com.example sh -c 'cd /data/data/com.example/files && tar cf - allure-results' > ~/allure-results.tar
```
And that's it, the **allure-results** dir with all the test resources is now at **/Users/username/Desktop**.
And that's it, the **allure-results** archive with all the test resources is now at your home directory.
Now, we want to generate and watch the report. The Allure server must be installed on our machine for this. To find out how to do it with all the details please follow the [**Allure docs**](https://docs.qameta.io/allure/).
Expand Down

0 comments on commit 18876c9

Please sign in to comment.