Package test.issue107

Source Code of test.issue107.MySuiteListener

package test.issue107;

import org.testng.ISuite;
import org.testng.ISuiteListener;
import org.testng.xml.XmlSuite;

import java.util.Map;

public class MySuiteListener implements ISuiteListener {
  public void onFinish(ISuite suite) {
  }

  public void onStart(ISuite suite) {
    final XmlSuite xmlSuite = suite.getXmlSuite();
    final Map<String, String> parameters = xmlSuite.getParameters();
    parameters.put(TestTestngCounter.PARAMETER_NAME, TestTestngCounter.EXPECTED_VALUE);
    xmlSuite.setParameters(parameters);
  }
}
TOP

Related Classes of test.issue107.MySuiteListener

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.