This can be achieved in Silk Performer through the use of the MeasureSetBound() function. A parameter defines the severity for a timer which exceeds the specified time bound, e.g. the following code raises a warning if the page download time for www.myPage.com takes longer than 4 seconds, and an error if it takes longer than 8 seconds. // Set bound 1 to 4 seconds MeasureSetBound("MyPageTimer", MEASURE_PAGE_PAGETIME, 1, 4.0, SEVERITY_WARNING); // Set bound 2 to 8 seconds MeasureSetBound("MyPageTimer", MEASURE_PAGE_PAGETIME, 2, 8.0, SEVERITY_ERROR); // Call the page WebPageUrl("http://www.myPage.com", "MyPageTimer"); Old KB# 19335
↧