aws-samples / aws-device-farm-appium-tests-for-sample-app

AWS Device Farm Appium tests
Apache License 2.0
91 stars 77 forks source link

How to pass the test data through property file or .csv #16

Closed ChethanGKC closed 6 years ago

ChethanGKC commented 6 years ago

Can any one please let me know how to pass the test data through property file or .csv in AWS Device farm.

jzthinkgeek commented 6 years ago

Hi, you can package your test data into the zip file and let your test read data.

ChethanGKC commented 6 years ago

@jzthinkgeek : thanks for the fast replay, i placed my tests data in my zip file but what path i need to specify to read that ?

ChethanGKC commented 6 years ago

@jzthinkgeek i tried with path like this zip-with-dependencies/android.properties but it's not working

ChethanGKC commented 6 years ago

screen shot 2018-02-09 at 4 20 08 pm my zip file consists of above items showed in the screenshot. now i need to call the android.properties file for this which path i need to specify.

jzthinkgeek commented 6 years ago

Hope this post helps: https://stackoverflow.com/questions/45590446/aws-device-farm-extra-data-path-in-script

ChethanGKC commented 6 years ago

@jzthinkgeek : Thanks for the help. I fixed this issue by combining .property file with the test jar and calling that property file by using class loader.

Hence closing this issue