We are passing AJAX request through the JMeter same as per the browser however we are getting incomplete response in case of JMeter query providing requests are same (browser and JMeter) in both of the cases. Attaching below the request and response for both browser and JMeter.
Browser request:
1. __EVENTTARGET: OutSystemsUIWeb_wt12$block$wtMainContent$wtProductList$ctl00$wt40
2. __EVENTARGUMENT:
3. __OSVSTATE: /dsrzMftiphee0j5QRM6Ysgwu6m/pGRZqRN0WjcalSbKzMXGZAfeB8WC4XlsvAoLwQH5F38Go89XCE/Eko1bfBpb1ACR/DgVHs5SJ7zH35EY8pmKmpe4wScE0y7XK1dFwiqQm3K5MtH1c3CLXW8ACzWYB2y3GKnRtBdJbBLf553PHvtMm6BOIUe+OZmYVWJnYIqZ8+6mNqdYPEMwS+qvnmchYCILDE3Gbcggp6GUjtn0auaEbrtERAImRzb2WAIZQVRXc4kWnig2zL9WMkGLHyZ8poxyTBnQgM/ukbsPK8RFqNOvTh4vv1zgiZSpXadiIQn4Ybo/I1s9RsRI9hS5LgZjDukHSMbvxYvjNCLPz0akCmOrmEAIzl3y2FxcUCyU2PyyLZ3Rw48la4JVxLeu8MZ9n2O7kR1Qq/F1Mw+uxJ89jU8pguDLZLYM8LPEQjjRkcPgyKwSzEfeEBKwoIvyBtTuN1YTU34GUojp7xhqikqay434cj9tcAP8FAQxeJC6yci1cx4ejfa2VqBcJEs3jhXmrjyq71nEgPPBJkZfpCQDqDpR5ol9TiTsr5gjPzUJ0/9rxjWiZ2fI5+jy3DfZtzSntBcwHWZQO2diBB2wYMg=
4. __VIEWSTATE:
5. __VIEWSTATEGENERATOR: D24C11D0
6. OutSystemsUIWeb_wt12$block$wtMainContent$OutSystemsUIWeb_wt25$block$wtInput$wt35: b
7. __AJAX: 800,290,OutSystemsUIWeb_wt12_block_wtMainContent_wtProductList_ctl00_wt40,169,602,0,0,632,174,
Browser response: Attached file for the same.
JMeter request:
POST data:__EVENTTARGET=OutSystemsUIWeb_wt12_block_wtMainContent_wtProductList_ctl00_wt40&__EVENTARGUMENT=&__OSVSTATE=lB9%2BcbFpAWb2AgiqsMrmMgyGWjvmY%2FGBqChfz8Wt4n%2BtbT6uCeLqE%2BuLymk%2FyIJYLrRual%2BilVGUNc0kBCf%2Bphq40NiA%2BzDc978o%2FQXpcHuX2LirPLmmiXJX8sqZPfFscVXHt4ZGTBPuYH2nGZuQzCZB7REe8Vkj%2B%2Bu97qGQ4lt%2BkPISGCAgF3%2FhS49dhUVMnlXW%2Br6sNFqn9h8z51T8KnruIvevM1lueTdQu2V8vGNROdOKOPlaK6q9miEpC84EZpbfS07R2UjWFZK3zwQLw4NO4lAt5r9GnPCjtdwxUQ6mL4Sts4Vl55XSrs9lEZN%2BO3w1ruZU%2FLPz2HZf4Xeh74JgytP4e7R2sq8VFbOVxnlu0hqqfiGvIlDoPmlL9fKTUhv9pmi1zztylHqFT%2BhgNOYfDeqNG4W1yRKyhW1TCYx9qHKp3Jsaw4r9SiCe%2Fn8LX41GT6QsKacIIPmOOG5Q7Uz4d98dB4XeXq0PN0n4VHPAzIcNRQImRIQuutjfOapg%2F5%2Bz7mtAdxksvhyv8ZOI5ND%2FYXWhn0nWLowBBXOy3Sxd%2FNhBZo6P0FI7U1Gvd1Ed%2BhKpDMcRwggmH3%2BzP2fMNgGFNJi%2BDks6qDnmcRIzKig%3D&__VIEWSTATE=&__VIEWSTATEGENERATOR=D24C11D0&OutSystemsUIWeb_wt12%24block%24wtMainContent%24OutSystemsUIWeb_wt25%24block%24wtInput%24wt35=b&__AJAX=800%2C290%2COutSystemsUIWeb_wt12_block_wtMainContent_wtProductList_ctl00_wt40%2C169%2C602%2C0%2C0%2C666%2C187%2C
JMeter response:
//
if(!window.OsJSONUpdate){do{try {if(window.parent && window.parent.OsJSONUpdate)window.OsJSONUpdate = window.parent.OsJSONUpdate;}catch(ex){d = document.domain.indexOf('.')+1;document.domain = document.domain.substr(d, document.domain.length - d);}}while(!window.OsJSONUpdate && document.domain.indexOf('.')!=document.domain.lastIndexOf('.'));if (!window.OsJSONUpdate){try{document.domain = window.location.hostname;}catch(ex){}window.OsJSONUpdate = function() {};}}
//]]>//
OsJSONUpdate({"js":["OsSetRequestInfo('f90a29fb-d4db-435f-82b6-30b2c5f72ec6','(PageRender)','b3c55174-205a-41bb-82a0-3264b6d23acc.#(PageRender)')"]})//]]>//
OsJSONUpdate({"js":["OsEndRequest()"]})//]]>
Any help would be appreciated. Any suggestion to understand the working of Ajax to make a performance script work will be very helpful. Thank you in advance.
Hi Harsh sharma,
Did you get any errors?