cancel
Showing results for 
Search instead for 
Did you mean: 

How to access result files from test

SOLVED
MildaGenius
New Contributor

How to access result files from test

Hello,

I am using Appium + AltUnity + Python script to run test on mobile devices.

 

Test generates some kinds of result files (txt, raw, png). These files are pulled out from device by Appium to directory on the same level as test script (image of local run result in attachment). But I didn't find these files on result Bitbar web page.

 

How can I access and download these files?

Is some API for download these files?

 

Thanks for response.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to access result files from test

Bitbar has support for downloading the test run artifacts through an API.
curl -u <bitbar_api_key>: -X GET 

https://cloud.bitbar.com/api/v2/users/<userId>/projects/<projectId>/runs/<runId>/device-sessions/<deviceSessionId>/output-file-set/files

If Appium produces txt and png files Appium cloud-side(server-side) framework, you can copy those files to sandbox/output-files folder in your run-tests.sh script to be able to see it in results.

Reach out to support if you have more questions.

Devarsh Gandhi

View solution in original post

2 REPLIES 2

Re: How to access result files from test

Bitbar has support for downloading the test run artifacts through an API.
curl -u <bitbar_api_key>: -X GET 

https://cloud.bitbar.com/api/v2/users/<userId>/projects/<projectId>/runs/<runId>/device-sessions/<deviceSessionId>/output-file-set/files

If Appium produces txt and png files Appium cloud-side(server-side) framework, you can copy those files to sandbox/output-files folder in your run-tests.sh script to be able to see it in results.

Reach out to support if you have more questions.

Devarsh Gandhi

View solution in original post

MildaGenius
New Contributor

Re: How to access result files from test

Thanks for your answer, which was hopeful to get files from test, copying result files to output-files folder.

 

Iam not able to find runId and deviceSessionId identificators. I found only "testRunId": null in test run configuration.

 

Can someone tell me, where is possible to find runId and deviceSessionId?

New Here?
Join us and watch the welcome video:
Announcements
Follow the Poll
Create your own user feedback survey
Watch Bitbar Videos
Subscribe to the Youtube Bitbar channel to always get the latest and exclusive videos