| || |
Issue in accessing the Attachment path in QC from
We are trying to access the files saved as attachment in QC.
I am getting the path in QC in the variable strQCPath.
PathFinder.Locate is not working in QTP 9.5 and hence I am not able to access the files.
Do you find any reason
‘I have the current node in the object objTCNode.
strQCPath = "[QualityCenter] " & objTCNode.Path &"\Libraries\TestDTSheet.xls"
' strQCPath = "[QualityCenter] Subject\BPT Resources\Libraries\TestDTSheet.xls"
strResolvedName = PathFinder.Locate(strQCPath)
‘msgbox strResolvedName ‘ iam not getting the value when I am doing in QTP 9.5 , for 9.2 its giving the temp path
DataTable.ImportSheet strResolvedName,1,2 ‘works in QTP 9.2 but not in 9.5
DataTable.ImportSheet strQCPath,1,1 ‘Is not working in both versions now . I believe this should work for both
Re: Issue in accessing the Attachment path in QC f
Associate the file with the test as such and Generate script for applying the settings. In the script you would see how the QC path gets generated.