Test Automation Training        By Unmesh Ballal
AgendaWhen to automate?Benefits of AutomationCode Driven TestingTest FrameworkTest automation toolsGUI testingBrief traini...
When to automate?No GUI Changes – code stableTime spend on manual testing is too muchAutomating early can be time consumin...
Automation benefitsManual test case is included in testing for automationPlatform and OS independence e.g. Web, mobileData...
Code driven testingWhat is a unit test?A feature of agile developmentUnit test cases are written before code is writtenmor...
xUnit architetureTest caseTest fixtures (test context) or preconditionsTest suitesTest executionpublic class TestAdder {  ...
Framework approachFramework consists of  Test Suite  Test cases  And Test librarySelenium Driver  Supports Firefox  Additi...
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 tag...
How to start using SeleniumInstalling Selenium IDE as firefox add-on.Install firebugInstall selenium driver (optional)Sele...
Selenium CommandsCommand, Target, and Value entry fields categories     Actions, Accessors and Assertions        Actions -...
Selenium command examplesverifyText          //div//a[2]   LogingoBackAndWait                                  Welcome to ...
Test Automation CharterObjectives  Write manual test cases that are automatable  Develop Selenium expertise  Add project e...
Questions?
Upcoming SlideShare
Loading in …5
×

Test Automation

890 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
890
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Test Automation

  1. 1. Test Automation Training By Unmesh Ballal
  2. 2. AgendaWhen to automate?Benefits of AutomationCode Driven TestingTest FrameworkTest automation toolsGUI testingBrief training on SeleniumDemo of SeleniumTest Automation Charter
  3. 3. 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
  4. 4. 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
  5. 5. 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
  6. 6. 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);}}
  7. 7. 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
  8. 8. Popular Test Automation tools Selenium – open source QTP Rational Robot
  9. 9. 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
  10. 10. 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
  11. 11. 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.
  12. 12. 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
  13. 13. 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
  14. 14. Questions?

×