Is there any way find number of failures during QTP run.
Failurs in the case reporter.reportevent micfail,... not run time errors
The only way is call your function which does reporting using reporter.reportevent. But this still won't include any failures that QTP internally raises
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Declare a variable or even create a parameter in global sheet with value 0
Update this parameter or variable by 1 in each place where u have reporter.reportevent mic fail
I mean code it like
end of the run update this value to some where u like
so that each time ur test fails at reporter event u will get the count
i think thats what ur expecting
For internal QTP failures, cant the error object be used to capture them in the same function?
-- Here to Learn and share ---