O'Reilly logo

Advanced UFT 12 for Test Engineers Cookbook by Jonathon Lee Wright, Meir Bar-Tal

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

Chapter 1. Data-driven Tests

In this chapter, we will cover the following recipes:

  • Creating a DataTable parameter
  • Retrieving data from a DataTable
  • Storing data in a DataTable
  • Importing an Excel file to a test
  • Exporting a DataTable
  • Parameterizing Test Object properties
  • Defining test cases using a DataTable
  • Storing data in the Environment object
  • Retrieving data from the Environment object
  • Reading values from an INI file
  • Using a configuration file to manage test environments
  • Using a global dictionary for fast shared data access
  • Using a global dictionary for fast shared code access

Introduction

This chapter describes several ways by which data can be used to drive automated tests in UFT. Data-driven tests enable us to cover different paths in a test flow, by supplying ...

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

Start Free Trial

No credit card required