万本电子书0元读

万本电子书0元读

顶部广告

Advanced UFT 12 for Test Engineers Cookbook电子书

售       价:¥

7人正在读 | 0人评论 9.8

作       者:Meir Bar-Tal

出  版  社:Packt Publishing

出版时间:2014-11-28

字       数:125.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This advanced cookbook is designed for software testers and engineers with previous automation experience and teaches UFT (QTP) developers advanced programming approaches. Knowledge of software testing and basic coding (with VBScript in particular) and familiarity with programming concepts are prerequisites.
目录展开

Advanced UFT 12 for Test Engineers Cookbook

Table of Contents

Advanced UFT 12 for Test Engineers Cookbook

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Instant updates on new Packt books

Preface

What this book covers

What you will need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Data-driven Tests

Introduction

Creating a DataTable parameter

How to do it...

How it works...

See also

Retrieving data from a DataTable

Getting ready

How to do it...

How it works...

Storing data in a DataTable

How to do it...

How it works…

There's more...

See also

Importing an Excel file to a test

Getting ready

How to do it...

How it works...

There's more...

See also

Exporting a DataTable

How to do it...

How it works...

There's more...

Parameterizing Test Object properties

How to do it...

There's more...

See also

Defining test cases using a DataTable

Getting ready

How to do it...

How it works...

Storing data in the Environment object

How to do it...

How it works...

There's more...

See also

Retrieving data from the Environment object

Getting ready

How to do it...

How it works...

See also

Reading values from an INI file

Getting ready

How to do it...

Using a configuration file to manage test environments

Getting ready

How to do it...

How it works...

Using a global dictionary for fast shared data access

Getting ready

How to do it...

How it works...

See also

Using a global dictionary for fast shared code access

Getting ready

How to do it...

How it works...

There's more...

See also

2. Testing Web Pages

Introduction

Checking whether page links are broken

Getting ready

How to do it...

How it works...

There's more...

See also

Deleting cookies

Getting ready

How to do it...

How it works...

Managing multiple browser windows

Getting ready

How to do it...

How it works...

Handling pop-up dialogs

Getting ready

How to do it...

How it works...

Downloading a file using XMLHttp

Getting ready

How to do it...

How it works...

Checking whether a website is up

Getting ready

How to do it...

How it works...

See also

Uploading a file using FTP

Getting ready

How to do it...

How it works...

Identifying elements based on anchors

How to do it...

How it works...

Synchronizing a test with a web page loading

How to do it...

How it works...

Accessing web elements through DOM

How to do it...

How it works...

See also

3. Testing XML and Database

Introduction

Establishing and closing a database connection

Getting ready

How to do it...

How it works...

Using SQL queries programmatically

Getting ready

How to do it...

How it works...

Using a database checkpoint

Getting ready

How to do it...

How it works...

Using an XML checkpoint

How to do it...

How it works...

4. Method Overriding

Introduction

Overriding a Test Object method

Getting ready

How to do it...

How it works...

There's more...

Number of function arguments

Interoperability of registered functions

See also

Registering a method to all classes

Getting ready

How to do it...

How it works...

Using method overriding to support object subtypes

Getting ready

How to do it...

How it works...

There's more...

Adding a new method to a class

How to do it...

How it works...

See also

5. Object Identification

Introduction

Setting mandatory and assistive properties for a class

Getting ready

How to do it...

How it works...

Using Descriptive Programming inline

Getting ready

How to do it...

How it works...

Using the Description object

Getting ready

How to do it...

How it works...

Using child objects

How to do it...

How it works...

Using native properties for object identification

Getting ready

How to do it...

How it works...

There's more...

See also

Identifying an object based on its parent

How to do it...

How it works...

6. Event and Exception Handling

Introduction

Catching errors inside a function or subroutine

Getting ready

How to do it...

How it works...

See also

Creating and using a recovery scenario

How to do it...

How it works...

Using a global dictionary for recovery

Getting ready

How to do it...

How it works...

7. Using Classes

Introduction

Implementing a class

Getting ready

How to do it...

How it works...

See also

Implementing a simple search class

Getting ready

How to do it...

How it works...

Implementing a generic Login class

Getting ready

How to do it...

How it works...

Implementing function pointers

Getting ready

How to do it...

How it works...

See also

Implementing a generic Iterator

Getting ready

How to do it...

How it works...

8. Utility and Reserved Objects

Introduction

Using global variables (Environment)

Getting ready

How to do it…

How it works…

See also

Customizing mouse operations (DeviceReplay)

Getting ready

How to do it…

How it works…

Managing processes (SystemUtil)

Getting ready

How to do it…

Measuring time (MercuryTimers)

Getting ready

How to do it…

How it works…

Resolving file locations (PathFinder)

Getting ready

How to do it…

How it works…

Loading shared object repositories (RepositoriesCollection)

Getting ready

How to do it…

How it works...

Loading and creating XML documents (XMLUtil)

Getting ready

How to do it...

Drawing a rectangle on the screen with Win32 API methods (Extern)

Getting ready

How to do it…

How it works…

Verifying binary file contents (FileCompare)

Getting ready

How to do it...

How it works...

Implementing a custom reserved object

How to do it…

How it works…

Using remote objects

Getting ready

How to do it…

How it works…

Utility statements

Getting ready

How to do it…

9. Windows Script Host

Introduction

Reading a key from the Windows® system registry

Getting ready

How to do it...

How it works...

Writing a key to the Windows® system registry

Getting ready

How to do it...

How it works...

Deleting a key from the Windows® system registry

Getting ready

How to do it...

How it works...

Running a process using the Windows® system shell

Getting ready

How to do it...

How it works...

10. Frameworks

Introduction to test automation frameworks

Definition of a test automation framework

Advantages of using a test automation framework

Types of test automation frameworks

Selecting a framework type

Modular-driven framework

Data-driven frameworks

Keyword-driven frameworks

Hybrid frameworks

Designing a test automation framework

Key design activities for a framework

Components of a framework

Controller

Reusable components (actions)

Event handler

Reporter

Building a test controller

Getting ready

How to do it...

How it works...

Building a reusable component (action)

Getting ready

How to do it...

How it works...

Building an event handler

Getting ready

How to do it...

How it works...

Building a test reporter

Getting ready

How to do it...

How it works...

A. Design Patterns

Auxiliary classes and functions

Action patterns

Runtime data patterns

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部