|
When you first record a scenario, the authentication information specified in the Security Preferences are used first. If you want to record a scenario on a web application that requires Kerberos authentication, you need to specify the Kerberos authentication credentials in the Security Preferences before recording the scenario. For details on how to do this, see
. |
Right-click your project and choose Add New>
Test (.tst) File... |
You can also click the Add Recorded Scenarios button in the toolbar. |
Choose Web> Record web scenario and click Next.
Choose one of the following options to specify a starting point for the web scenario and click Next.
Record starting from a referenced scenario allows | Choose this option to start recording a new web scenario that builds on an existing (reusable) web scenario. For example, you can record one scenario that captures the steps to log into your application, and then reference this when creating new scenarios. This way, you don’t need to record the login steps every time that you want to create a new scenario that requires a log in. If the login steps change, you just need to update the one login scenario. All related scenarios will automatically use the updated information.
| ||
---|---|---|---|
Record new web scenario | Choose this option to record a new scenario from scratch. |
Complete the next Record Web Scenario wizard page.
|
The controls in this page allow you to specify whether environment variables automatically get added to recorded scenarios.
For functional tests, they get used in the URL of the first navigate test. For asynchronous request tests, they get used in the endpoint and the HTTP header "Referer" of each Messaging Client that gets generated for each asynchronous request. |
To ensure that recording works properly, wait until each page has fully loaded before performing an action. For example, if you click on a link and this causes a page load, you should wait for the page to finish loading so that
SOAtest |
can detect that a page load occurred.
When beforeUnload dialogs open during recording, SOAtest will always record "Accept Script Dialog." However, if you want the test to cancel the dialog instead, then you need to modify the recorded test case to use "Dismiss Script Dialog" instead. |
Test Suite |
will appear in the
Test Case Explorer |
.
This new Test Suite will contain different tests depending on your selections from the wizard’s Test Type field. For more information, see the following subsections. |
Tips
|