I've just gotten the Java Add-IN and the 8.2 QTP up and running.
I have started QTP and then started my Java App.
I start my 1st test recording then I click on the title bar of the app to bring it into focus:
JavaWindow("Spillman Summit").JavaDialog("Spillman Summit - code below for that step 4.5").JavaObject("SummitHeaderJPanel").Click 13,5,"LEFT"
There is a missing step here! It did not record the typing I did. The cursor is in the input field by default, yet the code below is recorded to close the window!
JavaWindow("Spillman Summit").JavaDialog("nmmain").JavaMenu("File").Jav aMenu("Exit").Select
I can't believe all the money we spent is wasted! Is there no way to capture the actions I perform inside the Java App? I have read the similar posts but low-level recording is not the answer I want [img]images/icons/frown.gif[/img] There is no way to maintain the script all the objects are just click(x,y)...foo!
My actions amounted to:
1. clicking on the titlebar
2. typing names
3. clicking Exit in the File menu.
HELP, please and thanks. I want to record like a real world user, not some low level slime, hehe.
Thanks for the pointers. Those along with this:
Set WshShell = CreateObject("WScript.Shell")
have gotten me started. I found the Java Add-in manual in my managers office, and I'll be looking for what I need there in the future. I hope the answers will reveal themselves, hehe.
Again, thanks, and lots of bonus points to you,
I can see that could be an issue, but have found no other way to do a JavaEdit.Set where it accepts the ENTER/Tab/F1, etc. characters. I wouldn't bet against it, but finding the answer has been really tedious.
On the other hand, I've done well with table cells, rows etc. Much easier to get a grip on [img]images/icons/smile.gif[/img]