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

Wiki Page: Using the WebPageStatistics functionality with Low Level Web functions

$
0
0
Using the WebPageStatistics function it’s possible to obtain additional measurements such as Bytes Sent, Bytes Received, etc. for the last page-level function call. To use this functionality for Low Level Web functions, it’s necessary to encapsulate them within WebUrlBeginPage/WebUrlEndPage functions to get the required data. See the following example which is encapsulating a single call, and using the WebPageStatistics functions to get additional data. WebUrlBeginPage("carMakeData.jsf"); WebFormPost("http://demo.borland.com/InsuranceWebExtJS/data/carMakeData.jsf", INSURANCEWEBEXTJS_DATA_CARMAKEDA004, 0.03); WebUrlEndPage(); WebPageStatistics(STATFLAG_ALL, STATFLAG_TIMERSEND, nResult); Print("Send Time: " + string(nResult)); WebPageStatistics(STATFLAG_ALL, STATFLAG_BYTESSENT, nResult); Print("Bytes Sent: " + string(nResult)); WebPageStatistics(STATFLAG_ALL, STATFLAG_BYTESRECEIVED, nResult); Print("Bytes Received: " + string(nResult)); Full details on all functions mentioned, and the options available, can be found in the Silk Performer Help file. Incident 2810406

Viewing all articles
Browse latest Browse all 4084

Trending Articles