Thank you very much Ganesh! On Tue, Oct 14, 2008 at 11:19 AM, Ganesh muralidharan <[EMAIL PROTECTED]>wrote:
> ReportEvent Method Description > > Reports an event to the test results. > Syntax > > *Reporter.ReportEvent* *EventStatus*, *ReportStepName*, *Details* [, * > Reporter*]* * > > Argument > > Type > > Description > *EventStatus* > Number or pre-defined constant > Status of the report step: > *0 *or* micPass: *Causes the status of this step to be passed and sends > the specified message to the report. > *1 *or* micFail: *Causes the status of this step to be failed and sends > the specified message to the report. When this step runs, the test fails. > *2 *or* micDone: *Sends a message to the report without affecting the > pass/fail status of the test. > *3 *or* micWarning: *Sends a warning message to the report, but does not > cause the test to stop running, and does not affect the pass/fail status of > the test. > *ReportStepName* > String > Name of the intended step in the report (object name). > *Details* > String > Description of the report event. The string will be displayed in the step > details frame in the report. > *Reporter* > N/A > *Not in use.* > Example > > The following examples use the *ReportEvent* method to report a failed > step. > > Reporter.ReportEvent 1, "Custom Step", "The user-defined step failed." > > or > > Reporter.ReportEvent micFail, "Custom Step", "The user-defined step > failed." > > > On Tue, Oct 14, 2008 at 8:32 PM, David Song <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I'd like to output some values to the result using VB Script in QuickTest, >> so I can view the information after testing. For example, >> >> ... >> >> If Err.number <> 0 Then >> >> StdOut "Got error number " & Err.Number & ":" >> >> StdOut Err.Description >> >> >> >> Is it possible? How can I achieve this? >> >> >> Thanks >> >> >> >> > > > -- > Ganesh Muralidharan > Wipro Technologies > Mob. : 9341023574 > > 'God Never Forgets' > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
