hi,
instead of this
[quote:y3lim586]try{
Assert.assertTrue(false,"B failed");
}catch(Throwable t)
{
ErrorUtil.addVerificationFailure(t);
}
[/quote:y3lim586]
you have to write your own logic something like this
[quote:y3lim586]try{
Assert.assertTrue(false,"B failed");
}catch(Throwable t)
{
ErrorUtil.addVerificationFailure(t);
}
if(error==some specific error){
Assert.assertTrue(false,"B failed");
}
[/quote:y3lim586]
Hi,
The below code of yours will not give all errors. What I want that once my all test complete running then the information in xls file i.e Hashtable and in the reprot which generated automatically (XLST) should be same.
But it will never happen because xls file or Hashtable will have information about errors only if I use "ErrorUtil.addVerificationFailure(t);" but everywhere it is not possible to use ErrorUtil.addVerificationFailure(t);
You can see your below example as well that once u used "ErrorUtil.addVerificationFailure(t);" and on next time u used Assert only without try catch
I want 1 pattern which we should follow so that I will not miss any errors on all the reports which gets generated
try{
Assert.assertTrue(false,"B failed");
}catch(Throwable t)
{
ErrorUtil.addVerificationFailure(t);
}
if(error==some specific error){
Assert.assertTrue(false,"B failed");
}
you say you want to add errors to reports.
you have to do that with "ErrorUtil.addVerificationFailure(t);" there is no other way.
and its not "xls file" its "xsl file"
xls = microsoft excel
xsl = reports