Example ALM OTA Project Connection

  • KM03773678
  • 28-Jan-2021
  • 28-Jan-2021

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

A brief example of OTA Script and how to run

Question

1. Install ALM client components and register them on your client machine (If you login to projects  from IE they will be install and register tehm from /qcbin/ Tool > Register Components)

 

2. Create a vbs file (test.vbs) and add the following script (replace <> with your own values)

=======

Dim tdc
Set tdc= CreateObject("TDApiOle80.TDConnection")
tdc.InitConnectionEx "http<server-url>/qcbin"
tdc.Login "<project user>", "<password>"
tdc.Connect "<domain>", "<project>"

msgbox "if this appears, you have successfully logged in"


tdc.Disconnect
 
 ' Log the user off the server
 tdc.Logout
 
 'Release the TDConnection object.
 tdc.ReleaseConnection
 
 ' Release the object
 Set tdc = Nothing

=======

2. Run this file, if you are on 64 bit OS, run it from CMD-

                                                                  |this is path to file

C:\Windows\SysWOW64\wscript.exe C:\test.vbs