Professional Documents
Culture Documents
Vijay Chowthri N
vijayc@ibsplc.com
vijaychowthri@gmail.com
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 1
TRAINING
<Title of the Presentation>
Agenda
Understanding Automation Testing
Web Automation
-> Certainly you have areas like performance testing, regression testing, load/stress testing where you
can have chance of reaching near to 100% automation.
-> Areas like User interface, documentation, installation, compatibility and recovery where testing must
be done manually.
-> Every automation script suite should have enough life time that its building cost should be definitely
less than that of manual execution cost.
-> Approximately your automation suite should be used or run at least 20 to 30 times for separate builds
(General assumption. depends on specific application complexity) to have good ROI.
-> Be sure to have skilled staff before deciding to automate your testing work.
-> Make sure that tool is a best fit to your requirements
-> Find out the limitations of the tool that is best match with your requirements
-> People with varying background & technical skills may use the application.
-> Network thread (Security , Connection speed (Broad band , dial-up etc.. ))
-> ADA (American with disability act) (The Application may need to be tested for compliance and
usability)
Hence a lot of effort needs to put in for Test Planning and Test Design
* Naming standards
* Coding standards
* Environment standards
* Procedure for error and defect tracking system
* Documentation
Rule 5: Figure out what you are testing and keep simple
Automation Plan
Manual testing
Repeatable Scenario
Start Automation Auto . Pack
Scripting
Automation Tool
Data Set
Script (n)
Log
Action
Object Repository
Application
Session – 1 (beginner)
Vijay Chowthri N
icargo – Automation Testing
Team
December 16, Copyright © IBS Software Services. All Rights Reserved
TRAINING
<Title of the Presentation>
Agenda ( Session – 1 )
Features
Advantages
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 12
TRAINING
<Title of the Presentation>
System Requirements
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 14
TRAINING
<Title of the Presentation>
Introduction
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 15
TRAINING
<Title of the Presentation>
Features
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 16
TRAINING
<Title of the Presentation>
Features
Data-Driven Tests:
Data-driven testing uses data from an external file,a
data pool, as input to a test. A data pool is a collection of
related data records that supplies data values to the
variables in a test script during test script playback.
Call Script:
While recording or editing a Functional Test script,
we can insert a call to a previously recorded script. This
lets us to avoid repeatedly recording similar actions on
the application-under-test by taking advantage of scripts
that already exist.
Wait For Existence:
Use to set a wait state for an object during playback
to check for its existence.
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 17
TRAINING
<Title of the Presentation>
Features
Break Point:
A breakpoint causes the execution of a program
thread to suspend at the location where the breakpoint is
set. When a breakpoint is enabled, it will cause a thread
to suspend whenever the breakpoint is reached
More Accurate
Less Maintenance
More Reliable
Reusable
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 19
TRAINING
<Title of the Presentation>
Risks
Re-work on the recorded script happens if the
application under test is not stable.
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 20
TRAINING
<Title of the Presentation>
Best Practices For Basic Scripting
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 21
TRAINING
<Title of the Presentation>
Best Practices For Basic Scripting
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 22
TRAINING
<Title of the Presentation>
Create Rational Test Project
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 23
TRAINING
<Title of the Presentation>
Configure Test Application
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 24
TRAINING
<Title of the Presentation>
Configure Test Application
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 25
TRAINING
<Title of the Presentation>
Configure Test Application
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 26
TRAINING
<Title of the Presentation>
Start Script Recording
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 27
TRAINING
<Title of the Presentation>
Start Script Recording
Select the Project in which the Script to be
recorded
Specify the Script name and Click on the “Next”
button
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 28
TRAINING
<Title of the Presentation>
Start Script Recording
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 29
TRAINING
<Title of the Presentation>
Start Script Recording
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 30
TRAINING
<Title of the Presentation>
Start Script Recording
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 31
TRAINING
<Title of the Presentation>
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 32
TRAINING
<Title of the Presentation>
Capture Data Driven Commands
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 33
TRAINING
<Title of the Presentation>
Capture Data Driven Commands
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 34
TRAINING
<Title of the Presentation>
Capture Data Driven Commands
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 35
TRAINING
<Title of the Presentation>
Capture Data Driven Commands
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 36
TRAINING
<Title of the Presentation>
Capture Data Driven Commands
Click on the “Ok” button if the Data capture
Completed
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 37
TRAINING
<Title of the Presentation>
Capture Verification Points
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 38
TRAINING
<Title of the Presentation>
Capture Verification Points
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 39
TRAINING
<Title of the Presentation>
Capture Verification Points
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 40
TRAINING
<Title of the Presentation>
Capture Verification Points
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 41
TRAINING
<Title of the Presentation>
Capture Verification Points
Enter the Data Value, Verification Point Name, Max
Retry Time and Retry interval, then click on the
“Next” button.
N
ext
Back
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 43
TRAINING
<Title of the Presentation>
Playback Test script and View Log
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 44
TRAINING
<Title of the Presentation>
Playback Test script and View Log
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 45
TRAINING
<Title of the Presentation>
Playback Test script and View Log
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 46
TRAINING
<Title of the Presentation>
Playback Test script and View Log
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 47
TRAINING
<Title of the Presentation>
&
Q U E S T I O N S
A N S W E R S
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 48
TRAINING
<Title of the Presentation>
Rational Functional
Tester
Session - 2
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 49
TRAINING
<Title of the Presentation>
Agenda ( Session
-2)
Understanding Test
Objects
Understanding Test
Datapool
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 50
TRAINING
<Title of the Presentation>
The Object Map contains information that the script can then
use to construct and find a Test Object When something like
Button().click() is recorded the Button() method finds an object
based on mapped properties and then “binds” the Test Object to
an object in the SUT.
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 51
TRAINING
<Title of the Presentation>
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 52
TRAINING
<Title of the Presentation>
Private Test
Objects
Test
Objects
Common /
Shared Test
Objects
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 53
TRAINING
<Title of the Presentation>
Create Common Test Objects
Add New Test object map, by using left click of mouse, (or)
Select
From Menu File >> New >> Test Object Map
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 54
TRAINING
<Title of the Presentation>
>> Browse the test object map and assign the Shared Test
Object with this script.
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 56
TRAINING
<Title of the Presentation>
>> Create new script (Script2) share the Test object Map
>> Extend the Script1 class in Script2 & start use the Script1
object / Scripts
Example ::
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 57
TRAINING
<Title of the Presentation>
Datapool
Feature To add realistic data to a test script
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 58
TRAINING
<Title of the Presentation>
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 59
TRAINING
<Title of the Presentation>
Private Test
Datapool
Test Datapool
Common / Shared
Test Datapool
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 60
TRAINING
<Title of the Presentation>
Create Common Test Datapool
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 62
TRAINING
<Title of the Presentation>
Insert New Object (Another
Method)
Create a new Script
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 64
TRAINING
<Title of the Presentation>
Rational Functional
Tester
Session – 3
(Moderate)
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 66
TRAINING
<Title of the Presentation>
Agenda (Session -
3)
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 67
TRAINING
<Title of the Presentation>
Automated database testing is faster and more reliable the traditional GUI-
based test automation.
Resource
Competence
Familiar with the basic SQL
commands
Hands of experience / Exposure in Manual DB
Testing
Have an interest in automating some of that
testing
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 68
TRAINING
<Title of the Presentation>
• The types of database activity (insert, delete, update) that will be invoked
• When these transactions will occur within the application-under-test
• The calculations or processing rules used by the application
• Any time-critical transactions, functions, conditions, and possible causes of poor
performance
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 69
TRAINING
<Title of the Presentation>
DB Configuration in
RFT
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 70
TRAINING
<Title of the Presentation>
Connection connection;
Driver driver = new oracle.jdbc.OracleDriver();
DriverManager.registerDriver(driver);
connection.setAutoCommit(true);
return connection;
}
public ResultSet query(String string) {
return null;
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 72
TRAINING
<Title of the Presentation>
Example
The sample script explains insert new user Details in the
DB , By using the connection class.
ResultSet results;
try
{
connection = new oraconnection();
logInfo("Connected");
}
catch (SQLException e)
{
logInfo("Connection Failed");
connection.close();
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 73
TRAINING
<Title of the Presentation>
Rational Functional
Tester
Demo Session - 4
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 74
TRAINING
<Title of the Presentation>
Agenda (Session -
4)
Best Practices
Usage of Swing in
RFT
Table value selection &
verification
Multiple Object Recognition with reference of single object or
table properties.
Exception
handling
DB Migration Testing Approach (In
iCargo)
Manual & Dynamic Verification Point
Test Object handling & Optimization
Technique
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 75
TRAINING
<Title of the Presentation>
Automation Approach
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 76
TRAINING
<Title of the Presentation>
RFT Architecture Approach in iCargo
Supporting Scripts
Menu
Module Level
Screen Level
Component Level
Class
Common
Test Suit (integrated Scripts
scenario)
Common Test
Objects
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 77
TRAINING
<Title of the Presentation>
Solution For Ambiguous
Recognition
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 78
TRAINING
<Title of the Presentation>
Swings In RFT
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 79
TRAINING
<Title of the Presentation>
public void testMain(Object[] args)
{
JFrame frame =new JFrame();
Object[] billingperiod = {"Weekly", "Monthly", "Bi-Monthly"};
//Pop-up input data
String billperiod = (String)JOptionPane.showInputDialog(frame,"Select The Billing Period ",
"Customized Dialog",JOptionPane.PLAIN_MESSAGE,null,billingperiod,"Weekly");
// Add Connection class here
try
{
//Insert into SHRAGTSETCUR
// ADD Table Insert Scripts here....
}
catch(Exception e)
{
System.out.println(e);
}
}
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 80
TRAINING
<Title of the Presentation>
Object – New approach
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 81
TRAINING
<Title of the Presentation>
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 82
TRAINING
<Title of the Presentation>
External File Read and Write
Class
public class rw {
String retrICAR;
File currDir = new File("fsrw-read&wrirefiles");
String filepath = currDir.getAbsolutePath().trim();
//Function for writing to the file,
public void writeF(String newICAR,String fname) {
FileWriter fw;
try {
fw = new FileWriter(filepath+"\\"+fname);
fw.write(newICAR);
fw.close();
}
catch (IOException e){
}
}
// function for Reading from the file.
public String readF(String fname) {
try {
BufferedReader br = new BufferedReader(new FileReader(filepath+"\\"+fname));
retrICAR = br.readLine();
System.out.println(retrICAR);
br.close();
}
catch (IOException e1){
}
return retrICAR;
}
}
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 83
TRAINING
<Title of the Presentation>
External File Read and Write Class Usage in the
script
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 84
TRAINING
<Title of the Presentation>
Simple Exception handling for Expected run time
application error Message !
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 85
TRAINING
<Title of the Presentation>
&
Q U E S T I O N S
A N S W E R S
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 86
TRAINING
<Title of the Presentation>
Thank You
December 16, IBS Software Services Pvt LtdCopyright © IBS Software Services. 87