I’ve built my Appium/TestNG tests around our QA environment, but sometimes I need to run these tests in other environments (Pre-Prod, Prod, etc). Right now I’ve got my DesiredCapabilities in a class, and as I change the testing environment, modify the lines referencing the apk/ipa and the PACKAGE_ENV since those differ.
As I build out more test, there will be some differences that I need to account for, (like user IDs, data differences, etc). Does anybody have a suggestion for the simplifying the switching of environments? Ideally, I’d like to just change one variable to define the environment, then use the specific apk, package, users, etc that are valid for that particular environment.