Micro Focus QTP (UFT) Forums
Want to Pull "View source" of the Application under test. - 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: Want to Pull "View source" of the Application under test. (/Thread-Want-to-Pull-View-source-of-the-Application-under-test)



Want to Pull "View source" of the Application under test. - rajvanan - 05-27-2010

Hi,

While playing back my scripts, say I encountered a page crash. I need to pull "View source" of that page and save it at some location for future use.

Can anyone please let me know the procedure.

Thanks


RE: Want to Pull "View source" of the Application under test. - basanth27 - 05-31-2010

What is your denotion of the word "Crash" ?

Well, if you are simply reffering to a instance where you need view source under a condition then just use the filesystemobject method to try and retrieve the data and then save as text.


RE: Want to Pull "View source" of the Application under test. - rajvanan - 06-01-2010

Yes. I need to view source of the page where error occured.

can you pls elaborate of if possible give the code, for filesystemobject?


RE: Want to Pull "View source" of the Application under test. - basanth27 - 06-02-2010

I wish i could, but due to demential problems i havent been able to re-collect it yet...Meanwhile would you please be able to perform a search on filesystemobject ?