Ir para o conteúdo

How to copy the Extra-data file Appium Robot framework on iOS to make it accessible on app

0

https://repost.aws/questions/QULIkwnwfESyKC65nCfdXHQQ/not-able-to-find-the-extra-data-on-ios-device How can i copy the file to a location accessible by our app, such as the Documents directory, as the device farm container has restricted the copy and other related operation, so if the extra-data is part of test package then how i can placed or copy it to the required location in order for my app to access it

feita há 4 meses17 visualizações
1 Resposta
0

When working with extra data files in AWS Device Farm for iOS devices using Appium Robot framework, the location of these files depends on how they were packaged and uploaded.

For iOS tests, extra files that you've uploaded as "external data" are not automatically placed in the Documents directory. Instead, they are located inside the .app directory within the Payload directory, typically at a path similar to: /tmp/Payload/*.app/extra_file.

To make these files accessible to your app, you'll need to:

  1. First, unzip your test package to access the files:
unzip $DEVICEFARM_TEST_PACKAGE_PATH -d /tmp
  1. Then, in your Appium Robot framework test, you can use Appium's file handling capabilities to copy the file from the test package location to a location accessible by your app.

For iOS applications, you'll need to copy these files to a location accessible by your app, such as the Documents directory. You can use Appium's mobile commands to execute this operation.

Keep in mind that iOS has stricter file system access controls compared to Android, which is why you're having difficulty finding your files in the expected location. Your test script needs to handle the file copying as part of the test setup before attempting to use the files within your app.
Sources
Not able to find the extra-data on iOS device | AWS re:Post
Adding extra files to your test package in Device Farm - AWS Device Farm
Troubleshooting iOS application tests in AWS Device Farm - AWS Device Farm

respondido há 4 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.