An Introductory Guide to Using SmarteScript (version 5.5)
Revised February 25, 2010
SmarteScript v 5.5
3200 Steck Ave., Suite 250 0 Austin, TX 78757 SmarteScript Version 5.5 -
Table of Contents Table of Contents .................................................................................................................................................... 2 Introduction ............................................................................................................................................................. 3 System Requirements.......................................................................................................................................... 3 What You Won’t Find in this Guide .................................................................................................................... 3 Creating Test Scripts ............................................................................................................................................... 4 Using the SmarteATM Web Application ............................................................................................................ 4 Designing the Test ............................................................................................................................................... 5 Opening SmarteScript ............................................................. ...
SmarteScript™
Get Started Guide - Tutorial
An Introductory Guide to
Using SmarteScript (version 5.5)
Revised February 25, 2010
SmarteScript v 5.5
3200 Steck Ave., Suite 250 0
Austin, TX 78757
SmarteScript Version 5.5 -
Table of Contents
Table of Contents .................................................................................................................................................... 2
Introduction ............................................................................................................................................................. 3
System Requirements.......................................................................................................................................... 3
What You Won’t Find in this Guide .................................................................................................................... 3
Creating Test Scripts ............................................................................................................................................... 4
Using the SmarteATM Web Application ............................................................................................................ 4
Designing the Test ............................................................................................................................................... 5
Opening SmarteScript ......................................................................................................................................... 6
Learning Application Objects ............................................................................................................................. 6
Saving the Script ................................................................................................................................................1 1
Renaming Windows .......................................................................................................................................... 12
Removing Columns .......................................................................................................................................... 13
Defining Test Actions ........................................................................................................................................ 15
Executing the Test ............................................................................................................................................. 22
Exiting SmarteScript ......................................................................................................................................... 25
Additional Information ..................................................................................................................................... 25
3200 Steck Ave., Suite 250 • Austin TX, 78757 • info@smartesoft.com • (512) 782-9409 Page 2
l
a
i
r
o
t
u
TSmarteScript Version 5.5 -
Introduction
This tutorial is designed to introduce first-time users to SmarteScript. Basic knowledge of quality assurance (QA)
techniques and software testing is required. If you have not previously, please install SmarteScript prior to moving
forward with this tutorial.
The tutorial provides a step-by-step example of how to create a sample test using SmarteScript, and serves as an
introduction to using the product.
System Requirements
SmarteScript Minimum System Requirements:
Processor: Pentium 4 1.8GHz
Operating Systems: Windows XP, Vista, and
Server 2003/2008
Memory: 1GB Minimum
Disk Space: Minimum of 250 MB
Display: 800x600 Min. Resolution
Browser: I.E. 6 or higher
SmarteScript Recommended System Requirements:
Processor: Intel Core 2 Duo 2 GHz or higher
Operating Systems: Microsoft Windows XP or later
Server 2003/2008
Memory: 2GB Minimum
Disk Space: Minimum of 500 MB (Full Install)
Display: SXGA (1280 × 1024) or higher resolution monitor
Browser: I.E. 6 or higher
What You Won’t Find in this Guide
This tutorial is not a complete resource about SmarteScript. No detailed descriptions or advanced techniques are
documented here. For comprehensive documentation of the SmarteScript product, please refer to the SmarteScript
User’s Guide that can be found in the Help section SmarteScript.
NOTE: Internet Explorer is the optimal browser supported by SmarteScript version 5.5.
Mozilla Firefox can be used but may require additional accessibility extensions. Contact SmarteSoft Technical
Support (email: support@smartesoft.com) with any questions about utilizing Mozilla Firefox.
For this tutorial, please use Internet Explorer.
3200 Steck Ave., Suite 250 • Austin TX, 78757 • info@smartesoft.com • (512) 782-9409 Page 3
l
a
i
r
o
t
u
TSmarteScript Version 5.5 -
Creating Test Scripts
creation process includes the following steps:
1. Open the application to be tested
2. Design the test
3. Open SmarteScript
4. Learn the objects used in the test
5. Define the actions the test will take
6. Execute the test script
7. Close SmarteScript
To illustrate the above process, this tutorial will utilize the SmarteATM web application. The next section will
introduce you to SmarteATM.
Using the Sm M Web Application
m is a simple, web-based interactive ATM machine. This application will be used to create our sample test.
For the purposes of our tutorial, we will test the “Account Balance” function of a Withdrawal transaction. Please
follow the steps below to complete a simulated Account Balance transaction.
You can access SmarteATM in two ways:
1. Through Internet Explorer: navigate to http://demo.smartesoft.com
2. From the Task Bar: click Start > All Programs > SmarteScript > Samples > Sample Application > SmarteATM
W e b
When SmarteATM is started, a login screen is displayed.
To login, enter:
username = a@b.com
password = smartesoft
Click the Sign-On button.
When a valid username and password are provided, the
Transaction screen is then displayed.
The Transaction Screen displays a menu that allows the
user to manage his/her account(s).
3200 Steck Ave., Suite 250 • Austin TX, 78757 • info@smartesoft.com • (512) 782-9409 Page 4
M
T
A
e
t
r
a
S
T
A
e
t
r
a
t
s
e
T
e
h
T
l
a
i
r
o
t
u
TSmarteScript Version 5.5 -
To access the Withdraw Funds screen, click on the
Withdraw button. Notice that the user may type in the
desired account number, or select an account number
using the drop list.
For the purpose of our test, please select an account from
the drop list. Once an account is selected, the Balance
text box is populated with that account’s balance.
Click the LOGOUT button to return to the initial login
screen.
The steps just completed demonstrate the Check Account
Balance transaction of the SmarteATM web application. It
is this sequence that we will use to test the Account
Balance function for this tutorial.
Designing the Test
The most important step in automated testing is to define the test objectives. You must ensure that you have a clear
idea of what your test needs to accomplish before attempting to test.
The objective for this tutorial is straightforward; we want the test that we create to ensure that the Balance text box
on the Withdraw Funds page is populated with the correct balance for a particular account number: 177656. Before
the test can verify anything on the Withdraw Funds page, SmarteScript must first login to SmarteATM and navigate to
that page. Here is the Test Summary:
• Test case name
• Objective V e y the Balance value on the Withdraw Funds page for account number 177656.
• Initial Conditions (For SmarteScript to build the test, the application being tested must be open, therefore our
Initial Conditions will be): An Internet Explorer browser window is open and displaying the m login
page.
• Inputs: valid Username, valid Password, Sign On button, Withdraw button, Account Number drop list, Logout
button
• Expected Results: After selecting an account number on the Withdraw Funds page, the correct balance should
be displayed in the “Balance” textbox.
Let's open SmarteScript so we can begin creating the test we just designed.
3200 Steck Ave., Suite 250 • Austin TX, 78757 • info@smartesoft.com • (512) 782-9409 Page 5
M
T
A
e
t
r
a
S
f
i
r
:
l
a
i
r
o
t
u
T
:
l
a
i
r
o
t
u
TSmarteScript Version 5.5 -
Opening SmarteScript
To open SmarteScript, click Start > All Pr o g r a m s > SmarteScript > SmarteScript. The SmarteScript initial screen will
appear.
Notice that the bottom of the window displays the Quick
Guide. It is intended to familiarize you with the basic test
creation components of SmarteScript.
For this tutorial, we will not use the Quick Guide. Close it
by clicking the AutoHide pin button located in the upper
right corner of the Quick Guide.
Learning Application Objects
Before creating a test, we need to indicate to SmarteScript which objects will be used in the test. This process is called
“Learn.” The following steps describe how to learn the objects in your application.
Open Internet Explorer and navigate to
http://demo.smartesoft.com.
Close all non-essential programs.
To create a new test, begin by clicking the New button at
the top of the SmarteScript w
3200 Steck Ave., Suite 250 • Austin TX, 78757 • info@smartesoft.com • (512) 782-9409 Page 6
.
w
o
d
n
i
l
a
i
r
o
t
u
TSmarteScript Version 5.5 -
The window will now change to test building mode.
The first task in creating the test is to have SmarteScript
“learn” the test components (objects). Press the Learn
button to begin this process.
The SmarteScript window will disappear, and the Learn
dialog box will appear in its place on the same screen as
the m M browser window. Press th