loadrunner Hi every one, I'm doing performance testing...

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

A

Anvesh Reddy

Guest
Hi every one, I'm doing performance testing for mobile application which is developed in java language and coming to loadrunner scripting i'm using java over http as protocol. Actually i'm not aware of this protocol,i can able to record the application but i don't know whether all the requests got captured or not. Here i'm attaching the sample loadrunner script using java over http protocol. _webresult = lrapi.web.set_user("", // lr.decrypt("54098d07e"), "", "icms.indiocaonrail.gov.in:80"); _webresult = lrapi.web.custom_request("MTNRAKE", "URL=http://icms.indianrail.gov.in/maximomobile/mobileservice/MTNRAKE", new String[]{ "Method=POST", "Resource=0", "RecContentType=application/octet-stream", "Referer=", "Snapshot=t1.inf", "Mode=HTML", "EncType=application/octet-stream", "BodyBinary=\\x00\rRequestPacket\\x00\\x07MTNRAKE\\x00\\x07REQUEST\\x86\\x00\\x07MTNRAKE\\x00\\x18getDataTransactionResult\\x00\\x00\\x00(\\x00\\x08Object[]\\x00\\x00\\x00\\x02\\x00\\x07Integer\\x00\\x00\\x00\\x00\\x00\\x07Integer\\x00\\x00\\x00\n\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\r" + "\\x00\\x16maximo.mobile.hostname\\x00\\x16icms.indianrail.gov.in\\x00\\x08LANGUAGE\\x00\\x02en\\x00\\x07COUNTRY\\x00\\x02US\\x00\\x07APPNAME\\x00\\x07MTNRAKE\\x00\\x08TIMEZONE\\x00\rAsia/Calcutta\\x00\\x11maximo.mobile.ssl\\x00\\x05false\\x00\\x07VARIANT\\x00\\x00\\x00\\x19maximo.mobile.contextname\\x00\\x1B/maximomobile/mobileservice\\x00\\x08MOBILEID\\x00\r" + "1409210548862\\x00\\x08USERNAME\\x00\\x08\\x00\\x08PASSWORD\\x00\\x08\\x00\\x07VERSION\\x00\\x011\\x00\\x12maximo.mobile.port\\x00\\x0280", LAST}) Note:In java over http protocol no generation log and no runtime viewer to validate the requests .So how can we validate? Please share your experience on this protocol and get me out of this issue.
 
"BodyBinary": prepare for weeping and gnashing of teeth. This is not a road for the new or inexperienced. There is no simple comment that will solve your problem. You really have to have done it before. Anything less is selling yourself and your employer/customer very short.
 
Enable data format extension from run time settings.. Create a chain for binary to xml conversion. Now regenerate your script. It will be converted into a readable format where you can do all the manipulations
 
Hi all thanks for your quick reply...,im able to record the script but i cant see the data gets updated in the backend. wats d problem is im nt getting any error in reply log it is sucessful.
 
guys plz trust me im new to this protocol in google also i didnt get any answer for this please share some documents if u have or share ur thoughts on this, im testing mobile application
 
Most of the mobile application interacts with server over http protocol, try once http/HTML protocol ... In between which version of LR u have?
 
Use any third party network software to hook your network while executing script in VuGen for validating responses.
 
Use Mobile HTTP/Html protocol of LR 12. Use Wire Shark tool for network sniffing. Then use analyse traffic method of Mobile HTTP/Html protocol to extract the recorded script
 
imp thing that you need to take care for Binary Scripting is - length of values that you are passing. with each parameter or correlation you have to also pass the lengths. like \\x07VERSION 07 is the length. and as Abhijit said it should work on HTTP/html protocol as well. Let me know in case you need any help with BInary scripting..
 
Mukesh Dhingrai tried with http/html but no solution,i'm using lr 11 version client have licence for this version only.
 
Anvesh Reddy tell ur client u need at least LR11.5 otherwise it's not possible......but if they agree to upgrade ask for LR12.01 d latest which has Mobile Http/HTML protocol
 
@hi abhijit already i discussed the same with client but the didn't agree they told they have already taken the lr 11 version licence dat is the problem.
 
Simplify your requirement at the best - understand what needs to be part of Binary which is dynamic and is a must. You would be able to eliminate most of your correlations. Also, if nothing requires a change w.r.t. load and payload, keep Binary as it is.