51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5371|回复: 11
打印 上一主题 下一主题

[原创] 9.0用.net 录制的脚本无法回放的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-4-10 16:23:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用lr9。0的.net 录制  .net 3.0 开发  c/s架构

脚本录制完后直接回放,报以下错误,大家帮我分析一下吧

本人对 .net几乎啥都不懂  





Error: Failed to compile virtual user.
Notify: __________________________________________________
Notify: 项目“E:\01_ptscripts\doclogin\Script.sln”(Build 目标):
Notify:
Notify: __________________________________________________
Notify: 项目“E:\01_ptscripts\doclogin\Script.sln”正在生成“E:\01_ptscripts\doclogin\Script.csproj”(默认目标):
Notify:
Error: Action.cs(28732,31): error CS0246: 找不到类型或命名空间名称“DbDataReader”(是否缺少 using 指令或程序集引用?)
Notify: 已完成生成项目“Script.csproj”-- 失败。
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]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-4-14 21:28:19 | 只看该作者
啥都不懂,也感做性能测试,佩服佩服。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2008-4-14 21:35:50 | 只看该作者
楼主的环境偶都没有用过。

不知道“Action.cs(28732,31): error CS0246: 找不到类型或命名空间名称“DbDataReader”(是否缺少 using 指令或程序集引用?)
”这个提示能否给楼主一些启发?


最好 在脚本里面加入using 引入库 或者检查环境变量PATH 之类的是否让工程查找到对应的依赖关系
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2008-6-13 15:14:43 | 只看该作者
我的报这样的错....帮下忙吧


Error: Failed to compile virtual user.
Notify: __________________________________________________
Notify: Project "F:\lr\loginnet2\Script.sln" (Build target(s)):
Notify:
Notify: __________________________________________________
Notify: Project "F:\lr\loginnet2\Script.sln" is building "F:\lr\loginnet2\Script.vbproj" (default targets):
Notify:
Notify: F:\lr\loginnet2\Action.vb(288): error BC30182: Type expected.
Notify: F:\lr\loginnet2\Action.vb(3046): error BC30389: 'Abattoir.portal' is not accessible in this context because it is 'Private'.
Notify: F:\lr\loginnet2\Action.vb(4054): error BC30389: 'Abattoir.portal' is not accessible in this context because it is 'Private'.
Notify: F:\lr\loginnet2\globals.vb(76): error BC30182: Type expected.
Notify: F:\lr\loginnet2\globals.vb(644): error BC30389: 'Abattoir.portal' is not accessible in this context because it is 'Private'.
Notify: F:\lr\loginnet2\globals.vb(824): error BC30389: 'Abattoir.portal' is not accessible in this context because it is 'Private'.
Notify: Done building project "Script.vbproj" -- 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]
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2008-6-13 17:54:28 | 只看该作者
Failed to compile virtual user 脚本编译有错误,楼主最好找个熟悉.NET的人帮你看看.NET的环境是否配置正确.安装LR9.0时也安装了.NET环境,好象版本比较比较低.
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2008-6-17 17:23:59 | 只看该作者
同意楼上滴,脚本可能有错误,先测试一下脚本看看
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2008-11-29 10:51:24 | 只看该作者
Error: Failed to compile virtual user.
Notify: __________________________________________________
Notify: 项目“E:\Program Files\Mercury\LoadRunner\scripts\PovNet_LoadTest\Script.sln”(Build 目标):
Notify:
Notify: __________________________________________________
Notify: 项目“E:\Program Files\Mercury\LoadRunner\scripts\PovNet_LoadTest\Script.sln”正在生成“E:\Program Files\Mercury\LoadRunner\scripts\PovNet_LoadTest\Script.csproj”(默认目标):
Notify:
Notify: Action.cs(469,12): warning CS1030: #warning:“:  Code Generation Error”
Notify: Action.cs(2486,12): warning CS1030: #warning:“:  Code Generation Error”
Notify: Action.cs(2712,12): warning CS1030: #warning:“:  Code Generation Warning”
Notify: Action.cs(2718,12): warning CS1030: #warning:“:  Code Generation Error”
Notify: Action.cs(2743,12): warning CS1030: #warning:“:  Code Generation Error”
Error: globals.cs(221,23): error CS0246: 找不到类型或命名空间名称“TbPostCode”(是否缺少 using 指令或程序集引用?)
Notify: 已完成生成项目“Script.csproj”-- 失败。
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]


