How Squish looks up Real Names from Symbolic Names

Last edited on

Real Names

function main()
{
    ...
    var n = {"type": "CMainWindow", "visible": 1, "windowTitle": "xyz"};
    var o = waitForObject(n);
    ...
}
test.js

Symbolic Names

import * as names from 'names.js';

function main()
{
    ...
    var n = names.xyz_CMainWindow;
    var o = waitForObject(n);
    ...
}
test.js

Example "<TEST_SUITE_DIR>/shared/names.js" content with an entry for "names.xyz_CMainWindow":

xyz_CMainWindow={"type": "CMainWindow", "visible": 1, "windowTitle": "xyz"}

Object lookup from symbolic name to real name to GUI object