Package org.testng.remote.strprotocol

Examples of org.testng.remote.strprotocol.IRemoteTestListener


      public void onFinish(SuiteMessage suiteMessage) {
      }

    };

    IRemoteTestListener l2 = new IRemoteTestListener() {

      @Override
      public void onStart(TestMessage tm) {
      }
View Full Code Here


  }

  @Override
  protected void notifyTestEvents(final TestMessage testMessage) {
    for(int i = 0; i < m_testListeners.length; i++) {
      final IRemoteTestListener listener = m_testListeners[i];
      Platform.run(new ListenerSafeRunnable() {
        public void run() {
          if(testMessage.isMessageOnStart()) {
            listener.onStart(testMessage);
          }
          else {
            listener.onFinish(testMessage);
          }
        }
      });
    }
  }
View Full Code Here

  }

  @Override
  protected void notifyResultEvents(final TestResultMessage testResultMessage) {
    for(int i = 0; i < m_testListeners.length; i++) {
      final IRemoteTestListener listener = m_testListeners[i];
      Platform.run(new ListenerSafeRunnable() {
        public void run() {
          switch(testResultMessage.getResult()) {
            case MessageHelper.TEST_STARTED:
              listener.onTestStart(testResultMessage);
              break;
            case MessageHelper.PASSED_TEST:
              listener.onTestSuccess(testResultMessage);
              break;
            case MessageHelper.FAILED_TEST:
              listener.onTestFailure(testResultMessage);
              break;
            case MessageHelper.SKIPPED_TEST:
              listener.onTestSkipped(testResultMessage);
              break;
            case MessageHelper.FAILED_ON_PERCENTAGE_TEST:
              listener.onTestFailedButWithinSuccessPercentage(testResultMessage);
              break;
          }
        }
      });
    }
View Full Code Here

      public void onFinish(SuiteMessage suiteMessage) {
      }

    };

    IRemoteTestListener l2 = new IRemoteTestListener() {

      @Override
      public void onStart(TestMessage tm) {
      }
View Full Code Here

TOP

Related Classes of org.testng.remote.strprotocol.IRemoteTestListener

Copyright © 2018 www.massapicom. 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.