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

MIT License
22 stars 23 forks source link

Robo directives - 500 error Invalid Value at 'test_matrix.test_specification.android_robo_test.robo_directives[0].action_type' (TYPE_ENUM), "text" #20

Closed simonmartyr closed 6 years ago

simonmartyr commented 6 years ago

Trying to setup a Robo test with some directives.

However the tests don't start due to the following error:

Failed to start test: 500, error: Failed to create testing service, error: googleapi: Error 400: Invalid value at 'test_matrix.test_specification.android_robo_test.robo_directives[0].action_type' (TYPE_ENUM), "text" Invalid value at 'test_matrix.test_specification.android_robo_test.robo_directives[1].action_type' (TYPE_ENUM), "click", badRequest

My test is as follows:

editText1,robotest@robot.nl,text button1,,click

Am I doing it wrong?

Build url - https://www.bitrise.io/build/270c36343a065c3e

trapacska commented 6 years ago

Hey @simonmartyr!

The Firebase API might changed (https://github.com/google/google-api-go-client/blob/master/testing/v1/testing-api.json#L1088), could you please check if instead of text and click you use ENTER_TEXT and SINGLE_CLICK?

If it solves the issue then I quickly update the step.yml.

simonmartyr commented 6 years ago

That seems to have solved it, thanks @trapacska !

simonmartyr commented 6 years ago

Maybe should be another issue, I haven't received results back successfully. I'm receiving INCONCLUSIVE after a long period of time.

trapacska commented 6 years ago

@simonmartyr I think that is because your test are timed out. Please increase the timeout input

trapacska commented 6 years ago

also, I will update the step description with the info from your feedback, thank you for that!

simonmartyr commented 6 years ago

I made that change but still no luck... `

screen shot 2018-04-26 at 13 32 05
trapacska commented 6 years ago

Yes, it is because your build timed out.

trapacska commented 6 years ago

@simonmartyr

The new version of the step now contains the fixes we've discussed here. Basically fixed the step input description. https://github.com/bitrise-steplib/steps-virtual-device-testing-for-android/releases/tag/1.0.2

Happy Building! 🚀