Examples of TASError


Examples of com.flashdoctors.ant.testas.dom.TASError

          {
            for(TASMethod method : tClass.getTestMethods())
            {
              if(method.getStatus() == TASMethod.ERROR)
              {
                TASError error = method.getError();
                task.log("|   ERROR: " + tClass.getClassname()
                    + "." + method.getMethodname() + "()",Project.MSG_ERR);
                task.log("|     " + error.getType() + " " + error.getMessage(),Project.MSG_ERR);
              }
            }
          }
        }
      }
      if(suite.hasFailures())
      {
        for(TASClass tClass : suite.getTestClasses())
        {
          if(tClass.hasFailures())
          {
            for(TASMethod method : tClass.getTestMethods())
            {
              if(method.getStatus() == TASMethod.FAILURE)
              {
                TASError error = method.getError();
                {
                  task.log("|   FAILURE: " + tClass.getClassname()
                      + "." + method.getMethodname() + "()",Project.MSG_WARN);
                  task.log("|     " + error.getAssert().getType() + "[" + error.getIndex() + "] " + error.getAssert().getReason(),Project.MSG_WARN);
                }
              }
            }
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.