background image
<< TOC - Testing COM Components | TOC - Glossary >>
<< TOC - Testing COM Components | TOC - Glossary >>

TOC - Template Replacement Variables

ix
Generating COM Test Assets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102
Generating COM Unit Test Scripts and Datapools from a Rose Model . . . . . . 102
Populating the Datapool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Generating Stubs and Lookup Tables for the Unit Test . . . . . . . . . . . . . . . . . . 106
Populating the Lookup Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Recompiling with the Stub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Executing Test Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
Using COM Scenario Tests to Test Transactions . . . . . . . . . . . . . . . . . . . . .109
Using the OLE DB Query Builder to Add Database Verification Points . . . .112
Connecting to the Database via OLE DB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Designing a Custom SQL Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Using the Query Design Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Reviewing the Record Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Accepting the Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
DatabaseVP Advanced Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
A
Template Replacement Variables . . . . . . . . . . . . . . . . . . . . . . . . . 119
Replacement Variables for Unit Test Generation Templates . . . . . . . . . . . .119
Variables Used in All Unit Test Generation Templates . . . . . . . . . . . . . . . . . . . 120
Variables Used Only with the COM/Visual Basic Templates . . . . . . . . . . . . . . 124
Variables Used Only with the EJB Templates . . . . . . . . . . . . . . . . . . . . . . . . . 125
Replacement Variables for Scenario Test Generation Templates . . . . . . . .127
Variables Used in Both the COM/VB and EJB Templates . . . . . . . . . . . . . . . . 128
Variables Used Only in the COM/VB Scenario Test Templates . . . . . . . . . . . . 130
Variables Used Only in the EJB Scenario Test Templates . . . . . . . . . . . . . . . . 131
Replacement Variables for Stub Generation Templates. . . . . . . . . . . . . . . .132
Replacement Variables for the COM/VB Stub Templates . . . . . . . . . . . . . . . . 132
Replacement Variables for the EJB Stub Templates . . . . . . . . . . . . . . . . . . . . 134
B
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Resource File Not Found . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139
Symptom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
COM Test Scripts Fail to Run from TestManager . . . . . . . . . . . . . . . . . . . . .140
Symptom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Command Line Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
EJB Class or Interface Not Found Messages . . . . . . . . . . . . . . . . . . . . . . .140