Can we use goto statements in QTP. If not is there any other option for that?
Wait, property,exist syntaxes with examples.
Wait property Syntax: Object.waitproperty "property name", "property value", time out. Example: y = Window("Test").WaitProperty("focused", True, 3000) Here we use the WaitProperty method to make the p...
How to make an user-defined function reusable?
By encapsulating frequently performed or complex operations which is used several times in the script we can make the user defined functions reusable, SQL statements or scripts become easier to write, understand, and debug with the help of used defined functions.
Give an example of a built-in-function and any user-defined function?
Built-in function are the functions which are already present in the standard library files and they can be accessed directly Example sqrt(),round() etc... .sqrt() the above example returns the...
Report defects to the developer
In how many way we can report defects to the deveploer?
We can report defects to the developer either in formal way or through informal way. Communicating the details of the failure with the developers in person, in email or over the phone is an informal ...
Give one example where you have used regular expression?
Regular expressions r used when the data changes dynamically .for example
How many modes are there in QTP ? Describe about them ?
Three modes of Recordings are there:
Normal
Low level
Analog
There are two modes in QTP 1.Recording mode:It is a mode where the object and the operation associated with the object are recorded.It uses many object models to recognize the objects in AUT regardle...
How would you click on a link in QTP?
Note: properties are not known in a webtable? Can someone clearly explain this?
What is the advantage of using shared object repository in QTP?
Shared Object Repository is preferable while dealing with dynamic objects which are called in multiple tests. The extension is ".tsr"
The advantage of using shared object repository is : Easy To Update : Suppose we have changed the name/property of any object, then we dont have to change the property/name of the object in every scr...
Explain windowbase & webbased application?
Web based application:An application that is accessed over a network such as the Internet or an intranet are known as web based applications.These applications are popular as they have the ability to ...
How do you code error handling in QTP ?
There are 3 error handling statements 1. On Error GoTo line:It use a subroutine to handle error output. 2. On Error Resume Next: Specifies that when a run-time error occurs, control goes to the statem...
Is QTP supports the reports(business objects) to automate.
The qtp support for business objects depends on the primary language used through proper add-ins.
If Java, use the Java add-in (and maybe the Extensability).
If VB, use the VB add-in.
If web based, use the Web add-in.
and so on
Hence it depends on programming language.
How to parameterize checkpoint ?
Insert the checkpoint and right click on the checkpoint statemnt and then select checkpoint properties option,checkpoint properties dialog box will be opended. Select the property which u want to parameterize and check the parameter radiobutton.Click on parameter options button and select relevant...
To parametrize a check point we need to insert and click on checkpoint and select properties option and parametrize the property which is required ,Click on parameter options button and select relevant options and enter the parameter name and click on ok. Finally click on ok button.
What are the criterias that are considered to design a framework in QTP?
Some criterias in designing a framework are 1.Based on the requirements the framework should be kept simple, because Complexities can only destruct the whole purpose of framework. 2.As the project p...
How to export the contents of a combo box to the table?
I want to export the contents of a combo box to the data table so that I can parametrize the test using the data present in the combo box. thanks in advance roli
You can see the combo box values in the run time data table. "vb cb_count=Window("window name").WinComboBox("Combobox name").GetItemsCount For x = 0 to cb_count-1 cb_item = Wind...
combo_box = Window("Window Name").WinComboBox("ComboBox Name");
cb_count = combo_box.GetItemsCount
For x = 0 to cb_count-1
cb_item = comboBox.GetItem(x)
INSERT INTO TableName VALUES(cb_item)
Next
How I can remote to run QTP on anysite
How I can coding on QTP for remote to anysitefor run QTP and I would like to send my datatable together.
I think, You need to install HP Quality center for that!
Does QTP supports to automate openlink endur application?
Hi,can somebody help me to know whether the QTP supports to automate openlink endur application?Thanksmanju
It does, QTP 11.0 has a new OLF Plugin and is licensed
There is another application of Openlink called Findur, which also not supported by HP QTP. Can somebody help me to know whether the QTP supports to automate this?
How to import data for data driven test?
We can import data by using DataTable.ImportSheet "....TestDataInput.xls",1,dtGlobalSheet
What are the disadvantages of checkpoints?
One of the disadvantage is that is it consumes a lot of CPUs time for checking the given functionality.
What files are created in QTP?
Text files and Xml files are created in QTP.
In QTP there is no goto statement hence by using conditional statements along with looping statements behaves like the goto statement.