Re: Stripes Validation error when replaying script

9 views
Skip to first unread message

James Pulley

unread,
Feb 12, 2013, 11:24:53 PM2/12/13
to LR-Loa...@googlegroups.com
Test 101:   For every step there is an expected result.   Please ensure that the requests leading up to the failed request are being satisfied correctly and returning the responses you expect.   If a valid http response appears (200 status) but it is not the response you expect then you should branch your code to handle the unexpected response event. 

Not checking for expected results ad branching code execution appropriately is the largest cause of inconsistently satisfied correlations, assuming valid and robust correlation boundaries and a different page being returned from the expected page 




On Feb 12, 2013, at 10:50 PM, Rdavid15 <rahulsi...@gmail.com> wrote:

Hello All,
 I have scripted a web based application which involves json calls using Web(http/html). The issue i am facing is that when i replay the script it works 6 out of 10 times but every once in a while my correlation fails and i can see the following error in my run time viewer:

Error:
Here's how it is. Someone (quite possibly the Stripes Dispatcher) needed to get the source page resolution. But no source page was supplied in the request, and unless you override ActionBeanContext.getSourcePageResolution() you're going to need that value. When you use a tag a hidden field called '_sourcePage' is included. If you write your own forms or links that could generate validation errors, you must include a value for this parameter. This can be done by calling request.getServletPath().

This error is seen right after the request i send after logging in the application and is completely random. Sometimes the script executes perfectly for 10 iterations (with all correlations passing) but then it might constantly fail for some. Also, if the request would have some issue it should not work in the first place.

Note: I have not seen this error when i manually log in the application but i am wondering what i need to do in my script to resolve this issue. Also, can this be an application or server issue?

Any inputs would be greatly appreciated.

Thanks,
David.

 

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages