Effective Software Test Automation : Developing an Automated Software Testing Tool

Effective Software Test Automation : Developing an Automated Software Testing Tool

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 400 p.
  • 言語 ENG
  • 商品コード 9780782143201
  • DDC分類 005.1

Table of Contents

Introduction                                       xv
Chapter 1 Software Testing: An Overview 1 (18)
Purpose of Software Testing 3 (2)
Expectations of Automated Software Testing 5 (2)
Automated Testing and XP Practice 6 (1)
Software Test Engineers 7 (1)
How to Automate Software Testing 7 (3)
Software Testing and Programming Languages 10 (7)
Using C# for Automation 15 (1)
Test Scripts 16 (1)
Summary 17 (2)
Chapter 2 Current Testing Infrastructure vs. 19 (16)
the Proposed Testing Methods
Types of Software Testing 20 (2)
Automated Testing Tools in the Marketplace 22 (7)
DevPartner Studio from Compuware Corporation 22 (1)
Insure++ from Parasoft 23 (1)
Mercury Interactive 23 (1)
ObjectTester by ObjectSoftware, Inc. 24 (1)
Rational Software from IBM 25 (1)
Segue Software 26 (1)
TestWorks from Software Research, Inc. 26 (1)
Open Source Testing Tools 27 (1)
Comparing Testing Tools 28 (1)
The Proposed Software Testing Tool 29 (4)
Improvement of Unit Testing 29 (1)
Automated Generation of Testing Data 30 (1)
A Unique Approach for Integration Testing 30 (1)
Ability to Be Updated with New Testing 31 (1)
Capabilities
Writing Test Script Based on Data 31 (2)
Summary 33 (2)
Chapter 3 .NET Namespaces and Classes for 35 (28)
Software Testing
Discovering the Namespace of a Product 37 (2)
Discovering the Namespace in Multiple Source 39 (1)
Files
Testing Classes and Namespaces 40 (7)
Creating the AutomatedTest Tool Project 41 (6)
C# Keywords: using and namespace 47 (5)
Declaring namespace Directives with the 48 (1)
Keyword using
Primitive .NET Data Type and C# 49 (1)
Representation
Predefined .NET Namespaces for Automated 50 (2)
Testing
Retrieving Type Classes under Test 52 (9)
Retrieving Types by Name 53 (5)
Retrieving Types by Instance 58 (1)
Retrieving Types from a Given Assembly 59 (2)
Summary 61 (2)
Chapter 4 .NET Reflection for Test Automation 63 (36)
The Basics of Reflection 64 (18)
System.Type Class 65 (1)
Discovering Type Information of a Variable 66 (1)
Creating a Sample Class for Testing 67 (9)
Gathering Test Information Using the System 76 (4)
Type Class
Enumerating Method Parameters 80 (2)
Testing Software with the .NET Reflection 82 (12)
Namespace
Loading an Assembly 83 (6)
Loading Type Classes from an Assembly 89 (5)
Dynamic Testing Invocation (Late Binding) 94 (3)
Summary 97 (2)
Chapter 5 Spreadsheets and XML for Test Data 99 (50)
Stores
Working with MS Excel Objects in C# 100(1)
The Object Model of Excel 101(5)
The Excel Application Object 102(1)
Opening an MS Excel Application 102(4)
Creating a Workbook Object 106(5)
Workbook Properties 107(1)
Workbook Methods 107(3)
Workbook Events 110(1)
Creating a Worksheet Object 111(3)
Worksheet Properties 111(1)
Worksheet Methods 112(2)
Worksheet Events 114(1)
Creating a Range Object 114(4)
Range Properties 115(1)
Range Methods 116(2)
Building a Data Store for Automated Software 118(22)
Testing
Making a Utility Class 119(3)
Collecting Test Information of Types 122(1)
Creating an Excel Application 123(1)
Testing against Expected Return Values 124(1)
Implementing Data Stores 125(7)
Completing the Method Inventory for the 132(4)
Types under Testing
Gathering Information for Test 136(4)
Enabling XML Documentation for the Test Data 140(7)
Store
XML Programming 140(6)
Testing with the Data Stored in the XML 146(1)
Document
Summary 147(2)
Chapter 6 .NET CodeDom Namespace 149(38)
Dynamic CodeDom Programming 150(10)
The System. CodeDom Namespace 160(26)
Types of System. CodeDom Namespace 162(1)
The LastCodeDom Example 163(23)
Summary 186(1)
Chapter 7 Generating Test Scripts 187(54)
Restarting the AutomatedTest Project 188(1)
Starting the Test Script Generation 189(2)
Using CodeDom to Write Test Scripts 191(39)
Discovering Dependencies 197(2)
Programming the MS Excel Application 199(4)
Enumerating Type Information 203(2)
Enumerating Method Information 205(11)
Enumerating Parameter Information 216(6)
Closing the Test Script 222(3)
Executing Software Test Script 225(5)
Running the AutomatedTest 230(1)
Outcome of the AutomatedTest Project 231(8)
Summary 239(2)
Chapter 8 Integration Testing 241(36)
Testing Parameters Passed by Objects 242(2)
Building a Higher-Level Module to Be Tested 244(6)
Building a Form for Manual Stubbing 250(16)
Code for Testing Parameters Passed by Objects 266(6)
Making Code Stubs with a Given Assembly 268(1)
Enumerating Assembly Information 269(3)
Finishing Testing Parameters Passed by Objects 272(3)
Summary 275(2)
Chapter 9 Verification, Validation, and 277(40)
Presentation
Automated Verification 278(4)
Verification by the Test Scripts 279(2)
Verification Decision 281(1)
Automated Validation 282(24)
Validation Scope of the Automated Test 283(1)
Creating Early Phase Test Scripts 284(22)
Presentation of the Test Results 306(8)
Passing a Test 307(2)
Failing a Test 309(5)
Summary 314(3)
Chapter 10 Finalizing the AutomatedTest Tool 317(26)
Improving the Appearance of the AutomatedTest 318(2)
Project
Automatically Generating .NET Project 320(11)
Components
The App.ico and AssemblyInfo.cs Files 320(4)
The .NET *.csproj 324(7)
Test Script Naming Convention 331(3)
Building Multiple Data Stores 334(3)
Auto-Execution of the Test Script Project 337(3)
Achieving Full Test Automation 340(2)
Summary 342(1)
Chapter 11 Updating the AutomatedTest Tool for 343(24)
Testing the Windows Registry
Windows Registry 344(1)
Accessing the Windows Registry 345(9)
RegEdit 345(2)
System Properties 347(2)
Command Prompt Window 349(1)
Windows Registry Programming 349(5)
Creating a Test Script to Test Software 354(1)
against the Windows Registry
Adding CodeDom Methods to Update the 355(6)
AutomatedTest Tool
Testing the AddAutoTestPath Project against 361(5)
the Windows Registry
Summary 366(1)
Chapter 12 Testing the AutomatedTest Tool 367(22)
Starting the Automated Test Tool 368(3)
Project Target Folder 370(1)
Result Target Folder 370(1)
.NET IDE Location 370(1)
Testing the LowLevelObj.dll Assembly 371(1)
Editing the Data Store 372(3)
Reviewing Test Results 375(3)
Testing Parameters Passed by Objects 378(3)
Testing with Multiple Sets of Data Stores 381(1)
Testing Overloaded Methods 382(2)
Testing Parameters Passed by Arrays 384(2)
Summary 386(3)
Bibliography 389(2)
Index 391