NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
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.