Forum Discussion

ehjhone's avatar
13 years ago

TC 8.20 with Java App - Recording and Playback are referencing different objects

I have tests that will run with a Java application but only if I first run these steps:

1. restart the application virtual machine (javaw.exe)

2. login to the application

3. start the process 

4. create a test transaction

5. completely exit the app and stop the virtual machine.



If I try to change the "count" from within the Project Explorer screen for step 4. (create 2 or more transactions), the object mappings get confused.  For example, during recording and playback of the first transaction, the frames referenced are; frame1, frame2, frame3.  On any subsequent replay of the test, the frames referenced may be frame1, frame21 and frame31.  It appears as if the application is assigning different names to the objects on the second transaction.



Another issue I see is where the parent object hierarchy does not match the expected hierarchy.  The Update Name Mapping tool will popup and I can click on Highlight and the correct object is found.  I can also use the Finder Tool to find the object but can't get past the parent object hierarchy mismatch error.   The instructions are to re-map the object manually... I have done so and get a stuck on the next object..  then, when I try to run the test yet again, I run into the same problems again....



Example of object to be mapped:

Aliases.javaw.SwingObject("JFrame", "New POS", 2).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JPanel", "", 0).SwingObject("JPanel", "", 1).SwingObject("JPanel", "", 0).SwingObject("JPanel", "", 1).SwingObject("JPanel", "", 0).SwingObject("JXImagePanel", "", 0).SwingObject("JPanel", "", 0).SwingObject("JPanel", "", 0).SwingObject("/POS/CenterPanel/POSInput/ScanBarCode").SwingObject("JXImagePanel", "", 0).SwingObject("JTextField", "", 0)
No RepliesBe the first to reply