• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Test Automation
 

Test Automation

on

  • 530 views

 

Statistics

Views

Total Views
530
Views on SlideShare
530
Embed Views
0

Actions

Likes
1
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Test Automation Test Automation Presentation Transcript

    • Test Automation Training By Unmesh Ballal
    • AgendaWhen to automate?Benefits of AutomationCode Driven TestingTest FrameworkTest automation toolsGUI testingBrief training on SeleniumDemo of SeleniumTest Automation Charter
    • When to automate?No GUI Changes – code stableTime spend on manual testing is too muchAutomating early can be time consumingManual testing limitation Data is pre-defined
    • Automation benefitsManual test case is included in testing for automationPlatform and OS independence e.g. Web, mobileData driven capability (Input Data, Output Data, Metadata)can be expandedEasy debugging and loggingExtensible & Customizable by integrating with other toolsAvailability of reliable test case driver (Ant or Maven)Ability to integrate with the developers workflows.Support unattended test runsSupport distributed execution environment across multipleplatform and OS
    • Code driven testingWhat is a unit test?A feature of agile developmentUnit test cases are written before code is writtenmore reliable because the code coverage is betterRun anytime
    • xUnit architetureTest caseTest fixtures (test context) or preconditionsTest suitesTest executionpublic class TestAdder { public void testSum() { Adder adder = new AdderImpl(); // can it add positive numbers? assert(adder.add(1, 1) == 2);}}
    • Framework approachFramework consists of Test Suite Test cases And Test librarySelenium Driver Supports Firefox Additional steps are required to use Chrome Driver, Opera Driver, Android Driver and iPhone Driver
    • Popular Test Automation tools Selenium – open source QTP Rational Robot
    • Graphical user interface (GUI) testing Record and playback Reading values and asserting Web application has HTML tags for each controls such as Buttons Checkbox List Etc Values can be get and set on controls
    • How to start using SeleniumInstalling Selenium IDE as firefox add-on.Install firebugInstall selenium driver (optional)Selenium IDE concepts Recording Adding verifications and asserts Clicking a link - click or clickAndWait commands Entering values - type command Selecting options from a drop-down listbox - select command
    • Selenium CommandsCommand, Target, and Value entry fields categories Actions, Accessors and Assertions Actions - Command manipulators such as click, select. E.g. clickAndWait Accessors – examine the state of the application and store the results in variables. E.g. storeTitle Assertions - e.g. verify if checkbox is checked “assert”, “verify”, and ” waitFor”Script Syntax a locator for identifying a UI element within a page. a text pattern for verifying or asserting expected page content a text pattern or a selenium variable for entering text in an input field or for selecting an option from an option list.
    • Selenium command examplesverifyText //div//a[2] LogingoBackAndWait Welcome to My HomeverifyTextPresent Pagetype id=phone (555) 666-7066type id=address1 https://www.youtube.com/watch?v=JM4GldTw_Cw
    • Test Automation CharterObjectives Write manual test cases that are automatable Develop Selenium expertise Add project experience Able to test automation on Web applications Mobile apps iOS, iPhone, Android
    • Questions?