Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2024.1

...

  1. Right-click the project from the previous exercises and choose Add New > Test (.tst) File.
  2. Enter a name for the file (for example, Web Static Analysis) and click Next.
  3. Choose Web > Scanweb application and click Next.
  4. Complete the Scan HTTP/FTP/Local Resources page as follows:
    1. Enter localhost:8080/parabank in the Start URL field. SOAtest will add this URL to the Allowable/Restricted URLs table.
    2. 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).
    3. 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

    4. Click Finish.
      A new .tst file and a test suite with one test will be added to the Test Case Explorer.

  5. Right-click the Test 1: Scanning Tool node and choose Test Configurations.
  6. In the Test Configuration dialog that appears, choose User-defined in the left panel and click New under the panel.
  7. In the new configuration panel that appears to the right, change the Name field to ScanTesting Configuration.
  8. Click the Static tab and enable Enable Static Analysis.
  9. 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]

  10. Click Apply to save the configuration, then click Close.
  11. Click the scan testing test suite in the Test Case Explorer.
  12. 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.
  13. Complete the Form:Form1 dialog as follows:
    1. Select Fixed from the Text: "username" dropdown, then enter john in the corresponding text field.
    2. 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.
    3. Click Add.

      SOAtest will then reopen the same form dialog box so you can enter additional inputs if desired.
    4. Click Skip All to indicate that you do not want to enter any more inputs for forms in this site.

...