Forum Discussion

AutoBot_1's avatar
AutoBot_1
Occasional Contributor
14 years ago

Fiddler (or any similar tool) integration with TC

Hi Support Team,



I need to monitor my webservice while performing some browser operations.

Now these events are not simply web-based events but on a BHO(Browser Helper Object) or in generic ways - a toolbar.



I need to keep the fiddler open to monitor the web requests during the process.



Is there any way wherein, I can perform the event and keep a check on the web traffic in the background ?

Maybe some kind of integration of Fiddler with TestComplete (with background monitoring and then view the results alongwith the web traffic data).



Any other alternative solution suggested ?


3 Replies

  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi,



    Not sure if I got your problem, but I used Fiddler (as well as WCFStorm) to capture traffic while calling web service method. I did not need to monitor the traffic during the whole test run, but captured request and response for this or that method during code creation and debug, so it was not a problem for me to correlate captured data with the test code in TestComplete.
  • AutoBot_1's avatar
    AutoBot_1
    Occasional Contributor
    Thanks Alex, but that's what I am doing right now manually. 



    What I need is something like this - 



    -Click on a browser toolbar button.

    -Verify the event(maybe check an element on a webpage) occurred due to this button click***



    *** At this time, also verify what URL was navigated/redirected in the background due to this event. (or probably if any Web Service was invoked) - This is something I require to do it in code along with the test script. (Using VB script).



    Please let me know if its still unclear.






  • Hi there,



    I think, you can implement monitoring by creating a script that will obtain the needed data from Fiddler. I've analyzed Fiddler's GUI using TestComplete and found out that it uses Windows Forms, so it is a white box for TestComplete. Thus, this script should:



    1. Start your Browser along with Fiddler.

    2. Do the needed actions along with clicking the toolbar button.

    3. Select the needed request in Fiddler's list.

    4. Select the needed tab in the right part of Fiddler's GUI (the Headers tab, the TextView tab, etc.)

    5. Get the needed data from the selected tab.

    6. Compare the data with your base-line data through a checkpoint or a custom routine.