我的也会出现这样的错误
环境是。net3.0  lr9.0
回复 支持 反对

使用道具 举报

该用户从未签到

8#
发表于 2008-11-30 21:31:30 | 只看该作者
一、可能是脚本编辑错误;
二、协议有没有用对哦,
三、建议摸索中前进,不要自大,一步一步来做性能
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2009-3-3 09:37:10 | 只看该作者

回复 2# 的帖子

你也不是生下来啥都会的,有你这样的人吗
回复 支持 反对

使用道具 举报

该用户从未签到

10#
发表于 2009-5-6 09:53:13 | 只看该作者
环境:C/S模式,基于C#,framework3.5 ,VS2005开发的erp软件
测试工具:Loadrunner9.5,协议选择Microsoft .net
同样报错,你们解决了吗?
Notify: vuser_end.cs(54,12): warning CS1030: #warning:“:  Code Generation Warning”
Error: Action.cs(3138,4): error CS0103: 当前上下文中不存在名称“DataTable_17”
Error: Action.cs(3141,4): error CS0103: 当前上下文中不存在名称“DataTable_17”
Error: Action.cs(3144,29): error CS0103: 当前上下文中不存在名称“DataTable_17”
Notify: 已完成生成项目“Script.csproj”-- 失败。
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]
回复 支持 反对

使用道具 举报

该用户从未签到

11#
发表于 2010-9-17 09:11:00 | 只看该作者

LR9.5录制脚本生成错误

开发环境:Windows2003,VS2008, LR9.5在回放脚本时出现下面错误。
Error: vuser_init.cs(94,76): error CS0103: 当前上下文中不存在名称“body_1”
Error: vuser_init.cs(94,86): error CS0103: 当前上下文中不存在名称“serializer_1”
Error: vuser_init.cs(103,105): error CS0103: 当前上下文中不存在名称“parameters_1”
Error: vuser_init.cs(107,106): error CS0103: 当前上下文中不存在名称“parameters_1”
Error: vuser_init.cs(127,69): error CS0103: 当前上下文中不存在名称“reader_1”
Error: vuser_init.cs(151,76): error CS0103: 当前上下文中不存在名称“body_2”
Error: vuser_init.cs(151,86): error CS0103: 当前上下文中不存在名称“serializer_1”
Error: vuser_init.cs(166,69): error CS0103: 当前上下文中不存在名称“reader_2”
Error: vuser_init.cs(183,76): error CS0103: 当前上下文中不存在名称“body_3”
Error: vuser_init.cs(183,86): error CS0103: 当前上下文中不存在名称“serializer_1”
Error: vuser_init.cs(198,69): error CS0103: 当前上下文中不存在名称“reader_3”
Error: vuser_init.cs(215,76): error CS0103: 当前上下文中不存在名称“body_4”
Error: vuser_init.cs(215,86): error CS0103: 当前上下文中不存在名称“serializer_1”
Error: vuser_init.cs(230,70): error CS0103: 当前上下文中不存在名称“reader_4”
Error: vuser_init.cs(273,76): error CS0103: 当前上下文中不存在名称“body_5”
Error: vuser_init.cs(273,86): error CS0103: 当前上下文中不存在名称“serializer_1”
Error: vuser_init.cs(288,70): error CS0103: 当前上下文中不存在名称“reader_5”
Error: Action.cs(40,76): error CS0103: 当前上下文中不存在名称“body_6”
Error: Action.cs(40,86): error CS0103: 当前上下文中不存在名称“serializer_1”
Error: Action.cs(55,70): error CS0103: 当前上下文中不存在名称“reader_6”
Notify: 已完成生成项目“Script.csproj”-- 失败。
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]
回复 支持 反对

使用道具 举报

  • TA的每日心情
    开心
    2016-3-18 11:49
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    12#
    发表于 2011-10-14 09:17:18 | 只看该作者
    更改一下脚本目录中的script.sln的名称,那些错误就不报了。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-6-16 15:28 , Processed in 0.085065 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表