General Troubleshooting and Limitations for TruClient scripts

This section describes troubleshooting and limitations for TruClient scripts.

Replay failure when clicking on object

There are several possible reasons for this failure:

Possible Cause Try this
Scrolling to the object changes the DOM state Insert a "Scroll <object> into view" step before clicking on the object. Insert the scroll one step above clicking the object. You can also try a "Wait for Object" step before the click.
Imprecision in recording or replaying the exact location of a click on a control Click the right edge of the control, or in the exact center.
Cause unknown Replace the click step with an Evaluate JavaScript on Object step. For example: Evaluate JavaScript object.click() on button

Back to top

Failure to save or replay script

If you cannot save or replay the recorded script, check the proxy exceptions box of Internet Explorer. This applies if the script is recorded in a different browser then replayed on Internet Explorer.

Open IE Internet Options > Connections > LAN settings > Advanced > exceptions. The content of the proxy exceptions box must not be "<-loopback>" data. It should be null or "127.0.0.1;localhost"

Back to top

Word Verification (CAPTCHA)

Web sites may use Word Verification fields that display text that the user must enter to verify that the user is not a machine. Such verification blocks automated usage of the page, including running automated tests.

If your script fails because of word verification failure, you must cancel this function on the Web site you are testing.

Back to top

Results vary between browser types

If you get different results for same load test run in different browsers, see End events, run times, and transaction times on different browsers

Back to top

Running TruClient as a service

Local Storage, an HTML5 feature, enables Web applications to locally store data within the user's browser. Microsoft IE does not support local storage when the browser runs in service mode. If TruClient is also running in service mode this feature is not supported.

Solution: Edit the file “logon_user_config_file.cfg” located in the <LoadRunner installation directory>\launch_service\dat folder. Configure the logon type as LOGON32_LOGON_INTERACTIVE instead of LOGON32_LOGON_SERVICE and restart LoadRunner agent service.

Back to top

Error replaying a script saved in a non-English path

If you have saved a TruClient script in a non-English path, you might encounter errors when you try to replay the script.

Solution:

  1. Change system locale to the language that is used in the script path.

    Control Panel > Region and language > Administrative > Change system locale

  2. Set the Formats to same language as you did in step 1.

    Control Panel > Region and language > Formats > Format

  3. Restart the computer.

Back to top

Problems with TruClient dialog boxes

TruClient dialog boxes, such the Transaction Editor or Event Handler do not work as expected. This is a known issue caused by Microsoft update KB3008923.

Solution: Uninstall the update or install KB 3025390.

Back to top

Problems with uploading files

If your script contains steps to upload files using a Windows Explorer dialog box, replay may fail.

In most cases, it is possible to work around this issue by using custom JavaScript or C code. Contact HPE Software Support for a solution.

Back to top

Problems with an event handler

If Simulate New User is enabled in the Run-Time Settings, an event handler is not triggered if the event happens in the last step of the Init section.

Workaround: Add another step after the last step in the Init section such as a Wait step.

Back to top

Dragging of a slider or a map does not replay correctly

If drag does not work, for example, set an option of slider or drag of map, and the result does not bring the control to the appropriate place, try one of the following:

  • Use one of the Alternative Steps.

  • Set the values manually until they meet your needs (e.g. the precise number of pixels you would like to drag in each of the relevant directions).

  • Try using the "Drag to" capability (by changing the Action of the Drag step in the Step section of the step properties). This way you can drag your object to a relative position from another object

JQuery sliders may need two replays to verify that the script replay succeeded. If TruClient cannot find the slider object, update the object and restart the replay. See Object Identification.

Back to top

Unique parameters not working as expected

Scripts developed in the TruClient Standalone that contain unique parameters may not run as expected.

Workaround: Create the script using TruClient in VuGen.

Back to top

Script view is null after converting a legacy TruClient script to TruClient Web

The script view is populated after saving the script in interactive mode. This is by design.

Back to top

On Chinese-language computers, an extra step may be required for a Generic Browser Action

When you drag a Generic Browser Action into a new script and set the location as a parameter is created with the context menu, navigation may fail. This occurs only the first time. Drag the Generic Browser action again and create the parameter for the location again.

Back to top

Replay fails on page that contains video though the play button was not pressed during recording.

When you scroll past a video, TruClient may record a Play video step although the play button is not pressed on that video when recording the step. If the Play video steps cause replay problems, delete them.

Back to top

Run-time settings lost when working in both VuGen and TruClient Standalone

Do not edit run-time settings when a project is open in both VuGen and TruClient Standalone.

Back to top

A script cannot be edited or run in a version older than the one in which the script was developed.

For example, if you participate in a beta program, you cannot use scripts created in the beta on your production installation, which has a lower version number.

Back to top

Error message: VuGen cannot open the TruClient browser because the port range is busy or invalid.

To open a server, a free port is needed. The server is open on the http://127.0.0.1:<free_port>/ URL.

You can configure the free port in the following xml file:

%APPDATA%\Hewlett-Packard\LoadRunner\Data\Settings\VuGenProperties.xml

<VuGenProperties>
<BrowserCommunicationServerEndPort value="8090" />
<BrowserCommunicationServerStartPort value="8080" />

The default port range is between 8080 through 8090. If there is a problem with the ports (all ports are busy or the start port is bigger than the end port), you can change the range in the configuration file.

If you are unable to resolve this issue, contact HPE software support.

Back to top

Error Message: VuGen cannot open the TruClient browser.

This error has occurred because you do not have the proper permissions to establish communication between VuGen and the TruClient browser.

Recommendation: Ask your administrator or a power user to run this command:

netsh http add urlacl url=http://127.0.0.1:<port_given_in_the_error_message>/ user=<DOMAIN>\<USER_NAME>

Example:

netsh http add urlacl url=http://127.0.0.1:8080/ user=DOMAIN\john

Back to top