Silk4Net: How to share Object Maps across a number of Projects.

Silk4Net: How to share Object Maps across a number of Projects.

The following approach allows you to share Object Maps and other Test Assets between Silk4Net Projects within the same Visual Studio Solution; and involves adding a link to a resource from another Project where you wish to reuse it.

In the following example we assume that we have 2 Projects called 'Microfocus' and 'Supportline' in our Solution; and want to reuse Object Maps and Verification Assets that reside in the Microfocus Project, in the Supportline.

The first steps are to create the Silk4Net Projects within the Solution and generate the Test assets to be shared; which may include Object Maps, Image Assets or Verifications.

To share Resources between projects you will need to perform the following steps:

1. Right-Click on the 'Object Maps' folder in the Supportline Project and select 'Add > Existing Item' from the context menu.

2. Navigate to the Object Maps directory of the MicroFocus project. Click to highlight an Object Map; then click to open the drop-down menu of the 'Add' button and choose 'Add As Link' from the menu.

Repeat this process for all Object Maps that you need to use in the test project; all linked Maps should now be displayed in the Object Maps folder of the Support-line project.

3. Click on the linked Object Maps in the Supportline project to open the Properties panel; and in the 'Build Action' field select 'Embedded Resource' from the menu.

Repeat this step for each Object Map that was referenced from another project.

4. Add code to the Silk4Net script in the Supportline project that includes references to Object Maps in Microfocus; save and run the test to confirm that it works as expected.


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:
‎2016-11-15 22:38
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.