BZM: Test Run fails if Application Alerts appear. Test steps for handling the Alert window works on Debugger but not on OPL

book

Article ID: 209050

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

 

Followed the Best Practices.


1. Adding the answer dialogue action before the action that causes the pop-up to appear.


2. Opened up a new window and switched windows back and forth.


This worked on Script less Debugger, but the test run is failing on OPL.

 

Cause

Design limitation.

Environment

Release : SAAS

Component : BLAZEMETER PERFORMANCE TESTING

Resolution

https://guide.blazemeter.com/hc/en-us/articles/360003970577-Taurus-Actions-for-Scriptless-Functional-Testing

This now shows in our documentation as a design limitation:

 Answer Dialog

Intercepts a synchronously displayed JavaScript dialog, and sends a response. Use Answer Dialog before the action that triggers the dialog. Typically used together with Assert Dialog.

  • Type defines the type of JavaScript dialog, one of Alert, Confirm, or Prompt.
  • Response defines the response to send back to the function. Example: #OK, #Cancel, or any other string.

Tip: If the dialog is still loading when you open a new page, the Answer Dialog action may fail to trigger. In this case, make the test trigger the "#Cancel" response, and perform another action to close the dialog (like opening a new tab and closing it). This workaround works only for synchronously displayed dialogs.