Está en la página 1de 26

Selenium Simplified

Speaker Bio : Sivakumar Anna

Faster ROI, Ready to use, Shorter implementation time

Passionate about So-ware Quality Managing QA Prac7ce at InfoStretch 18+ years of experience in So-ware Industry Focusing on automa7on solu7ons including Mobile PlaCorms Experienced on QA Automa7on Strategy / Tools / Framework Development sanna@infostretch.com Cell # : 510 771 7482
www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA

Agenda
1. Introduc7on 2 mins 2. Selenium Overview 5 mins 3. Selenium Framework - 20 mins 4. Selenium automa7on demo 10 mins 5. Q&A 10 mins

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

ABOUT InfoStretch
QA SERVICES & SOLUTIONS
Elevating Condence
ACHIEVEMENTS ABOUT US OUR ORGANIZATION LOCATIONS Corporate HQ: Silicon Valley Offices: New York, Pennsylvania, Mumbai, Ahmedabad INFRASTRUCTURE
Extensive Platform Compatibility and Performance Test Labs 2,500+ Mobile Device Test Lab ISO 9000-2001 Certified High Availability and 24 hours secure offshore centers ISO 27001 Audited

CLIENTS

OUR INFONEERS Average 5 years experience 250+ Engineers/Consultants Industry Expertise in Finance, Retail, Mobile and Healthcare Strong Project Management

OUR PARTNERS

ABOUT InfoStretch
QA SERVICES & SOLUTIONS
Elevating Condence
ACHIEVEMENTS ABOUT US RECENT AWARDS CLIENTS

2011

2011 / 2010

2010

2011 / 2010 / 2009

2011

OUR CLIENTS SPEAK "Cost effective, unbiased third party validation was critically important to our outsourced R&D efforts. InfoStretch helped us setup an offshore test center, on time and within budget, that truly impacted the improved quality of our products. Mihir Shukla, President and CEO, Tethys Solutions "InfoStretch has pioneered all the aspects of providing excellent quality to our products. They have adapted our development environment to a custom Agile Testing Methodology that has allowed us to quickly build and market our products. Edie Hovermale, QA Director, Ingenuity Systems

within 6 months we achieved 60% automation coverage of our entire application. Were impressed with the quality of work, commitment, and outstanding partnership we have with InfoStretch which has resulted in continuous quality improvements for our product releases. Booni Bala, Director of Engineering, Tiburon Our company, as with all publicly held companies, is under increased pressure to prove Sarbanes Oxley compliance. InfoStretchs SSA*STAR Accelerator for test automation of SSA ERP/BAAN is a comprehensive solution Global IT Manager, SSA ERP/BAAN Customer

ABOUT InfoStretch
QA SERVICES & SOLUTIONS
Elevating Condence
ABOUT US

ACHIEVEMENTS

CLIENTS

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA

Selenium Automation

Selenium 2.0
Mul$ple Browsers Scrip$ng Language OS Pla6orms

Built-in Grid and Parallel Support

Mobile Extension for iOS and Android

Selenium 1.0 ocially deprecated

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA

Selenium Automation Components

Report
ReportNG

Selenium
Java / Python / C# etc

Test Lab
Selenium Grid Parallel Exec

Congura7on
JUnit TestNG

Test Management
QMetry

IDE
Selenium-IDE Eclipse

phone: (408) 727-1100

website: www.infostretch.com

email: info@infostretch.com

2004-2012 InfoStretch Corporation. All rights reserved.

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Suite 200, Santa Clara, CA

Selenium Automation Key Challenges

Too Many Tool Choices

ROI: Takes Longer Time

Strong Technical Skills

Harder To Maintain

Lack of Standard Approach

Lack of Monitoring Progress

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Suite 200, Santa Clara, CA

InfoStretch Selenium Framework (ISFW)

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

ISFW - Framework Packages


Integra7ons

Plug-ins

Comparators

Mobile

ISFW

Extensions

U7li7es Data Containers

Page Design

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

Con7nuous Build Integra7on

ISFW - Framework Architecture


Framework
Integrate Results

ISFW Base Class

Comparators Database Base Class

Integra7ons


Test Execu7on Lab

UI Base Class

Web Service Base Class

Image

Database

XML

Test Management

CI Build Tools

