Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Execute a testset from QC using OTA framework
#2
Not Solved
Hi,

Please find the code below to find the required test set:

Code:
Dim tdc
Dim runName
Set tdc = CreateObject("tdapiole80.tdconnection")

tdc.InitConnectionEx QCServer
tdc.Login UserName, Password
tdc.Connect DomainName, ProjectName

If (tdc.connected <> True) Then
MsgBox "qc project failed to connect to " & ProjectName
WScript.Quit
End If

Set tfact = tdc.TestSetFactory
Set tsTreeMgr = tdc.TestSetTreeManager
Set tcTreeMgr = tdc.TreeManager
Set TestSetFolder = tsTreeMgr.NodeByPath(<Test_Set_Folder_Path_QC>)

Set TestSetF = TestSetFolder.TestSetFactory 'Retreive test from given folder in test lab
Set aTestSetArray = TestSetF.NewList("")
tsSet_cnt=aTestSetArray.Count
For p=1 to tsSet_cnt   ' Loop through the Test Sets to pick the desired test Set
                Set tstests=aTestSetArray.Item(p)
                TestSet_Name=tstests.Name
                If  TestSet_Name=<Test_Set_Name_QC>  Then
                  <do your next step here>
                End If
Next


Regards,
Parminder
Reply


Messages In This Thread
RE: How to Execute a testset from QC using OTA framework - by parminderdhiman84 - 09-06-2011, 04:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Execute button of putton won't be clicke automaticly in UFT (VB) MarUFT 3 2,661 11-21-2016, 04:22 PM
Last Post: Ankur
  Not able to execute script shanthalaAR 0 2,072 06-27-2015, 03:53 AM
Last Post: shanthalaAR
  Is there a possible way to execute sql in QTP using 'WITH' clause shruthic 0 3,102 04-26-2014, 11:42 PM
Last Post: shruthic
  Execute scripts sherst 0 2,914 01-11-2013, 01:46 AM
Last Post: sherst
  execute file rjkmr.aiht 6 5,276 05-16-2012, 03:09 PM
Last Post: rjkmr.aiht

Forum Jump:


Users browsing this thread: 2 Guest(s)