Try below code :
'********************************************************************************
'Function Name    : StartTransaction
'Description      : This function is used get the time when a specific event
was initiated
'Input Parameters : None
'Output Parameters: None
'********************************************************************************
dim timer_table
set timer_table = CreateObject("Scripting.Dictionary")
dim CurrentRow
public Function StartTransaction(tranname)
    dim t: t = timer
    timer_table(tranname) = timer
End Function

'********************************************************************************
'Function Name    : EndTransaction
'Description      : This function is used get the time when a specific event
ended
'Input Parameters : None
'Output Parameters: None
'********************************************************************************
public Function EndTransaction(tranname)
    dim t, ts: t = timer
    t = t - timer_table(tranname)
    ts = FormatNumber(t,0)
        'If t > 60 Then
    '    intMins = int(t/60)
    '    t = t mod 60
    '    result= intMins &" minute and "& t & " seconds"
    '    EndTransaction=result
    'else
    '    EndTransaction = ts & " seconds "
    'end if
    EndTransaction = ts

End Function

On Mon, Sep 22, 2008 at 3:08 PM, Dmitry Motevich <[EMAIL PROTECTED]> wrote:

> Yes, you QTP can measure time.
>
> The simplest way is a using of Timer's functions.
> For example:
>
> Dim StartTime, EndTime, TotalTime
>
> StartTime = Timer
> ' any code here
> ' for example
> Wait 2
> EndTime = Timer
>
> TotalTime = EndTime - StartTime
> MsgBox TotalTime
>
>
>
>
> On Mon, Sep 22, 2008 at 12:59 PM, Mathi_QA Engineer <[EMAIL PROTECTED]
> > wrote:
>
>>
>> Here i want to find measure the time only. So i can use QTP right?
>>
>> On Sep 21, 4:35 pm, "Dmitry Motevich" <[EMAIL PROTECTED]> wrote:
>> > Hello, Mathi.
>> >
>> > What do you mean with "performance testing"?
>> >
>> > If it means *the ability to measure time* of some operations, then yes,
>> we
>> > can measure time.
>> > If it means *to run several concurrent users/browsers*, then I would
>> > recommend to use LoadRunner. It can emulate hundreds & thouthands of
>> virtual
>> > users and to measure different statistics.
>> >
>> > On Fri, Sep 19, 2008 at 5:52 PM, Mathi_QA Engineer <
>> [EMAIL PROTECTED]>wrote:
>> >
>> >
>> >
>> > > Hi Team,
>> > >        I would like to know how to perform the performance testing
>> > > effectively?
>> > > I tried with Synchronization points but i am not sure how to find out
>> > > the timings efffecttively.....
>> > > thanks in advance
>> >
>> > --
>> > Dmitry Motevich,http://motevich.blogspot.com
>>
>>
>
>
> --
> Dmitry Motevich,
> http://motevich.blogspot.com
>
> >
>


-- 
Ganesh Muralidharan
Wipro Technologies
Mob. : 9341023574

'God Never Forgets'

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to