• Javascript Table Management in TruClient

    Hi, Using LoadRunner 24.1 I've opened an "Evaluate Javascript code". I put this A. // I want to use a javascript table var options = getElementByXpath("//app-document-section/div/div/div/app-single-document/div[2]/span"); for (i=0;i<options.length;i…
  • LR Truclient - Object click with dynamic xpath fails on replay even when the dynamic values captured are correct. On reidentifying the object, and replacing the same xpath it works okay as long as we remain on the same screen.

    LoadRunner Truclient v2023 build 628 The xpath of the object changes dynamically. We are able to capture these dynamic values and pass it in the xpath but it works as expected only the first time after the Object is identified on the screen. When we…
  • Syntax error when executing web_js_run funcion, even though other tools report as java code having correct syntax

    Hi All, I am building a script in which a client side encryption is done using javascript code. In order to handle that encryption part I have been supplied with 2 java script files containing the code. however when I execute the code LR gives a…
  • How to invoke a command window and execute a system command or custom script in Truclient-web using custom JavaScript code?

    In a LoadRunner-TruClient Web script, need to run a python script to fetch user credentials from aws-Secrets Manager. Exploring different options like run a custom JavaScript code via Evaluate JS code in Truclient-Develop Script mode, however not able…
  • Returning JSON from web_js_run

    It seems like returning a JSON object from web_js_run adds extra characters that prevent that string from being parsed back into a JSON object using lr_eval_json. Is there a way to return something that can be parsed with lr_eval_json or easily remove…
  • Detect / capture javascript error in chrome console to TruClient

    Hi, Is it possible to verify absence of any Javascript error in the chromium browser from TruClient? I mean Javascript errors that usually got displayed in the Console under developer mode (F12). We are on version 2020. Thanks in advance!
  • Loadrunner - Javascript write to output file

    Hello, I was wondering if there is a way, when using JavasScript as scripting language in VUGen to write some saved params after calling a microservice into an output file. I want for a number of users to call a microservice, extract a parameter…
  • An argument is invalid: Ordinal, JavaScript exception during evaluation: TC.getParam('Parameter') APIError in Truclient Vugen 2021 R1 Build 351

    In Vugen 2021 R1 build 351 version, for the Truclient protocal script. I am facing the below error for the argument passing in ordinal value for the listbox type object. An argument is invalid: Ordinal, JavaScript exception during evaluation: TC.getParam…
  • Running JavaScript in a particular iFrame to override UI controls and enter form data with TruClient

    I'm running a test against a Microsoft Dynamics 365 Application (using LoadRunner 12.63) where contacts need to be created and then various actions processed on those contacts. There is a Client Side LOCK on some of the fields of newly created contacts…
  • LR TruClient - Unable to get evalXPath to work correctly

    Not sure if the below is a bug or something I’m doing incorrectly, I have a number of elements that need to utilize similar logic, so any / all assistance would be much appreciated! Here is the exact error I’m getting, along with the code I’m using. This…
  • Target window is not getting captured in scripting.

    Hi everyone, I am scripting Documentum(WebTop 6.6) using Web HTTP protocol. The application opens a popup in the flow. I am not able to run the script, as it failsto executes on step, where popup appears. I have correlated all the possible values. Also…
  • Javascript Syntax for lr.[start][end]Timer Function

    Hello, Can anyone help me with the lr.startTimer | lr.endTimer function? I can't find an example of syntax. I want to use it to measure different sections that are loading to a page independently of each other. Can I use it like lr.start|endTransaction…
  • javascript is not working as expected in loadrunner v12.50

    Team, I'm using the below function in action part to test javascript. LR failed to execute Action () { web_js_run ( " Code = var a = 1234 ; var n = a.length ; alert(n); " , " ResultParam = uri " , LAST ); return 0 ; } Output: Starting action Action. Action…
  • display status/text to the Output using Javascript with TruClient

    Hi, is there a way to display a text in the Output box using javascript? or is it only possible using lr_vuser_status message? Thanks, Fhrey
  • RE: TruClient failing to replicate actions after several steps

    Updating: HPE Support has yet to find any workable solution. During the process i've found a few workarounds that may help users. Cooldown the processes by abnormal wait times - If this is something application specific put a wait time in then wrap a…
  • LR 12.01 TruClient IE OnUnLoad prompt not handled

    Hi, I am trying to make the TC IE script to navigate out of a frame which triggers a 'Message from webpage' dialog. Standard Object functions cannot handle it properly (Button definition is limited to "OK" and "Cancel"), so I've tried to evaluate JS:…
  • Controller display error if script is run for multiple Vusers

    I have scripted a form which has radio buttons, image buttons, buttons, text fields and many more stuff. I am did javascripting to get objects of forms controller..let say radio button... for example. var rdobject = document.getElementById("select:onlineStatus…