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

Silk Test Classic hangs when replaying a testcase

Silk Test Classic hangs when replaying a testcase

When replaying a Silk Test Classic testcase, Silk Test appears to simply stop executing further actions. When the problem occurs the following behaviour is observed:

  • No "Current agent call" being replayed
  • The "Elapsed time" continues to increment
  • It is not possible to abort the test.

For Example:

The above problem is caused by the use of a very specific winclass structure, in which user has performed the following:

  1. Defined the locator at the winclass level
  2. The locator contains a variable

For example:

[ ] String sVar = "AUT Caption"
[ ]
[-] winclass wMyWinClass:MainWin
     [ ] locator "/MainWin[@caption='*{sVar}*']"
     [ ]
     [ ]
     [-] TextField theTxtFld
          [ ] locator "//TextField"


A window declaration is then defined which is an instance of "wMyWinClass":

[ ] window wMyWinClass MyApp


When a testcase is then executed which makes use of the above window declaration, the hang occurs:

[ ] MyApp.theTxtFld.Exists()

At this point the user must terminate the "partner.exe" process and restart Silk Test Classic.


The above scenario is a 4Test limitation. To overcome this limitation, the locator must be referenced at the window declaration level. For example, to centralize the locator at the window declaration level, it must be defined as a variable:

[ ] String sVar = "AUT Caption"
[ ]
[-] winclass wMyWinClass:MainWin
     [ ] String sLocator = "/MainWin[@caption='*{sVar}*']"
     [ ]
     [ ]
     [-] TextField theTxtFld
          [ ] locator "//TextField"


The final part of the solution is to reference the locator at the window declaration level, which allows the testcase code to execute successfully:

[-] window wMyWinClass MyApp
     [ ] locator sLocator

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:
‎2015-05-12 14:48
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.