I have QTP 9.0 and Java add ins installed for my application.
PROBLEM: In Application, page has one JAVA table & other other Java objects like (java button).Table consist of 5-6 rows. To edit data in row, we need to select row then click on edit button, make data changes in new window & click OK button on window. Data in first java table row is get modified.
Now when i select 2nd row of java table to modify it's contents application is getting hangged & also QTP.
Here is the code.
'Selecting first row of java table
' selecting selected row, cell which is having Javalist object
JavaWindow("Ini").JavaList("Account Address and Purposes").Select "#0"
'Click Edit button to make changes
'New window or dialog is displayed, make changes in that
JavaWindow("In").JavaDialog("Addre").JavaTable("Co untry").SelectCell 0,2
JavaWindow("In").JavaDialog("Addre").JavaButton("C ountry").Type "N"
'Click OK button after making changes
'Select another row of java table
JavaWindow("Initiator Darwin Content").JavaTable("Address").SelectCell "#3","A"
APPLICATION & QTP both are getting hanged....after above steps.
Please Provide any comments for the same...as it is becoming bottle neck for me.
Is increase of the physical memory is only the solution....i have to look into for inc of physical mem..as it is beyond my limits....i have to execute this script in any of the PC...so to increase RAM in all PC's is not possible..practically...
Can i have some other workaround for this .....Or this is only memory issue....as while executing this code, also monitored CPU usage...but at no point it is overshooting...which confirms me that it is Memory issue..
Please suggest more options..well thanks for the your comments....
Also tried with creation of Run time Java Table, then clicking on desired row...
But problem is still open...as when trying to click on next row to change it's data application gets hanged....
But i am not facing this problem when trying steps manually...Only issues are when i am executing through QTP...
Also verified for mem usage/CPU before the line it get hanged...but CPU response is OK..i.e. no overshooting or excess mem requirement issue..
Hi, Since it works when you step through the code, try using some WaitProperty(...) statements. For example after you click OK, wait until the JavaWindow is enabled and/or has focus, wait until the cell has been updated with the new value, etc.