This topic explains how specific browser extensions and configurations can be applied to SOAtest's web scenario recording and playback.
In this section:
To use specific Chrome plugins or settings for web functional tests, you need to configure Chrome to use SOAtest's user-data directory for web scenario recording and playback. The process is slightly different for each.
Launch Chrome with the following command line:
<CHROME_INSTALL_DIR> --user-data-dir="<SOATEST_INSTALL_DIR>\plugins\com.parasoft.ptest.libs.web_<VERSION>\root\browsers\chrome\userDataDir" |
Launch Chrome with the following command line:
<CHROME_INSTALL_DIR> -J-Dcom.parasoft.browser.BrowserPropertyOptions.CHROME_ARGUMENTS="--user-data-dir='<SOATEST_INSTALL_DIR>\plugins\com.parasoft.ptest.libs.web_<VERSION>\root\browsers\chrome\userDataDir'" |
Alternatively, you can use an Extension tool with a script to set the system property. An example using Groovy is shown below:
def setUserDataDir(input, context) { System.setProperty("com.parasoft.browser.BrowserPropertyOptions.CHROME_ARGUMENTS", "--user-data-dir="+System.getProperty("install.root")+"/browsers/chrome/userDataDir"); } |
Before you can install extensions, you first need to open the appropriate SOAtest Firefox profile. There are two different ways to open this profile:
To directly open the SOAtest Firefox profile:
<Firefox_Installation_Directory> -ProfileManager
You can now install Firefox extensions and configure settings in the normal manner.
With this method, extensions must be installed and configured during playback—not during recording.
When you play a web scenario in SOAtest, SOAtest will automatically open the appropriate Firefox profile. Once that profile opens, you can install Firefox extensions and configure settings in the normal manner.