XLT: Server response could not be parsed #315
-
Hello! I am working on some tests to do load testing. After submitting a form (registration), I get the following error FYI The form is submitted correctly and I am able to log in as the user created by the script. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for your question but based on that description, we cannot diagnose it further. Use the resultbrowser to see what is returned by that call when executing the scenario in your IDE. This might explain why the parsing does not work. We can go further from there. You can also share details with us (on a private channel) if you like. Please note: This is not an official support channel. Responses times might vary. |
Beta Was this translation helpful? Give feedback.
Hi,
It sounds as if you try to submit the form by one of the
loadPageBy…
methods. This will always expect a full HTML document since it’s the equivalent of a page load in the browser.When you get a JSON response the form submission is probably done via an XMLHttpRequest/Ajax request (XHR) by the JavaScript of your site.
For such calls you’ll have to mimic this behavior by sending an HttpRequest with the same post and query parameters as well from your testsuite.
XLT brings the class
com.xceptance.xlt.engine.httprequest.HttpRequest
for such tasks.