O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning Software Testing with Test Studio

Book Description

There’s all you need to get started with software testing using Test Studio in this handy tutorial. It covers test automation, execution, reporting, and much more. As a practical manual and guide to best practices it’s unbeatable.

  • Learn to use Test Studio to design and automate tests valued with their functionality and maintainability
  • Run manual and automated test suites and view reports on them
  • Filled with practical examples, snapshots and Test Studio hints to automate and substitute throwaway tests with long term frameworks

In Detail

Test Studio is Telerik’s QA solution for automating your manual testing. With Test Studio’s standalone edition or Visual Studio plugin, you can rule out the possibility of unreliable test execution and UI recognition, non indicative test results and reports, dispersed test repository, low code coverage, and unaffordable learning curves. With no code, this tool provides an intuitive IDE to effortlessly create maintainable tests. If you are looking for a solution to automate testing for your web, desktop, or mobile application, you can now benefit from Test Studio's rich automation features.

"Learning Software Testing with Test Studio" will illustrate how to reliably automate test cases when it is time to relinquish manual testing habits. This book is all about less theory and more hands-on examples to present a complete manual and automated solution for your ASP .NET, WPF, Silverlight or iOS apps.

This book gets you started directly with automation in Test Studio by exploiting its recording powers through series of concrete test cases built around the equipped applications. Each chapter starts with a typical automation problem which is then approached using Test Studio specialized automation features.

You will learn how to create record and playback functional, performance, and load tests. Furthermore, we will see how to insert verification steps, logical constructs, convenient logging operations, and how to convert test scripts in order to implement keyword and data-driven architectures. To endow your tests with additional flexibility, each recorded automation feature will be approached from its coded perspective through the usage of the underlying ArtOfTest Test Studio automation library.

This book also illustrates how Test Studio can automate pre-conditions, test result inputting, and the capturing of system states during manual test case execution in order to keep the tester’s attention focused on the important details.

Table of Contents

  1. Learning Software Testing with Test Studio
    1. Table of Contents
    2. Learning Software Testing with Test Studio
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
        3. Instant Updates on New Packt Books
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Introduction
      1. Testing concepts
        1. Test case
          1. Executing a test case
        2. The exit criteria
        3. The pesticide paradox
        4. Element recognition
      2. Testing phases
      3. Testing techniques
      4. Test Studio uncovered through the chapters
      5. Approach
      6. Setting up your environment
        1. The File Comparer application
        2. Reports
        3. Additional files
      7. Other reference sources
    9. 2. Automating Functional Tests
      1. Getting started with automation
        1. Where does automation fit best?
        2. Test strategies
          1. Capture and playback
          2. Data-driven architecture
          3. Keyword-driven architecture
      2. About Test Studio
        1. Supported technologies
        2. Architecture
      3. Functional test automation
        1. Recording an automated test
        2. Record and playback
          1. Editing tests
        3. Translators and verification steps
          1. Inserting a verification step
        4. Test Studio's built-in log
          1. Custom logging
          2. Code refactoring
        5. Automated test case design
        6. Using tests as steps
        7. Logical branching
        8. Extracting values to variables
        9. Additional automation tweaks in the code
      4. Functional random keyword-driven tests
      5. Test execution settings and debugging
        1. Syntax errors
        2. Execution errors
        3. Execution settings
        4. Debugging
      6. Integration with Visual Studio
      7. Summary
    10. 3. Data-driven Tests
      1. Data-driven testing architecture
      2. Binding tests to data sources
        1. Excel data source binding
          1. Importing an Excel data source
          2. Binding columns to Excel columns
          3. Data-driven verification
          4. Data-driven verification binding
          5. CSV data binding
          6. Editing a data source
          7. Logging the test metadata
        2. XML data source binding
          1. Importing an XML data source
          2. Binding columns to XML attributes
      3. Database binding
        1. A non data-driven test comprising a data-driven test
          1. Creating parent and child tests
        2. A data-driven test comprising a non data-driven test
          1. Creating child tests
        3. A data-driven test comprising another data-driven test
          1. Creating parent and child tests
          2. Creating parent and child tests
      4. Summary
    11. 4. Maintaining Test Elements
      1. Automation element recognition
      2. The element repository
        1. Adding elements
        2. The recorder toolbar DOM Explorer
        3. Forming the element repository
          1. Filtering options
        4. 3D Viewer Element Adding and Verification
      3. Finding locators
        1. Using the chained expression
      4. The Find class
        1. The Element factory
      5. Summary
    12. 5. Manual Testing
      1. Manual Testing
      2. Manual tests
        1. Excel integration
        2. Adding existing tests
      3. Hybrid tests
        1. Refactor tests
        2. Repository maintenance
      4. Test execution
        1. Data binding
        2. Transitioning to automated tests
      5. Versioning
        1. Integration with Visual Studio
      6. Tailor tests in Test Studio
        1. Decision tables
        2. State transition diagrams
      7. Summary
    13. 6. Test Lists and Reports
      1. Test suites
      2. Creating test lists
        1. Lists
        2. Dynamic lists
      3. Executing test lists
        1. Dynamic list automatic update
        2. Test list settings
          1. Specialized test list settings
      4. Reporting
        1. Result integration
        2. Visual Studio report integration
      5. SQL integration
        1. Submitting to SQL
        2. Excel Charts
          1. Execution metrics for last run
          2. Test case defect density
          3. Execution metrics over time
          4. Feature Coverage
          5. Test Execution Duration
        3. List result comparison
      6. Summary
    14. 7. Performance Testing
      1. Performance testing
      2. Performance time measurements
      3. Performance testing in Test Studio
        1. How it works
        2. Performance test planning and execution
          1. The planning phase
            1. Defining the objectives and expectations
            2. Baseline test environment
            3. BugNet user classification
            4. BugNet user activities
            5. Performance metrics selection
            6. Baseline tests
          2. The implementation phase
          3. The execution and analysis phase
            1. The overview mode
            2. The details view
            3. The compare view
            4. The history view
      4. Summary
    15. 8. Load Testing
      1. Load testing
      2. Measurements
      3. Load testing in Test Studio
        1. How it works
        2. Load test planning and execution
          1. The Planning and design phase
            1. Defining goals
            2. Designing workloads
            3. Defining test cases
          2. The implementation phase
            1. Configuring services
            2. Designing tests
              1. The Execution and analysis phase
              2. Database reporting
              3. Creating reports
      4. Summary
    16. 9. Mobile Testing
      1. iOS testing inside Test Studio
        1. Requirements
        2. Deployment
        3. Simulator
      2. Automating tests
        1. Creating tests
        2. Execution
        3. Testing on the device
        4. Debugging tests
        5. Test elements
          1. Wait on elements
          2. Locating elements
      3. Web portal
        1. Registering an application
        2. Testing
        3. Contributors
      4. Feedback and crash reports
        1. Configuring settings
        2. The Feedback option
        3. Crash reports
      5. Data management
        1. Configuring settings
        2. Database backup actions
        3. Database restore actions
      6. Summary
    17. 10. Tips and Tricks
      1. Introduction
      2. Maintainability
        1. Making a test work for both data-driven and hardcoded input
        2. Extension libraries
      3. Data-driven design
        1. Parameterizing the find element's expressions
        2. Variables
        3. Passing variables between tests
      4. Summary
    18. A. Configuring BugNet
      1. Creating user accounts
      2. Creating a project
    19. Index