使用的是LR9.0,录制协议选择Microsft.NET
但是录制完成,脚本很多警告,部分脚本如下:
namespace Script {
using LoadRunner;
using Mercury.LoadRunner.DotNetProtocol.Replay;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SQLite;
using System.Globalization;
public partial class VuserClass {
public virtual int Action() {
#warning: Code Generation Error
// Found an undefined object of type System.Data.SQLite.SQLiteDataReader. Assigning it the name SQLiteDataReader_1.
// Suggested solution: adding both this type, in assembly System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, to the filter
// and/or any other types that return instances of this one.
// Note: This script will not compile as is.
lr.log("Event 1: SQLiteDataReader_1.Dispose();");
SQLiteDataReader_1.Dispose();
#warning: Code Generation Error
// Found an undefined object of type System.Data.SQLite.SQLiteDataReader. Assigning it the name SQLiteDataReader_2.
// Suggested solution: adding both this type, in assembly System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, to the filter
// and/or any other types that return instances of this one.
// Note: This script will not compile as is.
lr.log("Event 2: SQLiteDataReader_2.Dispose();");
SQLiteDataReader_2.Dispose();