SOAP / REST

Test Library
Page Objects Library Automated TCs Func7on Libraries (App Specic) Test Data Repository Customiza7ons

Collects test execu7on results

Applica7on Under Test


Ini7ates and Maintains Session Informa7on
Browser Instances Web Service Containers API Libraries Backend Integra7on Systems

InfoStretch Selenium Framework (ISFW)


Benefits

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

Automation Integration
Test Management Tool Test Framework

e.g. TestNG e.g. QMetry / HP-QC Con7nuous Integra7on


Check-in Op7mize Build

Test Runner
Setup Launch Repor7ng Teardown

Test Assets

Test Reports
Report Test

e.g. Hudson / Jenkins e.g. ReportNG


phone: (408) 727-1100 | website: www.infostretch.com | email: info@infostretch.com
2004-2012 InfoStretch Corporation. All rights reserved.

14

Selenium Implementation Life cycle

Implementation Cycle

Framework Design (Improvements) Tools Integra7on (Improvements) Regression Execu7on Automa7on Implementa7on Tools Integra7on / Customiza7on Framework Design 1 2 3 4 5 6 Duration in Months 7 Automa7on ROI (Typical) 8

phone: (408) 727-1100 | |info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Suite 200, Santa Clara, CA website: www.infostretch.com | email: info@infostretch.com www.infostretch.com
2004-2012 InfoStretch Corporation. All rights reserved. 2004-2012 InfoStretch rights reserved.

Selenium Implementation

Life cycle with ISFW


Faster ROI

Implementation Cycle

ISFW Con7nuous Update by InfoStretch Team


Integrate latest ISFW Integrate latest ISFW

Regression Execu7on Automa7on Implementa7on


Customiza7on (FW and Tool)

Automa7on ROI (Typical) 7 8

4 5 6 Duration in Months

phone: (408) 727-1100 | |info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Suite 200, Santa Clara, CA website: www.infostretch.com | email: info@infostretch.com www.infostretch.com
2004-2012 InfoStretch Corporation. All rights reserved. 2004-2012 InfoStretch rights reserved.

Sample Test Implementation : with ISFW


@IsDataProvider(dataFile = "resources/data/flightsearch.txt") @Test(description = "flight search with multiple data", groups = { UAT", Smoke"}) public void mobileSearchFlight (String data) { FlightPage flightPage = new FlightSearchPage(); flightPage.launchPage(data); flightPage.searchForm.fillFromJsonString(data); flightPage.searchForm.fillUiElements(); flightSearchResultsPage resultsPage = flightPage.searchForm.submit( new flightSearchResultsPage()); Iterator<ResultCard> cards = resultsPage.getAllResultCards().iterator(); while (cards.hasNext()) { ResultCard card = cards.next(); card.verifyFlightOrigin(flightPage.searchForm.from); High Quality Code } with less }

maintenance

phone: (408) 727-1100

website: www.infostretch.com

email: info@infostretch.com

2004-2012 InfoStretch Corporation. All rights reserved.

Web based reporting


Highly customized Reports

phone: (408) 727-1100

website: www.infostretch.com

email: info@infostretch.com

2004-2012 InfoStretch Corporation. All rights reserved.

XML Comparator
Expected XML (Masked) Actual XML

Mask Process

Compare XML

Masked Actual XML

phone: (408) 727-1100 | |info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA website: www.infostretch.com | email: info@infostretch.com www.infostretch.com
2004-2012 InfoStretch Corporation. All rights reserved.

Sauce Labs Customization


