Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Selenium Simplified Junit Preview

Selenium Simplified Junit Preview

Ratings:

3.67

(9)
|Views: 50,576 |Likes:
Published by eviltester
A free preview of the forthcoming "Selenium Simplified" book. A tutorial guide to Automated Testing in Selenium using Java and JUnit. Get more information at http:\\www.compendiumdev.co.uk\selenium
A free preview of the forthcoming "Selenium Simplified" book. A tutorial guide to Automated Testing in Selenium using Java and JUnit. Get more information at http:\\www.compendiumdev.co.uk\selenium

More info:

Published by: eviltester on Feb 26, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/13/2014

pdf

text

original

 
Selenium Simplified
A tutorial guide to using the Selenium API in Java with JUnitAlan Richardson
Published by Compendium Developments
 
Copyright  !"#" by Alan Richardson$he right of Alan Richardson to be identified as the author of this wor% has been asserted by him in accordance with the Copyright& Design and Patents Act #'(()$he views e*pressed in this boo% are those of the author)+irst published in ,reat -ritain in !"#" by.Compendium Developmentshttp.//www)compendiumdev)co)u%/seleniumcontact details.alan0compendiumdev)co)u%Author1s Software $esting -log.
Compendium Developments. 
2very effort has been made to ensure that the information contained in this boo% is accurate at the time of going to press& and the publishers and author cannot accept any responsibility for any errors or omissions& however caused) 3o responsibility for loss or damage occasioned by any person acting& or refraining from action& as a result of the material in this publication can be accepted by the editor& the publisher or the author)Apart from any fair dealing for the purposes of research or private study& or criticism or review& as permitted under the Copyright& Design and Patents Act #'((4 this publication may only be reproduced& stored or transmitted& in any form or by any means& with the prior permission of the publishers& or in the case of reprographic reproduction in accordance with the terms and licenses issued by the Copyright 5icensing Agency& '" $ottenham Court Road& 5ondon& 6#$ 75P) 2n8uiries concerning reproduction outside these terms should be sent to the publishers)9ersion 0 #'/"#/!"## !
nd
 Printinge:boo% IS-3 . ';(:":'<=;>>!:":;paperbac% boo% IS-3 . ';(:":'<=;>>!:#:7
 
Table of Contents
Introduction..........................................................................................................................................9Getting the Source-code...................................................................................................................9Windows, Linux or Mac................................................................................................................10Acknowledgents.........................................................................................................................10!ha"ter 1#Getting Started With $he $ools..........................................................................................11What $ools%...................................................................................................................................11Seleniu I&'............................................................................................................................11(a)a............................................................................................................................................11'cli"se.......................................................................................................................................1*Seleniu-+!.............................................................................................................................1*!ha"ter *#Seleniu I&' asics.........................................................................................................1Install ire/ox.................................................................................................................................1Install Seleniu-I&'.....................................................................................................................1!a"ture la ack 2 +ecording a Scri"t with the I&'..................................................................13!oand, $arget and 4alue..........................................................................................................15Sa)e $he $est.................................................................................................................................15urther reading...............................................................................................................................15!ha"ter #Install (a)a.........................................................................................................................19!ha"ter 3#Install and +un Seleniu-+!............................................................................................*0Ste" 6ne - &ownload 7 Install Seleniu-+!...............................................................................*06)er)iew o/ the !ontents o/ the Seleniu Archi)e.................................................................*1Ste" $wo - +un Seleniu-+!........................................................................................................**Ste" $hree 2 Sto" the Seleniu Ser)er.........................................................................................*ro the coand line............................................................................................................*ro a 8rowser +L................................................................................................................*3+unning an I&' Generated $est in &i//erent rowsers................................................................*3'nd :otes..................................................................................................................................*;!ha"ter <#$he 'cli"se I&'.................................................................................................................*5irst - Install 'cli"se......................................................................................................................*5Second - +un 'cli"se.....................................................................................................................*=$hird - create a new (a)a "ro>ect...................................................................................................1!ha"ter ;#!reate a (nit test sing the (nit ex"ort /ro Seleniu-I&'........................................Introduction....................................................................................................................................'x"ort an I&' scri"t as a (nit test...............................................................................................Load an existing scri"t into the I&'.........................................................................................!hange the /orat o/ the scri"t to (a)a.....................................................................................3!reate a :ew !lass in 'cli"se..................................................................................................<!o" 7 aste the code /ro Seleniu I&' into 'cli"se.........................................................=+esol)e I"ort 'rrors...............................................................................................................30Add (nit to the 8uild "ath.......................................................................................................3*+eo)e the unused i"ort.......................................................................................................33+un the (nit test...........................................................................................................................3<Allow it through the irewall....................................................................................................3<Seeing the test running..............................................................................................................3;!heck the results.......................................................................................................................35It went too ?uickl@........................................................................................................................3=1

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->