Java Over HTTP - Need Help in Enhancing the script
We are using Loadrunner 11.00 using “Java Over Http” protocol to record a java based web application ( suggested by protocol advisor). We have recorded the flow and the script is running without any issues for a single user.
To Enhance the Script for mutiple users,
We would like to know how parameterization and correlation can be done in Java Over HTTP proctocol.
If there are any video or documents/ links available kindly share it. And also when we checked the help file there are only two functions listed , i.e
Are these functions can be used for parameterization and correlation?? if yes, please let me know the steps.
Thanks in advance.
Re: Java Over HTTP - Need Help in Enhancing the script
Those 2 functions can be used to manipulate the Deserialized Java oject captured in your script. As per my understanding/experience in Java Over HTTP, the correlation/parameterization have to happen in the captured Java object. Then the modified Java object will be sent as part of the HTTP Post.
GroupEditBeanBA0 - refers the deserialzed java object (stored as a xml)
GroupBean GroupBean = (GroupBean) JavaHTTP.readObject(GroupEditBeanBA0);
long  empids=(long)lrapi.lr2.fieldGetter(GroupBean,"m_employeeIds");
One thing sure is, its not staraight forward scripting(like web HTTP). We should have an insight about the java classes built for the application (atleast what are the methods,properties etc ). Because filedGetter&filedSetter manipulates those object members only.
Hope this helps.