selenium.server=ondemand.saucelabs.comselenium.port=80 sauce.json.refoxOnLinux={username: cjayswal,\ access-key: ????????-????-????-????-????????????,\ os: Linux,\ browser: refox,\ browser-version: 3.6,\ name: Parallel run evalua7on with InfoStretch fw} sauce.json.refox={username: cjayswal,\ access-key: ????????-????-????-????-????????????,\ os: Windows 2003,\ browser: refox,\ browser-version: 3.6,\ name: Parallel runevalua7onwithInfoStretchfw} sauce.json.iehta={username: cjayswal,\ access-key: ????????-????-????-????-????????????,\ os: Windows 2003,\ browser: iehta,\ browser-version: 8,\ name: Parallelrun evalua7on withInfoStretchfw}
<!DOCTYPE suite SYSTEM hpp://testng.org/testng-1.0.dtd> <suite name=Sample Test Automa7on verbose=0 parallel=tests data- provider-thread-count=10 > <test name=Test on Win2003 FireFox3.6 > <parameter name=browser value=sauce.json.refox /> <packages> <package name=com.sample.automa7on.tests/> </packages> </test> <test name=Test on Win2003 IE8> <parameter name=browser value=sauce.json.iehta/> <packages> <package name=com.sample.automa7on.tests/> </packages> </test> <test name=Test on Linux FireFox3.6> <parameter name=browser value=sauce.json.refoxOnLinux/> <packages> <package name=com.sample.automa7on.tests/> </packages> </test> <test name=Test on Win2003 IE8> <parameter name=browser value=sauce.json.iehta/> <packages> <package name=com.sample.automa7on.tests/> </packages> </test> </suite>

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

ISFW Custom Component : Calendar Control (Mobile Web)


public class CalanderControl extends IsExtendedWebElement { IsExtendedWebElement head = new IsExtendedWebElement("css=.calheader"); IsExtendedWebElement leftNavButton = new IsExtendedWebElement("css=a.calnavleft"); IsExtendedWebElement rightNavButton = new IsExtendedWebElement("css=a.calnavright"); public CalanderControl() { super(By.className("calendar-container")); } @Override public void sendKeys(CharSequence... keysToSend) { try { setMonth(keysToSend.toString()); new IsExtendedWebElement( By.linkText(StringUtil.getFormatedDate( keysToSend.toString(), "MMM dd, yyyy", "dd"))).click(); } catch (ParseException e) { throw new AutomationError(e); } }

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

ISFW Custom Component : Calendar Control (Mobile Web)


/** * @param date * */ private void setMonth(String date) throws ParseException { String cuurMonthStr = head.getText(); Date currMonth = new SimpleDateFormat("MMMM yyyy").parse(cuurMonthStr); Date expecteMonth = new SimpleDateFormat("MMM dd, yyyy").parse(date); if (expecteMonth.before(currMonth)) { int clickCnt = getMonthsDifference(currMonth, expecteMonth); while (clickCnt > 0) { leftNavButton.click(); clickCnt--; } } else if (expecteMonth.after(currMonth)) { int clickCnt = getMonthsDifference(expecteMonth, currMonth); while (clickCnt > 0) { rightNavButton.click(); clickCnt--; } } } www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

in MMM dd, yyyy format

* @throws ParseException

Selenium Automation DEMO


Web Demo
Flight Search One Way, Return Data Itera7on / Data Container Parallel Support Chrome Shared Framework and Library Func7ons Real Device Kindle Fire

Mobile Demo

phone: (408) 727-1100 | |info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA website: www.infostretch.com | email: info@infostretch.com www.infostretch.com
2004-2012 InfoStretch Corporation. All rights reserved.

IS Selenium Framework : Summary


Visit : hEp://blog.infostretch.com/tag/selenium Framework Features
Rich Set of Components Well though-out design Integra7on with most popular tools

Framework Benets

InfoStretch Support

Faster ROI Less TCO Easy upgrade Path

JumpStart / POC Selenium Migra7on Custom Integra7ons

Risk-free Automa7on Evalua7on


www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA

Questions

Website: www.infostretch.com Headquarters Santa Clara, CA


2880 Lakeside Drive, #200 Santa Clara, CA 95054 (408) 727 1100

Scarsdale, NY
17 Tanglewood Rd, Scarsdale, NY 10583 (703) 395-9791

Conshohocken, PA
500 Fayette St, #202 Conshohocken, PA 19428 (610) 400 1774

Ahmedabad
5th Floor , Regency Plaza, Anand Nagar, Ahmedabad-15, Gujarat, India 91-79-40266266

Mumbai
Vashi InfoTech Park ,B103,Tower # 1, Vashi Rail Station, New Mumbai, Maharashtra, India 91-22-6947900

Partners

www.infostretch.com | info@infostretch.com | +408.727.1100 | 2880 Lakeside Drive, Ste 200, Santa Clara, CA
2004-2012 InfoStretch Corporation. All rights reserved.

También podría gustarte