繁体   English   中英

使用代理连接到具有宏的HP ALM

[英]Connection to HP ALM with macro using proxy

我在vba代码中使用TDApiOle80.TDConnection连接到HP ALM。 但是,当我尝试远程连接到HP ALM时,我需要使用代理。 有没有一种方法/方法,我们可以使用vba中的代理与ALM连接。

User ConnectionSettings对象,用于设置代理和端口。

Single sign on connection (C#)// configure connection settings
ConnectionSettings cs = new ConnectionSettings(); 

cs.ExecutionMode =  
    TDAPI_EXECUTION_MODES.EXECUTION_MODE_INTERACTIVE; 
     cs.BasicAuthHeaderMode =     TDAPI_BASIC_AUTH_HEADER_MODES.HEADER_MODE_ONCE;
     cs.SetWebServerCredentials("login", "pass");  

// import to OTA Connection       
TDConnection otaConnection = new TDConnection();      

otaConnection.ImportConnectionSettings(cs);

// pre-configure the connection to add Basic Auth Header at first request 

otaConnection.SetBasicAuthHeaderMode(TDAPI_BASIC_AUTH_HEADER_MODES.HEADER_MODE_ONCE);


// set user credentials        

otaConnection.SetServerCredentials("Login", "Password"); 

// init connect to ALM server       

otaConnection.InitConnection("http://<server URL>/qcbin");

参考: https : //almhelp.saas.hp.com/en/12.53/api_refs/ota/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM