We are trying to automate a java application with QTP 9.2 and Java Add-in 9.1. I think there are swing objects in the application. Can these types of application be automated with QTP. We are facing issues while recognizing objects. Is there some kind of setting required or additional add-ins needed?
I am currently working with a swing application as well. If you have any specific questions, I can try and answer those. I found that you will have to create a lot of functions outside of the recognizable QTP noticed properties. You will also have to use the Java Extensibility Addin to call certain Java Classes into QTP to help with some of the unique swing objects.
Thanks for your response. I can explain some of the issues that we are currently facing.
1. We have some JavaTables in our application. QTP recognizes those JavaTables, but when i try to fetch values from them using GetCellValue, I get a blank. But, when i spy the object, I get the correct number of rows and columns.
2. The buttons (ex. OK button) are being recognized as checkboxes
3. Is it possible to somehow fetch text and store it in a variable from a JavaObject which is inside the JavaInternalFrame (Not by using checkpoints). I am able to get the text when I insert a output checkpoint.
Is Java extensibility available with QTP 9.2? I guess we will need the application code to work with it right? Unfortunately, we are not provided with any codes [img]/images/graemlins/frown.gif[/img]
Thats a lot of questions i think [img]/images/graemlins/smile.gif[/img]
I am as well working on automating a JAVA application, i have experienced lots of problems with identifying and retrieving values. The application is developed using swing and lots of embedded applets and dynamic frames and message boxes.
If you can get developer support request them how to get the data out of a certain applet or frame using javafunctions. This little functions can get the whole data out of the frame and we can paste it into a spreadsheet or text pad and organise it in the way we want.
It is a long process but there isn't any other way i came across as the embedded frames cannot be recognised by QTP.