Testing Multiple Alerts Dialog in Test Studio

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.

clip_image002

After recording the test, execute it in browser of your choice. You will find all alerts handle has been passed successfully.

clip_image003

We can conclude this post by saying Test Studio handles multiple alerts very gracefully. Thanks for reading this post.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s