Versions Compared

Key

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

...

  1. Right-click the project from the previous exercises, then choose Add New> Test (.tst) File from the shortcut menu.



  2. Enter a name for the file, then click Next.
  3. Select Web> Record web scenario and click Next.



  4. In the first Record Web Scenario wizard page, ensure that Record new web scenario is selected, then click Next.



  5. Complete the next  Record Web Scenario wizard page as follows:
    1. Enter Web Functional Testing  in the Test Suite Name field.
    2. Enter localhost:8080/parabank in the Start Recording From field.

      Info

      Internet Explorer Note

      If you will be using Internet Explorer to record/playback this test, use the name of the local machine instead of localhost—here and throughout this tutorial lesson.
    3. Ensure that the following options are checked, and the others are not:
      • Generate Functional Test
      • Generate Asynchronous Request Tests.



    4. Click the Finish button. The test will begin, and a browser window will open.
  6. Within the browser window that opens, perform the following actions:
    1. Type john in the Username field.
    2. Type demo in the Password field.
    3. Click Log In.



    4. Click the first account number listed in the Accounts Overview page (12345).



    5. Click Log Out.



    6. Close the browser to end recording. In the Test Case Explorer view, SOAtest creates a new .tst file and a test suite that contains the scenario that you just recorded.
  7. Expand the new test suite node in the Test Case Explorer to view the tests created for each user action taken during the recording.

...

  1. Expand the Scenario: Web Functional Testing branch to view the recorded actions related to clicking the account number.
  2. Double-click the Test 3: Click “12345" node to open the test configuration panel.
  3. Note that the Pre-Action Browser Contents tab shows what the page looked like before the test action (clicking ‘12345’) was performed. It uses a blue border to highlight the user action for actionfor this test.



  4. In the test configuration panel, open the User Action tab.
  5. Under the Element Locator section, change Attribute value from Fixed to Parameterized.
  6. Select Account Number from the menu that appears to the immediate right.



  7. Click Save to save the changes.
  8. Run the test. It will now click on the <a> element that has been parameterized with the account number entered in the data source.

...