11-01-2013 01:22 PM
We are trying to load test Oracle Retail Point of Sale (ORPOS) system using LoadRunner Java Record Replay RMI protocol. ORPOS client is a swing based client with all server communications via RMI.
I am using batch file to launch the client using LoadRunner 11.52. I configured all the necessary JDK and classpath settings. I added classpaths in the same order as the application under test.
I can get the application launched using LoadRunner. I could see the green class loading window and I see events being recorded. When I saw the recorded script, I could see a lot of undefined objects.
Following are 2 lines from the recorded script with undefined objects.
_name70 = <undefined>.addAll((javax.naming.Name)((oracle.ret
_serializable15 = <undefined>.remoteTransport((oracle.retail.stores.
Initially, I was tempted to use java.lang as the object definition for all these <undefined> objects, but I guess java.lang is too high level object that might cause more headaches.
I read a few articles online which mentioned about custom hooking.
Can we assume that LoadRunner records <undefined> objects only when it is not able to hook onto a certain class?
If yes, how do I figure out which classes to be added to custom hooks? I understand that the developers of the product should have information on this. But, since this is a oracle product, I don't know how much time they need to send me that kind of information on custom classes/hooks. I thought I would ask the experts here first before going to oracle.
Can anyone shed some light? Any help would be greatly appreciated.
11-03-2013 10:29 PM
Yes, it is an indication of lacking hooks. It is good to sit with your developers and understand the call stack. Otherwise, enable the class dumping in the recording options and investigate what is missing in it.
11-06-2013 11:37 AM
Thanks Madan. It worked after adding user hooks. However, I did observe that the custom hooks have to be at the individual class level. I tried using regular expression to include all classes in a particular package, but that did not work. I had to add specific classes and it worked well.
12-13-2013 06:32 AM
Please help and explain the process of identifying which hooks I need to put, I am facing a lot of challenges currently in this.
Using POS Client and getting same <udnefined> errors, getting in touch with the developers is next to impossible, is there a workaround which can get all the <undefined> object's classes automatically hooked to LoadRunner?
12-13-2013 07:56 AM
Please reveiw the following knowledge document How to do Java custom hooking
If you haven’t tried it yet, come and join us in our entitled forums at Support Customer Forums
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
01-21-2014 12:00 AM
I am facing same issue , not able to record any event using JVA record replay protocol. I am using loadrunner trial version . Is there any difference in Trial and license version . Can you please provide JDK setting and Classpath ( All class are in JAR file ). I am having desktop application launching from cmd file . Please help or mail me firstname.lastname@example.org