标题: 使用LR8.1的Microsoft.net协议录制c/s结果的程序 [打印本页] 作者: lsl20032 时间: 2009-3-3 11:28 标题: 使用LR8.1的Microsoft.net协议录制c/s结果的程序 各位大侠,我在使用LR8.1中的Microsoft.net协议录制C/S结构的程序后,对登录用户名、登录用户对应的usernumber值分别进行参数化,当只参数化用户名时,lr的脚本能正常回放,但是一旦我参数化了usernumber时就出现报错:
Microsoft.net是v2.0的,请知道的多多指导,感激不尽!!!
Error: Failed to compile virtual user.
Notify: __________________________________________________
Notify: Project "E:\G\client\0303_1\Script.sln" (Build target(s)):
Notify:
Notify: __________________________________________________
Notify: Project "E:\G\client\0303_1\Script.sln" is building "E:\G\client\0303_1\Script.csproj" (default targets):
Notify:
Error: Action.cs(56,59): error CS1026: ) expected
Error: Action.cs(56,71): error CS1002: ; expected
Error: Action.cs(56,75): error CS1002: ; expected
Error: Action.cs(56,75): error CS1525: Invalid expression term ')'
Error: Action.cs(57,44): error CS1002: ; expected
Notify: Done building project "Script.csproj" -- FAILED.
Warning: Extension DotnetExtensionReplay.dll reports error -1 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176 ]作者: lsl20032 时间: 2009-3-3 11:36 标题: 使用LR8.1的Microsoft.net协议录制c/s结果的程序 我的代码如下:
namespace Script {
using LoadRunner;
using Mercury.LoadRunner.DotNetProtocol.Replay;
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using YnTravelSky.RAMSystem.Entities.Order;
using YnTravelSky.RAMSystem.Entities.Payment;
using YnTravelSky.RAMSystem.Server.Booking;
using YnTravelSky.RAMSystem.Server.EasyFare;
using YnTravelSky.RAMSystem.Server.Framework;
using YnTravelSky.RAMSystem.Server.Management;