VBS脚本:
Public Function makeConnection(ByVal qcHostName$, qcDomain$, qcProject$, _
qcUser$, qcPassword$, Optional qcPort) As Boolean
'------------------------------------------------------------------------
' This routine makes the connection to the gobal TDConnection object
' (declared at the project level as Global tdc as TDConnection)
' and connects the user to the specified project.
'-----------------------------------------------------------------------
Dim qcServer As String
Const fName = "makeConnection" 'For error message
On Error GoTo makeConnectionErr
errmsg = ""
' Construct server argument using format:
' "http://server:port/qcbin"
qcServer = "http://" & qcHostName
If Not (IsMissing(qcPort)) Then
If Len(qcPort) > 0 Then qcServer = qcServer & ":" & qcPort
End If
qcServer =

这篇博客介绍了如何使用Python通过VBS脚本接口连接到ALM(Application Lifecycle Management)系统。通过win32com.client模块的Dispatch方法初始化TDConnection对象,设置服务器地址、用户名、密码、域和项目,然后进行登录和连接操作。成功连接后,可通过tdc.Connected属性检查连接状态。
最低0.47元/天 解锁文章

949

被折叠的 条评论
为什么被折叠?



