Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All captured images I want to assign to Test results in QC
#1
Not Solved
Hi Ankur,

In My Oracle automation project I need to capture some forms images for test evidences

All captured images I want to assign to Test results in QC

Capture the Test evidence using “Object.CaptureBitmap, [Override Existing]”

Save it to the “Object.CaptureBitmap, Full file name, [Override Existing]”

How can I define the Quality centre Test result Path, database Location.

How can I send all capture images to my QC Test Results

Cheers

Gov
Reply
#2
Not Solved Cool 
try this:

' Adds file to attachment of the associated test in the test lab
' Parameter aFileName: file name including absolute path
Sub AddAttachToTDRun(aFileName)
'Check if attaching files is enabled
Code:
if LCase(GetLocalParameter("bpt.attach")) = "true" Then    
    Dim TDrun, attf, att
    Set TDrun =TDUtil.CurrentRun
    Set attf = TDrun.Attachments
    Set att = attf.AddItem(Null)
    att.FileName = aFileName
    att.Type = 1
    att.Post
    att.Save False
    LogValue "File attached", aFileName
  Else
    LogValue "File not attached", aFileName  
  End If
End Sub

it may be helpful to call this with a bussiness component if you use them.
Reply
#3
Not Solved
Thanks Jackomcnabb

i will Try this .

Cheers
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Rolleyes Snapshots - Test Results Bhadra 8 8,012 11-03-2014, 03:24 PM
Last Post: vinod123
  capture screenshot using html code and view in QTP Test results Bhuvan 3 7,220 07-19-2013, 02:38 PM
Last Post: Bhuvan
  Get the Parent Folder name in Test Plan for a Test from Test Lab using QTP godsown 0 6,107 09-29-2011, 04:55 PM
Last Post: godsown
  how to export test results from QTP to QC uma87 5 10,544 09-29-2011, 03:35 PM
Last Post: uma87
  Active Screen images not displaying Herkimer 0 3,369 05-04-2011, 10:53 PM
Last Post: Herkimer

Forum Jump:


Users browsing this thread: 1 Guest(s)