Upload Perfecto Single Test Reports to Micro Focus ALM from HP UFT Tests
Perfecto Single Test Reports (STR) can easily be uploaded to Micro Focus ALM at the end of your test execution in HP UFT. The URL attachment will be made at the test run level. This report can be complementary to existing HP UFT reporting capabilities.
To upload Perfecto STRs to HP ALM:
Add the following code to the end of your HP UFT test.
Tip: Create this code as a reusable action or in a function library to reuse across all of your HP UFT tests).
Copy
If QCUtil.IsConnected Then
Dim reportUrl
reportUrl = PerfectoLab("lab_id:=lab").ScriptInfo("reportUrl")
Dim run
Set run = QCUtil.CurrentRun
Dim attachmentFact
Set attachmentFact = run.Attachments
Dim attach
set attach = attachmentFact.AddItem(Null)
attach.FileName = PerfectoLab("lab_id:=lab").ScriptInfo("reportUrl")
attach.Type = 2
attach.Post
Set run = nothing
Set attachmentFact = nothing
Set attach = nothing
End If