Dialogs from light boxes
I have a QTP script that runs fine locally but fails whenever I run it from QC.
Part of the test opens a form that appears in a lightbox. No problems working with the form except for a Cancel confirm dialog box. When I run from QC, the test can't find the item. When I run the test without kicking it off from QC, it runs fine.
I've been able to work with A) Light boxes and B) Dialog boxes, but it looks like there may be a problem with a combination of the two. I don't know what code might need to be fixed because the script runs fine from the test box (just not from QC.)
Any suggestions most welcome, and thank you very much.
Re: Dialogs from light boxes
I'd check that the script is saved with the correct add-ins loaded. If you open QTP with, say, the Web add-in loaded and run the script then it will see the web objects fine regardless of the how the script was saved. But, if you have a script saved with no add-ins and run it from QC then it will open QTP with no add-ins (even if you run it from QC with QTP already up, the QC script will change the QTP session to match how the script was saved).
I'm pretty sure that's how it works, and I have had similar issues running scripts for different apps in the different ways (from QTP and from QC)