Web Trucliejnt - Actions are not loaded in web truclient browser

I have developed a script and I have 6 action defined in my script.

When I am opening this script in develop script mode then web truclient browser open but I can not see any action loaded also I am seeing  "Load Failed" error in web trueclient browser.

Please can you suggest me what's wrong here ?

Regards

KAPIL

Parents
  • Also when I am running this script on VUGEN directly then getting following error message

     

    Virtual User Script started at : 2017-04-10 16:08:10
    t=00001923ms: Error -205177: APIError: Unknown_Error error number:0
    undefined
    Exception in ScriptLocalPersistence addin - readScript Snapshot Info [MSH undefined 0] [MsgId: MERR-205177]
    t=00001924ms: Error -205177: TypeError: Unable to get property 'Handlers' of undefined or null reference
    undefined
    While calling handlers in TC_NS.RuleEngine dispatch, event=[TC_NS.Event type="TC.startRunLogic" target="[object Object]"], handler=
    function() {
    var steps = TC_NS.find("xpath:step[@type='handler' and @global]", TC_NS.Step.sections["Handlers"]);
    for (var i = 0; i < steps.length; i ) {
    if (!steps[i].disabled) {
    startedGlobalEventHandlers.push(steps[i]);
    steps[i].start(null, false, true);
    }
    }
    } Snapshot Info [MSH undefined 0] [MsgId: MERR-205177]
    t=00001931ms: Error -205177: Action step:Init Blockdoes not exist in the script
    undefined
    While calling handlers in TC_NS.RuleEngine dispatch, event=[TC_NS.Event type="TC.runTopBlock" target="[object Object]"], handler=
    function (e) {
    var runlogicStep = TC_NS.find("xpath:descendant::step[@type='runLogic']", TC_NS.Step.steps);
    var actionStep = TC_NS.find("xpath:child::step[@action='" e.actionName "']", runlogicStep)[0];
    if (!actionStep)
    throw "Action step:" e.actionName "does not exist in the script";

    TC_NS.Query(actionStep).addOnetimeEventListener("step/end", function (endE) {
    // Set parameters from TC.endTopBlock
    var event_args = { actionName: e.actionName };
    Object.extendWithoutOverwrite(event_args, endE);
    TC_NS.Event.dispatch("TC.endTopBlock", {}, event_args);
    });
    setTimeout(function () {
    actionStep.start();
    }, 0);
    } Snapshot Info [MSH undefined 0] [MsgId: MERR-205177]
    Action was aborted.

Reply
  • Also when I am running this script on VUGEN directly then getting following error message

     

    Virtual User Script started at : 2017-04-10 16:08:10
    t=00001923ms: Error -205177: APIError: Unknown_Error error number:0
    undefined
    Exception in ScriptLocalPersistence addin - readScript Snapshot Info [MSH undefined 0] [MsgId: MERR-205177]
    t=00001924ms: Error -205177: TypeError: Unable to get property 'Handlers' of undefined or null reference
    undefined
    While calling handlers in TC_NS.RuleEngine dispatch, event=[TC_NS.Event type="TC.startRunLogic" target="[object Object]"], handler=
    function() {
    var steps = TC_NS.find("xpath:step[@type='handler' and @global]", TC_NS.Step.sections["Handlers"]);
    for (var i = 0; i < steps.length; i ) {
    if (!steps[i].disabled) {
    startedGlobalEventHandlers.push(steps[i]);
    steps[i].start(null, false, true);
    }
    }
    } Snapshot Info [MSH undefined 0] [MsgId: MERR-205177]
    t=00001931ms: Error -205177: Action step:Init Blockdoes not exist in the script
    undefined
    While calling handlers in TC_NS.RuleEngine dispatch, event=[TC_NS.Event type="TC.runTopBlock" target="[object Object]"], handler=
    function (e) {
    var runlogicStep = TC_NS.find("xpath:descendant::step[@type='runLogic']", TC_NS.Step.steps);
    var actionStep = TC_NS.find("xpath:child::step[@action='" e.actionName "']", runlogicStep)[0];
    if (!actionStep)
    throw "Action step:" e.actionName "does not exist in the script";

    TC_NS.Query(actionStep).addOnetimeEventListener("step/end", function (endE) {
    // Set parameters from TC.endTopBlock
    var event_args = { actionName: e.actionName };
    Object.extendWithoutOverwrite(event_args, endE);
    TC_NS.Event.dispatch("TC.endTopBlock", {}, event_args);
    });
    setTimeout(function () {
    actionStep.start();
    }, 0);
    } Snapshot Info [MSH undefined 0] [MsgId: MERR-205177]
    Action was aborted.

Children