Performance issues after converting JScript project to JavaScript in TC 12
Hello All,
We run a Delphi desktop application and use TestComplete 12 for a series of automated tests using JScript scripts (no keyword tests). I have converted the JScript project to JavaScript and am experiencing (serious) performance issues after the conversion.
Surprisingly, I only needed to change a single line of code for the project to run in JavaScript (so far!):
from: Project.Variables.VariableByName(pStrVariableName) = pObjValue;
to: Project.Variables.$set("VariableByName", pStrVariableName, pObjValue);
The tests in the JavaScript project run fine with no errors but they take at least twice as long to run when compared to the exact ones in JScript. Is there any project setting I need to change?
The performance issue appears to be when comparing (many) fields on the TestedApp, actual value vs expected value.
I changed aqObject.CompareProperty(pStrExpectedVal, cmpEqual, pStrActualVal, false, lmNone) to equal(pStrExpectedVal,pStrActualVal) but this has not made any difference to the performance in JavaScript.
To give an idea of the speed degradation, comparing 33 fields (among some 'if Object.visible' statements and 2 x 2 second delays waiting for forms to load) took about 5 seconds in JScript but about 9 seconds in JavaScript.
Has anybody else experienced any speed issues with converted JavaScript projects in TestComplete 12?
Any help would be greatly appreciated!!!