Forum Discussion

shahid24's avatar
shahid24
Contributor
2 years ago

TestComplete aqPerformance

For the below script, in the Log.Message section, how do i enter string in to it to display a messsage like " The calculations took" +aq.Performance.Value() )?

I get a run time error when trying above 

Sub getTime()
  ' Start a time counter
  aqPerformance.Start()

  ' Do some actions

  ' Log the elapsed time, in ms
  Log.Message(aqPerformance.Value)
End Sub

 

 

  • I think in VBScript it's,

    Log.Message("The calculations took " & aq.Performance.Value())

     

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    I think in VBScript it's,

    Log.Message("The calculations took " & aq.Performance.Value())