作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用网络参数函数来检索某些值。我想从数组项中获取特定索引的值并将其存储在要在 web_link 调用中使用的参数中。
char * tempVal;
web_reg_save_param("dynArray","LB=/EmployeeProfile/","RB=\">","ORD=ALL",LAST);
tempVal = "{dynArray_2}";
上述语句没有错误,但访问 tempVal 时出现错误
vuser_init.c(143): web_link("emp") started [MsgId: MMSG-26355]
vuser_init.c(143): Warning: The string 'tempVal' with parameter delimiters is not a parameter.
vuser_init.c(143): Error -27995: Requested link ("Text={tempVal}") not found [MsgId: MERR-27995]
最佳答案
您遇到的问题是基于 C 语言的。您不能像您所做的那样简单地将两个项目等同起来。
看一下 strcpy() 函数与 lr_eval_string() 的结合
strcpy (destination_C_variable, lr_eval_string( "{LoadRunner_source_variable}" ) );
关于c - 如何从 web_reg_save_param 数组中检索特定索引值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36976900/
这个问题已经有答案了: LoadRunner web_reg_save_param, ord=all, paramName_count issues (4 个回答) 已关闭 7 年前。 我正在使用网络
具有以下功能: web_reg_save_param("questionId", "LB=secretKnowledges\":\\[\\{", "RB=\"", LAST); 我 try catch
我正在研究 Load Runner 12.53。我有一个带有 ORDINAL 的 web_reg_save_param 函数,如下所示:web_reg_save_param("paramname","
尝试测试返回一些非常大的 viewstate 参数的 ASP 系统,导致 vugen 在播放时崩溃。 我读过可以创建一个 DLL 来进行关联,例如- 我创建了一个使用 web_reg_save_par
我是一名优秀的程序员,十分优秀!