Log javascript dialog messages in reports

Javascript dialog messages can be logged in reports. This document describes the procedure to log javascript dialog messages in reports.

Log javascript popup with expectation in reports

To log javascript popup messages with expectation in reports
  1. Click on Configure link from Sahi Dashboard, and open userdata.properties.
  2. Copy and paste the below statements and enter the appropriate values.
    log.js.alert.popups.color.with.expectation=CUSTOM3
    log.js.confirmation.popups.color.with.expectation=CUSTOM3
    log.js.prompt.popups.color.with.expectation=CUSTOM3
    log.js.print.popups.color.with.expectation=CUSTOM3
    infoNote that these values are indicative. You need to modify these values as appropriate.
    info
    • These properties can take CUSTOM, CUSTOM1, CUSTOM2, CUSTOM3, CUSTOM4 or CUSTOM5, ERROR or FAILURE as values. Default is blank(no background color)
    • This controls the background color of popup message in reports when expectation is set.
    • If value is not provided for the above properties javascript popup messages will not be logged in reports

Log javascript popup without expectation in reports

To log javascript popup messages without expectation in reports
  1. Click on Configure link from Sahi Dashboard, and open userdata.properties.
  2. Copy and paste the below statements and enter the appropriate values.
    log.js.alert.popups.color.without.expectation=FAILURE
    log.js.confirmation.popups.color.without.expectation=FAILURE
    log.js.prompt.popups.color.without.expectation=FAILURE
    log.js.print.popups.color.without.expectation=FAILURE
    infoNote that these values are indicative. You need to modify these values as appropriate.
    info
    • These properties can take CUSTOM, CUSTOM1, CUSTOM2, CUSTOM3, CUSTOM4 or CUSTOM5, ERROR or FAILURE as values. Default is blank(no background color)
    • This controls the background color of popup message in reports when expectation is not set.
    • If value is not provided for the above properties javascript popup messages will not be logged in reports

Color of javascript dialog messages in reports

  1. Javascript dialog messages can be logged with various background color as described below:
  2. CUSTOM = yellow
    CUSTOM1 = orange
    CUSTOM2 = grey
    CUSTOM3 = green
    CUSTOM4 = violet
    CUSTOM5 = indigo
    ERROR = red
    FAILURE = red
    infoFor ERROR and FAILURE the script will be marked failed.