User Marcus Neto ( posted:

Sinoj et all,

For the past couple of years we have been conducting onsite performance
monitoring of our application. We have four seperate machines at 4 different
military installations(Medical) that run through a series of tests and then
output the results to two different files(well actually three). The way that
we do this is kinda like the following example:

'this starts the timer by declaring the responsetime(105) equal to the
current time

'The next step would be to start the action you want to time. This one opens
a module in our application.
'You then wait for the expected result. Don't use VPs for this as they
only check every 1 second. A waitforObject or PropertyValue is better as it
checks every millisecond
Result = SQAWaitForPropertyValue("Name=cmdModuleClose", "Enabled",TRUE,
'You then stop the timer
'Then you subtract the start timer from the stop timer and get the

'This portion of my script handles a memory test that we do as well. I
will skip it for now and explain the areas that deal with writing out the
If newmasterMemoryTest = 1 then
Delayfor 3000
Getmemory Memory
'I only wanted 1 script that wrote out the result immediately so
that if the script failed I would know what the last thing that was done.
This helps in debugging mostly.
newmasterVarName="46 Open Radiology Module"
'This is declaring the variable from above that is the elapsed time
equal to another variable that writes out immediately
lMemoryValue = virtualmemory
'This script write out to a csv file
CallScript "New Master Smoke Test Write Now to File"
lmemoryValue = 0
'same as above
newmasterVarName="46 Open Radiology Module"
CallScript "New Master Smoke Test Write Now to File"
End If

'************************************************* *****************
To write out the times you can either write them immediately or later. It is
better to write them out immediately though because if your script fails you
will have the data. Otherwise it will be lost.

Use something like the following

Open "C:\\stuff\Thisfilecontainstimeddata04232002.c sv" For append as #1
Write #1, FunctionName, TimeFunctionTookPlace, ResponseTimeofFunction
Close #1

It can be a csv,txt,or ini file. I prefer the csv cause I do all of my
reporting in Excel.

One last thing. Playback speed is very important as Robot will wait between
each command. If you have it set to anything other than 100ms then you are
playing back too slow and the Robot interjected wait times will be clouding
your response times. You can control playback speed through the use of the
SetTime command. What I would suggest is that if you need to play your app
back at a slower speed you can set that in the defaults under gui playback
options and then when you get to a timed section do a SetTime 100 which will
set the playback speed to 100ms.

Let me know what needs to be expanded on and I will

Marcus Neto

__________________________________________________ _______________
Get your FREE download of MSN Explorer at