求教:弹出框赋值显示?
loadrunner录制脚本遇到有弹出框的页面,(是一个文本框点击后弹出一个页面,可以选择姓名或者日期,选择后文本框中显示),我在录制完弹出过程的选择人名后,在脚本中把有关弹出的内容删除,就是把连接弹出URL对话框的东西删除,那么在脚本中的显示就是直接给文本框赋值,值为我在弹出框选择的内容。可是回放录制结果,弹出框填写的内容为空。请问为什么,虽然我删除了弹出框的过程,但是给文本框赋了值,为什么提交结果显示文本框内容为空。谢谢 是不是每次弹出框URL应该有个对应的ID呢?--------------------------------------------------------------
我是把有关弹出框的内容都给删除了,就象是没有点击过弹出框一样,然后在提交表单的时候,直接给需要选择赋值的那个文本框填写内容:
"Name=TextBox1", "Value=郭伟; ", ENDITEM,
可以说是没做弹出框的操作,直接手写value,但是提交表单后就是没有这个Value=郭伟的内容:Q 因为它没有找到TextBox1这个对象,所以这个值其实没有赋值成功。 "Name=TextBox1", "Value=郭伟; ", ENDITEM,
这个是脚本自己显示出来的 证明 TextBox1应该是找到对象了吧。
请问如果不删除弹出框的部分,那么脚本录制过程中应该怎么解决弹出框录制的问题? web_url("AutoPerson.aspx",
"URL=http://192.169.1.10:8005/Share/AutoPerson.aspx?NameTxt=TextBox1&NameVal=HiddenField1",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=../Image/button.gif", "Referer=http://192.169.1.10:8005/Share/AutoPerson.aspx?NameTxt=TextBox1&NameVal=HiddenField1", ENDITEM,
LAST);
web_submit_form("AutoPerson.aspx_2",
"Snapshot=t12.inf",
ITEMDATA,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=on", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"NamePfx=gridUint$ctl", "Value=<OFF>", ENDITEM,
"Name=btnEnty", "Value=确定", ENDITEM,
LAST);
这是我删除的部分 这是下面的部分:
web_submit_data("ExceptionEdit.aspx",
"Action=http://192.169.1.10:8005/Auto/ExceptionDefect/ExceptionEdit.aspx?Type=%u7f3a%u9677%u786e%u8ba4&ID=1679",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.169.1.10:8005/Auto/ExceptionDefect/ExceptionEdit.aspx?Type=%c8%b1%cf%dd%c8%b7%c8%cf&ID=1679",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState8}", ENDITEM,
"Name=rbAdscription", "Value=main", ENDITEM,
"Name=ddlInstallation", "Value=自动化机房", ENDITEM,
"Name=ddlDeviceType", "Value=计算机设备", ENDITEM,
"Name=ddlDeviceName", "Value=例:省地联网服务器", ENDITEM,
"Name=txtFindTime", "Value=2009-4-13 11:57:36", ENDITEM,
"Name=txtMan", "Value=郭伟", ENDITEM,
"Name=radoDafectType", "Value=一般", ENDITEM,
"Name=txtSymptom", "Value=aaaaaaaaaaaaaaaaaaaaaaaa", ENDITEM,
"Name=txtRemark", "Value=aaaaaaaaaaaaaaaaaaaaaaaaa", ENDITEM,
"Name=TextBox1", "Value=自动化班:郭伟; ", ENDITEM,
"Name=btnEnter", "Value=确定", ENDITEM,
"Name=HiddenField1", "Value=47,", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWHALsnYXLBALiy9SKCgL/mMCmCQLZw5WRDgLvjMnhDQL8rIbjCwKArICDBgLX0enZCAKjxJnnBQKittX8AwLWlej+AgKLy765CwKy2f+SDwKV8JDkAQKV8JDkAQLag9DZDQL9+tjRCQKH+878DAKQj8P3BwLLjs9uAv+l7+cNArD0+IoDAs7AkL0HApm8i+UEAuzRsusGApe3wPgBAvTa0LICApCjwqsNwZ0xQedyZU1Dxu/Epc6Nf9dRXts=", ENDITEM,
EXTRARES,
"Url=/Image/Top/title.gif", "Referer=http://192.169.1.10:8005/Auto/ExceptionDefect/ExceptionManager.aspx?type=%c8%b1%cf%dd%c8%b7%c8%cf", ENDITEM,
"Url=/Image/btnPage.gif", "Referer=http://192.169.1.10:8005/Auto/ExceptionDefect/ExceptionManager.aspx?type=%c8%b1%cf%dd%c8%b7%c8%cf", ENDITEM,
LAST);
页:
[1]