Thursday, November 4, 2010
Generate UUID / GUID in LR
Wednesday, August 25, 2010
Changing Transaction Order in Analysis Report
By default the transaction names in the analysis file comes in alphabetical order but if there is requirement to change the order in which the transactions were executed during a test then you can perform some tweaks to do so.
- Open the "AnalysisSummary.asc" file placed at the location
/bin/dat in wordpad or textpad - Go to Section "Line22_Field0" in the file and scroll down to section "JoinedSelectString="
- Add the below Query in that
SELECT [Event_map].[Event Name] AS [Event Name],[Minimum],[Average],[Maximum],StdVal,[Table2].[Value] AS [90 Percent], Round([PassedT].[CountAll],0) AS Pass, Round([FailedT].[CountAll],0) AS Fail, Round([StoppedT].[CountAll],0) AS Stop FROM (((((Event_map LEFT JOIN [Table1] ON [Table1].[Event Name] = [Event_map].[Event Name]) LEFT JOIN (SELECT * FROM [Table0] WHERE [Transaction End Status] = 'Pass') AS PassedT ON [Event_map].[Event Name] = [PassedT].[Event Name]) LEFT JOIN (SELECT * FROM [Table0] WHERE [Transaction End Status] = 'Fail') AS FailedT ON [Event_map].[Event Name] = [FailedT].[Event Name]) LEFT JOIN (SELECT * FROM [Table0] WHERE [Transaction End Status] = 'Stop') AS StoppedT ON [Event_map].[Event Name] = [StoppedT].[Event Name]) LEFT JOIN [Table2] ON [Event_map].[Event Name] = [Table2].[Event Name]) LEFT JOIN [TempForSummaryRep0] ON [Event_map].[Event Name] = [TempForSummaryRep0].[Event Name] WHERE [Event_map].[Event Type] = 'Transaction' and ([Table2].[Percent] = 90 OR [Table2].[Percent] Is Null) GROUP BY [Event_map].[Event Name],[Event_map].[Event ID], [Minimum],[Average],[Maximum],StdVal, Round([PassedT].[CountAll],0), Round([FailedT].[CountAll],0), Round([StoppedT].[CountAll],0),[Table2].[Value] ORDER BY [Event_map].[Event ID] - Save the File and Open the analysis
Friday, August 13, 2010
Create Custom Scripts for DB Queries / Stored Procs
- Open a new .Net protocol script in Vugen.
- Go to Recording Options and choose the recording language to VB .Net.
- Launch browser to record. Once it is launched properly stop recording. This will generate a blank script with reference to VB .Net libraries otherwise it will open a blank script with C# libraries.
- The use the VB .Net code to create your connection and query the DB. Sample code is given below:
Vusers Gets Stalled in Exiting Status
In case of you have large number of Vusers in your scenario then mention a limit on number of vusers that can stopped at given time also how you stop them. The setting for ramp-down limit is given in the LG properties:
- Go to "Run-Time Quota" tab of LG details page and select the check-box for limiting the number of vusers that can be stopped and provide appropriate value in it.
For setting on how to stop the vusers:
- Open Tools -> Options in Controller and go to "Run-Time Settings" tab
- Select the appropriate option while stopping the vusers in the second option (depends on your scenario).
Tuesday, February 9, 2010
How to verify file downloaded properly in web scripts
Issue in replay due to redirections
Wednesday, April 29, 2009
Error: "Vuser failed to initialize extension vbascriptext.dll" when replaying a VB or COM script
"Vuser failed to initialize extension vbascriptext.dll."
Solution
Troubleshooting vbascriptext.dll error
1. Make sure that VBA is installed properly :
a. Install the VBA drivers by going to Start -> Programs -> LoadRunner -> Tools -> VBA Setup.
b. Complete the install and reboot the machine.
c. Run your script again.
- Note: If you are using older versions of LoadRunner ( before LoadRunner7.5) please contact Customer Support for the VBA setup install.
3. If the problem persist, try to run your script though the VBA IDE once. To do so:
a. Bring up your script in VuGen.
b. Go to Vuser -> Run-time settings -> VBA.
c. Enable "Debug script through VBA IDE (VuGen only)."
d. When you run the script, VB IDE should be launched. If not, it means VBA driver was not installed (properly). You might need to reinstall your VBA setup.
4. If step (3) brings you to the line 'Dim objectHelper As New LoadRunnerVbs.ObjectFactory', it is an indication that LoadRunner helper object is not registered. You can manually register lrapihlpr.dll and lrapivbs.dll under the
5. Make sure that you are using the VB function correctly. For example, LoadRunner function should be referenced as 'lr.' instead of 'lr_'
Example: lr.save_string "param_value", "param_name"
6.Check the security-properties of the
Note:
1. You might need to reboot your machine after making these changes.
2. For running script on a remote machine, please make sure that you installed the components for the application on all load generator machines.