Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width400px
urlhttps://www.youtube.com/watch?v=P-tmcAGpcO8
height300px

Masking Selenium

...

Variables

When command values contain sensitive information, they can be masked by using the apica Prefixesan Apica-specific prefix. This will prevent prevents the value from being displayed in results.

Example

Let’s assume you use Assume a scenario with contains the following commands:

\{\{${maskapicaPassword}\}\}secretPa$$word

Command

Target

Value

open

/

selectWindow

null

type

id=username

user1

type

id=password

Code Block

clickAndWait

_input@value='Log in'

If you want It is possible to mask the value secretPa$$word in the Check Result page the following steps are required:

...

by adding the Store command to store the password as a variable with the prefix maskapica

...

, then using that variable in the actual command which uses the password.

Your commands should now look like thisThe scenario will contain the following commands after the value secretPa$$word is masked:

\{\{${maskapicaPassword}\}\}

Command

Target

Value

store

secretPa$$word

maskapicaPassword

open

/

selectWindow

null

type

id=username

user1

type

id=password

Code Block

clickAndWait

_input@value='Log in'

When Synthetic Monitoring runs a check using this scenario the result will be saved with the executed scenario commands list as the example above. When Synthetic Monitoring shows the check result on the check results page Synthetic Monitoring will recognize that there is a command value which starts with maskapica.The is run with a scenario which utilizes a command which contains maskapica, the the command’s target will be masked on the the check results page:

Command

Target

Value

store

*******

maskapicaPassword

open

/

selectWindow

null

type

id=username

user1

type

id=passwordcode

\{\{${maskapicaPassword}\}\}

clickAndWait

//input@value='Log in'

...

The command value is shown in Details in the Details Result Scenario in the Value column.

Example

Command

Target

Value

storeCookieByName

ServerID

apicaServerID

...

When the "maskapica" prefix is used in a command value, the web performance monitor will store the command target (the example Target below is '$(ExternalPassword) ') as is in the result but will mask it (as the example Value below, “maskapicaPassword“) on the check result page. 

Example

...

Limitations of Selenium IDE within ASM Scenarios

...