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 -----------