Working from David Burns Selenium 1.0 Testing Tools Beginners Guide
Selenium Week 1 (Chapter 1)
Task:
Challenges:
No challenges for this execution
Accomplishments:
I accomplished being able to successfully run my first selenium script
Testing in Firefox
Expected Results
Loading the hisandhernews.com home page
clicking on Contact Me Section
Fill out Contact form
send email to hisandhernews.com
Automation Test Set up
1) Use the following link to download Selenium IDE: http://seleniumhq.org/download/
2) Once the Installation is complete Open Firefox and Type the following url in the browser: http://hisandhernews.com
3) Afterwards go to your firefox addons and select Selenium IDE
4) Ensure that http://hisandhernews.com is typed in the Base URL area of Selenium IDE
5) Onload of Selenium IDE the (Radio Button) Red circle button should be recording. However, to confirm that it is recording mouse over to confirm.
NOTE: The radio button records your actions (which includes clicks and the data you input into the form etc)
6) Click on Contact Me section of hisandhernews.com website
NOTE: While you are interacting with the site the Selenium IDE addon will minimize. However your session will still be recording as long as you do not completely close Selenium IDE
7) Fill out entire form and submit
8) Leave hisandhernews.com site open in Firefox
9) With Selenium IDE open, Select Play current test case arrow
Actual Results for Automation Script
hisandhernews site should reload
Contact Me should be clicked
Contact form should be filled out
Email should be sent to hisandhernews.com
Thanks your message has been sent should appear on screen
no errors should occur in script
Source Code for above Automation script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://hisandhernews.com/" />
<title>Selenium_Chapter1</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Selenium_Chapter1</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Contact Me</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=itemGuid.4e17262b9470d4.76243717_field</td>
<td>Aqueelah</td>
</tr>
<tr>
<td>type</td>
<td>id=itemGuid.4e17262b9470d4.76243720_field</td>
<td>Grant</td>
</tr>
<tr>
<td>type</td>
<td>id=itemGuid.4e17262b9470d4.76243723_field</td>
<td>aqueelah@hisandhernews.com</td>
</tr>
<tr>
<td>type</td>
<td>id=itemGuid.4e17262b9470d4.76243726_field</td>
<td>222-555-3636</td>
</tr>
<tr>
<td>type</td>
<td>id=itemGuid.4e17262b9470d4.76243729_field</td>
<td>TEST</td>
</tr>
<tr>
<td>type</td>
<td>id=itemGuid.4e17262b9470d4.76243732_field</td>
<td>hisandhernews.com</td>
</tr>
<tr>
<td>click</td>
<td>//button[@type='button']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Copyright 2011 HisandHerNews. All rights reserved.