Best Practices for Using Silk4J

Depending on the application under test and the testing environment, you might face different challenges while trying to perform functional or regression tests against your application. Micro Focus recommends the following best practices:
  • To optimally use the functionality that Silk4J provides, create an individual project for each application that you want to test, except when testing multiple applications in the same test.
  • If you have a large test framework in place, consider using the keyword-driven testing approach.
  • Allocate at least 512MB of memory for Eclipse. To do so, set the xms value in the file eclipse.ini, which is located in the Eclipse installation directory, to 512 or higher.
  • Set the size of text and other items on the screen of the machine on which you are testing to the default value. When using another setting than the default, you might experience coordinate offset issues during record and replay.
    • If you are using Microsoft Windows 7, you can change this setting under Start > Control Panel > Appearance and Personalization > Display.
    • If you are using Microsoft Windows 10, you can change this setting under Settings > System > Display > Change the size of text, apps and other items.
  • If you cannot record a test against your application because Silk4J cannot recognize the objects in the application or because Silk4J recognizes all objects in the application as Control, you could try to use the Microsoft UI Automation support by enabling the Enable UI Automation option in Silk4J. For additional information, see UI Automation.