core/src/main/java/org/testng/reporters/FailedReporter.java
private static Map<String, String> findMethodLocalParameters(
      XmlTest srcXmlTest, ITestNGMethod method) {
    Class<?> clazz = method.getRealClass();

    for (XmlClass c : srcXmlTest.getClasses()) {
      if (clazz == c.getSupportClass()) {
        for (XmlInclude xmlInclude : c.getIncludedMethods()) {
          if (xmlInclude.getName().equals(method.getMethodName())) {
            return xmlInclude.getLocalParameters();
          }
        }
      }
    }

    return Collections.emptyMap();
  }
/**
   * Get local parameters of one include method from origin test xml.
   *
   * @param srcXmlTest The {@link XmlTest} object that represents the source.
   * @param method the method we want to find its parameters
   * @return local parameters belong to one test method.
   */
Get local parameters of one include method from origin test xml.
@param srcXmlTest The  XmlTest object that represents the source.
@param method the method we want to find its parameters
@return local parameters belong to one test method.
Get local parameters of one include method from origin test xml . @param srcXmlTest The XmlTest object that represents the source . @param method the method we want to find its parameters @return local parameters belong to one test method .
private static Map<String, String> findMethodLocalParameters(
      XmlTest srcXmlTest, ITestNGMethod method) {
    Class<?> clazz = method.getRealClass();
    for (XmlClass c : srcXmlTest.getClasses()) {
      if (clazz == c.getSupportClass()) {
        for (XmlInclude xmlInclude : c.getIncludedMethods()) {
          if (xmlInclude.getName().equals(method.getMethodName())) {
            return xmlInclude.getLocalParameters();
          }
        }
      }
    }
    return Collections.emptyMap();
  }
private static Map < String , String > findMethodLocalParameters ( XmlTest srcXmlTest , ITestNGMethod method ) { Class < ? > clazz = method . getRealClass ( ) ; for ( XmlClass c : srcXmlTest . getClasses ( ) ) { if ( clazz == c . getSupportClass ( ) ) { for ( XmlInclude xmlInclude : c . getIncludedMethods ( ) ) { if ( xmlInclude . getName ( ) . equals ( method . getMethodName ( ) ) ) { return xmlInclude . getLocalParameters ( ) ; } } } } return Collections . emptyMap ( ) ; }
Get local parameters of one include method from origin test xml.
Get local parameters of one include method from origin test xml .