public class RemoteTestNG
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEBUG_PORT |
static java.lang.String |
DEBUG_SUITE_DIRECTORY |
static java.lang.String |
DEBUG_SUITE_FILE |
private static boolean |
m_debug |
static java.lang.String |
PROPERTY_DEBUG |
static java.lang.String |
PROPERTY_VERBOSE |
Constructor and Description |
---|
RemoteTestNG() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpRevision() |
private static Version |
getTestNGVersion()
Get the version of TestNG on classpath.
|
private static java.lang.String |
getVersionFromClass()
use reflection to read org.testng.internal.Version.VERSION for reason of:
1.
|
private static void |
initAndRun(IRemoteTestNG remoteTestNg,
java.lang.String[] args,
org.testng.CommandLineArgs cla,
RemoteArgs ra) |
static boolean |
isDebug() |
static boolean |
isVerbose() |
static void |
main(java.lang.String[] args) |
private static void |
p(java.lang.String s) |
private static Version |
parseVersionFromManifest()
Parse the version from MANIFEST.MF
|
private static Version |
parseVersionFromPom()
Parse the version from pom.properties.
|
(package private) static Version |
toVersion(java.lang.String strVer) |
public static final java.lang.String DEBUG_PORT
public static final java.lang.String DEBUG_SUITE_FILE
public static final java.lang.String DEBUG_SUITE_DIRECTORY
public static final java.lang.String PROPERTY_DEBUG
public static final java.lang.String PROPERTY_VERBOSE
private static boolean m_debug
public static void main(java.lang.String[] args) throws com.beust.jcommander.ParameterException
com.beust.jcommander.ParameterException
private static Version getTestNGVersion()
java.lang.RuntimeException
- if can't recognize the TestNG version on classpath.private static java.lang.String getVersionFromClass() throws java.lang.Exception
java.lang.Exception
private static Version parseVersionFromPom() throws java.lang.Exception
for testng version < 6.6, since ClassNotFound: org.testng.internal.Version, parse the version from 'META-INF/maven/org.testng/testng/pom.properties' of testng jar on classpath
null
if not found.java.lang.Exception
private static Version parseVersionFromManifest() throws java.lang.Exception
in PR https://github.com/cbeust/testng/pull/1124, `public static final String VERSION = "DEV-SNAPSHOT";`,
method #parseVersionFromClass()
can't get the exact version when launch the tests of TestNG itself in Eclipse,
the workaround here is to parse the MANIFEST.MF to get the version.
null
if not found.java.lang.Exception
private static void initAndRun(IRemoteTestNG remoteTestNg, java.lang.String[] args, org.testng.CommandLineArgs cla, RemoteArgs ra)
private static void p(java.lang.String s)
static Version toVersion(java.lang.String strVer)
public static boolean isVerbose()
public static boolean isDebug()
public static void dumpRevision()