Cloud Monitoring Recorder not saving password

book

Article ID: 127089

calendar_today

Updated On:

Products

CA App Synthetic Monitor NIMSOFT CLOUD USER EXPERIENCE MONITOR

Issue/Introduction

The CA Recorder is not correctly recording the username and password when I am recording my site.  Yet I can record a login on gmail with no issue.

Cause

Different type of forms for gmail and the site where this issue was found.

Environment

CA Recorder for ASM

Resolution

It was found that the page is using the Angular 2+ framework.

Because of that, it is not enough to just set the values to the inputs.  Angular should update an inner model, which is based on input values.  Change detection mechanism fires each time as the user clicks on inputs and presses the keys while entering data.

If wanting to enter the data programmatically, we also need to start change detection programmatically by dispatching the same events as users input.

You should add an assertion wait for the user name.  That way any other steps added after the assertion would be taken only after the login is complete and the user name appears.

Additional Information

https://angular.io/guide/architecture