add timeout in Constant.java
refactor code in AppiumSetupTest.java