Forum Discussion

hendrik_schreib's avatar
hendrik_schreib
Occasional Contributor
14 years ago

Compressed traffic

Hi Test Complete team,



we want to use load testing and our server uses compresses the http traffic. Now, we want to check some responses by using events and vbscript.



We have two questions:



1. Is it possible to decompress the traffic with vbscript?

2. Do the regular expressions (http://smartbear.com/support/viewarticle/12412/), which are defined to extract dynamic values, work correctly with compressed traffic?



Regards 

    Hendrik 

4 Replies


  • Hi Hendrik,





    TestComplete should be able to record tasks with servers that use the HTTP compression and execute them without any problems. Do you have any issues with such tasks?
  • hendrik_schreib's avatar
    hendrik_schreib
    Occasional Contributor
    Hi,



    we can record and execute tasks without problems. Now, we want to check the response content/body by using HTTP LoadTesting Events and vb script.  



    The function "Request.ResponseBody.Contents" returns the encrypted/compressed content. Therefore the response is not verifiable without decompressing. Does any function exist to decompress the traffic? 



    Our second question is about "Data Selectors" and compressed traffic. Do Data Selectors run successfully with compressed traffic?



    Additionally we have the same questions related to secure "https" connections :)



    Regards and Thanks

          Hendrik

  • Hi Hendrik,





    We've recently created a sample that demonstrates how your tasks can be accomplished with help of the OnLoadTestingRequest and OnLoadTestingResponse event handlers - please check the attachment. Note that the sample has several requirements - pay attention to the comments in the script units.