- Le plus récent
- Le plus de votes
- La plupart des commentaires
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:
- First, unzip your test package to access the files:
unzip $DEVICEFARM_TEST_PACKAGE_PATH -d /tmp
- 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
Contenus pertinents
- demandé il y a 8 mois
- demandé il y a 8 mois
- AWS OFFICIELA mis à jour il y a 5 ans
