|
5#
楼主 |
发表于 2008-7-23 17:27:49
|
只看该作者
这是最原始的问题,我怕贴出来大家都不想看了,才简单的问了句。 使用的是QTP安装时自带的Flight程序。
Exercise C: Using QuickTest and VB Script Functions with the Data Table
Note: Normally it is Best Practice that QuickTest can run unattended. However, for
training purposes, we will use manual input in this exercise .
Create a test that will perform the following:
login as member
specify flight details
search for available flights
pick from the list of available flights
supply payment information
purchase the flight
go back and search for another flight
log off
Your script should:
Note: Answer the questions before you start implementing the test requirements. The
questions will act as a guide for the correct usage of functions and Statement for the
script.
1. Data drive the test on the Departing From and Arriving In fields for one valid
member login.
2. Import the data to use from an existing spreadsheet file: \Data\testdata.xls.
3. Iterate the test depending on the row number entered by the tester and not by the
action properties or run settings.
4. You can use either one Action or multiple Actions. Remember to declare global
variables and constants if you are using multiple Actions. |
|