Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: How do I change the severity of an error in Silk Performer ?

$
0
0
It is possible to change the severity of an error either through the GUI or programmatically. GUI Approach: Go to  SETTINGS | ACTIVE PROFILE | SIMULATION | ERRORS Tab Click Add Choose the Module that is applicable. Locate the error number and message from the list Change the Custom Severity to whatever you require.   Scripting Approach: The sample of code below illustrates how to programmatically change the severity:   ErrorAdd(FACILITY_WINSOCK, 11001 , SEVERITY_INFORMATIONAL); //Changes "WinSock: 11001 - Host not found" error to INFORMATIONAL WebPageUrl( "http://myServer.com/Non-existent.html" ); ErrorRemove(FACILITY_WINSOCK, 11001 ); //reset Winsock 11001 to Error severity again for rest of script Note: You must take great care when changing the severity of an error in Silk Performer. Please remember that changing the severity to that of INFORMATIONAL or WARNING will no longer report this error in your results and as such critical errors may be missed. Changing the error severity in the GUI will make it a project wide change and therefore other scripts running in this project that generate the same error will also be set to the new severity and thus may not report such critical errors.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>