question

pangoel avatar image
pangoel asked pangoel posted

Procedure start time and stop time within procedure and availability to the called procedure

Is it possible to get the start time and end time of the procedure like the way we get for a test case.

I was looking at one of the old message to use procedure as a test case but  my in my case I need

more information than just the result of the procedure.  Any help?

iTestsdk
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
PaulD avatar image
PaulD answered PaulD posted

You could do this yourself crudely by adding "eval" steps to the OnProcedureEnter and OnProcedureExit events and then picking up the values and doing something with them.  Or even more crudely, you could just add eval steps at the start and end of interesting procedures.  The [info] and [clock] commands gives you access to information you'll probably want.

2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

BillS avatar image BillS commented ·

One suggestion I'd gotten on this was to hook into com.fnfr.open.automation.enginemonitor and tack listeners onto onPreparingStep(IStep, IExecutionDirective) and procedure steps.

 

Haven't tried it yet as I've been busy with other things, but seems like a nice way to avoid users embedding things in their script.

0 Likes 0 ·
KumarS avatar image KumarS BillS commented ·

That is correct. Engine Monitor SDK can be used to generate any form of test report you want because you have access to complete information resulting from executing a step.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.