Vugen: TruClient script failing with object not found error (842 Views)
Reply
Valued Contributor
TEX2020
Posts: 349
Registered: ‎02-02-2011
Message 1 of 6 (842 Views)

Vugen: TruClient script failing with object not found error

[ Edited ]

Hello,

 

Getting an error from my TruClient script in Vugen 11.52 that it cannot find the object when it trys to open the URL.

 

I tried the TruCleint script in Vugen 11.51 and it worked fine.

 

So, my question is what is different in these versions that would keep it from working in 11.52?

 

Here is the error logged:

 

09/10/2013 09:12:19 t=00062521ms: Error -203256: ** 2: Click on UID radio ** failed - target object was not found. Snapshot Info [MSH 1 1] [MsgId: MERR-203256] [MsgId: MERR-203256] 

09/10/2013 09:12:19 t=00062728ms: Error -205177: exception while calling handlers in RuleEngine dispatch, ex=[Exception... "Component returned failure code: 0xffffffff [xlrISnapshotOnError.dumpedSnapshotOnError]" nsresult: "0xffffffff (<unknown>)" location: "JS frame :: file:///f:/hp/bpm/bin/gecko/components/xlrReplayEngineXPCOMWrapper.js :: <TOP_LEVEL> :: line 903" data&colon; no], event=[Event type="step/errorSnapshot" target="2: Click on UID radio"], handler= 

