Professional Documents
Culture Documents
PDF Automation Testing DL
PDF Automation Testing DL
Agenda
Brief Intr
Introduction
oduction
Who am I?
! "ears of IT
#$perience
IST%B Adanced and 'ST#
'erti(ed
My Roles so far-
I-TR.*/'TI.- .0 T#STI-1
What is Testing: Software testing is the process of
ea,uation of a software item to detect di2erences
3etween actua, and e$pected output on gien input4
T"P# .0 T#STI-1
steps
–
for manual
/nderstand testing:
the functiona,ity of program
– Prepare a test enironment4
– #$ecute test case8s9 manua,,y
– 5erify the actua, resu,t
– Record the resu,t as Pass or 0ai,
– a7e a report of the Pass and 0ai, test cases
–
Pros
Pros > 'ons
• Advantage:-
–anua, testing can 3e use in 3oth sma,,
sma, , and 3ig pro+ect4
–We can easi,y reduce and add our test case according to pro+ect moement4
–#asy to ,earn for new peop,e who enters in manua,
m anua, testing4
–
anua, testing is more re,ia3,e then automated 8in many cases automated test
not coer a,, cases9 4
• Disadvantage:-
– 1/I o3+ect sie di2erence and co,or com3ination etc is not easy to (nd out in
manua, testing4
– Actua, ,oad and performance is not possi3,e to coer in manua, testing for ,arge
num3er of users4
Automation testing
• Automation testing: Automation testing which is a,so 7nown as
Test
Test Automation4 In this testing) the tester writes scripts and uses
another software to test the software4 There are many Too,s are
use in automation Testing4
• tools:
Software testing tools:
– ;P %uic7 Test Professiona,
– Se,enium
– Test
Test stac74White
– Testing
Testing Anywhere
– WinRunner
– <aodRunner
Pros
Pros > 'ons
• Advantages
– #asy to coer up a,, cases in a ,imited time period4
– "
"ou
ou can perform di2erent
di2erent types of te
testing@s
sting@s ,i7e ,oad testing)
performance testing using too,4
– Automated testing can 3e performed on di2erent operating systems4
• Disadvantages
– Purchase a too,s and aintenance4
– Automation testing is more e$pensie wor7 as comparing with manua,
testing4
– <anguage wise there are many too,s to test arious
arious type of software)
means a,, too,s wi,, not support to a,, software which are dee,oped in
di2erent ,anguages4
continue
Sample of #ug :
#ug )ame: App,ication crash on c,ic7ing the SA5# 3utton4
#ug 'D: 8It wi,, 3e automatica,,y created 3y the B/1 Trac7ing too, once you sae this
3ug9
Area *ath: /S#RS menu C -ew /sers
Severity: ;igh 8;igh=medium=<ow9
*riority: ;igh 8;igh=medium=<ow9
Assigned to: *ee,oper>D
Reported #y: "our
"our -ame
Reported +n: *ate
Reason : *efect
(nvironment: Windows EFFG=S%< Serer EFFH
Bug detai,scontinued
• Severity: *escri3es the 3ug in terms of functiona,ity4
Severity: *escri3es
• *riority: *escri3es the 3ug in terms of customer4
*riority: *escri3es
• #$4
–
igh *riority and Low Severity: 'ompany ,ogo is not proper,y disp,ayed on
their we3site4
– igh *riority and igh Severity: Suppose you are doing on,ine shopping and
(,,ed payment information) 3ut After su3mitting the form) you get a message
,i7e .rder has 3een cance,,ed4
– Low *riority and igh Severity: If we hae a typica, scenario in which the
app,ication get crashed) 3ut that scenario e$ists rare,y4
rare,y4
– Low *riority and Low Severity: There is a mista7e
mista7e ,i7e "ou
"ou hae registered
success instead of successfu,,y) success is written4
• Repetitive
Repetitive and Multiple actions as a part of Functional
testing
• Parallel
Parallel verifications in third party applications
• Post every deployment in the environment, smoke tests to
have health check.
ome g on
0ramewor7
0ramewor7 for automating rich c,ient app,ications 3ased
K
R
T E E W O
I on WinGE=Win
WinGE=Win 0or
0orms=WP0=
ms=WP0= Si,er,ight) Jaa p,atforms
H
W R A M
F
4-#T 3ased and does not re6uire the use of any
.pen Source
'ont44
Runs in a $rowser
(pen )ource
)elenium is a ro$ust set of tools that supports rapid development of test automation
for we$+$ased applications.
)elenium operations are highly fle/i$le, allowing many options for locating 01
elements and comparing e/pected test results against actual application $ehavior
$ehavior..
ome g on e en um
Selenium 0eatures
."ontinued/
•
Supports 'ross Browser Testing4 The Se,enium tests can 3e run on mu,tip,e 3rowsers4
• A,,ows scripting in seera, ,anguages ,i7e Jaa) 'L) P;P and Python4
resu,ts4
Selenium 0lavors
• Se,enium I*#
• Se,enium We3driers
1rowsers/
programming languages
T
Too,
oo, tips were
were not recognied4
recognied4
.R"/
Selenium Remote "ontrol .R"/
*rocess
Se,enium Serer4
• 0or running the script you a,so
need the c,ient drier for that
particu,ar ,anguage4
00N4$> .n,y
00OF>$ Record &
P,ay3ac7
'( 7;7<
Safari
E=G=N=H
"hrome
v =- v ><
Se,enium 'ore is written in Jaa script so it shou,d wor7 8in theory9 on most 3rowsers with
decent Jaa script support4 Some operations are on,y possi3,e ia Se,enium Remote 'ontro,
3ecause of 3rowser security settings
Se,enium Remote 'ontro,
'ontro, serer can start any e$ecuta3,e) 3ut depend
depending
ing on 3rowser security
settings) there may 3e technica, ,imitations that wou,d ,imit certain features4
+pera
;7<7>?
Resources
"
"ou
ou can chec7
chec7out
out for more
more detai,s of Se,enium at :
http:77www3open@a7org7selenium
Demo Time!!
Lets have a !emo""