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.|
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"
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.
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.
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.
To resolve this, you can configure the load generator agent to use interactive login:
In the load generator machine, 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.
Performance Center supports remotely configuring the agent. For configuration details, see Reconfigure the LoadRunner Agent user in the Performance Center Help.
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.
Change system locale to the language that is used in the script path.
Control Panel > Region and language > Administrative > Change system locale
Set the Formats to same language as you did in step 1.
Control Panel > Region and language > Formats > Format
- Restart the computer.
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.
Problems with uploading files
If your script contains steps to upload files using a Windows Explorer dialog box, replay may fail.
Problems with an event handler
If Simulate New User is enabled in the Runtime 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.
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.
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.
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.
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.
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.
Runtime settings lost when working in both VuGen and TruClient Standalone
Do not edit runtime settings when a project is open in both VuGen and TruClient Standalone.
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.
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:
<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 Software Support.
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>
netsh http add urlacl url=http://127.0.0.1:8080/ user=DOMAIN\john