| || |
Need to delete defect attachments in QC using QTP
I am using QTP 11 and QC 11. Now there is a requirement to delete defect attachments of some defects that were found in earlier releases in order to save space. So if i pass a bulk of Defect ID's through Excel the script has to go and find this defect and delete all the attachments related to it.
I tried automating directly through QTP as i didnt have much idea about OTA or QCUtil objects. Automating directly was very painful(Spent almost an hour just to login, go to defect tab and click on select column) and i am getting stuck in each and everyplace as i am not able to detect individual objects (Like select columns, Sort filter). This is detected as toolbar and hence i am not able to proceed. Any help with a basic code that would navigate to QC and select filter with Defect ID, enter the defect number and then delete the attachment would do.
Re: Need to delete defect attachments in QC using QTP
Using QTP to automate QC is just not the way to go here. Spend some time with the OTA documentation instead.