Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Apps.dialog.message priority


#1

Hi,

I am using ‘App.Dialogs.message’ to display messages at various instances on my forms. However these dialog boxes do not wait for user to click ‘Ok’ & the message gets overwritten by the next dialog.

Example:
App.Dialogs.message(“Hello!”);



App.Dialogs.message(“How are you!”);

Then “Hello!” get overwritten by “How are you!” . I want user to click “Ok” button on “Hello!” & then “How are you!” should be displayed.

Thanks.


#2

Hello,

Thanks for your posting. Yes, the App.Dialogs functions do not block JavaScript execution and App.Dialogs.message isn’t stackable unfortunately. I would recommend using the standard JavaScript dialog functions for this if at all possible (even when they look different to TestRail’s dialogs). This is also safer when you update to new TestRail versions as the (internal) App.Dialogs API may change in the future.

Regards,
Tobias