JDK-8201202 : JEP-JDK-8200758: Test Plan for JEP 343: Packaging Tool (Incubator)
  • Type: JEP Task
  • Component: tools
  • Sub-Component: jpackage
  • Priority: P3
  • Status: Resolved
  • Resolution: Delivered
  • Fix Versions: 13
  • Submitted: 2018-04-05
  • Updated: 2020-09-25
  • Resolved: 2019-01-07
Related Reports
Blocks :  
Cloners :  
Relates :  
Relates :  
Description
# Test Methodology

We will test jpackager with a mix of automated jtreg tests, partially automated tests and manual tests. Some of the manual tests could later become automated tests (either jtreg tests or SQE tests). Partially automated tests are jtreg based tests which will require user interaction to install and uninstall generated installers. Installer generation, install and uninstall verification is done automatically by running jtreg tests with special arguments.

# Test Inventory (optional)

# Automated tests

## Common
 - JPackagerHelpTest
 - JPackagerNoArgTest
 - JPackagerInvalidArgTest
 - JPackagerMissingArgumentsTest
 - JPackagerVersionTest

## Create App Image
 - JPackageCreateAppImageIconTest
 - JPackageCreateAppImageModuleTest
 - JPackageCreateAppImageAddLauncherModuleTest
 - JPackageCreateAppImageNoNameTest
 - JPackageCreateAppImageAddLauncherTest
 - JPackageCreateAppImageJavaOptionsModuleTest
 - JPackageCreateAppImageAddModulesTest
 - JPackageCreateAppImageJavaOptionsTest
 - JPackageCreateAppImageRuntimeModuleTest
 - JPackageCreateAppImageMainClassAttributeTest
 - JPackageCreateAppImageRuntimeTest
 - JPackageCreateAppImageArgumentsModuleTest
 - JPackageCreateAppImageMainClassErrorTest
 - JPackageCreateAppImageTempRootTest
 - JPackageCreateAppImageArgumentsTest
 - JPackageCreateAppImageModularJarTest
 - JPackageCreateAppImageTest
 - JPackageCreateAppImageModuleMainClassErrorTest
 - JPackageCreateAppImageVerboseTest
 - JPackageCreateAppImageErrorTest
 - JPackageCreateAppImageModulePathTest
 - JPackageCreateAppImageVersionTest

# Partially automated tests

## MSI Installer
 - JPackageCreateInstallerFileAssociationsInstallDirTest
 - JPackageCreateInstallerFileAssociationsTest
 - JPackageCreateInstallerLicenseTest
 - JPackageCreateInstallerTest
 - JPackageCreateInstallerWinDirChooserTest
 - JPackageCreateInstallerWinMenuGroupTest
 - JPackageCreateInstallerWinMenuTest
 - JPackageCreateInstallerWinPerUserInstallTest
 - JPackageCreateInstallerWinRegistryNameTest
 - JPackageCreateInstallerWinShortcutTest
 - JPackageCreateInstallerWinUpgradeUUIDTest

## EXE Installer
 - JPackageCreateInstallerFileAssociationsInstallDirTest
 - JPackageCreateInstallerFileAssociationsTest
 - JPackageCreateInstallerLicenseTest
 - JPackageCreateInstallerTest
 - JPackageCreateInstallerWinDirChooserTest
 - JPackageCreateInstallerWinMenuGroupTest
 - JPackageCreateInstallerWinMenuTest
 - JPackageCreateInstallerWinPerUserInstallTest
 - JPackageCreateInstallerWinRegistryNameTest
 - JPackageCreateInstallerWinShortcutTest
 - JPackageCreateInstallerWinUpgradeUUIDTest

## DMG Installer
 - JPackageCreateInstallerFileAssociationsTest
 - JPackageCreateInstallerInstallDirTest
 - JPackageCreateInstallerLicenseTest
 - JPackageCreateInstallerTest

## PKG Installer
 - JPackageCreateInstallerFileAssociationsTest
 - JPackageCreateInstallerInstallDirTest
 - JPackageCreateInstallerLicenseTest
 - JPackageCreateInstallerTest

## DEB Installer
 - JPackageCreateInstallerFileAssociationsTest
 - JPackageCreateInstallerInstallDirTest
 - JPackageCreateInstallerLicenseTest
 - JPackageCreateInstallerTest
 - JPackageCreateInstallerBundleNameTest
 - JPackageCreateInstallerPackageDepsTest
 - JPackageCreateInstallerMaintainerTest

## RPM Installer
 - JPackageCreateInstallerFileAssociationsTest
 - JPackageCreateInstallerInstallDirTest
 - JPackageCreateInstallerLicenseTest
 - JPackageCreateInstallerTest
 - JPackageCreateInstallerBundleNameTest
 - JPackageCreateInstallerPackageDepsTest
 - JPackageCreateInstallerLicenseTypeTest

# Test Configurations (optional)

## Windows
Wix, a third-party tool, is required to run MSI installer tests.
Inno Setup, a third-party tool, is required to run EXE installer tests.

## OS X
OS X should have required tools by default.

## Linux
Might require additional packages to build RPM or DEB.