Forum Discussion

changtime's avatar
changtime
Occasional Contributor
14 years ago

Modifying an HTTPTask's request within a load test

We are setting up load testing of our REST Web Services



Test complete seems to offer support for modifying
a HTTPTask's Request URL Variables. As outlined here:
"http://smartbear.com/support/viewarticle/18839/"



However, there doesn't
seem to be any support in modifying the request itself. I'd like to paremeterize
the request using Task Variables to be something like "GET
/loadtesting/ltorders.dll/@MyVariable"



The only way to modify the request itself
seems to be via the OnLoadTestingRequest event handler as outlined at "http://smartbear.com/support/viewarticle/14084/?SearchQuery=httptask", but that really is not
an ideal solution for us



Any comments or suggestions in the matter would be greatly appreciated.

3 Replies


  • Hi Jason,





    GET /loadtesting/ltorders.dll/@MyVariable

    The thing you are trying to do is to change the URL of a requested resource, but not the parameters of the request. At the moment, it is possible to change the URL only using a script handler.





    Please note that TestComplete can accept Load Testing variables if they are used to modify parameters of an URL:

    GET /ScriptResource.axd?d=@MyVariable&s=MyAnotherVariable
  • changtime's avatar
    changtime
    Occasional Contributor
    Hi David,



    That's unfortunate.  It really would be nice be able to parametrize the URL as well. 



    Are there any future plans to add such functionality?  If, at least, the Request wasn't read-only outside of the even handler that would really help



    Thanks for your help!

    Jason

  • Hi Jason,





    At the moment, we do not have plans to do this. However, I have registered your request in our database. Thank you.