It can sometimes be useful to have two or more test suites share the same Object Map. By default, test suites store their Object Map in the objects.map file which is kept in the same directory as the test suite's suite.conf file which holds the test suite's settings. However, you can change the objects.map file that the test suite uses, either through the Squish IDE or by directly editing the suite.conf file.
Sharing an Object Map using the Squish IDE's Settings¶
Click the Test Suites view's Test Suite Settings toolbar button to make the Test Suite Settings view visible. Scroll down until you can see the Object Map section.
Replace the objects.map with the name of the Object Map file you want to use (including its full path).
It may prove worthwhile to create an environment variable that holds the shared path (as the screenshot above illustrates).
Another alternative is to create a symbolic link to the shared objects.map file in the folder of every test suite that you want to use it. (Note that on Windows symbolic links are only supported by NTFS file systems.)
Sharing an Object Map by Editing the suite.conf File¶
Every test suite has a suite.conf file which stores suite-specific global settings. Each setting appears on its own line and has the format key_=_value. By default, test suites use the objects.map file that is in the same directory as the suite.conf file, but this can be overridden by modifying the OBJECTMAP entry. For example, the default entry should look like this:
If the shared objects.map file should be C:\MyApp\Testing\objects.map, change this as follows:
Change this entry in every test suite's suite.conf file that you want to share the same Object Map.
We would like to use Google Analytics to get a better understanding of how
you use the website.
By agreeing to this, your usage data will be stored in the USA and processed
by Google LLC. Both Google as well as federal US agencies can access this data
and combine it with any other data about you, such as your search history,
personal accounts or any other data known to Google.