Contributions
Re: Performance issues after converting JScript project to JavaScript in TC 12
Hi Robert, I did the conversion of the project using right click project and convert to JavaScript method. However, I think the performance issue is with JavaScript engine in TC. In my project, I did investigate the performance issue (before contacting support) and narrowed it down to data comparisons, actual vs expected. I was using aqObject.CompareProperty(pStrExpectedVal, cmpEqual, pStrActualVal, false, lmNone) for the data comparisons and then changed it to equal(pStrExpectedVal, pStrActualVal) and it made no difference. To do some base-line comparisons between the JScript and JavaScript engines, I created a for loop with 100 iterations to do: 1) a simple calculation, 2) compare the calculated value with a fixed value 3) output a line with Log.Message() if the comparison failed It took about twice the time to run in JavaScript than in JScript. Increasing the number of iterations made it worse in JavaScript!1.9KViews1like1CommentRe: Performance issues after converting JScript project to JavaScript in TC 12
Hey Blake, I raised a support case with the the Customer Care Team for this issue. After looking at my project, they acknowledged/confirmed the speed degradation in the converted JavaScript project and advised that there is no solution for it, for now.They may look into it in future releases. Some areas in JavaScript execute faster than JScript but overall, the JavaScript project works much slower for me. So my project remains in JScript!2KViews0likes4CommentsPerformance 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 JavaScriptand 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 changedaqObject.CompareProperty(pStrExpectedVal, cmpEqual, pStrActualVal, false, lmNone) toequal(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!!!2.1KViews1like7Comments