Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

When using Record > Defined Window, why is SilkTest forcing me to paste the declaration into an .inc file that is referenced in Options > Runtime?

When using Record > Defined Window, why is SilkTest forcing me to paste the declaration into an .inc file that is referenced in Options > Runtime?

Problem:

When using Record > Defined Window, why is SilkTest forcing me to paste the declaration into an .inc file that is referenced in Options > Runtime?

Resolution:

QUESTION
----------------------------------

When using Record > Defined Window, why is SilkTest forcing me to paste the declaration into an .inc file that is referenced in Options > Runtime?

ANSWER
----------------------------------

About Record > Defined Window

The Record Defined Window dialog can be accessed via the Record > Defined Window menu.


You can use the Record Defined Window dialog if SilkTest is unable to recognize a window while you are recording a testcase, for example it may be recognized as a CustomWin.

If there is an error in your .inc file, this dialog will not appear. You must fix the error before you can display the Record Defined Window dialog.

The Record Defined Window dialog contains:

Window Name - Enter the name for the window you are defining.
Window Rectangle - Lists the window"s coordinates after you draw a rectangle around the new window.
Draw Rectangle - Click to activate, then click and draw a rectangle around the window you want to define.
Cancel - Click to avoid saving your work to the frame.inc file.
Accept - Click to save the new window definition to your .inc file. The newly defined window appears at the end of the .inc file.

Details of issue

When you use Record > Defined Window, you will find that SilkTest is forcing you to paste the declaration into the .inc file that is referenced in Options > Runtime. If you have multiple .inc files in Options > Runtime you have the choice of which .inc to paste into. You will notice that SilkTest won"t let you paste the declaration into an .inc file that you currently have active and is not listed in Options > Runtime.

Is there any way around this?

Paste the declaration into the .inc file where SilkTest forces you to paste it into (of if you have multiple .inc files in Options > Runtime you could choose any of these files) and then cut and paste the declaration into the correct .inc file.

Note: This is currently working as designed, however the issue has been logged with our development team as an enhancement request (which will be considered for a future release of SilkTest), i.e. so you have the ability to paste the declaration into an .inc file of your choice and one that is not listed in Options > Runtime.

Old KB# 20878

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:14
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.