Forum Discussion

vxramad's avatar
vxramad
Contributor
13 years ago

warnings due to change in web resource

hi



I am running a load test and i am seeing that all the web resource requests are running as warnings

How can i parameter these requests

these seem to be dynamic and there are multiple web resource calls in my recorded task 









GET /WebResource.axd?d=WU6jM9zw0-royRA59L4ffVT8wp4cf7nNZ3cD0N_HFVG2spdfq0ZoRsawwbVdgUSmyVdteKTSHnTI4zux1uyoFepRLGdM8S-oe1_XrdR-9mjgYgtnaF9qcGL7hPab-tGpxwxjTkvApHe3KZMeDFHbpPt0MwAVO56qZiyrIJrQqKk1&t=633982167917584711 HTTP/1.1

5 Replies

  • Hi,



    This request uses the URL query string "d" and "t" parameters which are dynamic, so they need to be handled. The first step will be obtaining their values from a response that contains them (you can find it out using the Find dialog that is described in the "Find Dialog" help topic). To obtain the needed values, you can define data selectors for this response. After that, you need to parameterize the URL query string of the request so it uses the values obtained by the defined data selectors. For additional information, refer to the "Handling Dynamic Parameters" help topic. Also, to create custom data selectors, you'll need some information about the regular expressions syntax, so refer to the "Regular Expressions Syntax" help topic.
  • Thanks



    I am having issue with the regular expression.

    The script had



    <script src="/Service/WebResource.axd?d=fIu5O-ddlUYihpKx1i2lGoU1mXp6JdMD-pqQz8odxVF6JXcbdMSDZendd3XTjNXzLz9KDfCDQRmi2Xj-zpLgGcQReXw1&amp;t=634384621479798750" type="text/javascript"></script>



    for which i have declared "d" and "t" regular expressions as

          \ssrc="/Service/WebResource.axd?d\=(.*?)&amp;

          \ssrc="/Service/WebResource.axd?d\=.*?&amp;t\=(.*?)"



    but it doesn't seem to work. i am still getting warnings.

    please let me know if the regular expression is correct as i am not able to figure out the problem
  • I was able to figure out the issue and provided the correct regular expression and it worked.

    Need another clarification, in my very first request where i have created the data selectors- there are multiple webresource files

    How  can i differentiate between two if i want to create different data selectors one for each webresource string?





    <script src="/Service/WebResource.axd?d=Oyw1z8MyuHohBDc3FN6nKqxTA0KwB51fEl9bTqZzJ_VR9HvJojgVnx6H-iZHou6u4UdXV_HlZH-4AVoqsNJhq5uqq4k1&amp;t=634384621479798750" type="text/javascript"></script>


    <script src="/Service/WebResource.axd?d=dA6e92-wq4wSz0j39_yjzkjl671-nZp_zozHi4haZ7iafk6dgn7aDHSoRGMp4W7EEXm_S5p38-wPM687KTNaIDtpnSQ1&amp;t=634384621479798750" type="text/javascript"></script>



    <script src="/Service/WebResource.axd?d=usz03y9Qtx2J59pIeOd3uloiCPkB8IFOa6PuPJsbc49rfbNQ5wzs9w1zghpd9PBi5tN-q0zB0BUlzT-oTBoxc0VZUlY1&amp;t=634384621479798750" type="text/javascript"></script>



    so, if i want to pass the d and t values to data selectors (3d and 3 t)how can i differentiate




  • Hi vxramad,





    You can try defining several data selectors with the same regular expressions and different masks.