51Testing软件测试论坛
标题:
lr_save_string的使用
[打印本页]
作者:
asd398242365
时间:
2012-8-13 14:41
标题:
lr_save_string的使用
本帖最后由 asd398242365 于 2012-8-13 16:36 编辑
init()
{
lr_save_string("172.17.214.124","IP");
web_url(
"test",
"url=http://{IP}:8080/mdmc",
LAST
);
}
复制代码
action()
{
web_url(
"test",
"url=http://{IP}:8080/mdmc",
LAST
);
}
复制代码
请问:在init代码块中参数IP能够正常调用,为什么在action代码块中运行的时候参数IP就不能调用成功呢,提示错误码为 Error -27798: Could not resolve address of host
作者:
云层
时间:
2012-8-13 15:09
这代码给你写的。。两个都不对的。。你要写也是这样写啊
web_url("test","URL={ip}...",LAST);
否则都不是一个函数啊
作者:
mystic
时间:
2012-8-13 15:21
我说我怎么看不懂呢。
作者:
asd398242365
时间:
2012-8-13 16:34
回复
2#
云层
受教了,态度很重要
作者:
msnshow
时间:
2012-8-13 19:46
是要大写URL么
作者:
asd398242365
时间:
2012-8-13 20:15
云老大,这个问题怎么解决啊??
作者:
远方的小企鹅
时间:
2015-11-27 10:43
云层 发表于 2012-8-13 15:09
这代码给你写的。。两个都不对的。。你要写也是这样写啊
web_url("test","URL={ip}...",LAST);
否则都不 ...
我把lr_save_String这个放在init里,为什么 init和action都 可以调用成功呢,求指示 ,
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2