Error¶
Reason¶
The Squish Platform Wrapper must be specified in QC Test Lab > Execution Grid > Test Instance Details (for each test). Without the Wrapper property, the AUT will launch; however the script will fail. The resulting error is: RuntimeError: startApplication() failed
.
Solution¶
froglogic is currently working on an enhancement to specify the Wrapper property upon test import using the qcimporter utility.
Workarounds¶
Set the wrapper inside the test script via the Squish API function testSettings.setWrappersForApplication().
setWrappersForApplication options: "Qt", "Web", "Java", "Mac", "Windows", "XView", "Tk", "iOS", "Android"
Supplemental documentation: testSettings.setWrappersForApplication-function
Create the file "squish_defaults.ini" and make it either available by setting the environment variable QC_SQUISH_PLUGIN_DEFAULTS before starting the QC client e.g.
or by placing it into a default path. The plugin will look on the QC client at the following paths:
The format of the
squish_defaults.ini
file is very simple, each line consists of a key and a value separated by an equals sign. Valid keys are:An example can look like this:
Manual Workaround: After specifying a Squish test case to run in the Test Lab Execution Grid, specify the wrapper using the following steps:
Right-click a Squish Test Case in the Execution Grid and select Test Instance Details. The Test Instance Details window appears.
Select Execution Settings.
Select the Automated tab.
Enter the applicable wrapper in the Wrapper to use box.
- Wrapper options: Qt, Web, Java, Mac, Windows, XView, Tk, iOS, Android
Click OK.