SilkTest Workbench: Why are all Object Maps included when I export a Visual Test and Associated Assets?
When you export a Visual Test or .Net script from SilkTest Workbench and choose to include 'Assets associated with Visual Tests or .Net Scripts', as shown in the following screenshot; the expectation may be that only those Object Maps required to run the test will be exported:
However in the following example the Notepad Visual Test requires only the 'Untitled - Notepad' Object Map to run; but when exported with these settings, the export includes Maps that are clearly not required to run the test:
This is currently the expected behavior when exporting Visual Tests or .Net scripts from SilkTest Workbench. The export functionality does not actually parse the Visual Test or Script for references to specific Object Maps; so it does not know which maps are required to run them. Instead all Object Maps present are exported; which ensures that the test will run after its imported to another Workbench installation.
This is a known issue with the export functionality that may be enhanced in a future release; but for the time being you can workaround this limitation by disabling the option 'Export assets associated with Visual Test and .Net Scripts', and explicitly select those Object Maps that you want to export: