Skip to content

HTML Teststep

HTMLTeststep overview


Overview

An HTML teststep is a regular teststep in the teststep list. You need to provide an URL to load. The URL can be static or a variable value, as with SOAP teststeps or HTTP teststeps. You see an EnvironmentVariable In the address line of the WebView in above screenshot and a selected RunEnvironment APIStaging,

  • tab WebView contains the browser window with the content as it would appear in a Web browser like Safari
  • tab Assertions holds the javascript assertions to verify the expected content of the HTML content.
  • action share image creates an image of the webview content and lets you share it using the systems' sharing options
  • action share pdf creates a PDF document of the webview content and lets you share it using the systems'sharing options
  • action download image creates an image of the webview content and opens your default viewer for images
  • action download pdf creates a PDF document of the webview content and opens your default viewer for PDF documents
  • run teststep reloads the page and reevaluates the assertions
  • teststep result includes successful loading of the URL and the result of the assertions.

HTML Javascript Assertion

The screenshot below shows you a list of assertions for the current HTML teststep with one selected to show a sample assertion with expected return value.

HTMLTeststep assertions An assertion must return a true (=1) value to be successful.

  • add a new assertion
  • delete selected assertions
  • rename a selected assertion
  • move up selected assertions
  • move down selected assertions
  • toggle enabled enables or disables selected assertions
  • run selected assertion in the list order
  • result status displays the result for the current run (selection)