51Testing软件测试论坛
标题:
请教 lrd_init函数的用法
[打印本页]
作者:
njalic
时间:
2009-7-7 14:38
标题:
请教 lrd_init函数的用法
下面是我录制的一段脚本,在回放时报错:vuser_init.c(11): 错误: C interpreter run time error: vuser_init.c (11): Error -- Unresolved symbol : lrdfnc_init.
请高手指点下问题出在那里。
lr8.1+中文包。
录制选项:
1)脚本C语言,使用默认参数。
2)协议:Web (http/html)
3)录制:基于url的录制。
4)数据库:脚本选项生成脚本注释。
运行时设置:
默认值,没有做修改。
录制的脚本如下:
globals.h
#ifndef _GLOBALS_H
#define _GLOBALS_H
#include "lrun.h"
#include "web_api.h"
#include "lrw_custom_body.h"
#include "lrd.h"
static LRD_INIT_INFO InitInfo = {LRD_INIT_INFO_EYECAT};
static LRD_DEFAULT_DB_VERSION DBTypeVersion[] =
{
{LRD_DBTYPE_NONE, LRD_DBVERSION_NONE}
};
static LRD_CONNECTION * Con1;
static LRD_CURSOR * Csr1;
#endif // _GLOBALS_H
作者:
njalic
时间:
2009-7-7 14:39
vuser_init()
{
lrd_init(&InitInfo,DBTypeVersion);//程序在运行到这一步的时候就开始报错,百思不得其解。请高手指点。
web_url("mcpback",
"URL=http://192.168.10.70:9090/mcpback/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("prototype.js",
"URL=http://192.168.10.70:9090/mcpback/ui/js/prototype.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t2.inf",
LAST);
web_url("cp.js",
"URL=http://192.168.10.70:9090/mcpback/ui/js/cp.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t3.inf",
LAST);
web_url("mms_10.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/mms_10.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t10.inf",
LAST);
web_url("mms_22.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/mms_22.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t11.inf",
LAST);
web_url("mms_05.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/mms_05.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t12.inf",
LAST);
web_url("mms_02.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/mms_02.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t13.inf",
LAST);
web_url("mms_08.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/mms_08.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t14.inf",
LAST);
web_url("mms_13.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/mms_13.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t15.inf",
LAST);
web_url("btn_dl.jpg",
"URL=http://192.168.10.70:9090/mcpback/images/btn_dl.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.10.70:9090/mcpback/",
"Snapshot=t16.inf",
LAST);
[
本帖最后由 njalic 于 2009-7-7 14:41 编辑
]
作者:
njalic
时间:
2009-7-8 11:02
这么快沉下去了,自己顶
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2