Hello,
We have encountered a problem while recording with TruClient. I have created a solution(TruClient Web) in Load Runner and clicked on develop script. After recording a few steps, I deleted some of them and then recorded again and when I clicked on Save button, TruClient was stuck. I restarted Load Runner but when I open the same solution and click on Develop Script , TruClient is not working.
I have attached a screenshot, as you can see there is an error message :”Load failed”.
The error message from the console is:
3:25:21 PM: APIError: Unknown_Error error number:0
{anonymous}(APIError: Unknown_Error error number:0),{anonymous}(#object),{anonymous}(APIError: Unknown_Error error number:0),{anonymous}(APIError: Unknown_Error error number:0,"Exception in ScriptLocalPersistence addin - readScript"),{anonymous}("C:\Users\Corpo1\Documents\VuGen\Scripts\Demo1 - 28.11.2016\default.xml"),{anonymous}(#object),{anonymous}(#object,1),{anonymous}("TC.loadScriptModel",#object,#object,1),{anonymous}("TC.loadScriptModel",#object,#object,1),{anonymous}("C:\Users\Corpo1\Documents\VuGen\Scripts\Demo1 - 28.11.2016\default.xml"),
,[TC_NS.Event type="TC.loadScriptModel" target="[object Object]"],
,[TC_NS.Event type="TC.onScriptLoad" target="[object Window]"],
,[TC_NS.Event type="ui/load" target="[object Window]"],
,[TC_NS.Event type="ui/ready" target="[object Window]"]
Exception in ScriptLocalPersistence addin - readScript
3:25:21 PM: Syntax error, unrecognized expression: #
{anonymous}("Syntax error, unrecognized expression: #"),{anonymous}(#object),{anonymous}("Syntax error, unrecognized expression: #"),{anonymous}("Syntax error, unrecognized expression: #","While calling handlers in TC_NS.RuleEngine dispatch, event=[TC_NS.Event type="TC.onScriptLoad" target="[object Window]"], handler=
function (e) {
var result;
var path = TC_NS.Ambiance.getStringVal("SCRIPT_PATH");
if (path) {
var path = path + dirSeparator + "default.xml";
if (TC_NS.FileIO.isExist(path)) {
result = load(path);
if (result && result.scriptXml) {
scriptPath = result.filename;
}
}
}
e.callback(result);
}"),{anonymous}(#object,1),{anonymous}("TC.onScriptLoad",null,#object,1),{anonymous}("TC.onScriptLoad",null,#object),{anonymous}(),{anonymous}(#function),{anonymous}(#object),
,[TC_NS.Event type="TC.onScriptLoad" target="[object Window]"],
,[TC_NS.Event type="ui/load" target="[object Window]"],
,[TC_NS.Event type="ui/ready" target="[object Window]"]
While calling handlers in TC_NS.RuleEngine dispatch, event=[TC_NS.Event type="TC.onScriptLoad" target="[object Window]"], handler=
function (e) {
var result;
var path = TC_NS.Ambiance.getStringVal("SCRIPT_PATH");
if (path) {
var path = path + dirSeparator + "default.xml";
if (TC_NS.FileIO.isExist(path)) {
result = load(path);
if (result && result.scriptXml) {
scriptPath = result.filename;
}
}
}
e.callback(result);
}