Micro Focus QTP (UFT) Forums
Test Java-Webbrowser-Object - 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: Test Java-Webbrowser-Object (/Thread-Test-Java-Webbrowser-Object)



Test Java-Webbrowser-Object - idolast - 07-09-2008

Hi,

I have a problem testing a Java-Application, which integrates a webbrowser-object.
QTP identifies the object as one WebSite-Object. But as this really is an Internet Explorer within a frame, QTP should identify the web-elements within the website.

My idea until now is to call the getURL()-method of the object and navigate to that url with a real browser, which I can automate. But this will be difficult if the website uses sessions.

To better let you understand my problem, I created a little java-application, using exactly the same browser-object. It is a org.eclipse.swt.Browser .
You can download the application as a zip-file containing an executable jar-file which is the browser-application itself and the needed library. Just unpack it and start it...Download here

In the upper textbox you can enter a url, which will be called by the browser.

If you have any suggestions on how to create a test navigating within the browser-object, please let me know. Smile

Thanks in advance.


RE: Test Java-Webbrowser-Object - idolast - 07-14-2008

Hi again,

Is there no one else who is trying to test a Java-application like this? I thought it would not be that extraordinary to have a browser included into an application...


RE: Test Java-Webbrowser-Object - siri - 07-17-2008

Hi
IF the QTP is not recognizing hte object frst we need to store the object's properties to the Repository .
THe process that i am following with my jave web based applicaiotns is
First i Press F3 and F12 commands alternatively and store the properties of hte objects then write the code .

So automatically it will save the proerties exactly whats there i nthe applicaiotn.
I too have frames in my jave web based applicaiotns

so try this
IT will take the property by itself its the safest way that we can store the object prperties to the repository

Mail me if you have any queries
Knowledge is not any ones Its an ocean any one join the knowledge ocean