Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ALM execution status Update
#1
Not Solved
I have to update the execution status (Passed, Failed, Not Completed)  in ALM through OTA / VBS scripts. I am unable to update the status.

Can you please share code 


Thanks,
Guru
Reply
#2
Not Solved
Find the Code for Update the Status in ALM test Lab.

Dim tdc
Dim runName
Set tdc = CreateObject("TDAPIOLE80.TDConnection")

tdc.InitConnectionEx "ALM URL"
tdc.Login "User Name", "Password"
tdc.Connect "Domain", "Project"
If (tdc.connected <> True) Then
MsgBox "qc project failed to connect to " &"Project"
ExitTest()
End If
Set tfact = tdc.TestSetFactory
Set tsTreeMgr = tdc.TestSetTreeManager
Set tcTreeMgr = tdc.TreeManager
nPath = "Root\" & Trim("ZZ_ToBe_Deleted\LER")
Set TestSetFolder = tsTreeMgr.NodeByPath(npath)
Set TestSetF = TestSetFolder.TestSetFactory 'Retreive test from given folder in test lab
Set aTestSetArray = TestSetF.NewList("")
tsSet_cnt=aTestSetArray.Count
For i=1 to tsSet_cnt ' Loop through the Test Sets to pick the desired test Set
Set tstests=aTestSetArray.Item(i)
TestSet_Name=tstests.Name
'''PRINT TestSet_Name
If TestSet_Name= "LER3" Then
Flag=1
Set TestCaseF = tstests.TSTestFactory 'Retreive Test Cases from the test set
Set aTestCaseArray = TestCaseF.NewList("")
test_qc_cnt=aTestCaseArray.count
For n=1 to test_qc_cnt 'Loop through the Test cases in QC to find the same test case as in Excel
Set ts_obj=aTestCaseArray.item(n)
tname_QC=ts_obj.Test.Name
Set RunF = ts_obj.RunFactory '''for managing test runs.
Set theRun = RunF.AddItem(tname_QC)
theRun.Name =tname_QC '''assign a run name
theRun.Status ="Failed" '''you can parametrize this value as per your need
theRun.Post
theRun.Refresh
Next
End If
Next

Thanks,
Guru
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  adding atachment to QC (ALM) - overwrite psova 1 4,481 02-07-2023, 03:18 PM
Last Post: RachapudiSaiSowmya
  Is it possible to execute Remote Agent witout ALM? CharlieMadrid 0 1,194 05-12-2020, 01:26 PM
Last Post: CharlieMadrid
  VB Script access denied error when executing alm scripts in planned host Kumar Reshma 0 1,516 05-28-2018, 04:04 PM
Last Post: Kumar Reshma
  ALM OTA Queries hrishikesh 1 1,621 05-24-2018, 09:53 PM
Last Post: Ankur
  UFT 12.02 encrypted password for ALM connection issue psova 0 2,588 07-29-2015, 02:59 PM
Last Post: psova

Forum Jump:


Users browsing this thread: 1 Guest(s)