ch4isme 2008-4-10 16:23
9.0用.net 录制的脚本无法回放的问题
用lr9。0的.net 录制 .net 3.0 开发 c/s架构
脚本录制完后直接回放,报以下错误,大家帮我分析一下吧
本人对 .net几乎啥都不懂:L
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]
liangjz 2008-4-14 21:35
楼主的环境偶都没有用过。
不知道“Action.cs(28732,31): error CS0246: 找不到类型或命名空间名称“DbDataReader”(是否缺少 using 指令或程序集引用?)
”这个提示能否给楼主一些启发?
最好 在脚本里面加入using 引入库 或者检查环境变量PATH 之类的是否让工程查找到对应的依赖关系
橙子 2008-6-13 15:14
我的报这样的错....帮下忙吧
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]
aks5201314 2008-6-13 17:54
Failed to compile virtual user 脚本编译有错误,楼主最好找个熟悉.NET的人帮你看看.NET的环境是否配置正确.安装LR9.0时也安装了.NET环境,好象版本比较比较低.
qicyt1812 2008-6-17 17:23
同意楼上滴,脚本可能有错误,先测试一下脚本看看