Micro Focus QTP (UFT) Forums
Is QTP supposed to record view of web page? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Is QTP supposed to record view of web page? (/Thread-Is-QTP-supposed-to-record-view-of-web-page)



Is QTP supposed to record view of web page? - jhs01 - 01-21-2009

Hello,

I am new to using QTP (version 9.2). I have been reading through materials provided by my employer and the help section within QTP. I am a new systems analyst and have been asked how to create some simple automated test cases for a web application using QTP. We will record in IE 6.

I have the ActiveX, Visual Basic, Web and Web Services plug-ins loaded. When I record my test case I have it open the browser. Once on that page I click on a hyperlink and then end my recording. QTP does not record that view of the second page. Is that how it is supposed to work?

Thank you,
jhs01


RE: Is QTP supposed to record view of web page? - Jackomcnabb - 01-21-2009

It should display the second page should be displayed... the question is did you record the Closing of the browser?
if you view the expert view as your recording then you can see what page was recordered.

you may want to put an wait or exist command in so you know if the second page has been loaded.

If you did record the closing of the browser and did not have a wait or exist command it could be possible that the script is closing milliseconds after you hit the link.


RE: Is QTP supposed to record view of web page? - somisays - 01-21-2009

Hi jhs01,,
May i ask you when did you ended your recording?
After opening the second page or after clicking the hyperlink ?

But in QTP you can view each recording step screenshot.


RE: Is QTP supposed to record view of web page? - jhs01 - 01-21-2009

Hello,

Thank you for the responses to my question. I appreciate the help of this forum.

I ended the recording after the second page loaded. This is what shows up in Expert View.
Code:
Browser("Fidelity Investments").Page("Fidelity Investments").WinObject("MacromediaFlashPlayerActiveX").Click 55,255
I selected Record from the toolbar. I chose "Open the following address..." as www.fidelity.com
I left "Do not run and record on open browsers" and "Close the browser when the test closes" check boxes selected. When the browser opens and page completes loading, I select the More Markets link on the right of the page. That page loads. I stopped the recording. When I view the Active Screens, I do not see the second page, More Markets, as I expected.

Thank you,
jhs01


RE: Is QTP supposed to record view of web page? - Ankur - 01-21-2009

It's behaving as it should.
Try recording some steps(objects) on "More Markets", then let us know what you see. I believe you will get the answer.