rhsou123
9 years agoContributor
How to calculate Time in Testcomplete ?
Hi,
please how can I calculate Time using Vbscript in Testcomplete ?
I need the equivalent of these two code line please.
'**************Calculating Time************* MercuryTimers("Timer").Stop MercuryTimers("Timer").Start '*******************************************
This is basic stuff you can find in the online documentation or via the "Help" menu in TestComplete itself.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqdatetime/methods.html
Var1 = aqDateTime.Time
>>> Do whatever you need to do <<<
Var2 = aqDateTime.Time
VarDiff = Var1 - Var2
Would be one way. There are many others.
You could use the built in VBScript one.
https://msdn.microsoft.com/en-us/library/a3fb2dtc(v=vs.84).aspx
Var1 = Timer
VarDiff = Timer - Var1
Like I say. This is basic stuff. Loads of ways to do it.