Highlighted
Absent Member.. James Leatherma Absent Member..
Absent Member..
783 views

TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a function

http://h30499.www3.hp.com/t5/LoadRunner-Support-Forum/TC-FF-evalXPath-will-not-evaluate-variable-inside-of-for-loop/m-p/6549046#M10181

 

The above link references how I use evalXPath. The solution I have worked brilliantly in TC for FF in LR 12.00, but now in 12.01.2079.0, this step no longer works.

 

The error from mdrv.log shows the progress, the correct evaluation of the variable, and the subsequent failure:

 

Notify: Transaction "004 Show 500 Contacts" ended with "Pass" status (Duration: 0.5819).
t=00027511ms: ** 9: For (var i = 2; i < 21; i++) ** started    [MsgId: MMSG-205180]
t=00027535ms: ** 9: For loop 1 ** started    [MsgId: MMSG-205180]
Notify: Transaction "005 Open Contacts Page" started.
t=00027859ms: ** 9.1: Click on i javascript_link ** started    [MsgId: MMSG-205180]
t=00027867ms: Error -205177: TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a function
Ident.constructors.JavaScript.prototype<._evaluate@chrome://truclientrre/content/ident/IdentJavaScript.js:13:1
find@chrome://truclientrre/content/ident/Ident.js:274:1
Ident.prototype._evaluateImpl@chrome://truclientrre/content/ident/Ident.js:381:3
Ident.prototype.evaluate@chrome://truclientrre/content/ident/Ident.js:168:1
TestObject.prototype.evaluate@chrome://truclientrre/content/model/TestObject.js:391:3
.evaluateTestObject@chrome://truclientrre/content/model/TestObjectDelegator.js:52:1
@chrome://truclientrre/content/model/Step.js:1261:4
window.RuleEngine.dispatch@chrome://truclientrre/content/infra/RuleEngine.js:111:11
window.Event@chrome://truclientrre/content/infra/Event.js:13:20
.dispatch@chrome://truclientrre/content/infra/Event.js:24:4
.updateReadyState@chrome://truclientrre/content/model/CommonTestObjectStepExts.js:158:1
processStep@chrome://truclientrre/content/model/Step.js:1152:4
processNextStep@chrome://truclientrre/content/model/Step.js:1174:6
enterDispatchLoop@chrome://truclientrre/content/model/Step.js:1209:5
Step.prototype<.start@chrome://truclientrre/content/model/Step.js:481:5
Step.prototype<.delegateRun@chrome://truclientrre/content/model/Step.js:761:5
runAlt@chrome://truclientrre/content/model/StepExts.js:145:14
.callAsync/<@chrome://truclientrre/content/infra/StdClasses.js:44:37
receiveMessage@chrome://truclientrre/content/infra/Utils.js:21:6
.send@https://plta2perf032.infusiontest.com/js/sink_jq.jsp?b=1.36.0.31:13604:6
.ajax@https://plta2perf032.infusiontest.com/js/sink_jq.jsp?b=1.36.0.31:13034:5
ajaxFill@https://plta2perf032.infusiontest.com/js/sink_jq.jsp?b=1.36.0.31:39048:1
ajaxFillDiv@https://plta2perf032.infusiontest.com/js/sink_jq.jsp?b=1.36.0.31:39408:1
submitGrid@https://plta2perf032.infusiontest.com/js/sink_jq.jsp?b=1.36.0.31:39749:5
changePerPage@https://plta2perf032.infusiontest.com/js/sink_jq.jsp?b=1.36.0.31:39700:4
onchange@https://plta2perf032.infusiontest.com/app/nav/link?navSystem=nav.mynav&navModule=contact:1:1
sendMouseEvent/send/<@chrome://truclientrre/content/infra/Mouse.js:35:5
window.Utils.hookTimers@chrome://truclientrre/content/infra/Utils.js:182:45
send@chrome://truclientrre/content/infra/Mouse.js:33:3
.callAsync/<@chrome://truclientrre/content/infra/StdClasses.js:44:37
receiveMessage@chrome://truclientrre/content/infra/Utils.js:21:6

While calling handlers in RuleEngine dispatch, event=[Event type="agent/evaluate-test-object" target="[object ChromeWindow]"], handler=
function (args) {
"use strict";

			Step.evaluateTestObject(args/*identProfile, stepTestObj, callback*/)
	}       Snapshot Info [MSH 1 0]    [MsgId: MERR-205177]
t=02471649ms: ** 9.1: Click on i javascript_link ** was stopped    [MsgId: MMSG-205180]
Notify: Transaction "005 Open Contacts Page" ended with "Pass" status (Duration: 2443.8004).
t=02471716ms: ** 9: For (var i = 2; i < 21; i++) ** was stopped    [MsgId: MMSG-205180]

 

0 Likes
6 Replies
Absent Member.. James Leatherma Absent Member..
Absent Member..

Re: TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a functi

Just downgraded to 12.00, and this is definitely not happening there. Seems to be a patch issue.

0 Likes
Guy_Rosenthal Absent Member.
Absent Member.

Re: TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a functi

Hi James,

Thanks for sharing. Actually we got a CPE incident yesterday on the same issue so we are currently exploring and handling.

 

Thanks.

Guy Rosenthal
Network Virtualization PM
0 Likes
Absent Member.. James Leatherma Absent Member..
Absent Member..

Re: TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a functi

It looks like from 12.01 forward, global variables are being mangled, regardless of where you set them.

0 Likes
DelLaude Absent Member.
Absent Member.

Re: TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a functi

@James Leathermanwhere you able to get a solution on this issue? I also get the same issue when I tried to run Ajax Truclient for FF in ALM PC 12.01. I usd VuGen 12.01. I did not modify anything in ID Method. I let it to use its suggested evalxpath. It is working in VuGen.

 

This is what I get:

 

Error Message
t=00014533ms Error -205177 TypeError this.ident.evaluate is not a function
undefined
While calling handlers in RuleEngine dispatch, event=[Event type="agent/evaluate-test-object" target="[object ChromeWindow]"], handler=
function (args) {
"use strict";_1

0 Likes
Allen_Li Absent Member.
Absent Member.

Re: TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a functi

The TC version released with PC 12.01 was faulty. Please install Patch 2 for PC 12.01.

0 Likes
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: TC_FF: evalXPath - TypeError: Ident.constructors.JavaScript.createIdentJSSandbox is not a functi

If you can it is better to move to 12.20

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.