Recently I was at a customer place and there was a question popped up. Question was “How Test Studio handles multiple Alerts” or rather question was “Can Test Studio handles multiple Alerts? “. Answer is yes, Test Studio can handle Multiple Alerts very smoothly.
To demonstrate this I have created a simple application. This application is having one button and on click event of the button we are generating 10 alerts.
<!DOCTYPE html> <html> <head> <title>Demo Multiple Alerts</title> <link href="demo.css" rel="stylesheet" /> <script type="text/javascript" > function GenerateMultipleAlerts(e) { for (var i = 1 ; i <= 10 ; i++) { var displayMessage = "Alert Message " + i; alert(displayMessage); } } </script> </head> <body> <h1>Multiple Alerts Testing</h1> <button id="addbutton" onclick="GenerateMultipleAlerts()"> Generate Multiple Alerts </button> </body> </html>
Let us record testing steps of this web application. After recording you will find that all the 10 alerts handle has been recorded.
After recording the test, execute it in browser of your choice. You will find all alerts handle has been passed successfully.
We can conclude this post by saying Test Studio handles multiple alerts very gracefully. Thanks for reading this post.