Binary data generated inside Vugen script

185 views
Skip to first unread message

Vani Reddy

unread,
May 21, 2015, 8:00:43 AM5/21/15
to LR-Loa...@googlegroups.com
Hello every one,
 
Am uses the java over http protocol to test the java applet will launch via browser. I was able to record the script,and done correlation, but inside of my script binary data is generated as shown in below.

_webresult = lrapi.web.custom_request("ServletIndependent;jsessionid={d_session}", 
"URL=http://----------------/ServletIndependent;jsessionid={d_session}", new String[]{ 
"Method=POST", 
"Resource=0", 
"Referer=", 
"Snapshot=t30.inf", 
"Mode=HTTP", 
"EncType=application/x-java-serialized-object", 
"BodyBinary=\\xAC\\xED\\x00\\x05sr\\x008com.system.prog.communication.bean.IndependentBean@AUi\\xAC\\xBCP\\xC7\\x02\\x00\\x05L\\x00\\x06actiont\\x00\\x12Ljava/lang/String;[\\x00\\x0CmessageCodest\\x00\\x13[Ljava/lang/String;[\\x00\\x08messagesq\\x00~\\x00\\x02L\\x00\\x12serializableObjectt\\x00\\x12Ljava/lang/Object;L\\x00\\x05timerq\\x00~" +
"\\x00\\x01xpt\\x00\\x10getMessageSoundsppsr\\x00\\x13java.util.ArrayListx\\x81\\xD2\\x1D\\x99\\xC7a\\x9D\\x03\\x00\\x01I\\x00\\x04sizexp\\x00\\x00\\x00\\x03w\\x04\\x00\\x00\\x00\nt\\x00\\x12Bike_horn.wav21442t\\x00\\x19Ford_type_A_horn.wav13100t\\x00\\x13Truck_horn.wav59798xt\\x00\r{d_Timer}", 
LAST}) // couldn't decode request from body, couldn't decode response from body.

But whenever i run the script the script is passed successfully.with out any error. But i think the replay of script is not giving any effects in the application.

Please help me to resolve this.


Regards,
vani.K

dikshith

unread,
May 22, 2015, 9:10:02 AM5/22/15
to LR-Loa...@googlegroups.com
Hi,

You need to have Application jars in client side which decodes and encodes data binary. When you start webstart (JNLP) then in client system all client needed app jars gets downloaded on temp folder, so copy these to your classpath of LR script(Run Time settings specify path) and probably you can see the request and response getting deserialized,serialized back and forth.

Thx,
Dixit

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at http://groups.google.com/group/LR-LoadRunner.
To view this discussion on the web visit https://groups.google.com/d/msgid/LR-LoadRunner/a1012cdd-4c97-4be7-97fe-c539c833f917%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sudhir Kumar

unread,
May 22, 2015, 9:10:11 AM5/22/15
to LR-Loa...@googlegroups.com
Have you included the necessary Jar files while recording? You need to include all the relevant jar files so that LR uses the Jar filers to serialize the binary data.

dikshith

unread,
May 24, 2015, 11:30:26 AM5/24/15
to LR-Loa...@googlegroups.com
I have replied the same right. Application jars in classpath or runtimesettings.

On Fri, May 22, 2015 at 10:36 AM, Sudhir Kumar <sudh...@gmail.com> wrote:
Have you included the necessary Jar files while recording? You need to include all the relevant jar files so that LR uses the Jar filers to serialize the binary data.

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at http://groups.google.com/group/LR-LoadRunner.

Vani Reddy

unread,
May 25, 2015, 1:03:00 PM5/25/15
to LR-Loa...@googlegroups.com
dixit adoor  & Sudhir

Yes i have included all the jar files,Binary data is getting deserialized,serialized back and forth. But i got the below error

Error: System.err: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.system.module.communication.data.depaendent. 

How do i solve this issue.

James Pulley

unread,
May 27, 2015, 10:26:32 AM5/27/15
to LR-Loa...@googlegroups.com, vani...@gmail.com
That is not binary.  It is an encoded record structure.  Were it binary or completely encoded you would observe zero clear text data, such as "Ford_type_A_horn.wav"

Rudra Harichandan

unread,
May 27, 2015, 11:20:44 AM5/27/15
to LR-Loa...@googlegroups.com
Hi,
 
You need to use saveoffset and savelen attributes in web_reg_save_param correlation function to capture dynamic value surrounded by binary data.
 
Search in google how to use saveoffset and savelen attributes in web_reg_save_param correlation function.
 
Thanks,
Rudra

On Thu, May 21, 2015 at 4:05 PM, Vani Reddy <vani...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at http://groups.google.com/group/LR-LoadRunner.
Reply all
Reply to author
Forward
0 new messages