AWS SDK : Adding existing Test YAML file to Appium Test NG execution

0

Hi,
I want to add an existing Test Spec file to my automation triggered by AWS SDK (tool written in C#) to run the execution in custom environment.
I was partially successful to add a new YAML file but the uploaded file is empty. And I will upload this YAML again and again on each execution - so the project gets flooded with YAML files. I did not found a way to delete it...

My scenario looks like this

  • upload app
  • upload test ng file
  • set execution to "custom env" (missing)
  • set already existing YAML file (missing)

The documentation was not really helpful on that. Can anybody help?

Thanks
Norman

Edited by: NormanHeinrich on Aug 28, 2019 5:29 AM

preguntada hace 5 años372 visualizaciones
4 Respuestas
0

Hi,
I tried to set the ARN for the YAML file manually during my test scheduling but the test will not be executed on this custom environment. Is there an additional setting to enable the custom env?
Only setting the TestSpec file seems not to work.

Norman

respondido hace 5 años
0

Hello,

When using our CreateUpload APIs to upload a app, test app, or yaml file to your project, the response will return an ARN in the object that you can then use for later runs. This way, you will not have to re-upload the files for every scheduled run. To see if the upload has succeeded, you can call GetUpload and see if the status has been set to SUCCEEDED. If its in status FAILED, you can view the metadata of that Upload object to see troubleshooting tips on how to fix the issue.

You can delete uploads with our DeleteUpload API.

CLI Doc links
CreateUpload: https://docs.aws.amazon.com/cli/latest/reference/devicefarm/create-upload.html
GetUpload: https://docs.aws.amazon.com/cli/latest/reference/devicefarm/get-upload.html
DeleteUpload: https://docs.aws.amazon.com/cli/latest/reference/devicefarm/delete-upload.html

AWS
respondido hace 5 años
0

Hello,

Can you add a bit more detail on which exception message you are getting?

AWS
respondido hace 5 años
0

Hi,

I was now able to specify an existing Test Spec ARN to my TestRunRequest. It is working properly.
Thanks for the hint with the delete of the yaml - will try to implement it as well.

I checked the ARN with get-upload to be sure if the Arn and result was the right one.

In my code I specify the TestSpecArn like the following into my "ScheduleRunRequest":
myRunRequest.Test.TestSpecArn = "arn:aws:devicefarm:.........."

Execution works fine in custom env now.

Thanks
Norman

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas