Working with Multiple AUTs and AUT versions

Last edited on

Problem

When working with Java, and a 32 bit and 64 bit Squish Package and AUT on the same computer, the last Squish Package installed is the only one that works.

Reason

When running setup, Squish stores the selected JRE path in the server.ini (Windows: “%appdata%\froglogic\Squish\ver1”, Unix: “$HOME/.squish/ver1”) file. Squish must be configured for the exact JRE that the AUT is using. When multiple JRE paths are required for multiple versions of an AUT or different AUTs on the same computer, then a workaround must be used.

Resolution

Resolution Summary

Re-running the setup for each AUT or AUT version can be performed to update the proper JRE path information in the server.ini file. As this is not a desirable solution, the alternate approach discussed below is recommended:

  1. Set the SQUISH_USER_SETTINGS_DIR Environment Variable to the proper JRE path in the server.ini file prior to launching the Squish IDE

  2. Specify the proper JRE path for the AUT to use when launching the AUT.

Resolution Details

Launching Squish

  1. Install the Squish 32 bit Java package

  2. Go to %appdata%\froglogic\Squish\

  3. Make a copy of the ver1 folder, and rename to ver1_java_32bit

  4. Install the Squish 64 bit Java package

  5. Go to %appdata%\froglogic\Squish\

  6. Make a copy of the ver1 folder, and rename to ver1_java_64bit

  7. Go to the Squish 32 bit Java package bin directory (where the Squish IDE executable resides)

  8. Create a batch file called startSquish_32bit.bat, containing the following:

    @echo off
    SQUISH_USER_SETTINGS_DIR = %appdata%\froglogic\Squish\ver1_32bit
    squishide.exe
  9. Go to the Squish 64 bit Java package bin directory (where the Squish IDE executable resides)

  10. Create a batch file called startSquish_64bit.bat, containing the following:

    @echo off
    SQUISH_USER_SETTINGS_DIR = %appdata%\froglogic\Squish\ver1_64bit
    squishide.exe

Launching the AUT using the correct JRE path

  1. Go to the install location of your 32 bit Java AUT

  2. Create a batch file called startAUT32

  3. Enter the path to the correct java version, followed by the name of your 32 bit Java AUT. For example: jre7\bin\java AddressBook

  4. Go to the install location of your 64 bit Java AUT

  5. Create a batch file called startAUT64

  6. Enter the path to the correct java version, followed by the name of your 64 bit Java AUT. For example: jre7\bin\java AddressBook

Specifying the AUT in Squish

Within each Squish package, in the Test Suite Settings, specify the batch file that calls the AUT instead of the AUT directly as the AUT for the Test Suite.