QTP is widely used test automation tool mainly for functional testing Features of QTP:
=>Ease of use.
=>Simple interface. =>Presents the test case as a business workflow to the tester(simpler to understand). =>Uses programming language (Microsoft’s VBScript) with numerous resources available. =>QuickTest Pro is significantly easier for a non-technical person to adapt to and create working test cases, compared to WinRunner. =>Data table integration better and easier to use than WinRunner. =>Test Run Iterations/Data driving a test is easier and better implement with QuickTest. =>Parameterization easier than WinRunner. =>Can enhance existing QuickTest scripts without the “Application Under Test” being available; by using the ActiveScreen. =>Can create and implement the Microsoft Object Model (Outlook objects, ADO objects, FileSystem objects, supports DOM, WSH, etc.). =>Better object identification mechanism. =>Numerous existing functions available for implementation - both from within QuickTest Pro and VBScript. =>QTP supports .NET development environment XML support =>The Test Report is more robust in QuickTest compared to WinRunner. =>Integrates with TestDirector and WinRunner (can kick off WinRunner scripts from QuickTest).Testing Process
The QuickTest testing process consists of 7 main phases:1 Preparing to record
* Before you record a test, confirm that your application and QuickTest are set to match the needs of your test. * Make sure your application displays elements on which you want to record, such as a toolbar or a special window pane, for example, and that your application options are set as you expect for the purposes of your test. * You should also view the settings in the Test Settings dialog box (Test > Settings) and the Options dialog box (Tools > Options) to ensure that QuickTest will record and store information appropriately. For example, you should confirm that the test is set to use the appropriate object repository mode. 2 Recording a session on your application As you navigate through your application or Web site, QuickTest graphically displays each step you perform as a row in the Keyword View. A step is any user action that causes or makes a change in your application, such as clicking a link or image, or entering data in a form. 3 Enhancing your test ➤ Inserting checkpoints into your test lets you search for a specific value of a page, object, or text string, which helps you determine whether your application or site is functioning correctly. ➤ Broadening the scope of your test, by replacing fixed values with parameters, lets you check how your application performs the same operations with multiple sets of data. ➤ Adding logic and conditional or loop statements enables you to add sophisticated checks to your test. 4 Debugging your test You debug a test to ensure that it operates smoothly and without interruption. 5 Running your test You run a test to check the behavior of your application or Web site. While running, QuickTest opens the application, or connects to the Web site, and performs each step in your test. 6 Analyzing the test results You examine the test results to pinpoint defects in your application. 7 Reporting defects If you have Quality Center installed, you can report the defects you discover to a database. Quality Center is Mercury Interactive’s software test management tool. All the material is gathered from online research Recommendations: Mercury QuickTest Professional Tutorial Author: Mercury Interactive Documentation Department
No comments:
Post a Comment