c - Hp VuGen 11.5 基本相关空白值

标签 c alm vugen

这应该是一个非常简单的修复,我根本无法弄清楚并且需要帮助。我有一个记录提交记录的脚本。当用户单击提交按钮时,此记录提交会生成一个唯一的 ID。生成的 ID 用于新表单。

过去我可以简单地使用“web_reg_save_param”并且该值将被保存。但是,在这种情况下,直到提交记录后才会给出该值。所以我无法像过去那样从 URL 中捕获它。

以下是记录的内容,然后我将我尝试过的内容和警告消息包含在调试中。如果需要任何进一步的说明,请告诉我。

提前谢谢您。

web_submit_data("subpage", 
"Action=somewebsite.com/subpage", 
"Method=POST", 
"RecContentType=text/html", 
"Referer=somewebsite.com/subpage?id=xxxxx1", 
"Mode=HTML", 
ITEMDATA, 
//this value is what I need to be correlated 
"Name=recordID", "Value=c39d54a59112fcb223978bb6869d47d2", ENDITEM, 
//other values that are present on the form which can be reused
"Name=variable", "Value=someValue", ENDITEM, 
LAST);

I've tried to do the following - 

web_reg_save_param("ID","LB=recordID=","RB=&","Search=All","NotFound=ERROR",LAST);
web_submit_data("subpage", 
"Action=somewebsite.com/subpage", 
"Method=POST", 
"RecContentType=text/html", 
"Referer=somewebsite.com/subpage?id=xxxxx1", 
"Mode=HTML", 
ITEMDATA, 
//this value is what I need to be correlated 
"Name=recordID", "Value={ID}", ENDITEM, 
//other values that are present on the form which can be reused
"Name=variable", "Value=someValue", ENDITEM, 
LAST);

But the "ID" is coming up as blank. 
Warning: The string 'ID' with parameter delimiters is not a parameter.

最佳答案

我能够使用:

    web_reg_save_param_ex(
    "ParamName=recordID",
    "LB=id=\"id\" value=\"",
    "RB=\" type",
    SEARCH_FILTERS,
    "Scope=Body",
    "IgnoreRedirections=No",
    "RequestUrl=*/subpage*",
    LAST);  

关于c - Hp VuGen 11.5 基本相关空白值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30958352/

相关文章:

c - 使用 scanf 一次扫描多个字符和整数

c - C中的最大数字数据类型

c++ - getch() 和 _getch() 的区别

java - HP ALM OTAClient.dll 与 64 位操作系统不兼容

excel - 无法使用 excel 宏与 HP ALM 12.53 建立连接

c - Vugen - 将图像文件从一个文件夹复制到共享目录 - 仅限 C 代码

C Bash Shell 重定向

tfs - 如何从 TFS 工作区中删除文件夹映射?

java - HP Vugen 如何找到用于录制脚本的 JRE?