amazon-web-servicescucumbertestngappiumaws-device-farm

AWS DeviceFarm ignores TestNG annotations


I have some Appium TestNG tests used for testing a native iOS and Android app. The tests work fine when running them locally or when submitted to AWS DeviceFarm.

However, in DeviceFarm, the TestNG annotations like @AfterMethod, @BeforeSuite, etc, are completely ignored.

This AWS forum resource says that for Calabash, hooks are ignored. I cannot find anything specific to Appium Cucumber.

I cannot post any code yet unfortunately.

Is there some way to have DeviceFarm honour those annotations?


Solution

  • As Tobe mentioned, AWS Device Farm only supports TestNG annotations in its "custom environment" mode of execution.