Full form of QTP ?
Quick Test Professional
What's the QTP ?
QTP is Mercury Interactive Functional Testing Tool.
Which scripting language used by QTP ?
QTP uses VB scripting.
What's the basic concept of QTP ?
QTP is based on two concept-
* Recording
* Playback
How many types of recording facility are available in QTP ?
QTP provides three types of recording methods-
* Context Recording (Normal)
* Analog Recording
* Low Level Recording
How many types of Parameters are available in QTP ?
QTP provides three types of Parameter-
* Method Argument
* Data Driven
* Dynamic
What's the QTP testing process ?
QTP testing process consist of seven steps-
* Preparing to recoding
* Recording
* Enhancing your script
* Debugging
* Run
* Analyze
* Report Defects
What's the Active Screen ?
It provides the snapshots of your application as it appeared when you performed a certain steps during recording session.
What's the Test Pane ?
Test Pane contains Tree View and Expert View tabs.
What's Data Table ?
It assists to you about parameterizing the test.
What's the Test Tree ?
It provides graphical representation of your operations which you have performed with your application.
Which all environment QTP supports ?
ERP/ CRM
Java/ J2EE
VB, .NET
Multimedia, XML
Web Objects, ActiveX controls
SAP, Oracle, Siebel, PeopleSoft
Web Services, Terminal Emulator
IE, NN, AOL
How can you view the Test Tree ?
The Test Tree is displayed through Tree View tab.
What's the Expert View ?
Expert View display the Test Script.
Which keyword used for Normal Recording ?
F3
Which keyword used for run the test script ?
F5
Which keyword used for stop the recording ?
F4
Which keyword used for Analog Recording ?
Ctrl+Shift+F4
Which keyword used for Low Level Recording ?
Ctrl+Shift+F3
Which keyword used for switch between Tree View and Expert View ?
Ctrl+Tab
What's the Transaction ?
You can measure how long it takes to run a section of your test by defining transactions.
Where you can view the results of the checkpoint ?
You can view the results of the checkpoints in the Test Result Window.
What's the Standard Checkpoint ?
Standard Checkpoints checks the property value of an object in your application or web page.
Which environment are supported by Standard Checkpoint ?
Standard Checkpoint are supported for all add-in environments.
What's the Image Checkpoint ?
Image Checkpoint check the value of an image in your application or web page.
Which environments are supported by Image Checkpoint ?
Image Checkpoint are supported only Web environment.
What's the Bitmap Checkpoint ?
Bitmap Checkpoint checks the bitmap images in your web page or application.
Which enviornment are supported by Bitmap Checkpoints ?
Bitmap checkpoints are supported all add-in environment.
What's the Table Checkpoints ?
Table Checkpoint checks the information with in a table.
Which environments are supported by Table Checkpoint ?
Table Checkpoints are supported only ActiveX environment.
What's the Text Checkpoint ?
Text Checkpoint checks that a test string is displayed in the appropriate place in your application or on web page.
Which environment are supported by Test Checkpoint ?
Text Checkpoint are supported all add-in environments
Note:
* QTP records each steps you perform and generates a test tree and test script.
* QTP records in normal recording mode.
* If you are creating a test on web object, you can record your test on one browser and run it on another browser.
* Analog Recording and Low Level Recording require more disk sapce than normal recording mode.
Showing posts with label QTP. Show all posts
Showing posts with label QTP. Show all posts
Tuesday, June 29, 2010
Tuesday, May 04, 2010
QTP QnA2
1. How do you do your reusable and shared process in your project?
By using shared ACTION s
2. What is TOProperty and ROperoperty
TO Property is a TEST OBJECT property which will have minimum no.of properties and methods where as RUNTIME OBJECT property will have all the possible properties and methods which would helpful in runtime.
3. I am running the script and at some point the pop up might appears on the screen. I would never know for sure when it might pop up. Is there any solution to this problem how to close it. If it's not closed, the script would not continue.
By Recovery scenario Manager we can handle the pop up exceptions.
4.How do you update your exisiting checkpoint properties?
Update Run option (Test > Update Run) on tests to update checkpoint property values.
5.Can you import Microsoft Excel files or sheets that contain merged cells into the Data Table.
You cannot import Microsoft Excel files or sheets that contain merged cells into the Data Table.
By using shared ACTION s
2. What is TOProperty and ROperoperty
TO Property is a TEST OBJECT property which will have minimum no.of properties and methods where as RUNTIME OBJECT property will have all the possible properties and methods which would helpful in runtime.
3. I am running the script and at some point the pop up might appears on the screen. I would never know for sure when it might pop up. Is there any solution to this problem how to close it. If it's not closed, the script would not continue.
By Recovery scenario Manager we can handle the pop up exceptions.
4.How do you update your exisiting checkpoint properties?
Update Run option (Test > Update Run) on tests to update checkpoint property values.
5.Can you import Microsoft Excel files or sheets that contain merged cells into the Data Table.
You cannot import Microsoft Excel files or sheets that contain merged cells into the Data Table.
QTP QnA1
1. How do you handle exceptions in QTP?
By using Recovery Scenario Manager
2.What are the different kind of exceptions that can we handle?
1. pop Window
2. object State
3. Test run error
4. Application crash
3.What is Library file ?
Library of user defined functions that you want to call frequently from other test . When you load a script its functions are automatically compiled and remain in memory, you can call that directily. Extension of the LIBRARY file is file_name.VBS
4.How do you call Actions from main script?
In the Expert View, an action called by another action is displayed within the parent action with the following syntax:
Call RunAction (ActionName, Run_Setting, FromRow - ToRow)
For example:
Call RunAction("Select Flight", 0, "1 - 1")
5. How do you call function in the library file?
First execute the library file Using EXECUTEFILE method then call the function which is in that library.
6. What the getROProperty and getTOProperty method will do?
Gets the value of RUN-TIME OBJECT property value
Example:getROproperty(background) this would give you the background color of the object
getTOProperty : - Gets the value of Test OBJECT property value
By using Recovery Scenario Manager
2.What are the different kind of exceptions that can we handle?
1. pop Window
2. object State
3. Test run error
4. Application crash
3.What is Library file ?
Library of user defined functions that you want to call frequently from other test . When you load a script its functions are automatically compiled and remain in memory, you can call that directily. Extension of the LIBRARY file is file_name.VBS
4.How do you call Actions from main script?
In the Expert View, an action called by another action is displayed within the parent action with the following syntax:
Call RunAction (ActionName, Run_Setting, FromRow - ToRow)
For example:
Call RunAction("Select Flight", 0, "1 - 1")
5. How do you call function in the library file?
First execute the library file Using EXECUTEFILE method then call the function which is in that library.
6. What the getROProperty and getTOProperty method will do?
Gets the value of RUN-TIME OBJECT property value
Example:getROproperty(background) this would give you the background color of the object
getTOProperty : - Gets the value of Test OBJECT property value
QTP QnA
1.What is the main difference between win runner and Quicktestprofessional?
1.Data Table integration is much easier and simpler with Quick Test Pro.
2. Shared Object Repository
3.Detailed Report
4.Quick learning objects.
5.Data Driven Testing is easier with more options in Quick Test Pro.
6. Parameterization is much easier in Quick Test Pro and basically anything in Quick Test Pro can be parameterized (statements, checkpoints and the Object Repository).
2. What is object repository?
Object Repository is place which will have all the information about the object such as logical name and physical description of objects with tree view to see the hierarchy of the object.
3.What is the default wait time in QTP?
2 seconds
4.How do declare gloabal variable?
Environment(Variable_name)
5.Is block of comments is possible in QTP?
NO.
6. How many check points are there ?What are they?
1. Standard Check points
2. Text Checkpoints
3. Text Area Checkpoints
4. Bitmap Checkpoints
5. Database Checkpoints
6. Accessbility Checkpoints
7. XML Checkpoints
7. What is extension of Library files?
Filename.VBS
8. What is extension of Object Repository files?
Filename.TSR
9. What is extension of Recovery files?
Filename.QRS
10.What do you run your library files in QTP?
By using EXECUTEFILE (PATH)
11.What are the recording modes available in QTP?
Analog Recording , Low level recording.
12.How do you integrate with Test Director?
By using Testdirector connection wizard
13.What are the different types of Object repository?
1.Pre-action Repository
2. Shared Repository
14.What are the content of Result summary window?
1.Name of the Test
2.Test
3.Result name
4.Run Started
5.Run Ended
6.Itration
7.Status
15.Different types of View?
1. Tree view
2. Expert View
16.What are all the run modes available in QTP
1.Normal mode 2.Update mode
17.What is synchronization point?
synchronization points enable you to solve anticipated timing problems between the test and your application. For example , if you create a test that opens a database application you can put a synchronization point that cause the test to wait until the database records are loaded.
18.What is the use of WAIT method?
It stops the test for certain time limits.
Syntax : wait(time in seconds)
19. What is the difference between wait and synchronization point ?
synchronization point will wait for certain process to complete but the wait method will stop the test for specified time limit only.
20.what is Assistive properties ?
When the object has not been identified by mandatory properties then the Assistive properties are take place to identify the object.
21. How does the QTP recognize objects in the application?
By using Object Repository.
22.How do you select your choice from the list box?
Object.Select “Choice”
1.Data Table integration is much easier and simpler with Quick Test Pro.
2. Shared Object Repository
3.Detailed Report
4.Quick learning objects.
5.Data Driven Testing is easier with more options in Quick Test Pro.
6. Parameterization is much easier in Quick Test Pro and basically anything in Quick Test Pro can be parameterized (statements, checkpoints and the Object Repository).
2. What is object repository?
Object Repository is place which will have all the information about the object such as logical name and physical description of objects with tree view to see the hierarchy of the object.
3.What is the default wait time in QTP?
2 seconds
4.How do declare gloabal variable?
Environment(Variable_name)
5.Is block of comments is possible in QTP?
NO.
6. How many check points are there ?What are they?
1. Standard Check points
2. Text Checkpoints
3. Text Area Checkpoints
4. Bitmap Checkpoints
5. Database Checkpoints
6. Accessbility Checkpoints
7. XML Checkpoints
7. What is extension of Library files?
Filename.VBS
8. What is extension of Object Repository files?
Filename.TSR
9. What is extension of Recovery files?
Filename.QRS
10.What do you run your library files in QTP?
By using EXECUTEFILE (PATH)
11.What are the recording modes available in QTP?
Analog Recording , Low level recording.
12.How do you integrate with Test Director?
By using Testdirector connection wizard
13.What are the different types of Object repository?
1.Pre-action Repository
2. Shared Repository
14.What are the content of Result summary window?
1.Name of the Test
2.Test
3.Result name
4.Run Started
5.Run Ended
6.Itration
7.Status
15.Different types of View?
1. Tree view
2. Expert View
16.What are all the run modes available in QTP
1.Normal mode 2.Update mode
17.What is synchronization point?
synchronization points enable you to solve anticipated timing problems between the test and your application. For example , if you create a test that opens a database application you can put a synchronization point that cause the test to wait until the database records are loaded.
18.What is the use of WAIT method?
It stops the test for certain time limits.
Syntax : wait(time in seconds)
19. What is the difference between wait and synchronization point ?
synchronization point will wait for certain process to complete but the wait method will stop the test for specified time limit only.
20.what is Assistive properties ?
When the object has not been identified by mandatory properties then the Assistive properties are take place to identify the object.
21. How does the QTP recognize objects in the application?
By using Object Repository.
22.How do you select your choice from the list box?
Object.Select “Choice”
Thursday, January 14, 2010
Key features of QTP
QTP enables even an inexperienced tester to work with as it is GUI based. Major advantages it has are active screen which allows user to insert checkpoints when the application is closed, testers job is made simple with different features it has, debug viewer where in we can see what values variables carry when the test is running, and many features made simple.
- Key word driven testing
- Suitable for both client server and web based application
- Vb script as the script language
- Better error handling mechanism
- Excellent data driven testing features
- Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center.
- Introduces next-generation “zero-configuration” Keyword
- Driven testing technology in quick test Professional allowing for fast test creation, easier maintenance, and more powerful data-driving capability
- Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution
- Collapses test documentation and test creation to a single step with Auto-documentation technology
- Enables thorough validation of applications through a full complement of checkpoints
- Ease of Use, Simple Interface, Simple scripting Language (VBScript), Use of Zero-Configuration Technology, Automatic Insertion of Checkpoints, Marvelous Interface with Data-tables, Better Object Identification Mechanism, Support of Variety of Environment, Easy Adaptability of Microsoft Object Models, Auto-Documentation Technology
- qtp is mainly used for functionality testing. QTP is user friendly both technical and non technical users can easily access. QTP has two views
keyword view and expert view : in keyword view when u record a test it generates the script in tree format. it is very easy to understand. if u want to view the vb-Script use the expert view.
qtp has active screen using that u can enhance the script with out navigating to the application. like u can insert checkpoints and synchronization points.
qtp has automated documentation. When u start recording it generates the auto documentation in plain english.
using qtp we can parameterize objects, checkpoints, data-driven tables. this will give more flexibility.
- Key word driven testing
- Suitable for both client server and web based application
- Vb script as the script language
- Better error handling mechanism
- Excellent data driven testing features
- Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center.
- Introduces next-generation “zero-configuration” Keyword
- Driven testing technology in quick test Professional allowing for fast test creation, easier maintenance, and more powerful data-driving capability
- Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution
- Collapses test documentation and test creation to a single step with Auto-documentation technology
- Enables thorough validation of applications through a full complement of checkpoints
- Ease of Use, Simple Interface, Simple scripting Language (VBScript), Use of Zero-Configuration Technology, Automatic Insertion of Checkpoints, Marvelous Interface with Data-tables, Better Object Identification Mechanism, Support of Variety of Environment, Easy Adaptability of Microsoft Object Models, Auto-Documentation Technology
- qtp is mainly used for functionality testing. QTP is user friendly both technical and non technical users can easily access. QTP has two views
keyword view and expert view : in keyword view when u record a test it generates the script in tree format. it is very easy to understand. if u want to view the vb-Script use the expert view.
qtp has active screen using that u can enhance the script with out navigating to the application. like u can insert checkpoints and synchronization points.
qtp has automated documentation. When u start recording it generates the auto documentation in plain english.
using qtp we can parameterize objects, checkpoints, data-driven tables. this will give more flexibility.
Friday, January 08, 2010
QTP Vs Selenium
1. Actual end user simulation, Is the test conducted using this tool equivalent to an end user action?
Selenium performs actions in the background on the browser. It modifies the DOM structure of the HTML page in order to perform actions on the page. To be more precise it executes javascript on UI objects within the webpage to perform actions like click, type, select etc. This is the reason why you can execute tests with the browser minimized.
QTP claims to perform end user simulation, in other words executing QTP scripts is equivalent to a person performing those steps manually on the application.
2. Support for most UI Components
Selenium Certain events, methods and Object properties are not supported by selenium. But broadly most UI components are supported.
QTP requires extra add-ons (plug-in, not free) to work with .Net components.
3. UI-Object management & storage
QTP comes built-in with object repository. Object
repository management is quite easy in QTP. Selenium has no such built in feature but objects can be managed using UI-Element user extension. Other custom solutions like properties files can also be used in selenium. But for all such solutions the map file in selenium has to be hand-coded i.e unlike QTP the objects won't be recorded/added automatically .
4. Support for Dialog Boxes
QTP supports all kinds of IE dialog boxes. There is partial support for dialog boxes in Selenium. Some actions like retrieving the title of he dialog box can't be performed in selenium.
5. Support for web browsers
QTP supports IE & Firefox. Selenium supports
IE, Firefox, Safari and Opera and a few more browsers. But either tools are far far away from full cross-browser support. Don't expect scripts created using browser to run flawlessly in another browser.
6. Object Recognition Parameters, Recognition on the basis of WYSWYG (what you see is what you get).
Selenium recognizes objects on the basis of the DOM structure of the HTML Page. The UI objects in selenium have vague descriptions and don't comply with WYSWYG policy.
QTP recognises and names objects based on properties which are more visible and obvious and are hence the objects have user friendly names.
7. Object Oriented Language support &Scalability (as in Integration with External tools utilities and libraries).
Selenium Supports JAVA, dot net and many other industry standard programming languages. QTP supports vb script only.
8. Integration with test management tool.
QTP integrates seamlessly with QC and TD. Test management and mapping the manual testing process with automation becomes a lot easier with this integration. I have not yet heard of any test management tool that can integrate seamlessly with Selenium. keep an eye out for Bromide though.
9. Types of application supported
QTP wins this one hands down. This is one of the main reason why selenium can't even be considered in many cases. Imagine real-time applications like trading terminals, risk management applications built in TCL/TK and PowerBuilder. QTP supports most of these interfaces.
Selenium on the other hand can work only on applications that open up inside a browser. But aren't most applications moving to the browser based platform? :)
10. Support for operating system/platforms
Selenium Supports JAVA and hence can be used in Windows PC or MAC or UNIX. Using selenium you can test your web application in all the above platforms. QTP supports Windows only.
11. Ease of creation of Scripts
Selenium IDE Recorder is not as powerful as QTP but is good for a free tool, many actions are not recorded by the IDE and have to be manually entered.
12. Technical Support
QTP offers technical support by phone and mail, HP also have a web-forum.
QTP user community is vast and questions posted on online forums get answered quickly. Selenium being an open source tool has no official tech support, the user community is small, less-active and questions on forums seldom get answered. But the community is growing day by day as the tool gains acceptance.
13. Cost
QTP - Costly, Many people want to switch to selenium because it's free. But cost isn't really a factor when your client's a investment bank :)
14. Test Development Environment
When you are working on selenium you have the option of using wide range of IDEs like Eclipse, Netbeans, Visual Studio etc depending on your choice of development language. If you are a developer then you must have developed a taste for rich IDEs and switching to a environment given by a test tool may be hard for you.
QTP tests can only be developed in QTP.
15. Integration with development process
Tests developed using selenium can be easily part of the development project. Using tools like cruise control Continuous Integration is easier with Selenium. But don't get too caught up with this feature, it's really not that important to be integrated with the development process but it's nice to have.
16. Future in terms of usability and acceptance
The future bodes well for selenium because it's free, supports all programming languages/platforms and is immensely scalable and expandable due to it being free and open source. Many pundits have predicted that it will completely conquer the web testing market in the next 5 years. It being free makes a huge difference especially when times are hard like what we have now.
QTP on the other hand is the current market leader and I think that it will have it's presence for long due to it's user friendliness and support for interfaces other than web.
Selenium performs actions in the background on the browser. It modifies the DOM structure of the HTML page in order to perform actions on the page. To be more precise it executes javascript on UI objects within the webpage to perform actions like click, type, select etc. This is the reason why you can execute tests with the browser minimized.
QTP claims to perform end user simulation, in other words executing QTP scripts is equivalent to a person performing those steps manually on the application.
2. Support for most UI Components
Selenium Certain events, methods and Object properties are not supported by selenium. But broadly most UI components are supported.
QTP requires extra add-ons (plug-in, not free) to work with .Net components.
3. UI-Object management & storage
QTP comes built-in with object repository. Object
repository management is quite easy in QTP. Selenium has no such built in feature but objects can be managed using UI-Element user extension. Other custom solutions like properties files can also be used in selenium. But for all such solutions the map file in selenium has to be hand-coded i.e unlike QTP the objects won't be recorded/added automatically .
4. Support for Dialog Boxes
QTP supports all kinds of IE dialog boxes. There is partial support for dialog boxes in Selenium. Some actions like retrieving the title of he dialog box can't be performed in selenium.
5. Support for web browsers
QTP supports IE & Firefox. Selenium supports
IE, Firefox, Safari and Opera and a few more browsers. But either tools are far far away from full cross-browser support. Don't expect scripts created using browser to run flawlessly in another browser.
6. Object Recognition Parameters, Recognition on the basis of WYSWYG (what you see is what you get).
Selenium recognizes objects on the basis of the DOM structure of the HTML Page. The UI objects in selenium have vague descriptions and don't comply with WYSWYG policy.
QTP recognises and names objects based on properties which are more visible and obvious and are hence the objects have user friendly names.
7. Object Oriented Language support &Scalability (as in Integration with External tools utilities and libraries).
Selenium Supports JAVA, dot net and many other industry standard programming languages. QTP supports vb script only.
8. Integration with test management tool.
QTP integrates seamlessly with QC and TD. Test management and mapping the manual testing process with automation becomes a lot easier with this integration. I have not yet heard of any test management tool that can integrate seamlessly with Selenium. keep an eye out for Bromide though.
9. Types of application supported
QTP wins this one hands down. This is one of the main reason why selenium can't even be considered in many cases. Imagine real-time applications like trading terminals, risk management applications built in TCL/TK and PowerBuilder. QTP supports most of these interfaces.
Selenium on the other hand can work only on applications that open up inside a browser. But aren't most applications moving to the browser based platform? :)
10. Support for operating system/platforms
Selenium Supports JAVA and hence can be used in Windows PC or MAC or UNIX. Using selenium you can test your web application in all the above platforms. QTP supports Windows only.
11. Ease of creation of Scripts
Selenium IDE Recorder is not as powerful as QTP but is good for a free tool, many actions are not recorded by the IDE and have to be manually entered.
12. Technical Support
QTP offers technical support by phone and mail, HP also have a web-forum.
QTP user community is vast and questions posted on online forums get answered quickly. Selenium being an open source tool has no official tech support, the user community is small, less-active and questions on forums seldom get answered. But the community is growing day by day as the tool gains acceptance.
13. Cost
QTP - Costly, Many people want to switch to selenium because it's free. But cost isn't really a factor when your client's a investment bank :)
14. Test Development Environment
When you are working on selenium you have the option of using wide range of IDEs like Eclipse, Netbeans, Visual Studio etc depending on your choice of development language. If you are a developer then you must have developed a taste for rich IDEs and switching to a environment given by a test tool may be hard for you.
QTP tests can only be developed in QTP.
15. Integration with development process
Tests developed using selenium can be easily part of the development project. Using tools like cruise control Continuous Integration is easier with Selenium. But don't get too caught up with this feature, it's really not that important to be integrated with the development process but it's nice to have.
16. Future in terms of usability and acceptance
The future bodes well for selenium because it's free, supports all programming languages/platforms and is immensely scalable and expandable due to it being free and open source. Many pundits have predicted that it will completely conquer the web testing market in the next 5 years. It being free makes a huge difference especially when times are hard like what we have now.
QTP on the other hand is the current market leader and I think that it will have it's presence for long due to it's user friendliness and support for interfaces other than web.
Subscribe to:
Posts (Atom)