Question

I am recoriding a script on a web/http protocoll, but when replying I get errors on

Recording the script twice and checking for diffs manually I found that my URLs has some "listeners" in them like:

web_submit_data("bla_bla_2", 

            "Action=http://e34jbsl00267.somesone.se:8080/xxx/xxx/81174/xxx?5-1.IBehaviorListener.0-considerSomeList-considerSomeRepeater-4-considerSomeListItem-considerSomeMain-innerPanel-considerDetails-considerForm-considerRulesChoices",
            "Method=POST",

When removing everything from the end at the url down to 'xxx?5-' the script is replaying fine, but when having these listeneres there it wont work with 500 error, and pasting in the url above in a new browser gives me a error page generated from the app.

This smells like correlation, but I cannot see these listenres being returned by the server, so correlation is not possible as I know it.

Help?

BR fugmag

Was it helpful?

Solution

Record it twice and compare the recordings. IF different then this will confirm the correlation hypothesis. Typically when a 500 occurs, barring a malformed request, it is simply out of context with the state of the application from the prior request, an unexpected page has been returned.

You may cross check for the unexpected page by following standard test practices, for each and every step there is an expected result. Use web_reg_find() or web_reg_save_param() to check for values from each submitted page request which indicates that the expected page has been returned. If the expected page has not been returned then break the flow of the business process script, clean up and then either return to the business flow or move to the next iteration. ( return(1); will cause the system to iterate immediately without respecting the iteration pacing )

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top