Frequently asked questions about recording scripts with HCL OneTest™ UI
This topic provides answers to some frequently asked questions about recording functional test scripts using HCL OneTest™ UI.
- Which controls does HCL OneTest UI support for functional testing?
- Is there only one dataset for a script?
- How do I test a popup window with HCL OneTest UI?
- Is it required to start an application with HCL OneTest UI to make it testable?
- Can scripts recorded under a JRE be played back on a different JRE?
- Does HCL OneTest UI support recording against the menu in browsers?
Which controls does HCL OneTest™ UI support for functional testing?
Is there only one dataset for a script?
Yes. datasets can be private or shared, much like object maps, so several scripts may use the same dataset.
In Simplified Scripting, more than one shared dataset can be used at a group level but not at a script level.
How do I test a popup window with HCL OneTest™ UI?
HCL OneTest™ UI has a special function to test popup windows. Do these steps to capture a popup window on the application under test (AUT):
- Begin recording and open the AUT.
- Click the Insert Verification Point or Action Command button on the Recording Monitor toolbar.
- Select Time Delayed Selection from the Selection Method list. Specify a time to delay before selection to allow sufficient time to navigate to the popup window and display it; for example, 10 seconds.
- Click the object finder.
As the timer counts down, move the mouse into the popup window, without actually pointing to a specific object. A good place to move the mouse is between the items on the list. Make sure that the mouse pointer is a regular pointer, not a pointing hand, and that you are not pointing to a specific item in the menu, unless that is all you want to capture. When the time expires, HCL OneTest™ UI highlights the data that will be captured in red and returns to the Verification Point dialog box. Here, you can choose to do a data verification point and test the table contents.
For information about the Time Delayed Selection object selection method, see Select an Object page of the Verification Point and Action Wizard.
- After clicking Next, you see the popup window content.
Is it required to start an application with HCL OneTest™ UI to make it testable?
No. If the environment has been correctly enabled, the application is testable even if HCL OneTest™ UI is not used to start it.
For information about enabling environments, see Preparing the functional test environment.
Can scripts recorded under a JRE be played back on a different JRE?
Scripts recorded under a JRE can be played back on a different JRE without requiring maintenance. However, when recording on JRE 1.3.x and playing back under JRE 1.4.x, object properties might change due to changes in the JRE. This causes errors during playback. To eliminate the errors, you must update the object properties.
For information about updating object properties, see Updating recognition properties.