fix(接口定义): 修复Basic Auth 认证问题
This commit is contained in:
parent
18d6322636
commit
eb416c3ef1
|
@ -84,8 +84,7 @@ public class MsAuthManager extends MsTestElement {
|
||||||
authManager.setProperty(TestElement.TEST_CLASS, AuthManager.class.getName());
|
authManager.setProperty(TestElement.TEST_CLASS, AuthManager.class.getName());
|
||||||
authManager.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("AuthPanel"));
|
authManager.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("AuthPanel"));
|
||||||
Authorization auth = new Authorization();
|
Authorization auth = new Authorization();
|
||||||
auth.setURL(samplerProxy.getUrl().toString());
|
auth.setURL(samplerProxy.getProtocol() + "://" + samplerProxy.getDomain());
|
||||||
auth.setDomain(samplerProxy.getDomain());
|
|
||||||
auth.setUser(msAuthManager.getUsername());
|
auth.setUser(msAuthManager.getUsername());
|
||||||
auth.setPass(msAuthManager.getPassword());
|
auth.setPass(msAuthManager.getPassword());
|
||||||
auth.setMechanism(AuthManager.Mechanism.DIGEST);
|
auth.setMechanism(AuthManager.Mechanism.DIGEST);
|
||||||
|
|
|
@ -45,6 +45,10 @@ public class DateUtils {
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_PATTERN);
|
SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_PATTERN);
|
||||||
return dateFormat.format(timeStamp);
|
return dateFormat.format(timeStamp);
|
||||||
}
|
}
|
||||||
|
public static String getDataStr(long timeStamp) {
|
||||||
|
SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_PATTERM);
|
||||||
|
return dateFormat.format(timeStamp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static Date dateSum (Date date,int countDays){
|
public static Date dateSum (Date date,int countDays){
|
||||||
|
|
Loading…
Reference in New Issue