This topic provides an overview of SOAtest’s web functional (cross-browser) testing capabilities. In this section:
Web Testing Introduction
Organizations often abandon automated web testing in favor of manual testing due to the false positives and maintenance issues associated with automated tests. SOAtest removes the barriers to automated web testing by isolating and testing individual application components for correct functionality across multiple browsers without requiring scripts. Dynamic data can be stubbed out with constant data to reduce test case noise. Validations can be performed at the page object level as well as the HTTP message level. SOAtest also verifies the client-side JavaScript engine under expected and unexpected conditions through asynchronous HTTP message stubbing.
Browser Recording and Cross-Browser Execution
The first step in web testing is browser recording, which is described in Browser Recording and Playback.
Once created, tests can be executed as described in Executing Functional Tests.
Extending and Reusing Web Scenarios
You can rapidly extend your recorded web scenarios to meet your goals. The following examples are common practices for extending and reusing web scenarios:
- Configuring cross-browser testing; see Configuring Browser Playback Options.
- Configuring user actions; see Modifying User Actions Simulated by a Web Scenario.
- Configuring validations; see Validating or Storing Values.
- Configuring wait conditions; see Configuring Wait Conditions.
- Configuring actions that occur before and after test execution; see Adding Set-Up and Tear-Down Tests.
- Configuring execution options, such as test sequence, test relationship, and test flow logic; see Configuring Test Suite Properties - Test Flow Logic, Variables, etc..
- End-to-end testing of scenarios that extend through web interfaces, backend services, ESBs, databases, and everything in between; see End-to-end Test Scenarios
- Load testing; see Load Test.
- Penetration testing; see Penetration Testing.
- Data-driven testing; see Parameterizing Tests with Data Sources, Variables, or Values from Other Tests.
- Using stubs and environments to configure a predictable and accessible test bed; see Configuring Testing in Different Environments.
Browser Support
The following browsers are supported for playback: You must have the correct MicrosoftWebDriver executable for your version of Edge. If you receive an "Unable to launch Microsoft Edge" error message, you may need to download the driver. Visit https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver for additional information. https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ To enable support for the Chromium-based Edge browser, save the driver to the appropriate directory for your OS: SOAtest/Virtualize cannot launch Edge when the SOAtest/Virtualize process is running with privileged access. Take the following actions to resolve this issue: Non-Windows Home edition: Windows Home edition:Firefox Notes
~/snap/firefox/common/.parasoft/SOAtest/firefox-profile-root
. You may need to clean up these temporary profiles periodically if SOAtest and/or Firefox do not close cleanly.Chrome Notes
google-chrome
(for example, /opt/google/chrome/google-chrome
), not chrome
. On Windows, the path is typically C:\Users\usernane\AppData\Local\Google\Chrome\Application\chrome.exe
. On Mac, it’s typically /Applications/Google Chrome.app
.XMLHttpRequest
object. It does not detect asynchronous requests from hidden IFrame
calls. If needed, you can add such asynchronous request tests manually.Microsoft Edge Notes
Enabling Support for the Chromium-based Microsoft Edge Browser
The msedgedriver.exe WebDriver necessary for playback on the Chromium-based Edge browser is not shipped with SOAtest. You can download the driver from the following website:<SOATEST_INSTALL>\plugins\com.parasoft.ptest.libs.web_<version>\root\browsers\webdriver\edge\windows\x86
<SOATEST_INSTALL>\plugins\com.parasoft.ptest.libs.web_<version>\root\browsers\webdriver\edge\linux\x86_64
<SOATEST_INSTALL>\plugins\com.parasoft.ptest.libs.web_<version>\root\browsers\webdriver\edge\mac\x86_64
Troubleshooting Playback in Microsoft Edge
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
1
.