How To Add an EventTimer to TestCase

1.     Open TestCase
2.     Drag ExpressionBlock into TestCase before code that you want to time.
3.     Set "A" to number type. A new variable of StartTime
4.     C# expression in ExpressionBlock should be StartTime=Environment.TickCount
5.     Add code to TestCase that you want to measure time of.
6.     Drag ExpressionBlock into TestCase after code that you want to time.
7.     Set "A" to number type. A new variable of StopTime
8.     C# expression in ExpressionBlock should be StopTime=Environment.TickCount
9.     Drag ExpressionBlock into TestCase
10.     Set "A" to number type. A new variable of Duration.
11.     Set "B" to StopTime
12.     Set operator to "-"
13.     Set "C" to StartTime

Have more questions? Submit a request

0 Comments

Article is closed for comments.