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. 

 

posted @ 2016-03-22 12:56  fthjane  阅读(127)  评论(0编辑  收藏  举报