function (e) { 

if (RRE.RTS("RTS.TruClient.ReplaySnapshotsModeGen")) { 

var resultDir = RRE.RTS("config.result_dir"); 

var iterNum = RRE.RTS("config.iteration_number"); 

if (iterNum > SnapshotManager._lastIterationWithError) { 

SnapshotManager._InfCounter = 0; 

var infName = SnapshotManager.updateAndReturnNewInfName(); 

var prefs = Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefService); 

prefs = prefs.getBranch("LoadRunner.config."); 

var scriptDir = prefs.getComplexValue("user_dir", Components.interfaces.nsIPrefLocalizedString) || 

null; 

var xslPath = scriptDir + "\\web2ui.xsl"; 

var netDirIndex = xslPath.indexOf("netdir"); 

if (netDirIndex != -1) { 

xslPath = xslPath.substr(netDirIndex + 7); 

if (xslPath.charAt(1) == "\\") { 

var prefix = xslPath.substring(0, 1); 

xslPath = xslPath.substr(1); 

xslPath = prefix + ":" + xslPath; 

} else { 

xslPath = "\\\\" + xslPath; 

var SnapshotOnError = Components.classes['@hp.com/LoadRunner/xlr-snapshot-error-service;1'].getService(Components.interfaces.xlrISnapshotOnError); 

var snapOnErrorDir = SnapshotOnError.getSnapshotPath().length > 0 ? SnapshotOnError.getSnapshotPath() : resultDir + "Iteration" + iterNum; 

RRE.FileIO.createFolder(snapOnErrorDir); 

SnapshotManager.createInf(snapOnErrorDir, infName, e.data); 

SnapshotManager.createXml(snapOnErrorDir, infName, xslPath); 

SnapshotManager._lastIterationWithError = iterNum; 

SnapshotOnError.dumpedSnapshotOnError(); 

} Snapshot Info [MSH 1 1] [MsgId: MERR-205177] [MsgId: MERR-205177] 

09/10/2013 09:12:19 Notify: Transaction "WSSO_Login" ended with "Fail" status (Duration: 62.7033). [MsgId: MMSG-16873] 

 

Any information greatly appreciated.

 

Thanks.

 

 

P.S. This thread has been moved from Performance Center Support and News Forum to LoadRunner Support Forum.
-HP Forum Moderator

Tex2020
Please use plain text.
Valued Contributor
TEX2020
Posts: 349
Registered: ‎02-02-2011
Message 2 of 6 (818 Views)

Re: Vugen: TruClient script failing with object not found error

Does anyone know what the issue is with this error using TruClient?

 

Any info appreciated.

 

Thanks

Tex2020
Please use plain text.
Advisor
Joshua_Polier
Posts: 38
Registered: ‎02-23-2011
Message 3 of 6 (750 Views)

Re: Vugen: TruClient script failing with object not found error

I'm going to +1 on this.  I installed VuGen SA 11.50, applied patch to 11.51 and then to 11.52.  I then scripted a truclient script just to do a google search with a text check.  I'm only seeing this error on BPMs with 9.22 (x2) and not on the 9.13 (x2).  I have not forced a text check failure yet.

Please use plain text.
Advisor
Joshua_Polier
Posts: 38
Registered: ‎02-23-2011
Message 4 of 6 (747 Views)

Re: Vugen: TruClient script failing with object not found error

This is one of the error results that was returned to BSM:

 

Error -205177: exception while calling handlers in RuleEngine dispatch, ex=[Exception... &amp;#34;Component returned failure code: 0xffffffff [xlrISnapshotOnError.dumpedSnapshotOnError]&amp;#34;  nsresult: &amp;#34;0xffffffff (&amp;lt;unknown&amp;gt;)&amp;#34;  location: &amp;#34;JS frame :: file:///d:/hp/bpm/bin/gecko/components/xlrReplayEngineXPCOMWrapper.js :: &amp;lt;TOP_LEVEL&amp;gt; :: line 903&amp;#34;  data&colon; no], event=[Event type=&amp;#34;step/errorSnapshot&amp;#34; target=&amp;#34;2: Click on Google Search textbox&amp;#34;], handler= &lt;br&gt;function (e) {&lt;br&gt;    if (RRE.RTS(&amp;#34;RTS.TruClient.ReplaySnapshotsModeGen&amp;#34;)) {&lt;br&gt;        var resultDir = RRE.RTS(&amp;#34;config.result_dir&amp;#34;);&lt;br&gt;        var iterNum = RRE.RTS(&amp;#34;config.iteration_number&amp;#34;);&lt;br&gt;        if (iterNum &amp;gt; SnapshotManager._lastIterationWithError) {&lt;br&gt;            SnapshotManager._InfCounter = 0;&lt;br&gt;        }&lt;br&gt;        var infName = SnapshotManager.updateAndReturnNewInfName();&lt;br&gt;        var prefs = Cc[&amp;#39;@mozilla.org/preferences-service;1&amp;#39;].getService(Ci.nsIPrefService);&lt;br&gt;        prefs = prefs.getBranch(&amp;#34;LoadRunner.config.&amp;#34;);&lt;br&gt;        var scriptDir = prefs.getComplexValue(&amp;#34;user_dir&amp;#34;, Components.interfaces.nsIPrefLocalizedString) ||&lt;br&gt;            null;&lt;br&gt;        var xslPath = scriptDir + &amp;#34;\\\\web2ui.xsl&amp;#34;;&lt;br&gt;        var netDirIndex = xslPath.indexOf(&amp;#34;netdir&amp;#34;);&lt;br&gt;        if (netDirIndex != -1) {&lt;br&gt;            xslPath = xslPath.substr(netDirIndex + 7);&lt;br&gt;            if (xslPath.charAt(1) == &amp;#34;\\\\&amp;#34;) {&lt;br&gt;                var prefix = xslPath.substring(0, 1);&lt;br&gt;                xslPath = xslPath.substr(1);&lt;br&gt;                xslPath = prefix + &amp;#34;:&amp;#34; + xslPath;&lt;br&gt;            } else {&lt;br&gt;                xslPath = &amp;#34;\\\\\\\\&amp;#34; + xslPath;&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        var SnapshotOnError = Components.classes[&amp;#39;@hp.com/LoadRunner/xlr-snapshot-error-service;1&amp;#39;].getService(Components.interfaces.xlrISnapshotOnError);&lt;br&gt;        var snapOnErrorDir = SnapshotOnError.getSnapshotPath().length &amp;gt; 0 ? SnapshotOnError.getSnapshotPath() : resultDir + &amp;#34;Iteration&amp;#34; + iterNum;&lt;br&gt;        RRE.FileIO.createFolder(snapOnErrorDir);&lt;br&gt;        SnapshotManager.createInf(snapOnErrorDir, infName, e.data);&lt;br&gt;        SnapshotManager.createXml(snapOnErrorDir, infName, xslPath);&lt;br&gt;        SnapshotManager._lastIterationWithError = iterNum;&lt;br&gt;        SnapshotOnError.dumpedSnapshotOnError();&lt;br&gt;    }&lt;br&gt;}   

Please use plain text.
HP Expert
Guy_Rosenthal
Posts: 205
Registered: ‎10-24-2011
Message 5 of 6 (728 Views)

Re: Vugen: TruClient script failing with object not found error

It is not recomended to record on version X and execute on version X-1 or X-2 (the opposite is OK).

Please try to record on 11.51 and execute on BPM 9.22.

Guy Rosenthal
TruClient RnD Team Manager
TruClient-STORM RnD
Please use plain text.
Advisor
Joshua_Polier
Posts: 38
Registered: ‎02-23-2011
Message 6 of 6 (715 Views)

Re: Vugen: TruClient script failing with object not found error

Thanks again.  Unfortunately this is an AJAX TruClient script which, if I am correct, "snapshot on error" was not working until VuGen 11.52.  I suppose we will have to wait for a new BPM version.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation