This is Part 3 of Test Automation with Selenium WebDriver Series. Let’s take a little detour and have a look at the Guestbook Demo Web Application we’re going to use to create our Automated Tests.
Guestbook Demo Web Application is a simple 4 pages application that allows to post and view guestbook entries. Posting a new entry requires the user to log in.
Guestbook Demo Web Application pages and functionality
- Home Page: View list of submitted guest entries on Home Page (most recent on the top)
- Click ‘Sign The Guestbook’ button
- Navigate to Login Page
- Login Page: Login to access the Guestbook Form Page
- Enter User Name
- Enter Password
- Press Login Button
- Navigate to Guestbook Form
- Navigate to Home Page (Click Website Logo)
- Guestbook Form Page: Submit a new Guestbook entry
- Enter Full Name
- Enter Email Address
- Check ‘Subscribe to Mailing List’ checkbox
- Select Gender Radio Button
- Select ‘Favorite Test Automation Tool’ from drop-down list
- Enter Comment in the Comment text area
- Press Submit button
- Navigate to Confirmation Page
- Logout to navigate back to Login Page (Click Logout menu item)
- Navigate to Home Page (Click Website Logo)
- Guestbook Post Confirmation Page: View submitted information
- Submitted Information is displayed on the page
- Logout and navigate back to Login Page
Test Plan
Our goal is to create an automated script for the following scenario:
- Open Guestbook Demo Home Page, click ‘Sign The Guestbook’ button – Login Page opens
- Enter Username and Password and press ‘Submit’ button – Guestbook Form opens
- Fill out the form and press ‘Submit’ button – Confirmation Page opens
- Verify the data displayed matches the data entered. Logout by clicking the ‘Logout’ menu item in the top navigation menu – Login Page opens
- Click ‘Guestbook’ Menu item in the top navigation menu to navigate to Guestbook section on the Home Page – Guestbook section on the Home Page opens
- Verify the latest entry
Next, we will record these steps in Browser Automation Recorder to see what script is being generated and how we can leverage that.
1 thought on “Part 3 – Application Under Test and Test Plan”