12/24/2015
Source: http://quicktestprotech.blogspot.com/2014/03/uftqtp-12-new-features.html
Adding object from object repository
|
options for insight
|
Insight Recording
|
Low-Level Recording
|
Recognizes controls based on their appearance, and not their native properties | Recognizes every control as Window or WinObject object |
Recognizes object based on Image processing Technology | Recognize object based on X and Y coordinates |
Insight recording records parent & child object with relevant test object properties just like normal recording if the object gets recognized with Normal recording and any other objects as InsightObject | UFT records all parent level objects as Window test objects and all other objects as WinObject test objects |
Dual monitor support. When recording in Insight mode, UFT records only on the primary monitor. Therefore, if you are working with dual monitors, make sure that your application is visible on the primary monitor during a recording session | Steps recorded using low-level recording mode may not run correctly on all objects. |
Insight recording requires more disk space than normal recording mode, because of the test object image and the snapshots stored with the test object.
To control the amount of space used, you can adjust the number of snapshots saved and their size in the Insight Pane (Options Dialog Box > GUI Testing Tab). These settings can also affect UFT performance when recording and running Insight steps.
Insight recording requires more space when compared to Low-level recording and depends on the scenario you are working on
|
Low-level recording requires more disk space than normal recording mode.
We may not be able to optimize the space used by low-level recording
Low-level recording requires less space when compared to Insight recording and depends on the scenario you are working on. |
When created, all Insight test objects are named InsightObject, with an incremental suffix added if necessary, to avoid duplicate test object names within a single parent test object.
| Does not apply - Usually only Window and Winobject test objects are only shown even after multiple webpage navigations and clicks |
Only use Insight recording for mouse events. When possible, keyboard events should be recorded using standard or low-level recording.
|
Low-Level Recording can be used for capturing Mouse and keyboard activates on test object
|
A collection of objects or classes through which a program can examine and manipulate some specific parts of its world. In other words, the object-oriented interface to some service or system. Such an interface is said to be the object model of the represented service or system.
1
2
3
|
<div id=gbqfbwa class=jsb>
<button id=gbqfba aria-label="Google Search" name=btnK class=gbqfba><span id=gbqfsa>Google Search</span></button>
<button id=gbqfbb aria-label="I'm Feeling Lucky" name=btnI class=gbqfba onclick="if(this.form.q.value)this.checked=1;else window.top.location='/doodles/'"><span id=gbqfsb>I'm Feeling Lucky</span></button></div>
|
1
|
Browser("Google").Page("Google").object.getElementsByName("btnK").Item(0).click
|
1
2
3
4
5
6
7
8
9
10
11
12
|
Set PageObject = Browser("Google").Page("Google").object
set ButtonObjects=PageObject.getElementsByTagName("button")
For each button in ButtonObjects
If lcase(button.type)="button" Or lcase(button.type)="submit" Then
If UCase(button.name)="BTNK" Then
button.click
Exit For
End if
End If
Next
|
1
2
3
4
5
6
7
8
9
10
|
Set PageObject = Browser("Google").Page("Google").object
Set InputObjects = PageObject.getElementsByTagName("INPUT")
inCount=InputObjects.Length-1
For i=0 to inCount
If InputObjects(i).Name="q" and InputObjects(i).Type="text" Then
PageObject.getElementsByName(InputObjects(i).Name)(0).Value="Automated-360"
Exit For
End If
Next
|
1
2
3
|
x=Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").GetROProperty("x")
y=Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").GetROProperty("y")
Browser("name:=Google").Page("title:=Google").Object.elementFromPoint(x,y).Value="Automated-360"
|
1
|
Print Browser("Google").Page("Google").Object.activeElement.name
|
1
|
Print Browser("Google").Page("Google").Object.Cookie
|
1
|
Print Browser("Google").Page("Google").Object.documentElement.innerHTML
|
1
|
Browser("Google").Page("Google").Object.readyState
|
It is used to enable interprocess communication and dynamic object creation in a large range of programming languages. COM is the basis for several other Microsoft technologies and frameworks, including OLE, OLE Automation, ActiveX, COM+, DCOM, the Windows shell, DirectX, and Windows Runtime.COM is basically used by developers to make the things simpler and easier to build and link by creating reusable components. The objects can be accessed by the interface (properties and methods) provided by COM for a particular class. Basically the properties and methods of an object can be the interface of the object and accessed by taking the reference of the object.
1
|
Set oFSO = CreateObject("Scripting.FileSystemObject")
|
1
|
Set oFSO = Nothing
|
1
|
Set oWord = GetObject("C:\Test\Test1.doc")
|
1
|
Set oWord = GetObject("","Word.Application")
|
1
2
3
4
5
6
7
|
Dim UFTApp
Set UFTApp= CreateObject("QuickTest.Application") ' Create the application object
UFTApp.Launch 'Start QuickTest
UFTApp.Visible = True ' Make it visible
|
Course
Code
|
Course
Name
|
Duration
|
Delivery
Mode
|
Start
Date
|
End
Date
|
(in
Hrs)
|
| ||||
| |||||
BTLNA6
|
4.2
|
eLearning
|
26-Oct
|
27-Oct
| |
CSEST045
|
2
|
eLearning
|
28-Oct
|
28-Oct
| |
CSEST062
|
24
|
eLearning
|
28-Oct
|
4-Nov
| |
CSEST179
|
4
|
eLearning
|
5-Nov
|
6-Nov
| |
| |||||
CSEST186
|
24
|
Classroom Training
(Location – Phoenix,
AZ)
|
9-Nov
|
11-Nov
| |
CSEST185
|
15
|
Classroom Training
(Location – Phoenix,
AZ)
|
12-Nov
|
13-Nov
| |
| |||||
ATSTC4
|
NA
|
CCP-Assessment
|
16-Nov
|
20-Nov
| |
ASEST077
|
QTP- Case
Study Presentation
|
NA
|
Assessment
|
16-Nov
|
20-Nov
|