Agile Automation and Unified Funtional Testing

Book description

Agile Automation and Unified Functional Testing is a one-stop resource that explains all concepts, features and benefits of agile automation and UFT with real-time examples and their solutions. This book starts with test automation basics and subsequently moves to its advanced concepts such as test automation life cycle, test automation approach, and framework design. It has been designed to be a beginner's guide for new users, a companion guide for experienced users, and a reference guide for professionals preparing for interviews or certification examinations on test automation and UFT.

Table of contents

  1. Cover
  2. Title Page
  3. Contents
  4. Synopsis
  5. About the Author
  6. Acknowledgement
  7. About the Book
  8. Section 1 Test Automation
    1. 1. Introduction
      1. Test Automation
      2. SWOT Analysis
      3. Test Automation Guidelines
      4. Test Automation: Myths and Realities
    2. 2. Test Automation Life Cycle
      1. Feasibility Analysis Phase
      2. Framework Design
      3. Business Knowledge Gathering
      4. Script Design
      5. Test Execution and Test Result Analysis
      6. Maintenance
      7. Quick Tips
      8. Practical Questions
    3. 3. Test Automation Approach
      1. Test Automation Approach
      2. Test Automation Scope
      3. Test Automation Development Model
      4. Test Automation—Testing Types to Be Covered
      5. Test Automation Project Infrastructure
      6. Test Automation—Team Dynamics
      7. Quick Tips
      8. Practical Questions
    4. 4. Test Automation Framework
      1. Framework Components
      2. Framework Types
      3. Quick Tips
    5. 5. Test Automation Metrics
      1. Technical/Functional Interchanges and Walk-through
      2. Configuration Management
      3. Test Automation Metrics
      4. Quick Tips
      5. Practical Questions
    6. 6. Test Automation Process
      1. Need Analysis Process Flow
      2. ROI Analysis Process Flow
      3. Tool Analysis Process Flow
      4. Proof of Concept
      5. Framework Design Process Flow
      6. Business Knowledge Gathering Process Flow
      7. Script Design Process Flow
      8. Script Execution Process Flow
      9. Test Results Analysis Process Flow
      10. Maintenance Process Flow
      11. Building One-Point Maintenance
      12. Version Control Strategy
      13. Communication Model
      14. Test Automation Documents
      15. Quick Tips
      16. Practical Questions
  9. Section 2 Agile Test Automation
    1. 7. Agile Methodology
      1. Agile Values
      2. Agile Principles
      3. Why Agile?
      4. Agile Methodologies and Practices
      5. Agile Team Dynamics
      6. Scrum
      7. How Scrum Works?
      8. Scrum Workflow
      9. Scrum of Scrums
      10. Kanban
      11. Feature-driven Development (FDD)
      12. Extreme Programming (XP)
      13. Test-Driven Development (TDD)
      14. Devops
    2. 8. Agile Automation
      1. Why Agile Automation
      2. Agile Automation values
      3. Agile Automation Principles
      4. Agile Automation Challenges
      5. Agile Automation Team Composition
      6. Agile Automation Practices
    3. 9. Agile Automation Framework
      1. Framework Components
      2. Screen Components
      3. Business Components
      4. Framework Structure
      5. Quick Tips
      6. Practical Questions
  10. Section 3 VBScript
    1. 10. VBScript
      1. VBScript Editors
      2. Data Types
      3. VBScript Variables
      4. VBScript Operators
      5. VBScript Conditional Statements
      6. VBscript Looping statements
      7. VBScript Functions
      8. Option Explicit
      9. Error Handling
      10. Examples
      11. Quick Tips
      12. Practical Questions
    2. 11. Dictionary
      1. Methods
      2. Properties
      3. Creating Dictionary Object
      4. Creating Dictionary of Dictionary Object
      5. Quick Tips
      6. Practical Questions
    3. 12. Regular Expressions
      1. How to Create a Regular Expression Object
      2. Meta Characters
      3. How to Use VBScript Regular Expression Object
      4. Parsing Dates
      5. E-mail Matching
      6. Replacing String Using Regular Expression
      7. Quick Tips
      8. Practical Questions
  11. Section 4 Basic UFT
    1. 13. Introduction to UFT
      1. UFT Main Window Overview
      2. Toolbars and Menus
      3. PANES
      4. FEATURES
      5. AUTOMATING COMPLEX AND CUSTOM GUI OBJECTS
      6. UFT TEST AUTOMATION PROCESS
      7. USING UFT HELP
      8. Quick Tips
      9. Practical Questions
    2. 14. UFT Installation
      1. Recommended System Requirements
      2. Access Permissions
      3. Access Permissions for BPT
      4. Installing UFT
      5. Installing UFT Licenses
    3. 15. UFT Configuration
      1. UFT Global Options
      2. UFT Test Settings
      3. Object Identification Configuration
      4. Object Identification Dialog Box
    4. 16. Test Script Development
      1. Business Scenario Identification
      2. Business Knowledge Gathering
      3. Planning Script Development
      4. Scripting Methods
      5. Scripting Guidelines
      6. Quick Tips
      7. Practical Questions
    5. 17. Environment Variables
      1. When to Use Environment Variables
      2. How to Define Environment Variables
      3. Quick Tips
      4. Practical Questions
    6. 18. Library
      1. Creating a New Library File
      2. Associating a Library file to a Test Script
      3. Designing Custom Library (DLL) Files
      4. Calling MS windows DLL functions from QTP
      5. Quick Tips
      6. Practical Questions
  12. Section 5 GUI Testing
    1. 19. Solution, Test and Action
      1. Solution
      2. GUI Test
      3. Action
      4. Quick Tips
      5. Practical Questions
    2. 20. Canvas
      1. Canvas Features
    3. 21. Objects
      1. UFT Object Class
      2. Object Descriptions
      3. Which Descriptions to Choose to Describe an Object
    4. 22. Test Object Learning Mechanism
      1. How UFT Learns Object Definition?
      2. Which Object Definitions UFT Learns?
      3. What is Source Index?
      4. What is Automatic XPath?
      5. What are Description Properties?
      6. What are Ordinal Identifiers?
      7. Does UFT Learns all Object Definitions?
      8. How UFT Decides it has Captured Sufficient Information to Uniquely Describe an Object?
      9. SOURCE Index Learning Mechanism
      10. Automatic XPath Learning Mechanism
      11. Description Properties Learning Mechanism
      12. Configuring Mandatory/Assistive Properties
      13. Configure Ordinal Identifiers
      14. Why to Configure Object Identification Properties?
      15. Points to Consider for Configuring Object Identification Settings
      16. Quick Tips
      17. Practical Questions
    5. 23. Object Repository
      1. Types of Object Repositories
      2. Adding New Objects to Shared OR
      3. Adding New Objects to Local OR
      4. How to Avoid Object Duplication in Object Repository
      5. Add/Remove Object Properties
      6. Modify Object Property Values–Regular Expression
      7. Associating a Shared Object Repository to a Test Script
      8. Update Object Properties From Application
      9. Highlight Test Object in Application GUI
      10. Highlight Application Object in Object Repository
      11. Define New Test Object
      12. Object Spy
      13. Identification and Native Properties
      14. Test and Run-Time Objects
      15. Comparing Shared Object Repositories
      16. Analyzing Comparison Results
      17. Merging Shared Object Repositories
      18. The Repositories Collection Object
      19. Quick Tips
      20. Practical Questions
    6. 24. Object Repository Design
      1. Object Repository Design
    7. 25. Datatables
      1. Working with Global and Action Sheets
      2. Parameterize Action with Local Datatable
      3. Parameterize Action with Global Datatable
      4. Add/Update Data to Datatable
      5. Design and Run-time Datatable
      6. Datatable Methods
      7. How to Read all Data of Global Datasheet
      8. Local Datatable Settings
      9. Global Datatable Settings
      10. Quick Tips
      11. Practical Questions
    8. 26. Working with Web Application Objects
      1. Working with Browser
      2. Launch Internet Explorer and Web Application
      3. Working with Page
      4. Working with WebEdit
      5. Working with Web Button
      6. Working with WebCheckBox
      7. Working with WebList
      8. Working with Link
      9. Working with Web RadioGroup
      10. Working with Web Table
      11. Function to Find Cell Ordinates of a Keyword Present in Webtable
      12. Exporting WebTable values to DataTable
      13. Exporting Web Table values to dictionary object
      14. Some Useful Methods
      15. Some Useful Utility Objects
      16. Some Useful Examples
      17. Quick Tips
      18. Practical Questions
    9. 27. Descriptive Programming
      1. When to Use Descriptive Programming
      2. Descriptive Programming Syntax
      3. Regular Expressions
      4. Child Objects
      5. Converting an OR-Based Test Script to a DP-Based Test Script
      6. Using DP-Based Object Repository
      7. Function to Close all Opened Browsers Except the One Which was Opened First
      8. Advantages of Descriptive Programming
      9. Disadvantages of Descriptive Programming
      10. Comparison of OR and DP Approaches
      11. Quick Tips
      12. Practical Questions
    10. 28. Synchronization
      1. Synchronization Methods
      2. Browser Native Synchronization Methods
      3. Defining Default Timeout Time
      4. Quick Tips
      5. Practical Questions
    11. 29. Checkpoints
      1. Checkpoint
      2. Standard Checkpoint
      3. Table Checkpoint
      4. Page Checkpoint
      5. Image Checkpoint
      6. Bitmap Checkpoint
      7. Text Checkpoint
      8. Text Area Checkpoint
      9. Database Checkpoint
      10. Accessibility Checkpoint
      11. Xml Checkpoint
      12. Quick Tips
      13. Practical Questions
    12. 30. Debugging
      1. Breakpoints
      2. Step Commands
      3. Debug Viewer Pane
      4. Quick Tips
      5. Practical Questions
    13. 31. Recovery Scenario and Error Handler
      1. Modifying Uft Test Settings
      2. Recovery Scenarios
      3. Recovery Scenario Design
      4. Recovery Scenario Object
      5. Adding Recovery Scenario to Scripts at Run-time
      6. Scenarios where Recovery Scenario Fails
      7. Vbscript Error Handlers
      8. Quick Tips
      9. Practical Questions
    14. 32. Test Results
      1. UFT Run Result ViewerPanes
      2. Test Result Filters
      3. Reporter Object
      4. Customizing Test Results
      5. Screen Recorder Tab
      6. Setting Test Run Options
      7. Exporting Captured Movie Files
      8. System Monitor Tab
      9. Exporting System Monitor Tab Results
      10. How to Jump to a Step In UFT
      11. Quick Tips
      12. Practical Questions
  13. Section 6 API Testing
    1. 33. API Testing: Introduction
      1. Web service Communication Process
      2. API Testing
      3. Why to automate API testing
      4. UFT API Testing
    2. 34. Automated Web Service Testing
      1. Testing Web Services Manually
      2. Manual Testing Using HTTP POST Request
      3. Testing Web Services Using UFT
      4. Testing Web Services Programmatically
  14. Section 7 Object Identification
    1. 35. Object Identification Mechanism
      1. Object Identification Methods
      2. UFT Test Object Identification Mechanism
      3. Insight Identification Mechanism
    2. 36. Object Identification Using Source Index and Automatic Xpath
      1. Source Index
      2. Automatic XPath
      3. Quick Tips
      4. Practical Questions
    3. 37. Object Identification Using XPath
      1. How to find XPath of a GUI Object?
      2. Object Identification using XPath
      3. XPath based Object Identification Mechanism
      4. Why to Build Custom Relative XPath of an Object
      5. XPath Query Language Features
      6. How to Build Custom XPath Expression?
      7. How to Verify that Custom XPath Works?
      8. Defining Description Properties including XPath in Object Repository
      9. Quick Tips
      10. Practical Questions
    4. 38. Object Identification Using CSS Selectors
      1. How to Find CSS Styles of an Element?
      2. How to Locate Elements Using CSS Attributes?
      3. Difference Between CSS and Sizzle
      4. Object Identification Using CSS Selectors
      5. Css Selector Methods
      6. Building CSS Locator Paths
      7. Quick Tips
      8. Practical Questions
    5. 39. Object Identification Using Visual Relation Identifiers
      1. How Visual Relation Identifiers Work
      2. VRI based Object Identification Mechanism
      3. How to Define Visual Relation Identifiers in OR
      4. Creating Visual Relation Identifiers using Code
      5. Practical Questions
      6. Quick Tips
    6. 40. Smart Identification
      1. SI Mechanism
      2. Configuring SI
      3. When to Use Smart Identification?
      4. Quick Tips
      5. Practical Questions
    7. 41. Object Identification Using Ordinal Identifiers
      1. Quick Tipw
      2. Practical Questions
    8. 42. Image-based Identification (Insight)
      1. Insight Identification Mechanism
      2. Insight Test Object Descriptions
      3. Adding Insight Objects to OR
      4. Developing Code using Insight Test Objects
      5. Configuring Insight Learning/Identification Mechanism
      6. Quick Tips
      7. Interview Questions
  15. Section 8 Advanced VBScript
    1. 43. Windows Scripting
      1. Managing Files
      2. Accessing File Properties
      3. Managing Folders
      4. Accessing Folder Properties
      5. Enumerating Files and Folders
      6. Connecting to Network Computers
      7. Windows Script Host (WSH)
      8. Windows API (Application Programming Interface)
      9. Quick Tips
      10. Practical Questions
    2. 44. Working with Notepad
      1. Methods
      2. Properties
      3. Creating a New Notepad File
      4. Open an Existing Notepad File
      5. Append Data to an Existing Notepad File
      6. Quick Tips
      7. Practical Question
    3. 45. Working with Microsoft Excel
      1. Excel Object Model
      2. Excel Object Browser
      3. Excel as Database
      4. Quick Tips
      5. Practical Questions
    4. 46. Working with Database
      1. Connection Object
      2. Recordset Object
      3. Connection to a Database
      4. Connecting to MS Excel Database
      5. Connecting to MS Access Database
      6. Connecting to MS SQL Server Database
      7. Connecting to Oracle Database
      8. Function to Execute Query on Oracle DB
      9. Quick Tips
      10. Practical Questions
    5. 47. Working with XML
      1. XML Structure
      2. XML DOM
      3. QTP XML Objects
      4. Locating XML Elements XPath Query
      5. Quick Tips
      6. Practical Questions
    6. 48. Working with Microsoft Word
      1. Word Automation Object Model
      2. Quick Tips
      3. Practical Questions
    7. 49. Working with An E-Mail Client
      1. Microsoft Outlook
      2. IBM Lotus Notes
      3. Quick Tips
      4. Practical Questions
  16. Section 9 Advanced UFT
    1. 50. Working with Object Native Properties
      1. Finding Object Native Properties
      2. Retrieving Object Native Properties
      3. Using attribute/* Notation to Read native Properties
      4. Object Identification using Object Native properties
      5. Viewing Custom Attributes in Object Spy Tool
    2. 51. HTML DOM
      1. HTML DOM
      2. HTML DOM Objects
      3. Quick Tips
      4. Practical Questions
    3. 52. Object Repository Automation
      1. TOCollection Object
    4. 53. UFT Automation Object Model
      1. Automating UFT
      2. Launching UFT
      3. Launching UFT on Remote Machine
      4. UFT Object Model
      5. ObjectRepositories Collection Object
      6. TestLibraries Collection Object
      7. Recovery Object
      8. Recovery Scenario Object
      9. RunSettings Object
      10. RunOptions Object
      11. Test Object
      12. Quick Tips
      13. Practical Questions
  17. Section 10 Business Process Testing
    1. 54. Integrating UFT with ALM
      1. Integrating QTP with QC
      2. Quick Tips
      3. Practical Questions
    2. 55. Business Process Testing
      1. Life Cycle of BPT
      2. Creating Business Components
      3. Defining Component Details
      4. Adding Snapshot
      5. Defining Business Component Parameters
      6. Adding Design Steps
      7. Converting Manual Component to Automated Component
      8. Opening Automated Component in QuickTest
      9. Creating Business Process Tests
      10. Debugging Business Process Tests
      11. Creating Test Set
      12. Executing Test Set
      13. Developing Business Components
      14. Creating Application Area
  18. Section 11 eBook
    1. Chapter 56 Working with PuTTY
    2. Chapter 57 Working with UFT XML OR
    3. Chapter 58 Reserved Objects
  19. Appendices
    1. Appendix A—Test Script Template
    2. Appendix B—Scripting Guidelines
    3. Appendix C—VBScript Naming Conventions
    4. Appendix D—Script Review Checklist
    5. Appendix E—Test Tool Evaluation CHART
    6. Appendix F—Object Identification Standards for a Typical Web Application
  20. Index
  21. Copyright

Product information

  • Title: Agile Automation and Unified Funtional Testing
  • Author(s): Rajeev Gupta
  • Release date: August 2016
  • Publisher(s): Pearson Education India
  • ISBN: 9789332578944