- In LoadRunner 11.5, TruClient for Internet Explorer has been introduced. It is now possible to use TruClient on IE-only web applications.
- TruClient IE was developed as an add-in for IE 9, so it will not work on earlier versions of IE. This version of IE was the first version to expose enough of the DOM to be usable by a TruClient-style Vusers. Note that your web application must support IE9 in “standard mode”.
- Some features have also been added to TruClient Firefox. These include:
- The ability to specify think time
- The ability to set HTTP headers
- URL filters
- Event handlers, which can automatically handle intermittent pop-up windows, etc.
- Web page breakdown graphs have been added to TruClient (visible in LoadRunner Analysis). Previously they were only available for standard web Vusers.
- Open the file “user.js” located in “%lr_path%\dat\LrWeb2MasterProfile”.
- Locate the preference setting “network.automatic-ntlm-auth.trusted.uris”.
- Specify the URL of the trusted resource as the value of this setting.
- Save the file “user.js”
- In the Firefox address bar, enter ‘about: config’. Click ‘I’ll be careful, I promise’ tab
- In the filter field, enter disable_open_during_load
- Right click on ‘disable_ open_during_load’ and select ‘Toggle’. The value changes to ‘false’
- Record initial Navigation step again
- Your pop-ups will be disabled
- Drag ‘Evaluate JavaScript code’ from toolbox
- In the arguments section add the following code -
var splitBySearchWord = (document.body.textContent).split (‘Text to search for); - Then display the total number of occurrence of the text using Alert () method.
window.alert (splitBySearchWord. Length);
- From ‘Toolbox’, copy a wait function and paste it before the web request
- In the argument section, replace the interval value ’3′ by ‘Math.floor (11*Math.random () +5); ‘
- Open the Script under Interactive mode.
- Go to VUser > Run-Time Settings > General > Load mode Browser Settings
- Inside the Settings frame display the option Advanced
- Select the option “Compare the page in cache to the page on the network”; select one of the four values above according to your test requirements