Detect the end of actReissueSessions

3 posts, 0 answers
  1. Rob
    Rob avatar
    5 posts
    Member since:
    Aug 2015

    Posted 28 Aug 2015 Link to this post


    I'm using Fiddler to execute x times several sessions.  At the end, I want to export to a file. But if I have a lot of sessions, the export file is incomplete because it doesn't has the time to load all the sessions. How can I detect when all sessions are done and then export ?

    Here is the code:  

    var oSessions = UI.GetAllSessions();
    for (var i:int=0;i<sParams[1];i++)
     var oExportOptions = FiddlerObject.createDictionary();
       oExportOptions.Add("Filename", "W:\\Public\\HD\\Paris\\L\\LY Robert\\selenium\\Results\\WAT_charge_" + System.Net.Dns.GetHostName() + "_" +DateTime.Now.ToString("ddMMyyyy_HHmmss")+".har");
       FiddlerApplication.DoExport("HTTPArchive v1.1", oSessions, oExportOptions, null);    


    Thank you



  2. Eric Lawrence
    Eric Lawrence avatar
    832 posts

    Posted 28 Aug 2015 Link to this post

    There are a number of ways to achieve this; you could, for instance, move your code that exports traffic to the SessionComplete event handler for the last Session you resent, or do other tricks like that.

    However, your best bet is to move off of actReissueSessions, which is a call into Fiddler's UI, and instead use the FiddlerApplication.oProxy.SendRequestAndWait method to resend requests to the server.

    Eric Lawrence
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Rob
    Rob avatar
    5 posts
    Member since:
    Aug 2015

    Posted 31 Aug 2015 in reply to Eric Lawrence Link to this post

    Thank you Eric for your reply ! I'll try this. :)
Back to Top