第8章高级性能测试资料精要.ppt

确定系统组件 Two parts of a data-driven test: Datapool Commands in the script that draw data from the datapool (data-drive commands) Rational Functional Tester will create a datapool and insert data-drive commands while you are recording a script Creating a Data-Driven Test in Rational Functional Tester Creating a Data-Driven Test in Rational Functional Tester (cont.) Changing a Verification Point Reference to the Datapool You can change a verification point (VP) baseline from a literal value to a datapool reference During playback, the VP references the datapool and uses variable data as a baseline for comparison Importing an External Datapool Rational Functional Tester enables you to import an external datapool and use it to drive a test script. You can import data from three sources: An external spreadsheet (.csv file) Another Functional Test datapool An existing IBM Rational TestManager datapool However, keep these things in mind: The data must be imported into the same Rational Functional Tester project as the scripts that will access it Spreadsheet data must be saved as a .csv file before you import it To import data from a TestManager datapool, you must first associate the Rational Functional Tester project with the Rational project that contains the datastore Importing Datapools Associating a Datapool with a Script You can associate an imported datapool with one or more test scripts Substituting Script Literals with Variable References Use the Datapool Literal Substitution wizard to find and replace literal values in the script with datapool variables Exporting a Datapool Export a datapool to edit externally or to use in another Rational Functional Tester project Running a Data-Driven Test When you play back the script, you set the datapool iteration count to a specific number or to iterate until finished Where Are We? Data-driven testing Creating data-driven tests in Functional Tester Data-driven testing scenarios Rational Functional Tester Data-Driven Testing

文档评论(0)

1亿VIP精品文档

相关文档