|
用loadrunner 9.1录制时,选择了.net协议。录制后,脚本中有些warning,重放时没通过
部分代码如下:
Option Strict Off
Option Explicit On
Imports EllieMae.EMLite.ClientServer
Imports EllieMae.EMLite.ClientServer.Calendar
Imports EllieMae.EMLite.Common
Imports EllieMae.EMLite.Common.Licensing
Imports EllieMae.EMLite.RemotingServices
Imports EllieMae.EMLite.Server
Imports EllieMae.EMLite.Server.SessionObjects.Acl
Imports EllieMae.EMLite.VersionInterface15
Imports LoadRunner
Imports Mercury.LoadRunner.DotNetProtocol.Replay
Imports System
Imports System.Collections
Imports System.Data
Imports System.Runtime.Remoting.Channels
Namespace Script
Partial Public Class VuserClass
Public Overridable Function Action() As Integer
lr.think_time(16)
lr.log("Event 1: New BinaryClientFormatterSinkProvider")
BinaryClientFormatterSinkProvider_1 = New BinaryClientFormatterSinkProvider
lr.log("Event 2: BinaryClientFormatterSinkProvider_1.Next")
IClientChannelSinkProvider_1 = BinaryClientFormatterSinkProvider_1.Next
'Found an undefined object of type Belikov.GenuineChannels.DotNetRemotingLayer.GenuineTcpClientTransportSinkProvider. Assigning it the name value_1.
' Suggested solution: adding both this type, in assembly GenuineChannels, Version=2.4.3.54, Culture=neutral, PublicKeyToken=65fda4a3fde44959, 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 3: BinaryClientFormatterSinkProvider_1.Next = value_1")
BinaryClientFormatterSinkProvider_1.Next = value_1
重放时有如下信息:
Notify: E:\script\login\Action.vb(46): error BC30451: Name 'value_1' is not declared.
有人碰到过这种问题么?有没有高手能给点提示信息 |
|