- Explain about the Automation Framework following in your current company?
- Explain about Hybrid Frame work ?
- what are the New feature in QTP 11?
- How can you handle exceptions in QTP? Read Answer
"In QTP Exceptional handling is done by using
a. Recovery Scenarios.
b. Using “On Error” statement
>> In Recovery scenario Manager you have to define.
1. Triggered Events.
2. Recovery steps.
3. Post Recovery Test-Run.
>> At Script Level you can use the On Error Resume Next and On Error Go to 0 statement."
- What are the types of environment variables in QTP ? Read Answer
"1) Built-in
2) User-defined"
- What is the difference between functions and actions in QTP? Read Answer
"1) Action can contains Object Repository, Data table, Active screen etc. whereas function do not have these features.
2) Action can have multiple output(returning) values whereas function can return only single value.
3) Action parameter type are byvalue only where vbscript functions can be passed byref.
4) Action Parameter have default values whereas VB script function do not have any default values.
5) Action can/can not be resuable whereas functions are always reusable."
- Explain QTP Testing process? Read Answer
"Quick Test testing process consists of 6 main phases:
1) Create your test plan - This is preparatory phase where you identify the exact test steps, test data and expected results for you
automated test. You also identify the environment and system configurations required to create and run your QTP Tests.
2) Create a basic Test - During this phase , you will execute test steps one by one on your AUT and generates the script accordingly.
3) Enhancing your test - In this stage you will insert checkpoints , output values , parameterization , programming logic like if…else
loops to enhance the logic of your test script.
4) Replay & Debug - After enhancements you will replay the script to check whether its working properly and debug if necessary.
5) Run your Tests - In this phase you will perform the actual execution of your Test Script.
6) Analyzing the test results - Once test run is complete, you will analyze the results in the Test Fusion report generated.
7) Reporting defects - Any issues identified needs to be reported.
"
- Can we call QTP test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in QTP? Read Answer
"Yes. You can call 4 or even more scripts in your tests.For this, first you will need to make the Actions in the corresponding scripts
re-usable.Then from the destination script you can make calls to these re-usable actions."
- What are Virtual Objects? Read Answer
"Virtual object enable you to create and run tests on objects that are not normally recognized by QuickTest.
Your application may contain objects that behave like standard objects but are not recognized by QuickTest. You can define these objects as
virtual objects and map them to standard classes, such as a button or a check box. QuickTest emulates the user's action on the virtual
object during the run session. In the test results, the virtual object is displayed as though it is a standard class object.
You define a virtual object using the Virtual Object Wizard (Tools > Virtual Objects > New Virtual Object). The wizard prompts you to
select the standard object class to which you want to map the virtual object. You then mark the boundaries of the virtual object using a
crosshairs pointer. Next, you select a test object as the parent of the virtual object. Finally, you specify a name and a collection for
the virtual object. A virtual object collection is a group of virtual objects that is stored in the Virtual Object Manager under a
descriptive name."