QTP

How to reference the mail which triggered the outlook macro?

孤者浪人 提交于 2019-12-06 16:46:12
问题 I am designing a QTP framework which in which the automation engineer sends an email in order to start the test suite execution (The email can be scheduled using MS Outlook) As soon as the trigger mail is received, the attachment should be downloaded and QTP should be launched (automatically) using appropriate settings by the Outlook Macro But in the above scenario I want to download the attachment of the mail and move the mail to a different folder which triggered the macro. Is there any way

Set Object Reference in UFT with or without the “Execute” Statement

允我心安 提交于 2019-12-06 16:23:59
Recently I have been assigned a project wherein the object references are set using the "Execute" Statements as shown below: Execute "Set objButton = XamRibbonWindowAddin(""XamWindow_DashBoard"").WpfButton(""Save"")" Whereas, my approach for setting the object references has always been like this(without the "Execute" Statement): Set objButton = XamRibbonWindowAddin("XamWindow_DashBoard").WpfButton("Save") I have been using the latter method as it allows me to make use of Intellisense in UFT which is quite an advantage sometimes. Is there any reason I need to switch to the 1st approach or

How to fetch the content from the PDF into a string using QTP/VBScript?

落爺英雄遲暮 提交于 2019-12-06 13:25:44
I need to validate a particular content from the PDF using QTP . How I can get the content from the PDF into the string Using QTP/VBScript. So that, I can validate the content in the PDF. Do visit Here . You will get your answer, this is one of the menthod to work with PDF in QTP. You can also fetch data from PDF by passing Keys i,e, Ctrl+a then Ctrl+c then copy this data to Clipboard & use this data for comparing with your standard data Sample Function For Getting data from PDF, When PDF report is open in Broweser whose creation time is passed in datatable Public function CopyPDFData

UFT11.50 - Service Test - How can I obtain the data from the response body

℡╲_俬逩灬. 提交于 2019-12-06 12:33:06
问题 { "Id": 456, "Type": null, "Name": "Store112", "Root": "\\\\server\\ShareFolder", "Username": "alm", "Password": null } This is a JSON file response body from a HTTP Request, how can I get the value of 'ID' property? Does UFT or QTP has a function to support this? 回答1: In order to use a specific JSON property from the response you should do the following. Select the HTTP tab in the properties pane In the Response Body section select JSON from the drop down list Load a sample of the expected

How to save workbook and handle TITUS (or any other document classification add-in) popup?

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:46:17
问题 I'm creating a script in HP UFT 12 which performs grid data validation against a CSV file and saves the results in a Excel file with two worksheets. I'm using Excel for this because it is much more clear for the user, as it allows cell formatting, is easier to compare the data and so forth. My code works in my machine, but my client has TITUS document classification add-in installed, so every time they run my script, it hangs because of the TITUS pop-up message that asks user to classify the

How do you simulate a keyboard enter event in UFT

↘锁芯ラ 提交于 2019-12-06 10:41:39
问题 I have a web application that I am testing with HP's UFT software. Within my application, there is a text field with an onkeydown attribute. When a key is pressed within the text field, a function is called which triggers different actions depending on what key was pressed. I am interested in the enter key. When the enter key is pressed, rows are created within the form. How can I simulate the enter key being pressed within the field? I have tried field1.Set Chr(13) field1.FireEvent

自动化测试基础--3自动化测试分类

放肆的年华 提交于 2019-12-06 06:48:26
首先从软件架构来分为B/S C/S APP 再根据软件架构选择相应的工具 B/S:selenium(java或python语言) C/S:QTP(目前市面上很少用这个工具了) APP:appium 其他的主流工具还有Freamwork等 介绍: QTP是HP公司开发的,自带一个飞机录票系统 Robot Freamword 是基于python语言写的自动化测试框架 ,很强的扩展性,可测客户端和接口 selenium 用于web的自动化测试工具,多平台,多语言, appium环境搭建稍难于selenium,是app自动化测试的工具,支持Android和ios,写法和selenium差距不大 来源: https://www.cnblogs.com/wx921308494/p/11966614.html

Running Quicktest Pro tests from maven/Jenkins?

怎甘沉沦 提交于 2019-12-06 06:11:27
问题 I need to leverage Quicktest Pro from our Maven/Jenkins builds. I know, I know QTP is not the best tool out there (I'm amused by the "bag of flaming dog poo" reference), but our QE team is using it and I want to run some of their tests in Jenkins. 1A. Has anyone used this specific combination? An example/maven plugin would be great. Since I doubt that is likely, lets break it up into pieces. 2A. How do you simply launch a QTP test from the command line? I think I can figure the rest of the

QTP测试学习笔记

本秂侑毒 提交于 2019-12-06 03:29:48
QuickTest Professional(简称QTP)功能自动化测试,原属于Mercury Interactive公司产品,2006年7月被惠普公司收购了,通过安装文件目录可以看到,都是默认放在C:\Program Files (x86)\HP\Unified Functional Testing\文件夹目录下。早期惠普公司还有一个winrunner的产品,目前已经不维护了,但是还是有少部分公司在用。 https://blog.51cto.com/croshere/116783 http://blog.sina.com.cn/s/articlelist_1599269304_5_1.html 首先我们来理解下,为什么要有自动化测试工具呢? 1. 存在大量的回归测试 2. 大数据量的测试 3. 自动化测试工具可以24小时不间断的工作,手工测试就不行了 总结就是,主要是为了减少手工执行的重复性操作,减少人工和时间的浪费,快速的回归测试功能,提高项目的效率。 自动化测试工具使用的条件: 1. 项目的功能点相对稳定 2. 冒烟测试通过后,引入自动化测试,不会浪费资源 常用的功能测试化工具有:WinRunner,QaRun,Robot Framework(IBM的一款产品),Selenium; QTP的特点: 1. 是面向对象的一种功能自动化测试工具 2.

HP QTP 11: Script execution fails when running in Firefox, but Debug Viewer shows result of operation

浪尽此生 提交于 2019-12-06 00:41:34
I'm trying to run our automation, written for IE, on Firefox 3.6 and facing those frustrating problem: I have a code: Set cellDataItems = Browser().Page().WebElement().Object.getElementsByTagName("div") For i = 0 to cellDataItems.length -1 MsgBox (cellDataItems.item(i).innerHTML) Next When script goes to line with MsgBox if stops with error: TypeError: obj[FuncName] is undefined Then I press debug, see that i=0. I added cellDataItems.item(i).innerHTML into debug viewer, it shows it's value (see below) without errors. Also, cellDataItems.item(i).textContent shows fine in Debug Viewer. The value