I focused on writing one test for one Android emulator. I used Appium + Java + TestNG + Hamcrest with the Page Object and Page Factory patterns. I think I did it correctly? I am not sure…
… I fully agree! The problem was that it was confusing some manual testers I was trying to teach automation. I wanted for the first version not have have a BasePage.
no much difference i see between maven and gradle. ok then ADD parameter into gradle - path to testNG file.
test {
useTestNG {
suites 'src/main/resources/testng.xml'
}
}
but instead of ‘src/main/resources/testng.xml’ should be variable name that you path in command line. THUS you can start in command line any suite file that has set of some tests.