QTP

功能自动化测试之QTP录制脚本(二)

断了今生、忘了曾经 提交于 2020-01-29 06:16:53
说明:该篇博客是博主一字一码编写的,实属不易,请尊重原创,谢谢大家! 接着上一篇博客继续往下写 : https://blog.csdn.net/qq_41782425/article/details/103669528 文章目录 四、录制脚本 1.案例 1.1 Flight 1.2 MTours 1.2.1 搭建被测网站 1.2.2 熟悉测试案例的业务和使用流程 2.脚本错误分类 2.1 语法错误 2.2 运行时错误 2.2.1 QTP录制单机版软件 2.2.2 QTP录制MTours 3.QTP 的视图 来源: CSDN 作者: cdtaogang 链接: https://blog.csdn.net/qq_41782425/article/details/103697389

功能自动化测试之QTP编写测试脚本(一)

放肆的年华 提交于 2020-01-15 07:39:56
说明:该篇博客是博主一字一码编写的,实属不易,请尊重原创,谢谢大家! 接着上一篇博客继续往下写 : https://blog.csdn.net/qq_41782425/article/details/103731397 文章目录 一、VBScript 基础知识 1.弹窗输出结果 1.1 msgbox 1.2 print 2.变量、常量和数组 2.1 变量 2.2 系统常量 2.3 数组 3.系统函数 3.1 输入函数 3.2 查看数据类型函数 3.3 字符串函数 3.4 日期时间函数 来源: CSDN 作者: cdtaogang 链接: https://blog.csdn.net/qq_41782425/article/details/103766798

What is the difference between Test Objects and Runtime Objects in QTP? Is the given explanation correct?

◇◆丶佛笑我妖孽 提交于 2020-01-14 04:00:09
问题 On a blog about QTP, the following is stated: "All software applications and websites are getting developed using many different components or small units (e.g textbox control in vb, input tag in HTML, webbrowser contorl in .net) which can be called as Objects. Some of the properties can be changed during run-time. These are known as RO (Runtime object) properties. And some of them can not be changed. They are known as TO (Test Object) properties." Is this explanation correct? 回答1: To

QTP特点有哪些?

情到浓时终转凉″ 提交于 2020-01-12 13:02:35
QTP特点有哪些? 浏览: 77 | 更新:2013-06-19 12:35 QTP是一个侧重于功能的回归自动化测试工具;提供了很多插件,如:.NET的,Java的,SAP的,Terminal Emulator的等等,分别用于各自类型的产品测试。默认提供Web,ActiveX和VB。 QTP支持的脚本语言是VBScript,这对于测试人员来说,感觉要“舒服”得多(如相比SilkTest采用C语言)。VBScript毕竟是一种松散的、非严格的、普及面很广的语言。 QTP支持录制和回放的功能。录制产生的脚本,可以拿来作为自己编写脚本的template。录制时,还支持一种lower level 功能,这个对于QTP不容易识别出来的对象有用,不过它是使用坐标来标识的,对于坐标位置频繁变动的对象,采用这种方式不可行。另外,QTP的编辑器支持两种视图:Keyword模式和Expert模式。Keyword模式想法是好的,提供一个 描述近似于原始测试用例的、跟代码无关的视图(我基本很少用,除了查看、管理当前test中各个action的完整流程),而Expert就是代码视图,一般编写脚本都在这个区域。 一个有用的工具:Object Spy,可以用来查看Run-time object和Test object属性和方法。 QTP通过三类属性来识别对象:a)Mandatory; b)Assitive; c

How do I handle object existence with QTP?

自古美人都是妖i 提交于 2020-01-05 09:08:44
问题 I am new to QTP and I have a problem with "error validation message". I have a task that checks whether the error validation message appears when invalid input is entered. I tried to check before and after the data is entered, but unfortunately the QTP recognies the "error message" and see is even that the error is not displayed on the page. can I handle this issue ? 回答1: The error message may exist even if you can't see it, especially in web applications an element is often there but

QTP : How do we capture the tool tip text displayed on doing mouseover on a radiobutton?

自古美人都是妖i 提交于 2020-01-04 18:41:10
问题 I am trying to capture the text displayed on doing mouse over on a radio button with Descriptive Programming using GetROProperty . If I spy the tool tip text displayed, it is recognizing as WebElement . I tried executing the below code setToolTip=Browser(strBrowser).Page(strPage).WebElement(strwebElement).GetROProperty("innertext") MsgBox ToolTip but i am getting the below error message "Cannot identify the object "[WebElement] of (of class WebElement.Verify that this Object's properties

Running qtp tests automatically from a hudson instance

纵然是瞬间 提交于 2020-01-03 01:47:07
问题 We have at work a Hudson machine that acts as a build server for a Java Swing Project. The build process is based on Ant scripts (and not Maven). Has anyone integrated tests from QuickTest Professional is such configuration? In other words: Is it possible to execute qtp tests automatically via Ant? 回答1: Not sure about your particular setup, but QTP has an automation API which can be used to drive QTP itself. Below is an example VBScript snippet you could drop into a .vbs file and call from

Get dates from AUT?

自作多情 提交于 2019-12-30 11:48:48
问题 My Web-based application (like most) follows the browser locale to format dates. So if you configure British English as the preferred language in the browser, the app will display dates in " DD/MM/YYYY " format. Now QTP (ok, it´s VBScript that is the culprit) does not know about this. It strictly follows the local machine´s locale settings. Unfortunately, that means that if my local machine is configured to German locale, and the app is in English (because the browser is configured this way),

How To Stop Wscript Exe

蹲街弑〆低调 提交于 2019-12-29 09:34:23
问题 I want to shutdown QTP which is invoked through Wscript.exe. 回答1: I used these three commands and it works perfectly fine. TASKKILL /F /FI "USERNAME eq Ankita" /IM wscript.exe" TASKKILL /F /im QTAutomationAgent.exe TASKKILL /F /im QTPro.exe 回答2: You cannot create multiple instances of QuickTest Application on a single machine. Even though you say CreateObject("QuickTest.Application") 10 times, all will be holding same instance of the application. Closing the quickTest using API method

How can I run a QTP test from the command line?

谁说我不能喝 提交于 2019-12-28 16:22:25
问题 There are a few situations where I need to launch and run a QTP test from the command prompt. For example, I'd like to use Windows Task Scheduler to run QTP tests at various times throughout the night, but there is (seemingly) no flag that I can use have QTP.exe open and run a test. How can I accomplish this? 回答1: It's true that with QuickTest Pro, you cannot directly run a test by calling C:\Program Files (x86)\HP\QuickTest Professional\bin\QTPro.exe "C:\Some Test\" All hope is not lost,