LoadRunner Practitioners Forum

AJAX TruClient script snapshot results in Error -205177

Go to solution
Trusted Contributor.

AJAX TruClient script snapshot results in Error -205177

Hello All,

Hoping to find an answer for the below error received in BSM from the BPM (9.22).  I receive this after receiving an error message on a text check failure in I am forcing to happen.  We are trying to verify that we can receive a snapshot on erro for an AJAX TruClient script.  The script is a basic log in and exit script with a text check.  This script was recorded with VuGen SA (11.52).  Wondering if there could be a permissions issue in regards to accessing the snapshot on the BPM server?  Any assistance is appreciated.


t=00007421ms: 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:///d:/hpbpm/bin/gecko/components/xlrReplayEngineXPCOMWrapper.js :: <TOP_LEVEL> :: line 903"  data: no], event=[Event type="step/errorSnapshot" target="3: Verify Search Customer Account's "Visible Text" contains "Fail this Check""], handler= <br>function (e) {<br>    if (RRE.RTS("RTS.TruClient.ReplaySnapshotsModeGen")) {<br>        var resultDir = RRE.RTS("config.result_dir");<br>        var iterNum = RRE.RTS("config.iteration_number");<br>        if (iterNum > SnapshotManager._lastIterationWithError) {<br>            SnapshotManager._InfCounter = 0;<br>        }<br>        var infName = SnapshotManager.updateAndReturnNewInfName();<br>        var prefs = Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefService);<br>        prefs = prefs.getBranch("LoadRunner.config.");<br>        var scriptDir = prefs.getComplexValue("user_dir", Components.interfaces.nsIPrefLocalizedString) ||<br>            null;<br>        var xslPath = scriptDir + "\\\\web2ui.xsl";<br>        var netDirIndex = xslPath.indexOf("netdir");<br>        if (netDirIndex != -1) {<br>            xslPath = xslPath.substr(netDirIndex + 7);<br>            if (xslPath.charAt(1) == "\\\\") {<br>                var prefix = xslPath.substring(0, 1);<br>                xslPath = xslPath.substr(1);<br>                xslPath = prefix + ":" + xslPath;<br>            } else {<br>                xslPath = "\\\\\\\\" + xslPath;<br>            }<br>        }<br>        var SnapshotOnError = Components.classes['@hp.com/LoadRunner/xlr-snapshot-error-service;1'].getService(Components.interfaces.xlrISnapshotOnError);<br>        var snapOnErrorDir = SnapshotOnError.getSnapshotPath().length > 0 ? SnapshotOnError.getSnapshotPath() : resultDir + "Iteration" + iterNum;<br>        RRE.FileIO.createFolder(snapOnErrorDir);<br>        SnapshotManager.createInf(snapOnErrorDir, infName, e.data);<br>        SnapshotManager.createXml(snapOnErrorDir, infName, xslPath);<br>        SnapshotManager._lastIterationWithError = iterNum;<br>        SnapshotOnError.dumpedSnapshotOnError();<br>    }<br>}       Snapshot Info [MSH 1 1]    [MsgId: MERR-205177]'" align="left" uniqueId="uniqueId_3194600"  >
            t=00007421ms: Error -205177:...1 1]    [MsgId: MERR-205177]


Outstanding Contributor.

Re: AJAX TruClient script snapshot results in Error -205177

Script was recorded in LR 11.52 version and replied on BPM 9.22 (LR 11.51 ...) this is forward compatability issue.

You should record the script in VuGen SA 11.51.


Please do so and let us know if the issues still reproduce.

Guy Rosenthal
Network Virtualization PM
Trusted Contributor.

Re: AJAX TruClient script snapshot results in Error -205177

Ok, that definitely would make sense.  Sort of depressing nonetheless since we've been waiting for AJAX with "snapshot on error" feature to be able to see the error from our dashboards in BSM.  As it was introduced with VuGen 11.52, I suppose we'll now wait for BPM to catch up.  Thank you for the clarification.