Script of Siebel Open UI application is failing during replay

Script of Siebel Open UI application is failing during replay on the first or the second iteration due to not captured correlation values.

Siebel correlation library need to be used to allow successful correlation of Siebel specific dynamic values.

The issue could appear if not all needed steps are performed to enable correlation with Siebel correlation library.

For example if the library file ssdtcorr.dll is copied into the bin folder of the product installation but but Siebel correlation rules file WebSiebel77Correlation.cor is not imported in recording option’s correlation node this can lead to correlation values not being captured correctly.

Siebel has released a correlation library file as part of the Siebel Application Server version 7.7. This library is available only through Siebel. The library file, ssdtcorr.dll, is located under the siebsrvr\bin folder for Windows and under siebsrvr/lib for Linux installations.

The library file, ssdtcorr.dll, must be available to all machines where a Load Generator or Controller reside.

Please follow all of the steps listed below to enable correlation with Siebel correlation library.

1. Copy the DLL file into the bin folder of the product installation.

2. Open a multi-protocol script using the Siebel-Web Vuser type.

3. Enable UTF-8 support in the Recording Options > HTTP Properties > Advanced node.

4. Open the recording option’s Correlation node and click Import. Import the rules file,

WebSiebel77Correlation.cor, from the \dat\webrulesdefaultsetting folder. If you are

prompted with warnings, click Override.

To apply Siebel correlation library rules for existing script, the script need to be regenerated.

Advertisements

Not able to upload the scripts to ALM 11 UI

The Upload script functionality is throwing an error "Script upload failed. Error: Object reference not set to an instance of an object " when trying to upload the script thru ALM-PC UI.

Patch 18 was installed on top of ALM 11 and the relevant ALM client was downloaded on PC server. Upon running the System Health check, the issue was identified as OTA Client version mismatch. The PC server has OTA client related to patch 18 and the PC Host has OTA client related to patch 10.

Run the ALM Client uninstaller on PC server. The utility can be downloaded from KM1400068. Re run the System Health check after ALM client is uninstalled from PC server. This should fix the script upload issue.

Bookmarks and Breakpoints are lost after “Save As” operation in VuGen 12.01

VuGen script bookmarks and breakpoints are lost after executing a "Save As" operation in VuGen 12.01.

This issue appears on Windows Server 2012 R2 and Windows 8.1 Operating Systems.

The problem is related to McAfee antivirus running on the machine on which VuGen is installed.

Please disable McAfee antivirus to overcome this issue.

Message which suggest to reload a script file appears after code generating in VuGen 12.01

An unexpected message which suggest to reload a script file appears after code generating in VuGen 12.01. This issue appears on Windows Server 2012 R2 and Windows 8.1 Operating Systems.

The problem is related to McAfee antivirus running on the machine on which VuGen is installed.

Please disable McAfee antivirus to overcome this issue.

“The file … Action.c has been changed externally. Do you want to reload it?” message wrongly appears in VuGen 12.01

"The file … Action.c has been changed externally. Do you want to reload it?" message wrongly appears in VuGen 12.01 which is installed on Windows 8.1 Operating Systems.

The problem is related to McAfee antivirus running on the machine on which VuGen is installed.

Please disable McAfee antivirus to overcome this issue.

How to save visible text in a variable in Ajax TruClient protocol in LoadRunner 11.5x and 12

There are two possible approaches to save visible text in a variable: by using Get property step or by writing custom JavaScript in Evaluate JavaScript step.

The sample code below will be used as to demonstrate how to save the visible text “Sample text” in h1 tag in the variable “textValue” using these two approaches:

<!DOCTYPE html>

<html >

<head >

<title>Dynamic Data Site</title>

</head>

<body class="template">

<h1 id="pageTitle" class="status1">

Sample text

</h1>

</body>

</html>

The two approaches are described below:

To write custom JavaScript in a Evaluate JavaScript step

Add Evaluate JavaScript step

In Argument text field enter the following code to save Sample text to the variable “textValue”

var textValue= window.document.getElementById("pageTitle").textContent;

To use Get property step for saving visible text in a variable:

Add Evaluate JavaScript on Object step

Click on “Click to choose an object” button and select the target text in the web page i.e Sample text

Click on Evaluate JavaScript[Code]

In Step ->Action drop down list select “Get Property”

In Arguments > Property drop down list select “Visible Text”

In Arguments > Variable write the name of the variable which will store the value of the visible text, for example “textValue”

After the value is saved to the variable it can be used later in the script.

For example it can be shown as a JavaScript alert.

Add Evaluate JavaScript step.

Click on Code and in In Arguments -> Code write

window.alert(textValue);

SyntaxError: illegal character error message during replay of Evaluate JavaScript step in TruClient script

During replay of TruClient protocol function in LoadRunner the following error message is displayed:

Evaluate JavaScript code var myGlobalVar=LR.getPa…t(myGlobalVar); ** failed – exception occurred: SyntaxError: illegal character

the error message could also be:

“SyntaxError: Invalid character [MsgId: MERR-203252].”

The function contains a not English character.

In the example

var myGlobalVar=LR.getParam(“myParam”;

the character “ in (“myParam”) is not written using English keyboard which will cause the error message.

Make sure that the TruClient functions are written using only English characters.