Class AbstractSessionBuilder
java.lang.Object
com.install4j.api.test.session.AbstractSessionBuilder
- Direct Known Subclasses:
InstallationDirectorySessionBuilder, InstallerSessionBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAdditional command-line arguments passed to the installer application.debug(boolean debug) Switch the session to in-process debug mode.Redirect install4j's runtime logger output to the given file.abstract Sessionstart()Start the installer application and return the typed session handle.systemProperty(String key, String value) Set a system property on the test JVM before the installer starts.Default timeout applied to every wait operation.workingDirectory(File dir) Working directory for the running installer application.
-
Method Details
-
debug
Switch the session to in-process debug mode. By default the test API spawns the produced installer media as a real subprocess (with its bundled JRE, native launcher, and the full extraction code path) and drives it over IPC. In debug mode it runs the installer in the test JVM directly, which is faster but requires aninstall4jc -gdebug build to exist alongside the media file. Use debug mode locally during development; leave it off for CI runs that should exercise the real installer. -
timeout
Default timeout applied to every wait operation. The default is 3 minutes. Override per session for longer installations. -
arg
Additional command-line arguments passed to the installer application. -
systemProperty
Set a system property on the test JVM before the installer starts. -
workingDirectory
Working directory for the running installer application. -
logFile
Redirect install4j's runtime logger output to the given file. -
start
Start the installer application and return the typed session handle.
-