Hi.
So my test suite always starts with me logging into my app. My question is if it's good practise to create a baseclass that includes all DesiredCapabilities and the loggin function to avoid code duplication. Ive followed a few guides to create a baseclass but I feel like I'm missing something since I always get a null pointer exception. Does anyone have a code example to share how to deal with this when writing in a page objected way together with pagefactory. Android & Java.
Appreciate all help
1) DesiredCapabilities - suggest to use with testNG or junit. e.g. with testNG open driver in beforeMethod class.2) test structure with java Google Page Object is best for me. example -> see here https://github.com/appium/java-client/tree/master/src/test/java/io/appium/java_client/pagefactory_tests
Im using testNG currently. That test structure you linked , is he using a baseclass of some sorts? I really cant find it, thanks for help
It looks like some test classes extend BaseAndroidTest where the capabilities are read: