Running tests in the private or incognito mode
When you play back Web UI tests, if the user profile that is stored in the browser prevents the test from running without intervention, then you can use the private or incognito mode. Also, when you do not want cookies, caches, and user information to affect your test play back, you can choose the private mode.
Before you begin
You must have completed the following tasks:
- Recorded a Web UI test. See Recording a Web UI test.
- Verified that the web browser is supported for playing back tests. See System Requirements.
About this task
You can configure a single Web UI test, compound test with multiple Web UI tests, or an AFT Suite to run in the private mode on any of the following web browsers:
- Google Chrome
- Microsoft Edge
- Mozilla Firefox
- Opera
To run tests from Rational® Functional Tester or a remote agent computer in the private mode, you must select the web browser to be used for the playback, and then select the Private Mode as a preference for the test playback.
To run an AFT Suite in the private mode, you must have entered the web browser to be used for the playback and then enter the private attribute with its value set to true in the AFT XML file of the recorded test.
For example, the entry in the AFT XML file can be as follows:
<browser name=”chrome” private=”true”/>
- To ensure that all the Web UI tests in an AFT Suite run in the private mode, you must enter the private attribute with its value set to true in the AFT XML file. The tests run in the private mode irrespective of the preferences configured for the tests in Rational® Functional Tester. The Web UI tests also run in the private mode if you select the Run Distributed Tests option for the run.
- If you entered the private attribute with its value set to false in the AFT XML file of the AFT Suite, then none of the Web UI tests in the AFT Suite run in the private mode.
Procedure
- Perform any of the following actions:
-
Start Rational® Functional Tester and perform
the following steps:
The test is run in the private mode by using the selected browser.
-
Open the AFT XML file for editing, and then perform the
following steps:
The test is run in the private mode by using the selected browser.
Results
You have run a test in the private mode of a web browser either from Rational® Functional Tester or from a remote agent.
What to do next
- View the test reports. See Running a Web UI test.
- Run a Web UI test on multiple browsers. See Running a single Web UI test on multiple browsers and devices simultaneously.
- Run multiple Web UI tests in a compound test. See Running multiple Web UI and compound tests simultaneously.
- Run an AFT Suite. See Playing back an Accelerated Functional Test asset.
- Run an AFT Suite by using the Distributed Tests option. See Accelerating the test effort with distributed testing.