2007-Jun-5 - Notes of QuickTest Pro 8
- During playback, after modify the content in an editbox, the Save button is still grayed/disabled. A workaround for it is to click on other components like Check Box on the same page. e.g. Browser( ).Page( ).Frame( ).WebCheckBox( ).Click.
- Before test web UI, open Internet Options -> Advanced, enable "Display a notification about every script error".
- Bitmap checkpoint is too strict, hence too much false positive. Note that the bitmap screenshot may have an extra purple frame around it that needs to be removed.
- Optional step allows QTP to skip some failed steps, instead of terminating the test.
- If the Debug menu is grayed/disabled, go to Windows Add/Remove Windows Components, and install Script Debugger.
- Test Batch Runner is a useful tool in QTP program package to run test cases in batch.
- To run external programs, use "SystemUtil.Run" function.
- Able to run DOS commands.
- Other programs can call the automation scripts created by QTP:
WScript /e: VBSCRIPT {path to the script}
For more information, refer to QT Automation Object Model Reference -> Configure Settings for Running a Test.
10. To parameterize test data in script:
for n=1 to 3
......=database("{dataname}", "{datatable}")
datatable.SetNextRow
next
11. Difference between GetTOProperty, GetTOProperties, and GetROProperty:
GetTOProperty: property from test object description
GetTOProperties: collection of properties and values used to identify object
GetROProperty: current value of test object property
|