I have a code to upload an excel file to QC using QTP. But it is throwing an error <Object Required>. Pls look into the below code:-
Set RunAttachList = CurRun.Attachments '<CurRun is current script>
Set ExcelAttach = RunAttachList.AddItem(Null)
ExcelAttach.FileName = "C:\Temp\dtfile.xls"
ExcelAttach.Type = 1
At first line, error is <Object required: 'CurRun'>
At second error is <Object required: 'ExcelAttach'>