1.What phases are involved in testing an application in QTP?
The Quick Test Professional process consists of the following main phases:
The Quick Test Professional process consists of the following main phases:
- Analyzing Application: before preparing test cases need to analyze the application to find out the testing needs.
- Preparing Testing Infrastructure: based on testing needs create those resources, resources like, shared repository, function library etc.
- Building Test Cases: create test script containing action to be performed while testing. Add object repository with the test function libraries.
- Enhancing Test: by making use of checkpoints, broadening the scope of test, add logic and condition to test for checking purpose.
- Debugging, Running and analyzing Test: debug the test so that it works without interruption. Run these test and analyze the test result generated by QTP
- Report Defects: lock bug into the bug report and send it to the development team.
2.How many types of recording modes in the QTP?
The QTP enable us with three type of recording mode:
The QTP enable us with three type of recording mode:
- Normal (by Default recording):In this recording mode QTP identify the object irrespective of their location on the screen. It is done by recording object based on application window.
- Analog Recording: it is used when exact mouse movement and action performed by mouse is important. Used in testing the paint application and signature made with the help of mouse.
- Low Level Recording: it helps in identifying those objects which is not recognized by the QTP. It is used when the location of object is changing inside the screen.
3.What is object repository?
- Object Repository: when QTP learn any object from application it stores those object in the Object Repository with the properties of the object. It is used to identify the object. There are two types of object repository:
- Shared Object Repository: It can be shared between multiple tests but it does not allow making changes in the repository. Mostly used in Keyword Driven methodology. It is saved with .TSR extension.
- Local Object Repository: This type of object repository is linked with only one test. In this we can perform change in the repository, like changing the properties of the object, adding object in the repository. It is saved with .MTR extension.
4.Explain step generator in QTP?
Step Generator in QTP helps in creating those steps which is performed over the object while testing. Use of Step Generator in QTP:
Step Generator in QTP helps in creating those steps which is performed over the object while testing. Use of Step Generator in QTP:
- Help in debugging the script by making use of Break.
- To add those step which we forget to perform while recording.
- To ensure that objects exist in the repository
- To add up step in the function library
5.Explain the use of Action Split in QTP?
Action Split: it is used to split the action into two parts.
There are two type of split an action:
Action Split: it is used to split the action into two parts.
There are two type of split an action:
- Splitting into two sibling action: both split actions are independent of each other.
- Splitting into Parent-Child nested action:
- In this second split action is only called after the execution of the parent split action. Child split action depends upon the parent split action.
- QTP generated the duplicate copy of the object repository when we perform Split action. We can add object to anyone spilt action which is not added into another split action’s repository.
6.What is the purpose of loading QTP Add-Ins?
Add-Ins: are small programs or files which can be added to computer in order to enhance the capabilities of the system. The purposes of loading Add-Ins into QTP are following:
Add-Ins: are small programs or files which can be added to computer in order to enhance the capabilities of the system. The purposes of loading Add-Ins into QTP are following:
- To increase capabilities of the system.
- To improve the graphics quality, communications interface.
- To load the particular function into the memory.
- To excess only those functions that is required for the execution of the script.
7.What is a data driven test in QTP?
Data Driven is an automation testing part in which test input or output values, these values are read from data files. It is performed when the values are changing by the time. The different data files may include data pools. The data is then loaded into variables in recorded or manually coded scripts. In QTP to perform the data to drive the test, we use the parameterization process. When we do data-driven test, we perform two extra steps:
Data Driven is an automation testing part in which test input or output values, these values are read from data files. It is performed when the values are changing by the time. The different data files may include data pools. The data is then loaded into variables in recorded or manually coded scripts. In QTP to perform the data to drive the test, we use the parameterization process. When we do data-driven test, we perform two extra steps:
- Converting the test to a data-driven test.
- Creating a corresponding data table.
8.How to use Parameterization in QTP?
It is the process of making use of different values in place of recorded values which is replaced by variable which contains different values that can be used during the execution of the scripts. QTP enable us with different type of Parameterization, passing of data:
It is the process of making use of different values in place of recorded values which is replaced by variable which contains different values that can be used during the execution of the scripts. QTP enable us with different type of Parameterization, passing of data:
- Using Loop statement.
- Dynamically test data submission
- Using data table.
- Fetching data from external files.
- Fetching data from databases.
- By taking test data front end(GUI)
9.Is it possible to call from one action to another action in QTP?
Yes, QTP enable us to call from one action to another action. There are two ways of calling action:
Yes, QTP enable us to call from one action to another action. There are two ways of calling action:
- Call to Copy of action: in this we generate the copy of action in our repository which enables us to perform change to the copy of action.
- Call to Existing action: we call to action which is made up earlier. This generates the reference to the action. We can access the action in read only mode. In this no copy of existing script and data table is made.
10.What is difference between Run time object and Test object?
The difference between Run time Object and Test object are:
The difference between Run time Object and Test object are:
| Run time object | Test object |
| Run time object are actual object in the application. | Test object are reference of the actual object. |
| Run time object always have same name | Test object name varies in different environment. |
| Run time object resides in the application whereas test object resides in the object repository. | Test object are used to identify the actual object in the application which is run time objects |
11.Explain Measuring Transaction.
Measuring transaction means that to measure how much time it take to execute a set of step over the application. A transaction is collection of steps that we are intended to know how much time it take to execute. We can define the transaction by enclosing the set of steps with the start transaction and end transaction.
Measuring transaction means that to measure how much time it take to execute a set of step over the application. A transaction is collection of steps that we are intended to know how much time it take to execute. We can define the transaction by enclosing the set of steps with the start transaction and end transaction.
- Start transaction: after encounter of start transaction time measurement start.
- End transaction: it is used to stop the time measurement.
12.Explain different checkpoints in QTP.
Checkpoint is a point where QTP current value or property of the object with the expected value or property of the object. When we insert the check point in the test, then in keyword view checkpoint is added in front of current row and in expert view a checkpoint statement is added. QTP enable us with following types of check point:
Standard Checkpoint: check properties of objects like button, combo boxes, list etc.
Checkpoint is a point where QTP current value or property of the object with the expected value or property of the object. When we insert the check point in the test, then in keyword view checkpoint is added in front of current row and in expert view a checkpoint statement is added. QTP enable us with following types of check point:
Standard Checkpoint: check properties of objects like button, combo boxes, list etc.
- Image Checkpoint: check value of an image
- Bitmap Checkpoint: check image zooming capability.
- Table Checkpoint: check information of a table.
- Text Checkpoint: check text is displayed on correct place.
- Text Area Checkpoint: check text is displayed in specific area.
- Accessibility Checkpoint: used to determine website which is not as per W3C guidelines.
- Page Checkpoint: checks properties of the webpage.
- Database Checkpoint: check content of database
- XML Checkpoint: check XML content.
13.Can we create a QTP test from QC?
Yes we can create QTP test from QC but we must first make sure QTP has the ability to execute tests from Quality Center. Please ensure the following option in QTP Run Settings is enabled:
When QTP is enabled, follow the below steps to schedule and execute tests from Quality Center:
1. Login to Quality Center and Navigate to Test Lab Module
2. After selecting the correct Test Set, Click the Execution Flow Tab.
3. Right-click on the test that requires configuration of Time Dependency and click Test Run Schedule.
4. In the Run Schedule window, select the Time Dependency tab. The time and date of execution can be configured.
5. Time dependency will be added to the relevant test.
6. After time dependency has been added, navigate back to the Execution Grid pane. From the Execution Grid, select the tests to be run at the designated date and time.
7. From the Automatic Runner dialog, click Run All.
8. Once Run All is clicked from the Automatic Runner dialog, the test status will change to Waiting and QC will fire the tests to be run at the scheduled date and time:
9. QC will fire the tests in the sequence configured in the Execution Flow pane. The Test Run Scheduler will show all the tests that were selected and are executing and are to be executed.
Yes we can create QTP test from QC but we must first make sure QTP has the ability to execute tests from Quality Center. Please ensure the following option in QTP Run Settings is enabled:
When QTP is enabled, follow the below steps to schedule and execute tests from Quality Center:
1. Login to Quality Center and Navigate to Test Lab Module
2. After selecting the correct Test Set, Click the Execution Flow Tab.
3. Right-click on the test that requires configuration of Time Dependency and click Test Run Schedule.
4. In the Run Schedule window, select the Time Dependency tab. The time and date of execution can be configured.
5. Time dependency will be added to the relevant test.
6. After time dependency has been added, navigate back to the Execution Grid pane. From the Execution Grid, select the tests to be run at the designated date and time.
7. From the Automatic Runner dialog, click Run All.
8. Once Run All is clicked from the Automatic Runner dialog, the test status will change to Waiting and QC will fire the tests to be run at the scheduled date and time:
9. QC will fire the tests in the sequence configured in the Execution Flow pane. The Test Run Scheduler will show all the tests that were selected and are executing and are to be executed.
14.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?
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.
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.
15.What is action split and the purpose of using this in QTP?
Action split is to divide an existing action into two parts.The purpose is to divide actions based on their functionality to improve code re-use.
Action split is to divide an existing action into two parts.The purpose is to divide actions based on their functionality to improve code re-use.
16.How will you handle Java tree in QTP ?
Foremost you will select Java Add - In and launch QTP. Next step record operations on the Java Tree. If you face an issue while recording, you can select Tools > Object Identification > Java, tree object and make changes in mandatory and assistive properties to enable identification.
Tip: You can base you answer on similar lines for any other object of any environment. For example : If the question is how will check SAP checkbox , You say , first I will select SAP Add in ... and so on.
Foremost you will select Java Add - In and launch QTP. Next step record operations on the Java Tree. If you face an issue while recording, you can select Tools > Object Identification > Java, tree object and make changes in mandatory and assistive properties to enable identification.
Tip: You can base you answer on similar lines for any other object of any environment. For example : If the question is how will check SAP checkbox , You say , first I will select SAP Add in ... and so on.
17.Explain how QTP identifies object ?
QTP identifies any GUI Object based on its corresponding properties. While recording, QTP will identify and store peculiar properties (as defined in the Object Identification settings) in the object repository of the GUI object . At run-time, QTP will compare the stored property values with the on-screen properties, to uniquely identify the GUI object.
QTP identifies any GUI Object based on its corresponding properties. While recording, QTP will identify and store peculiar properties (as defined in the Object Identification settings) in the object repository of the GUI object . At run-time, QTP will compare the stored property values with the on-screen properties, to uniquely identify the GUI object.
18.How many types of recording modes in QTP? Which will be used when ?
QTP supports 3 types of recording modes
1. Normal mode also called Contextual
2. Low-level recording mode
3. Analog mode
QTP supports 3 types of recording modes
1. Normal mode also called Contextual
2. Low-level recording mode
3. Analog mode
- Normal Mode: It is the default recording mode and takes full advantage of QTP's Test Object Model. It recognizes objects regardless of their position on -screen. This is the preferred mode of recoding and is used for most of the automation activities.
- Low-level recording mode:This mode records the exact x,y co-ordinates of your mouse operations. It is helpful in testing It is useful for recording objects not identified by normal mode of QTP.
- Analog mode:This mode records exact mouse and keyboard "movements" you perform in relation to the screen / application window. This mode is useful for the operation such as drawing a picture, recording signature., drag and drop operations.
19.How will you call from one action to another action ?
We can call an action in 2 ways
1) Call to copy of Action. - In this ,the Action Object Repository , Script and Datable will be copied to the destination Test Script.
2) Call to Existing Action. - In this, Object Repository , Script and Datable will NOT be copied but a call (reference) would be made to the Action in the source script.
We can call an action in 2 ways
1) Call to copy of Action. - In this ,the Action Object Repository , Script and Datable will be copied to the destination Test Script.
2) Call to Existing Action. - In this, Object Repository , Script and Datable will NOT be copied but a call (reference) would be made to the Action in the source script.
20.Which environments are supported by QTP?
QTP supports the following environments
QTP supports the following environments
| Active X | People Soft | Terminal |
| Delphi | Power Builder | Emulator |
| Java | SAP | Visual Basic |
| .Net | Siebel | Visual Age |
| Oracle | Stingray | Web |
| Web Services |
FabGreen Technologies,Madivala-
Fabgreentech.com
Fabgreentech.com
No comments:
Post a Comment