09-27-2012 12:49 PM
I am working on a java application which i have recorded using Java over HTTP protocol. I recorded this application using web/http protocl earlier but the data was completely in Binary.
Using Java over HTTP and by updating all JAR files i managed to get the object in my script.
My question is that how do you correlate and parametrize the XML reuqests using lr2 field setter/getter as the example in the helpfile is not that useful.
Also when i run the script i get the error: 1 bytes still left which were not read!! --(---this error does not fail the script)
If anyone has worked on this protocol or have any idea could give any suggestions/example it would be really helpful!!
Here is a snippet of the script:
////////////////////// requestBody0.xml //////////////////////
TRexDataMap TRexDataMap0 = (TRexDataMap) JavaHTTP.readObject(TRexDataMapBA0);
LAST});// 0 is the number of the header file, couldn't decode response from body
09-28-2012 11:33 AM
Thanks for your feedback. The issue is that all the data returned by the server is in Binary. Due to this the correlation values cannot be figured out from the data returned.
Snippet of data returned by server:
Is there any other possibloe solution to correlating the XMl requests?
10-01-2012 11:59 AM
What version of Vugen are you using? lr_get_xml_values is what would be used for retrieving XML values based on a query. Use the Function Reference (F1) in Vugen to check for an example on how to use it.
If you are customer you can try posting on our internal forums for more personalized support.
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
10-09-2012 11:44 PM
In 11.51 we have developed a new DFE chain which can transform the binary code to XML format data.
We can provide you one DLL if you would like to have try. Then you can replace the DLL and re-generate your script using the "Binary to Xml Extension" to transform binary code to Xml, then you could do correlation.
Please let me know if you need to replace the DLL file.
05-23-2013 08:29 AM
I have to test Smart client applications. Protocol advisor suggest to use JAVA over HTTP Protocol and Web (HTTP/HTML) protocol.
I tired to recorded using web protocol but its completely in binary code and very difficult for correlation.
As per your note if I do Binary to XML extension it would be easy for correlation.
I'm using both LR 11.04 and 11.52. Can you provide me that DLL file and how to use it please?