Highlighted
Absent Member.
Absent Member.
231 views

LoadRunner 9.1

Hello,

I am trying to test C#.NET 2.0 desktop application by using LoadRunner 9.1.
The application uses MSSQL 2005 database over ADO.NET.

I run HP Virtual User Generator. Afrer C# code is generated I click replay and get the following errors. Can you help me to understand the reason of the errors.

Here is a part of error log (source cod is in the end of this message):

Error: Failed to compile virtual user.

Error: vuser_init.cs(3226,114): error CS0117: 'System.Collections.IList' does not contain a definition for 'Item'
Error: vuser_init.cs(3248,71): error CS0030: Cannot convert type 'NHibernate.Driver.NHybridDataReader' to 'System.Data.Common.DbDataReader'
Error: vuser_init.cs(3258,70): error CS0117: 'System.Data.IDataRecord' does not contain a definition for 'Item'

Here are lines of source code related to the errors above:


SqlParameter_1 = ((System.Data.SqlClient.SqlParameter)(((System.Collections.IList)(SqlParameterCollection_1)).Item));

Mercury.LoadRunner.DotNetProtocol.Replay.LrReplayUtils.DoDataRead(((System.Data.Common.DbDataReader)(NHybridDataReader_1)), out valueTable_1, false, 1);

Int32_2 = ((int)(((System.Data.IDataRecord)(NHybridDataReader_1)).Item));
0 Likes
2 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: LoadRunner 9.1

which protocol did you use to record this application??
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: LoadRunner 9.1

I used Microsoft.NET to record this application.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.