function openCreator(type, dataString) {
    const popupHeight = 800;
    const popupWidth = 1200;
    const popupTop = (window.height - popupHeight) / 2;
    const popupLeft = (window.width - popupWidth) / 2;
    const POPUP_STYLE_STRING = `height=${popupHeight},width=${popupWidth},top=${popupTop},left=${popupLeft}`;
    let popUp;

    /* Listener to catch testData from pop up and load it onto the testbench */
    const dataListener = (message) => {
        if (message.origin !== window.origin || message.data.type !== 'testData') return;

        // Check if the current scope requested the creator pop up
        const data = JSON.parse(message.data.data);

        // Unbind event listener
        window.removeEventListener('message', dataListener);

        // If scopeID does not match, do nothing and return
        if (data.scopeID != globalScope.id) return;

        // Load test data onto the scope
        runTestBench(data.testData, globalScope, CONTEXT.CONTEXT_SIMULATOR);

        // Close the 'Pop up is open' dialog
        $('#setTestbenchData').dialog('close');
    };

    if (type === 'create') {
        const url = `${TESTBENCH_CREATOR_PATH}?scopeID=${globalScope.id}&popUp=true`;
        popUp = window.open(url, 'popupWindow', POPUP_STYLE_STRING);
        creatorOpenPrompt(popUp);
        window.addEventListener('message', dataListener);
    }

    if (type === 'edit') {
        const url = `${TESTBENCH_CREATOR_PATH}?scopeID=${globalScope.id}&data=${dataString}&popUp=true`;
        popUp = window.open(url, 'popupWindow', POPUP_STYLE_STRING);
        creatorOpenPrompt(popUp);
        window.addEventListener('message', dataListener);
    }

    if (type === 'result') {
        const url = `${TESTBENCH_CREATOR_PATH}?scopeID=${globalScope.id}&result=${dataString}&popUp=true`;
        popUp = window.open(url, 'popupWindow', POPUP_STYLE_STRING);
    }

    // Check if popup was closed (in case it was closed by window's X button),
    // then close 'popup open' dialog
    if (popUp && type !== 'result') {
        const checkPopUp = setInterval(() => {
            if (popUp.closed) {
                // Close the dialog if it's open
                if ($('#setTestbenchData').dialog('isOpen')) $('#setTestbenchData').dialog('close');

                // Remove the event listener that listens for data from popup
                window.removeEventListener('message', dataListener);
                clearInterval(checkPopUp);
            }
        }, 1000);
    }
}
Use this function to navigate to test creator. This function starts the storage listener
so the test is loaded directly into the simulator
@param {string} type - 'create', 'edit' or 'result'
@param {String} dataString - data in JSON string to load in case of 'edit' and 'result'