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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