07-15-2008 12:41 AM
Engine
engine = axApplicationMgr1.GetEngine();engine.DisableResults =
true;but it dont like like it do the work. any idea?
07-15-2008 02:26 AM
07-15-2008 03:07 AM
Hi,
Although the Engine.DisableResults is obsolete it still should work.
From your subject title you ask how to disable report generation. The DisableResults method, which ever one you use, doesn't disable report generation. This actually disables the Step(s) recording a result which is not the same as Disabling Report Generation.
The ReportOptions.DisableReportGeneration = True will disable the Report Generation.
You can do this in the ReportOptions Callback. But if you miss this, as it called at the start of the test run, then you will have to set the property RunState.Root.Locals.ReportOptions.DisableReportGeneration = True.
Regards
Ray Farmer
07-15-2008 03:44 AM
Thanks, but still
How can i get the object ReportOptions at runntime?
07-15-2008 04:47 AM
Hi,
Get the SequenceContext as a PropertyObject then you can use SetValBoolean method using the lookup string of
"RunState.Root.Locals.ReportOptions.DisableReportGeneration"
You can get the SequenceContext from the ExecutionViewMgr
Regards
Ray Farmer