Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use the -help command line switch:

Code Block
jtestcli.exe -help

What if Jtest is not available in the UI when installed in Eclipse that runs on Java 11 or higher?

If your Eclipse is configured to use Java 11 or higher, it may require additional dependencies to be downloaded from software update sites. Ensure that Eclipse is configured to automatically contact all update sites when you install Jtest.
If Jtest is not available in your IDE after installation, you may need to install the Apache Geronimo Activation Plug-In. The current builds provided by the Eclipse Orbit Project are available at: https://download.eclipse.org/tools/orbit/downloads:

  1. Select the build appropriate for your Eclipse version.
  2. Copy the URL of the Orbit build repository.
  3. Select Help> Install New Software from the Eclipse menu.
  4. Click Add and paste the URL to specify the location of the Orbit build repository.
  5. Expand All Orbit Bundles.
  6. Select Apache Geronimo Activation Plug-In.


How can I prevent my machine ID from floating?

...

(error) jvmArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'ALL-MODULE-PATH',
'--add-reads', "$moduleName=junit",
'--patch-module', "$moduleName=" + files(sourceSets.test.java.outputDir).asPath

]

(tick) jvmArgs += [
'--module-path', classpath.asPath,
'--add-modules', 'ALL-MODULE-PATH',
'--add-reads', "$moduleName=junit",
'--patch-module', "$moduleName=" + files(sourceSets.test.java.outputDir).asPath

]

Anchor
enable_transitive_dependencies
enable_transitive_dependencies
What if Jtest cannot resolve required dependencies while running analysis or executing tests with Maven?

To ensure that all of the required dependencies are resolved, you may need to enable resolving transitive dependencies by adding the following option to your command line:

Code Block
-Djtest.resolve.transitive=true

Why are the issue tracking tags not available in the report after I run Jtest with Maven?

Your report may not include the issue tracking tags you have configured (see Associating Tests with Development Artifacts) if Jtest is unable to resolve one or more required dependencies. To prevent this, see What if Jtest cannot resolve required dependencies while running analysis or executing tests with Maven?.

Why does test execution fail when the path to UTA files exceeds 250 characters?

...

How can I work with Jtest via proxy?

Typically, if you connect through a proxy server, you need to configure the connection by passing protocol-specific system properties to the JVM – using the -D command line option.

To work with Jtest, ensure that the system properties for the HTTPS protocol (HTTPS protocol are configured. At a minimum, you must configure https.proxySet=true, https.proxyHost=[hostname], and https.proxyPort=[port number]. If your proxy server requires authentication, you can configure your credentials with the https.proxyUser and https.proxyPassword properties.

) are configured. Your command line may resemble the following:

Code Block
languagetext
java -Dhttps.proxySet=true -Dhttps.proxyHost=myserver.example.com -Dhttps.proxyPort=8080 -Dhttps.proxyUser=user1 -Dhttps.proxyPassword=MyPassword

In addition, you can configure the https.nonProxyHosts property to specify hosts where connection via proxy is not required.

(info) If you use Jtest on desktop with Eclipse or IntelliJ IDEA, the proxy settings are automatically detected and do not need to be configured in the command line.

What if the static analysis performance decreased after Jtest was updated to a never version?

The new version of Jtest may require more memory to run static analysis. You can increase memory allocation by configuring the -Xmx option in the [INSTALL_DIR]/etc/jtestcli.jvm configuration file.