hp-uft

How does UFT perform the Click method when using the Web Add In?

我与影子孤独终老i 提交于 2019-12-01 09:22:25
I am testing a highly javascript based application on Internet Explorer 8.0 with UFT 11.50. I would like to know how UFT implements the "Click" method under the hood when using the Web Add In. Does UFT send a windows mouse event? Does it fire an event (onclick, onmousedown, onmouseup)? I have been seeing some mixed results with my application. It can do either, by default UFT replays using DOM events but you can change the replay type to device in which case it queries the HTML element's location and simulates a mouse click on that location. The replay mode is controlled by Tools->Opitions-

What is descriptive programming (Programmatic Description) in QTP

谁都会走 提交于 2019-12-01 09:12:58
What is descriptive programming in QTP? Creating a test without using the object repository is known as descriptive programming since you describe the objects as part of the script. e.g. Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click Note the := in the test objects' names, this is not a smiley it means that the property title has value Google (as a regular expression). You can also use the Description object via Description.Create . You can see more details here . descriptive programming is writing qtp scpriting without any object repository Jonas Söderström

How can I get the run result status according to the current report node?

喜你入骨 提交于 2019-12-01 05:11:50
For example, suppose a test calls two actions, A and B. A performs a "failed" step by calling "Reporter.ReportEvent micFail, ... ", and B performs a "passed" step by calling "Reporter.ReportEvent micpass, ... " Reporter.RunStatus returns micFail as soon as the failed step has been performed in A. So even in B, with B´s status being completely "green", there is no way to tell that in the "B" branch, there is no "failed" step present. The test run status reported by Reporter.RunStatus " is micFail from then on. So how can I get the current "branch"´s run status? I think what I am looking for is

How can I get the run result status according to the current report node?

时光毁灭记忆、已成空白 提交于 2019-12-01 02:09:40
问题 For example, suppose a test calls two actions, A and B. A performs a "failed" step by calling "Reporter.ReportEvent micFail, ... ", and B performs a "passed" step by calling "Reporter.ReportEvent micpass, ... " Reporter.RunStatus returns micFail as soon as the failed step has been performed in A. So even in B, with B´s status being completely "green", there is no way to tell that in the "B" branch, there is no "failed" step present. The test run status reported by Reporter.RunStatus " is

Why only the latest function is called, if the function name are same in UFT 12.02?

北慕城南 提交于 2019-12-01 00:53:46
I am using UFT 12.02. In the function library I have a function as ReportEvent(Status, TestStep, ExpectedResult, ActualResult, OptionalLink) and another function with the same name as ReportEvent(TestStep, ExpectedResult, ActualResult) . when I call the ReportEvent function in my script it calls the function that mentioned at the highest LOC of the two i.e. the last one to be written. it doesn't stop my work but my curiosity got better of me and I thought may be y'all might be able to help. okay I found an answer to this, swiftly hopefully - it is based on the check rules of vbscript, which in

Sorting String with Numbers using VB Script

不想你离开。 提交于 2019-11-30 19:46:10
问题 How to Sort String with Numeric values using VB Script? Below are my strings from each row from a table: "Test 1 pass dec 2" "Test 3 fail" "Test 2 pass jun 4" "Verified" "Test 10 pass" "User Accepted" I would to like get in below order after sorting(natural order): "Test 1 pass dec 2" "Test 2 pass jun 4" "Test 3 fail" "Test 10 pass" "User Accepted" "Verified" Ways i have tried so far, Set oAlist=CreateObject("System.Collections.ArrayList") oAlist.sort The ArrayList was sorted in below order

Why only the latest function is called, if the function name are same in UFT 12.02?

三世轮回 提交于 2019-11-30 19:14:28
问题 I am using UFT 12.02. In the function library I have a function as ReportEvent(Status, TestStep, ExpectedResult, ActualResult, OptionalLink) and another function with the same name as ReportEvent(TestStep, ExpectedResult, ActualResult) . when I call the ReportEvent function in my script it calls the function that mentioned at the highest LOC of the two i.e. the last one to be written. it doesn't stop my work but my curiosity got better of me and I thought may be y'all might be able to help.

Natural Sorting using VB script

夙愿已清 提交于 2019-11-28 11:50:40
I want to sort below items using natural sorting: "Z1","Z3","Z2","Z20","Z10" After sorting, I am expecting the order below: "Z1","Z2","Z3","Z10","Z20" When I tried using array list, Set oAlist=CreateObject("System.Collections.ArrayList") oAlist.sort I am getting a sorting result based on ASCII: Z1,Z10,Z2,Z20,Z3 Please help me on how to do this natural sorting using vb script Ekkehard.Horner For theory see here (follow the links!). Practical demo recordset: Option Explicit Const adInteger = 3 ' 00000003 Const adVarChar = 200 ' 000000C8 Dim sInp : sInp = "Z1,Z3,Z2,Z20,Z10" Dim aInp : aInp =

Natural Sorting using VB script

故事扮演 提交于 2019-11-27 06:38:22
问题 I want to sort below items using natural sorting: "Z1","Z3","Z2","Z20","Z10" After sorting, I am expecting the order below: "Z1","Z2","Z3","Z10","Z20" When I tried using array list, Set oAlist=CreateObject("System.Collections.ArrayList") oAlist.sort I am getting a sorting result based on ASCII: Z1,Z10,Z2,Z20,Z3 Please help me on how to do this natural sorting using vb script 回答1: For theory see here (follow the links!). Practical demo recordset: Option Explicit Const adInteger = 3 ' 00000003