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

AWS Device Farm Appium tests
Apache License 2.0
90 stars 80 forks source link

How can we control which testNG test class we want to run? #17

Open IntelloScooby opened 6 years ago

IntelloScooby commented 6 years ago

We are using AWS device farms using appium. The biggest problem we are facing is we are not able to pick which test class we want to run. It basically runs all the test classes. Is there anyway we can control that?

wdp2020 commented 6 years ago

Hi, you can control the test to be executed by creating a testng.xml file(The same xml file that you run your testng locally), and put the testng.xml file to src/test/resources/testng.xml Device Farm will detect this testng.xml file and run tests that are specified in this file.

jamesknowsbest commented 6 years ago

Here is a pull request which explain how to do that https://github.com/aws-samples/aws-device-farm-appium-tests-for-sample-app/pull/14