You can pause Try-Script execution by using the Windows MessageBoxA functionality, see below: dll "user32.dll" "MessageBoxA" // Open a messagebox // function debug_Pause(in long, inout string, inout string, ptr): long; // Arg 1: Should be set to NULL // Arg 2: Caption // Arg 3: Title // Arg 4: Dialog box type (0 = OK messagebox) Then call the "debug_Pause" function when needed in the script: WebPageUrl("http://www.demo.com", "Demo"); debug_Pause(NULL, "Press OK to continue", "SilkPerformer Debug Message",0); WebPageUrl("http://gmo.demo.com", "GMO"); Remember this is for TRY-SCRIPT debug not for loadtesting! Also this will affect Transaction times, however Page times will still be ok. See example script below: benchmark WebBenchmarkName use "WebAPI.bdh" dll "user32.dll" "MessageBoxA" // Open a messagebox // function debug_Pause(in long, inout string, inout string, ptr): long; // Arg 1: Should be set to NULL // Arg 2: Caption // Arg 3: Title // Arg 4: Dialog box type (0 = OK messagebox) var dcluser user WebUser transactions TWeb : 1; dcltrans transaction TWeb begin WebPageUrl("http://www.demo.com", "Demo"); debug_Pause(NULL, "Press OK to continue", "SilkPerformer Debug Message",0); WebPageUrl("http://gmo.demo.com", "GMO"); end TWeb;
↧