...
- Right-click the project from the previous exercises and choose Add New > Test (.tst) File.
- Enter a name for the file (for example,
Web Static Analysis
) and click Next. - Choose Web > Scanweb application and click Next.
- Complete the Scan HTTP/FTP/Local Resources page as follows:
- Enter
localhost:8080/parabank
in the Start URL field. SOAtest will add this URL to the Allowable/Restricted URLs table. - Enable Limit loading depth and enter
3
in the field to the immediate right. This depth setting determines the number of clicks (links) deep to load the site. For example, a loading depth of 3 tells SOAtest to load only pages that can be reached in two clicks from the start URL (Note: redirect is also considered to be 1 depth). - In the Form Options section at the bottom of the panel, set the options as follows:
- Scan Forms With Default Inputs: Disabled
- Fill Active Inputs Manually: Enabled
Click Finish.
A new .tst file and a test suite with one test will be added to the Test Case Explorer.
- Enter
- Right-click the Test 1: Scanning Tool node and choose Test Configurations.
- In the Test Configuration dialog that appears, choose User-defined in the left panel and click New under the panel.
- In the new configuration panel that appears to the right, change the Name field to
ScanTesting Configuration
. - Click the Static tab and enable Enable Static Analysis.
- In the list of rules below in the same tab, enable the following options:
- Accessibility - WCAG 2.0 2 [ACC-WCAG2]
- Browser Compatibility [BC]
- Coding Convention [CC]
- Check Links [CLINK]
- Click Apply to save the configuration, then click Close.
- Click the scan testing test suite in the Test Case Explorer.
- Go to Run Tests > Test Using > User-Defined > ScanTesting Configuration.
While scanning the specified site, SOAtest will open a Form dialog box each time it loads a form that allows user input. In this example, a Form input dialog box will open for the form1 form. - Complete the Form:Form1 dialog as follows:
- Select Fixed from the Text: "username" dropdown, then enter
john
in the corresponding text field. - Select Fixed from the Password: "password" dropdown, then enter
demo
in the corresponding text field. This tells SOAtest how to populate this particular form's input elements. - Click Add.
SOAtest will then reopen the same form dialog box so you can enter additional inputs if desired. - Click Skip All to indicate that you do not want to enter any more inputs for forms in this site.
- Select Fixed from the Text: "username" dropdown, then enter
...