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

已提问 5 年前372 查看次数
4 回答
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

已回答 5 年前
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
已回答 5 年前
0

Hello,

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

AWS
已回答 5 年前
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

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则