Reply
Member
pangoel
Posts: 3
Registered: 03-11-2010
0

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?

Community Leader
PaulD
Posts: 1,214
Registered: 09-02-2008
0

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

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.

Contributor
BillS
Posts: 39
Registered: 09-04-2008
0

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

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.

Expert
KumarS
Posts: 2,233
Registered: 08-30-2008
0

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

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.

Fanfare
WeiD
Posts: 150
Registered: 09-18-2008
0

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

I am not sure how effective it is to use onPreparingStep since IStep ( or our executable step ) does not have notion of a being a procedure step, it is a just a step and one can not use step action being "call" as we now have quick call feature..

 

What Kingston suggested seems to be a better way to go...