How can I differentiate between a Try-script run and a real load test in my script?
In certain cases it may be useful to be able to conditionally include or exclude particular sections of code within your script depending on whether you are running a Try-script or a real test. You can achieve this by using the function GetLoadTest(). This returns 0 on Try-script, and the number of the load test for a real test. For example:
nLoadtest := getloadtest();
if nLoadTest > 0 then
// in the case of a load test execute this section
// in the case of a Try-script execute this section