Friday, July 13, 2018

10 QTP Interview Questions and Answers

The word QTP means Quick Test Professional. It is offered by Hewlett Packard.QTP was developed by Mercury Interactive. Later, it was acquired by HP. QTP is an automated functional testing tool. It helps tester to perform automated tests to identify errors, gaps or defects in the designed application. HP QTP uses Visual Basic Scripting (VBScript) for updating the applications. It is an object based language, not an object oriented language. It is one of the most popular automated tools available in the market. It is perfect for doing regression testing of the applications. It helps you to compare the actual and expected results. The reports are generated in the execution summary. This is the brief introduction about QTP. You can also remember this introduction as it will help you to answer questions like tell us something about QTP or they make ask you who developed QTP. Which script is used by QTP to perform testing? These are simple questions yet sometime students fumble on it. Now we will discuss most common 10 QTP interview questions and answers.
This will help you to brush your concepts and will boost your confidence to give an awesome interview. Please go through these questions carefully and try to understand them.
1) Do you know what is QTP called now? What are the different types of QTP test assets? Can you give their extensions? Tell me can you run QTP in any environment?
Answers: • QTP is now known as HPE Unified Functional Testing Software.
• QTP supports test assest like result (.xml), function library (.gfl), shared object repository (.tsr), test file , local object repository (.mtr) and test batch runner (.mtb).
• No, QTP cannot run in any environment. It works perfectly in Windows environment. Bonus Tip: You can also give answer to the question what are different types of object repository in QTP? Generally, QTP supports two types of object repositories. They are called as shared object repository (known as Global) and Per-Action Object Repository (known as Local). QTP generally uses Per-Action Object Repository. This directory is use by default. The extension for Per- Action Object Repository is (.mtr) where as extension for share object repository is (.tsr).
2) Can you tell us what automation is? What are the benefits of automation? Why is QTP the best testing tool?
Answers: Anything which reduces human effort is automation like machines, software testing tool, etc. In software testing automation increases effectiveness and efficiency of application to be tested. It saves our time and energy. Automation offers many benefits to us. Our life has changed so much because of automation.
• We can easily automate routine tasks like smoke tests and regression tests. • Automation is much beneficial when number of iterations is not known in test case. • Automation also helps to execute cross-platform test cases like Operating System, browsers, etc. • Automation is very useful in preparing test data. • We can easily execute test cases which have complex business logic. There are various reasons due to which QTP is the best testing tool. • It automates Functional as well as Regression testing of the software. • QTP is based upon VBScript language. • QTP can be used by skilled professional as well as non-skilled professional testers. • It offers Business Process Testing. • QTP offers largest pools of software environments like SAP, Oracle etc. • It is suitable for both Desktop as well as Web Based Applications.
3) What are different kinds of test steps in QTP? Can you tell different ways to invoke an application using QTP? Answers: • There are five different types of test steps. They are test object (performs action on TO), function, utility (steps to control run session. For example: Reporter. Report), commenting and programming logic. • The different ways to invoke an application using QTP are Invoke Application, Creating a Shell Object using VBscript and SystemUtil. Run ( Filename, Parameters, Path, Operation)
4) What are the benefits of QTP?
Answers: • The maintenance of QTP is simple and easy. • QTP supports the recording and playback. • You have facility to use different ads-in like Web Forms, Net, Java, etc. • QTP assist all popular automation frameworks like data driven testing approach keyword driven testing approach, etc. • It has inbuilt IDE. • We can easily maintain different types of suites like Sanity, Regression, Smoke, etc. • It has an excellent object identification process. • The scripts are recorded in active screen. • It helps tester in referring screen object properties. • QTP facilitates XML. • QTP can be easily integrated with test management tool like Quality Centre, Test Director, etc.
5) Can you tell something about the features of the latest version of QTP/UFT?
Answers: The features of the latest version of HPE Unified Function Testing are: • Unified Function Testing comes in three new flavours UFT Ultimate, UFT Enterprise and UFT Pro. • UFT offers the new and advanced atheistic look. • It has introduced new tools inside UFT IDE called Test Combinations Generator. • Now we can capture all the objects in a selected area of application. • You can move your UFT file to clouds. • UFT pro or Lean UFT is facilitated across multiple platforms like Windows, Mac OS and Linux for mobile and web testing needs. • UFT offers sensor simulation for performing operations on mobile devices. • UFT 14 is available in multiple languages which include Japanese, Russian, English, Chinese, , French and German.
6) Can you explain how QTP identifies object?
Answers: QTP uses artificial intelligence to identify object. It tries to learn properties of GUI object on which some function is performed. It identifies and stores unique properties in the object repository of GUI object. In order to identify GUI Object, it compared the stored property values in GUI object during run-time.
7) How many types of recording modes are there in QTP? When are they used?
Answers: QTP facilitates three types of recording modes. They are contextual mode often known as normal mode, low-level recording node, and analog mode. Contextual Mode: It is the default mode of QTP. It efficiently uses QTP’s Test Object Model. It recognizes objects regardless of position in the screen. It is the most use mode of recording. Generally, this mode is preferred for most of automation activities. Low-Level Recording Mode: This mode is used for recording x and y co- ordinates of mouse operation. It is mostly use for recording operations which are not identifiable by normal mode QTP. Analog Mode: This mode is perfect for recording exact mouse and keyboard “movements.” It is very helpful in recording drag and drop operations.
8) Can you do automation without Framework?
Answers: Frameworks are protocols that assist us in implementing automation with ease. These are only for guidance and not mandatory. However, those who create it and implement these will have a higher efficiency and work quality.
9) What is the general structure of a framework?
Answers: The structure of a framework differs from one project to another. Any generalization of a framework is difficult. However, the normal pattern is discussed below: • There is a source folder to store actual test scripts. • There is a library folder which contains all the libraries and common methods. • It has a class folder which contains all the class files. • There is a log folder for having log file. • There is A file/folder having the entire web element Ids. • It also has a file which contains URL, environment and login information.
10) Can you list the names of different kind of Framework?
Answers: Things to keep in mind: When the interviewer ask you to list the names of different Framework the just tell the name of each of them. Do not start explaining them. The different kinds of Framework are • Linear Framework • Data Driven Framework • Keyword Driven Network • Hybrid Framework

1 comment:

3 Best Practices and Strategies for Test Automation

Test Automation increases the efficiency and quality of the testing. Manual Testing takes a long time to finish the project. It is time t...