source idea of Unit
After the construction of Global environment setting code, there is a convenient way for us in the future tasks.
For example,
driver.get(https://qas-lenovo.hybris.hec.ondemand.com/hmc/hybris);
can be replaced by
driver.get(Global.HMC_SITE);
Other configuration about the environment(qas, prod .etc) user(name,password) can be replaced by ENV, HMC_USERNAME and so on. Our test sample is shown in a screenshot attached in the email.