Month: March 2013

Making changes to Settings of UFT

March 31, 2013

How we can change the “Browser navigation timeout” in UFT? Solution1:- In first solution we can change by following steps:- Step1:-File->Settings->Web->BrowserNavigationTimeout Step2:-Select “Apply” and “OK” Solution2:- We can change it dynamically using coding at Runtime Step1:- Copy the following script in any Editor(Notepad) and save with extension .vbs ‘Decalring the object variable for UFTDim objUft‘Creating object […]

Read More

How to get the count of the Google search Result of a page using DP?

March 30, 2013

Using Descriptive programming (DP) to count number of results on Google search page? Solution:- Here we will use “Static type of DP” (by provide the set of properties and values directly) to find the Search results count. Dim sSearch : sSearch = “UFTHelp.com”‘Function call to fetch the Result count fnSearch(sSearch)’*********************Function to count search result*************************Public Function […]

Read More

Example of class in Vbscripting

March 29, 2013

Here is a example for defining a Class, setting the values using Property and working with methods using Object of class. ‘********************************Code for Class********************************‘Defining a Class Class UFTHelp       ‘Declaring variables inside class       Private sTool,sVersion                   ‘Using Let property for Setting the values of class members       Public property Let Tool (sUFT) […]

Read More

Understanding Class in VBScripting

March 29, 2013

What is a Class? A Class is a template or a blueprint for an object. An object exists only in memory at runtime; a class is a programming construct that we can work only directly during design time. Now for using object at runtime we need to define a class at design time. Objects are […]

Read More

Exit Statements in UFT

March 25, 2013

Let us discuss various Exit statements which are quite useful in automation testing Using UFT.These statements are part of Vbscripting(Latest version) and when implanted in the code provides better control on the flow of execution of automated Tests. It is also used in Error handling as and when some exception occurs we can use ‘Exit’ […]

Read More

Test Directory structure of UFT files.

March 21, 2013

Scenario: – We have created new Test with the name “blog” and let us observe the folder structure created by UFT. On creating of new GUI Test in UFT, by default two actions (Action0, Action1) is created. Action1:– It contains details about our first Action and is visible in “Editor” (Keyword view of QTP) of […]

Read More

Scheduling the HP certification.

March 19, 2013

Please refer below steps  to “Schedule HP certification” on Pearson VUE.Note:- HP learners ID is must to schedule the exam. How to get HP learners ID? Step1:-Create Profile(For the first time) Step2:-HP learnes ID is must for creating profile .Step3:-Login with created profile credentials and click on “Schedule Proctored Exam” Step4:-Click on “View Proctored Exams” Step5:- […]

Read More

How to register for HP Exams?

March 18, 2013

Note:- This post is updated as of 13 Feb, 2017. Registering for HP exams, as a first timer is quite a  cumbersome task, on the request of readers, I am giving step-step procedure for registration of HP0-M47 exam ( but this can be taken as generalized steps for any HP exam).  This process involves two […]

Read More

Variable type in UFT

March 15, 2013

How to get Subtype of variable?It is very easy, we need to use the function provided in vbscripting i.e. VartypeSyntax:-Vartype(variableName)Vartype returns values in the form  shown below:- Example:-We need Vartype of a string variable, Var1 = “UFThelp”Msgbox (Vartype(Var1)) ‘8 will be returned DataType

Read More

Datatypes in UFT

March 15, 2013

Data types in Vbscript:- It has only one dataype called as Variant ,as the name indicates its data type changes as per  the context in which it is used.Idea is vbscript is loosely typed language, so you are using variables without declaring, the type of data that will be stored in the variable. Scenario: – […]

Read More