QTP试题(最新整理)_第1页
QTP试题(最新整理)_第2页
QTP试题(最新整理)_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、qtp 试题本试卷总分为 100 分,分填空和选择两类题型填空(共 10 小题,每题 4 分共 40 分。填写正确得 4 分,不填不得分,填错扣 4 分,请用英文填写,中文填写不得分)1:当前使用的 qtp 主要版本,默认安装了几个插件(add in)? (3)个。vb,web,activex2:qtp 中的两个视图(view)分别为:(expert view 专家视图) 和 (keyword view 关键字视图)。3:datatable 中的第一个表(sheet)的名称是( global)4:数据表(datatable)在脚本文件夹中的名称是:( default.xls)5:用于获得对象的

2、运行时属性值的函数是( getroproperty)6:在 qtp 中存放测试对象(test object)的地方是()7:在 qtp 中使用()来查看对象的属性8:qtp 的运行模式(run mode)有哪两种(normal)和( fast) 9:vbs 语法中判断两个值不等的运算符是() 10:要求脚本中使用的变量必须定义,使用哪个语句(option explicit) 不定项选择(共 15 题,每题 4 分共 60 分,完全正确得 4 分,不选不得分,错选少选多选扣 4 分)1:qtp 支持在下面的哪些浏览器上录制脚本( ab)netscape microsoft internet ex

3、ploreraol (america online)带有嵌入式 web 浏览器控件的应用程序a:ie b: netscape c: firefox d:opera2:emulator you need to identify the values of the following system variables: osversion,product dir, and testdir. what is the tab in quicktest that contains this information,and where is the tab located?a: enviroment. i

4、t is in test settings (file - settings) b: active screen.it is in options(tools-options)c: folders. it is in options(tools-options)d: resourses. it is in test settings (file - settings)3: 一个 test 中有两个 action,a 和 b。根据业务特性,需要 a 调用 b,并把 a 中的参数 m 传给 b,那么需要在 qtp 中进行的必要操作有哪些?()a:在 a 中设置输入参数 m b:在 b 中设置输出参

5、数 mc:在 a 中设置调用 b 的语句为 runaction b, oneiteration d:在 a 中设置调用 b 的语句为 runaction b, oneiteration,me:在 b 中使用 parameter(”m”)获得 m 值 4:请选出最能正确表示 e_mail 地址的正则表达式:() a: a-za-z0-9_-+a-za-z0-9_-+(.a-za-z0-9_-+)+$b:a-za-z0-9_-+a-za-z0-9_-+(.a-za-z0-9_-+)+$c:a-za-z0-9_-+a-za-z0-9_-+(.a-za-z0-9_-+)d:a-za-z0-9_-+a-

6、za-z0-9_-+(.a-za-z0-9+)5: 通过编程方式打开被测应用百度网站的命令是()a. system.run “explorer.exe”,””b. system.run ””, “explorer.exe”c. enviroment.run ””, “explorer.exe”d. enviroment.run ””, “explorer.exe” 6:qtp 中一个操作步骤一般包含下列的哪几部分?()a: operation,

7、 assignment, comment b: operation, value, assignmentc: item, operation, valued: item, assignment, documentation7: call to copy of action 和 call to existing action 的区别是() a:call to copy of action 不能被编辑而 call to existing action 可以编辑b:call to copy of action 能被编辑而 call to existing action 不可以编辑c:call to

8、existing action 可以被编辑d:call to copy of action 不能被编辑8:vbs 变量命名必须遵循哪些规则(): a:第一个字符必须是字母 b:不能包含嵌入的句点 c:长度不能超过 255 个字符d:在被声明的作用域内必须唯一9:下列只能在录制时进行的操作是()a: 添加标准检查点(standard checkpoint)b: 添加文件区域检查点(text area checkpoint) c: 添加同步点(synchronization points)d: 添加虚拟对象10:更新动态页面(active screen)是工具(tools)菜单中的哪个命令( )a

9、: update active screen b: capture active screen c: modify active screen d: change active screen11:下列哪些项用于 while 循环()a:end whileb:nextc:wendd :until 12:选出下列 qtp 内建的输出值(output value)类型() a:standardb:text areac:bitmapd: datatable13:在更新选项(update options)中,下列哪些项不能被选择()a:update active screen images and va

10、lues b:update checkpoint propertiesc:update input and output parameters of actions d:update test object properties14:在 qtp 中调试(debug)的快捷键(short cut key)是()a:f4b:f5c:f11d:f1215:连续运行多个脚本我们一般会用到什么工具()a:batch controllerb: batch runner c: test manager d: multi test manager附加题:(20 分,任选其一,不做不扣分但也不加分,做对加 20

11、 分) 1:请编写一个把“great,wall,and,jatus“转化为“greatwallandjatus”的 vbs 函数/过程, 要求规范编写!2:假如 d 盘有文件 testfile.txt,请编写一个 vbs 函数/过程,向 testfile.txt 中追加写入三行数据第一行:greatwall 第二行:空行第三行:jactus“”“”at the end, xiao bian gives you a passage. minand once said, people who learn to learn are very happy people. in every wonder

12、ful life, learning is an eternal theme. as a professional clerical and teaching position, i understand the importance of continuous learning, life is diligent, nothing can be gained, only continuous learning can achieve better self. only by constantly learning and mastering the latest relevant knowledge, can employees from all walks of life keep up with the pace of enterprise develo

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论