bitrise-steplib / steps-virtual-device-testing-for-android

MIT License
22 stars 23 forks source link

Failed to get http response, status code: [403] #4

Closed bkmalkoc closed 6 years ago

bkmalkoc commented 6 years ago

I have 2 consecutive device test tasks. The first one is working with success but the second one is failing with this error.

Failed to get http response, status code: [403]

Why is this error happening?

First successful test; +------------------------------------------------------------------------------+

(10) virtual-device-testing-for-android@0.9.7 +------------------------------------------------------------------------------+ id: virtual-device-testing-for-android version: 0.9.7 collection: https://github.com/bitrise-io/bitrise-steplib.git toolkit: go time: 2017-10-10T16:19:43Z +------------------------------------------------------------------------------+

INFO[16:19:43] Start installing (golang) with apt-get
INFO[16:19:43] * [OK] Step dependency (go) installed, available. Configs:

Second failed test; +------------------------------------------------------------------------------+

(11) virtual-device-testing-for-android@0.9.7 +------------------------------------------------------------------------------+ id: virtual-device-testing-for-android version: 0.9.7 collection: https://github.com/bitrise-io/bitrise-steplib.git toolkit: go time: 2017-10-10T16:24:10Z +------------------------------------------------------------------------------+

INFO[16:24:10] Start installing (golang) with apt-get
INFO[16:24:10] * [OK] Step dependency (go) installed, available. Configs:

viktorbenei commented 6 years ago

Hi,

Did you turn on the Virtual Device Testing for that app? You can do it on the Settings tab of the app on bitrise.io - guide/blog post: https://blog.bitrise.io/introducing-solid-and-snappy-virtual-device-testing-for-android

viktorbenei commented 6 years ago

@bkmalkoc did the instructions above fix the issue (to enable Virtual Device Testing for the app)?

viktorbenei commented 6 years ago

Closing as we did not receive any update / confirmation. @bkmalkoc feel free to comment and we'll reopen this ticket! :)

bkmalkoc commented 6 years ago

Hi @viktorbenei ,

Yes it was turned on. That's how the first test got successful. Unfortunately not the second one, second test is failed. What could be the reason?

The reason for creating second virtual test step is I want to run on different devices. Instead is there a way to define two(or more) devices in one virtual device test step?

viktorbenei commented 6 years ago

Ahh, that definitely makes sense @bkmalkoc ! The step & the related service was designed so that one build can only run this step once, that's why you get the 403 in the second step - sorry I missed this.

The reason for creating second virtual test step is I want to run on different devices. Instead is there a way to define two(or more) devices in one virtual device test step?

Sure, definitely! Just specify a device config per line in the "Test devices" input, that simple! :) See the input's description for more details: https://github.com/bitrise-steplib/steps-virtual-device-testing-for-android/blob/master/step.yml#L41

If you have any questions just let us know! :)

bkmalkoc commented 6 years ago

That works now. Thank you for solution. @viktorbenei

viktorbenei commented 6 years ago

Any time @bkmalkoc ;)