This topic provides an overview of SOAtest’s web functional (cross-browser) testing capabilities. In this section:
Web Testing Introduction
Web interface testing can be difficult to automate. Teams often abandon automated testing in favor of manual testing because automated tests produce many false positives—or because so much time and effort is required to maintain the test suites.
SOAtest is designed to reduce these obstacles. It isolates and tests 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.
Selenium WebDriver Engine and Parasoft Native Driver (Legacy) Engine
Since version 9.8, the Selenium WebDriver is available for playback of web scenarios. The Parasoft Native Driver (legacy) engine is still available as well.
For details, see About the Selenium WebDriver Engine.
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 Configuring User Actions (Navigation, Delays, etc.)
- 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; End-to-End Test Scenarios
- Load testing; see Load Testing
- Penetration testing; see Penetration Testing
- Runtime error detection; see Performing Runtime Error Detection
- 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 with the Selenium WebDriver engine: The following browsers are supported for recording and playback with the Parasoft Native Driver (legacy) engine: You can also perform mobile interface testing through a desktop browser as described in Mobile Interface Testing. Before using Internet Explorer, see Configuring Internet Explorer Settings. With Internet Explorer 9 or 10, we recommend using addEventListener() when registering event listeners. However, if you are using attachEvent(), which is an IE-specific event model, you will need to manually update The first time that Internet Explorer 9 is launched, it will open a warning dialog that states "The Recorder Registrar is now ready to use." You need to click Enable to ensure that your web scenarios record and play back correctly. For best results, you should close and re-open the browser after clicking Enable. Safari support is available for playback using the Selenium WebDriver engine. • For a list of associated limitations, see Safari-Specific Issues.Firefox Notes
Internet Explorer Notes
<Virtualize Directory>\eclipse\plugins\com.parasoft.xtest.libs.web_<version>\root\browsers\ie\HTMLUtil.js
as follows to force Virtualize to emulate JavaScript events using the IE-specific model. You need to make the following changes in this file:"ext.HTMLUtil.preferLegacyEventModel = false;"
to"ext.HTMLUtil.preferLegacyEventModel = true;"
Chrome Notes
google-chrome
(e.g. /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.Safari Notes