loadrunner Web_类函数之web_file()
来源:互联网 发布:淘宝全球购资质查询 编辑:程序博客网 时间:2024/06/06 03:56
web_file()
输入文件输入元素的路径。
int web_file(stepname,...,DESCRIPTION,descriptionarguments,ACTION,action arguments,[VERIFICATION,verification arguments,] LAST);
此函数返回以下之一:
LR_PASS(0):函数完成没有错误。
LR_FAIL(1):函数完成时出现错误,例如LoadRunner Load Generator的I / O错误。
LR_NOT_FOUND(2):函数的NotFound验证参数设置为警告或通知,并且找不到对象。
LR_PASS不指示测试步骤通过 - 只是函数运行到完成。例如,LR_PASS不表示服务器返回了期望值。
一般信息 :
web_file函数输入文件输入元素的路径。
此功能可用于Web(点击和脚本),OracleWeb应用程序11i,PeopleSoft Enterprise,AJAX(点击和脚本)和SAP(点击和脚本)脚本。是基于界面行为点击操作,而不是基于协议请求操作,所以也不建议使用。
有关语法的详细信息,请参阅语法指南。
示例:web_file
设置路径
在此示例中,web_file设置使用元素<INPUTTYPE = FILE NAME =“testFile”>上传文件“C \ TestedFile.txt”。函数运行后,元素文本框中的值为“C \ TestedFile.txt”。
web_file(
"Step Example",
DESCRIPTION,
"Name= testFile",
ACTION,
"SetPath= C:\\TestedFile.txt",
LAST );
触发事件
此示例显示用户双击输入文件元素时记录的步骤。
web_file("get_file_path",
"Snapshot=t384.inf",
DESCRIPTION,
"Name=get_file_path",
ACTION,
"FireEvent=ondblclick",
LAST );
提交
此示例显示当用户按下Enter键而焦点位于表单中的输入文件元素时记录的步骤。
web_file("get_file_path_3",
"Snapshot=t389.inf",
DESCRIPTION,
"Name=get_file_path",
ACTION,
"UserAction=Submit",
LAST );
- loadrunner Web_类函数之web_file()
- loadrunner Web_类函数之web_add_auto_filter()
- loadrunner Web_类函数之web_add_auto_header()
- loadrunner Web_类函数之web_add_cookie()
- loadrunner Web_类函数之web_add_cookie_ex()
- loadrunner Web_类函数之web_add_filter()
- loadrunner Web_类函数之web_add_header()
- loadrunner Web_类函数之web_browser()
- loadrunner Web_类函数之web_button()
- loadrunner Web_类函数之web_cache_cleanup()
- loadrunner Web_类函数之web_check_box()
- loadrunner Web_类函数之web_convert_param()
- loadrunner Web_类函数之web_convert_date_param()
- loadrunner Web_类函数之web_convert_from_formatted()
- loadrunner Web_类函数之web_convert_to_formatted()
- loadrunner Web_类函数之web_create_html_param()
- loadrunner Web_类函数之web_create_html_param_ex()
- loadrunner Web_类函数之web_custom_request()
- 学生信息管理系统问题(一)
- hive导入和导出的几种方式
- 241. Different Ways to Add Parentheses
- Android -getApplicationContext和Context的区别
- python opencv入门 Harris角点检测(31)
- loadrunner Web_类函数之web_file()
- vue简介及其安装
- 线程的基本概念?线程的基本状态以及状态之间的关系
- Golang实现正方教务系统爬虫(一)
- VirtualBox中,虚拟系统文件VDI移动或者复制
- loadrunner Web_类函数之web_find()
- ImageLoder添加图片
- 进程与线程之间的关系
- 二叉树