Latest QTP Interview Questions and Answers (Latest UFT Interview Questions) – Part 1
August 13, 2018
Latest QTP Interview Questions and Answers (Latest UFT Interview Questions)- Part 1
Welcome to this post!-“Latest QTP Interview Questions and Answers (Latest UFT Interview Questions) – Part 1”
If you are looking for latest HP UFT \ QTP interview Questions, then you are at right place. This post consists of some exhaustive questions which had been part of interviews. Usually these are assumed to be known before moving to deeper technical questions on UFT or QTP, Go ahead and enjoy reading…
Below post discusses about some important questions and answers on HPE UFT (Micro Focus) QTP/UFT interview.
Questions based on your experience with UFT\QTP:
Q1. “Were you responsible for automation test tools feasibility? If yes, then how you have evaluated and concluded on QTP/UFT? “
-Some people are usually responsible for automating the requirements using scripts and few are involved in selecting the right automation tool for the project. These people are usually automation architect’s, who focusses on right selection of automation tool and build a prototype framework around some important requirements. And later present it to the customer for approval. In short, if you are involved in such activity you need to know in and out of the project requirement plus which tool is capable of maximizing the coverage, brings more ROI, etc.
Hence you think well on it before answering such question. 😊
Q2. A very common question- “Your proud moment in this project?”
-Discuss only one scenario don’t start describing the whole story with different scenarios.
Q3. “Did you evaluated the project requirement coverage before and after implementing this tool- QTP/UFT? If yes describe the difference.”
-This is very crucial point and should be answered honestly. If yes you have done then go with details.
Q4. “How did you manage and executed the scripts?”
–Describe here points related to HP QC if you were using. The benefits of those as well as demerits. This will help interviewer to understand that you are well aware of the facts of the project and tools usage.
Q5. “Did you find any problems while automating some objects using QTP/UFT? If yes how did you solve that issue or problem?”
-Describe any UI element which made you bite chicken peas with your nose, right? I hope you got the essence of this question. Don’t elaborate too much, try to answer it in steps if possible this will help interviewer judge the problem easily as well as your approach in solving it.
Below discussed points are raised by start-up companies or senior persons likes to discuss them to see how much your contribution is.
Examples:
-
In your project, what was effort of script development? Or How often you get chance to develop scripts?
-
Did you develop from scratch? or Were you part of maintenance?
-
How you were managing the objects?
-
How your scripts were prioritized? Were you part of the strategy?
Below stated questions cover latest UFT interview questions and answers or QTP interview questions and answers as well.
“Mostly Asked QuickTest Professional or Unified functional testing Interview Questions” will appear first:
1. Does HP UFT have installations for all environment?
Ans. No, it works only in the windows environment.
2. Describe the different views in the UFT or QTP?
Ans. There are 2 views available. The first one (Keyword View) is for Business Analysts who don’t want to go into technical details and want to setup and second one (Expert View) is for technically sound testers.
Expert view:
As the name indicates, this view is for technically sound people who know how to code in vbscript, can handle situations of dynamic objects, connecting to database or excel files etc.
Keyword view:
This view is a tabular representation of all the objects and their associated actions that can be performed on them. Plus, every row in the table is a single step. This row signifies action step performed on the AUT and also can be modified later. Some of the common columns displayed are item, operation, value and documentation.
3. What is the model followed in test case definition and creation?
Ans. Usually, post automation framework setup following steps are performed:
- Setting up the repositories – Local or Shared OR
- Define function libraries
- Generate test steps – Add steps, Add checkpoints in keyword view or write your own steps in Expert View.
- If your framework supports data driven then utilize it in your test cases easily.
- Run the tests and share the results via QC etc.
4. What are the different recording modes available?
Ans. QTP or UFT has provided 4 modes of recording:
- Normal Recording mode – This is the default recording method which is always the normal mode. This mode basically records the test objects in your application or SUT and the operations performed on them by you.
- Analog recording mode – This mode can be set while recording your steps. So what it does is, it records the exact mouse and keyboard operations performed by user on the screen or AUT window. Usually this is useful when you cannot spy or record the object at its level like recording signature with mouse drag. Example code can be seen below:
Window/app.RunAnalog “Track1”.
There are few points to remember here:
- You cannot edit Analog recorded steps from within UFT.
- This recording requires more disk space than normal recording mode.
- Low-Level recording mode – This mode records on any object in SUT whether or not UFT recognizes the specific object you are trying to capture or the specific operation you wanted to do. Usually, for environments where the appearance of the objects might change but their location is not changing.This mode records Window test objects as all parent level objects and all other objects as WinObject test objects.
There are few points to note here:
- This mode is not fully supported for multibyte character input.
- This mode requires more disk space than normal recording mode.
- Insight recording (Only available in UFT)– This mode records any object displayed on SUT screen, whether or not UFT recognizes the object’s technology. This mode is also able to get or retrieve the properties or activate the methods associated with the object. This useful if SUT is on non-windows system.
Point to be noted here is:
- This recording requires more disk space than normal mode.
5. Which recording modes need more memory?
Ans. Analog, Low-level and Insight recording modes.
6. Can you describe Merits of test automation?
Ans. There are many but few below are important ones:
- Saves lots of time,
- Manual intervention is not required,
- Saves lots of Cost in terms of resources
- Gives flexibility to adapt new changes or features incorporated into the SUT,
- Gives scalability,
- Maintenance becomes traceable and can estimated in advance,
- Report analysis becomes faster.
7. If the object’s hierarchy is changing, then how you will handle that?
Ans. Well there are lots of options available but mostly we prefer to will use descriptive programming.
8. You have developed and executed scripts successfully and saved them to QC. When you tried to execute the script from QC, the script is not executing. What are the possible causes?”
Ans: Below can be the possible causes:
- First check Quick Test Add-In for Quality Center has to be installed.
- In the QTP Tools > Options >run tab you should have ‘Allow other Mercury products to run tests and components’ selected.
- Make sure you are running QTP as an Administrator.
- Test and its resources have to be in the correct path.
9. What is the extension of QTP local Repository and shared Repository?
Ans. For Local OR. – .bdb
For Shared OR – .tsr
10. What is virtual object?
Ans. A virtual object is an object mapped to the virtual object class.
11. Is it possible to capture tool tip using QTP?
Ans. Tool Tip capture method differs on the type of the test object, it can be for links, images or any other web elements.
Example: For web elements we use: Object.title property.
For image we use: Image(“some name”).GetROProperty(“alt”)…..etc.
12. How can you close the second opened browser?
Ans. We can do it by writing below code:
Browser(“creationtime:=1”).Close
13. How to know the number of browsers currently opened?
Ans. To do this you will have to check how many child objects of the type ‘browser’ are present on the desktop. The following is the code that explains it:
Set ObjBrowser = Description.Create
ObjBrowser(“micclass”).Value = “Browser”
Set BObj = Desktop.ChildObjects(ObjectBrowser)
Msgbox Obj.Count
14. What is synchronization point?
Ans. UFT makes the test to wait until a certain property on a certain object becomes as expected value before proceeding with the next steps.
15. What is reusable action?
Ans. An action that can be called multiple times within or outside the same test is called reusable action. By default, all actions in a test are reusable.
16. What test cases you can automate using QTP?
Ans. As an automation tester I can say, we can automate anything but depending on the versions capability to handle objects we get restricted in our code.
17. How to handle Java tree?
Ans. Same as you work with other objects only thing is you need to select and load the Java Add-in.
18. How to call to another action from one action?
Ans. Two ways: Calling one action from the other can be done by “Inserting a call” to an existing action or by copying the existing action.
19. How to find Operating system information using QTP script?
Ans. Using Environment variables like
Environment.Value(“OS”).
20. How you can identify browser instance or window and its information using QTP script?
Ans. You can identify by using its ‘creation time’ property.
Continue Reading to UFT techincal / General interview questions:
If you would like to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.