11.How to execute Cross platform testing and Cross browser testing in QTP?
Cross platform testing and Cross browser testing can be possible by creating different actions in terms of different operating systems and Browsers.
Cross Platform Testing: The built-in Environment Variable helps in excavating-up the OS information. You can call the action based on the platform where the action have been recorded.
Cross Browser Testing: The code; Browser (“Core Values”).GetROProperty (“version”) helps in extracting the browser and its corresponding version, for example; IE 6, Mozilla Firefox 9 or Netscape 5. After extracting the browser, you can call the actions relevant to the particular browser.
12.How to connect to QC in UFT?
Directly, you can connect to QC from UFT GUI window. To do so −
Go to file menu and choose (QC) quality center
Next, a window will open to enter QC’s url and other details– In this window, enter user id, password and project
Give above steps will facilitate you to connect to QC, later on you can execute the tests from QC itself.
13.What are the types of Automation Framework in UFT?
Types of Automation Framework in UFT −
Linear − Using this framework you can create the test very easily, just you need to write a one single program without modularity in sequential steps.
Keyword driven − To create the test using this framework, you have to generate different keyword for different set of operations and refer these keywords to the main scripted code.
Data driven − It is used to execute same set of operations on multiple sets of data that are reserved in separate files, generally excel sheets.
Hybrid − A combination data driven and keyword driven framework
BPT − Here, programs are broken down into business components and programs are used with one or the other of the above types of frameworks.
14.What is “settoproperty” and where to use it in UFT?
Settoproperty stands for set test object property. Using this property, you can temporarily change the object values and its corresponding property value at runtime.
15.What is round function in UFT?
Round function in UFT is used to round the decimal value
Mydecimal = 8.2755555
Roundedvalue = Round(Mydecimal , 5)
Print roundedvalue ‘it will print 8.275
16.Is it possible to switch from Local and Shared Object Repository?
Yes! User can switch from local to share object repository by opening QTP window, going to Test Settings Resources (provide an option to choose repositories).
17.Explain how QTP uniquely identifies the GUI objects?
In QTP, object’s properties help in identifying the GUI object. During recording, the object repository of the GUI objects stores the properties that have been defined in the Object Identification settings and while running the test, QTP compares the properties that have been stored in the object repository of the GUI objects with the on-screen properties to uniquely recognize the GUI object.
18.What is QTP batch testing tool?
Execution of multiple test files (or series of files) together at a same time is known a batch testing. To execute the batch testing, QTP provides a tool “Batch Test Runner”. To function multiple files together in a tool, you just need to add a script of the test. After adding script, you don’t need to do anything manually, tool will automatically start opening and executing the test script one after the other.
19.What are the drawbacks of QTP?
There are many drawbacks of QTP −
Costly in terms of license and maintenance
Cannot run multiple threads/instances
Execution process is slow as compare to open source tools like Selenium
QTP license can only be renewed from HP only
20.Explain the types of recording modes in QTP and how to use them?
There are 3 types of recording mode that QTP supports −
Normal (Contextual)recording mode
Low-level recording mode
Analog recording mode
Normal recording mode: A default recording mode which has been used in most of the automation activities. By using QTP’s Test Object Model, it recognizes objects apart from their location on screen.
Low-level recording mode: In this mode, operation of mouse in x, y co-ordinates helps in recording the objects. It is capable in testing hashmaps and recording objects that can’t be identified by normal recording mode.
Analog recording mode: This recording mode records screen/application window on the basis of mouse and keyboard operations. It records the operations, like; drawing a picture, recording signature, drag and drop operations.