| || |
Correlation Issue? Help Requested please
We are trying to Test an application for performance. Our developers have used Struts as mechanism for communication between server and client.
Where when the correspondence is initiated, it has a token assigned, which is used by receiver to respond back to sender. we have tried to co-relate these struts.tokens, in order to complete our LR Scripts. Some are working fine, but for others; while value is being passed on, its not being captured/replayed by the correlation function
for example The Correlation Function
"LB = Value=\"",
Now the value it is supposed to get is displayed in the response body as
<form id="eTokenGenForm" name="eTokenGenForm" action="/eservices/submitToken.action" method="post"> <input type="hidden" name="struts.token.name" value="struts.token" /> <input type="hidden" name="struts.token" value="7QAQSMHLZBBWKRYSR8YY9UFNW2UG9FIF" /> <!-- <input type="hidden" name="selectedNomType" id="selectedNomType"/> --> <input type="hidden" id="actionType" name="actionType" value=""/> <input type="hidden" id="fieldToAdd" name="fieldToAdd" /> <input type="hidden" id="fieldAction" name="fieldAction" />
The value is in Struts.Token is being shown (i.e. 7QAQSMHLZBBWKRYSR8YY9UFNW2UG9FIF ), but when we use this parameter.However it shows CO_SubmitToken = OK. Can someone sugges twhat the issue could be or share how to get value in PeramName=CO_SubmitToken ?
Try to avoid using auto correlation, as it may define boundaries generic.This will lead you to capture wrong values.
Inorder to capture token value in above case, use following
"LB = input type="hidden" name="struts.token" value=\"",
Let me know if you face any issue for this.
The boundaries you have defined are ambiguous, meaning there are more than one occurence of those boundaries in the server response so the Web_reg_save_param is only picking up the first one. You have to be more specific like Mahesh is doing above.
I had given syntax based on response output he had given. He need to analyse full server response for that request and put respective ordinates. We cant predict exact occurance without viewing full response.