Test Scripts
// --- Invoke an API call on the UI thread ----

    // This function will be called on the UI thread 
    public static function doWhatever()    {
        var i: int = Thread.CurrentThread.ManagedThreadId;
        System.Windows.Forms.MessageBox.Show("Thread #" + i.toString() +"." );
    }

    // Test function can be called on ANY thread
    public static 
    function doWhateverOnUIThread()
    {
        var mi:MethodInvoker = doWhatever;    
        FiddlerApplication.UI.BeginInvoke(mi);
    }

// -- Stress Test Compression/Decompression -----------
oSession.utilDecodeResponse();
oSession["ui-Comments"] = oSession.responseBodyBytes.LongLength.ToString();

oSession.utilGZIPResponse();
oSession["ui-Comments"] = oSession["ui-comments"] + "/" + oSession.responseBodyBytes.LongLength.ToString();
oSession.utilDecodeResponse();

oSession.utilDeflateResponse();
oSession["ui-Comments"] = oSession["ui-comments"] + "/" + oSession.responseBodyBytes.LongLength.ToString();
oSession.utilDecodeResponse();
// -- End Test Compression/Decompression -----------
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License