hp-uft

Buildup and reference of objects in HP UFT

≯℡__Kan透↙ 提交于 2019-12-12 03:28:36
问题 I'm wondering how I can access properties/methods via console/watch. I have the following code: Dim page page = Browser("Welcome: Mercury Tours").Page Now I want to obtain the title of this Page. Since I inspected the Page object with Object Spy and I saw it has a title property. When I enter page.title in my watch however, it tells me that page does not contain the property. 1. What is the correct syntax? 2. Why is this not working? I presume that the watch is checking for VBScript object

Automating Date Control using QTP

别来无恙 提交于 2019-12-12 03:08:16
问题 Please help me in automating date control object using QTP. I'm trying to automate date control as it picks the user required date (** can be from previous year too) during run time. But I couldn't achieve it by using the date control object, as that IMAGE object doesn't have any in-built operations to select required. Note: Textbox is disabled and so we cannot enter the date into it directly, so we should select the required date from the calendar object. Thanks! 27-Mar-2015: Updating with

Access objects inside a WPF grid

你。 提交于 2019-12-12 02:59:16
问题 Application - .Net desktop Tool - UFT 12.5 UFT is able to identify WPF grid but not any object like checbox, textbox present in cells. How to get reference for such objects to perform any operation on them?? 回答1: You have not mentioned the type of application you are automating. Please use the 'Insight' feature in UFT if the operations to perform inside the grid is simple. 来源: https://stackoverflow.com/questions/35178671/access-objects-inside-a-wpf-grid

How to store run-results from QTP to word file?

亡梦爱人 提交于 2019-12-11 23:01:32
问题 After I run my scripts in UFT, I want to store results in a word document that will have the same name as my tests or be relevant to test, so I can easily differentiate which result belong to which test. Can anyone help me with that? Here is the code: Dim oWord Set oWord = CreateObject("Word.Application") oWord.Documents.Add oWord.ActiveDocument.Saveas "C:\Users\Desktop\RunResults\TestForWordDocResults2" Dim oWordTestPath oWordTestPath = "C:\Users\Desktop\AutomationScripts

Unable to Set/Select Date on JavaObject through UFT/QTP

本小妞迷上赌 提交于 2019-12-11 17:19:45
问题 I am trying to set date on a Java Application. below is the image The part in red is as : JavaDialog("tagname:=DialogM").JavaList("index:=2") The part in Green is as : JavaDialog("tagname:=DialogM").JavaObject("tagname:=JCalendarField\$DayList", "Index:=0") I've tried rather vainfully to set date here. I tried using "select", "click" with 1 and 2 and it didn't work. Also tried use SendKeys method (Just in case) didn't work either. I'm out of ideas on what i would do to achieve this.

QTP descriptive programming issue

最后都变了- 提交于 2019-12-11 13:52:22
问题 Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").highlight n1=Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").GetROProperty("name") n2=Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").GetROProperty("html id") n3=Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").GetROProperty("html tag") msgbox "value"& vbCrLf & n1 & vbCrLf & n2 & vbCrLf & n3 Browser("MWAY").Page("MWAY_2").Frame("Frame")

Script fails when the computer is locked (QTP 11.0) .Is there any workaround?

て烟熏妆下的殇ゞ 提交于 2019-12-11 12:38:50
问题 I use QTP 11.0. When i run a script and in between if computer gets locked, the script fails.Is there any workaround? Thanks in advance... 回答1: You must unlock the computer. QTP/UFT requires an "interactive" desktop session to do much of the automation, and the Windows OS behaves differently when it is locked. A good way around this issue is to use Virtual Machines for your automation lab that always remain unlocked. Access security is then maintained by the host machine or the client

Test if a SOAP WSDL is up or down in vb script?

好久不见. 提交于 2019-12-11 10:33:39
问题 I am trying to Verify if the WSDL is UP and Running or NOT in VB Script. IF we open the WSDL in browser, if we get an XML in that then the WSDL is UP and Running If it is blank/timing out/not responding then WSDL is DOWN I want to write a VB Script program for this? I was expecting some thing like this in VB Script to run in QTP/UFT or EXCEL VBA MACRO. This program is written in Java public static void main(String args[]) { String wsdl = "http://lxomavnat005.dev.qintra.com:10301/icl/services

DataTable.ImportSheet operation failed.Invalid file

老子叫甜甜 提交于 2019-12-11 07:15:14
问题 I'm running Excel tests on UFT and sometimes I get the error number 20012 which is "DataTable.ImportSheet operation failed.Invalid file". This is my way of importing the script: DataTable.ImportSheet filepath,scriptname,"Action2" filepath is the path of my workbook which conatins many excel sheets (scripts) scriptname: the name of the script that I want to run Action2: contains all the call of all possible keywords that may script can contains. Any help please, why I'm getting this error. The

Need To Get The Status of Each Iteration in UFT

谁说我不能喝 提交于 2019-12-11 06:33:46
问题 Need To Get The Status of Each Iteration in UFT like Execution Status, Error Message if the that particular iteration is failed and the status of Checkpoint. Whether it is pass or failed. I have checked for one code which i got from another forum but cannot be self explanatory. Can anyone help in getting more clear on the option to get the status of each iteration. Code: List<IterationStatus> iterationList = this.Context.ExecutionStatus.IterationStatus; if (iterationList.Count > 0) { this