The QuickTest window contains the following key elements: .

Title bar—Displays the name of the currently open test. . Menu bar—Displays menus of QuickTest commands. . File toolbar—Contains buttons to assist you in managing your test. . Testing toolbar—Contains buttons to assist you in the testing process. . Debug toolbar—Contains buttons to assist you in debugging tests. . Test pane—Contains the Keyword View and Expert View tabs. . Active Screen—Provides a snapshot of your application as it appeared when you performed a certain step during the recording session. . Data Table—Assists you in parameterizing your test. . Debug Viewer pane—Assists you in debugging your test. The Debug Viewer pane contains the Watch Expressions, Variables, and Command tabs. (The Debug Viewer pane is not displayed when you open QuickTest for the first time. You can display the Debug Viewer by choosing View < Debug Viewer.) . Status bar—Displays the status of the QuickTest application. How does QTP identifes the object in the application QTP identifies the object in the application by LogicalName and Class. For example : The Edit box is identified by Logical Name : PSOPTIONS_BSE_TIME20 Class: WebEdit How many Add-ins comes by default with QTP? There are 3 Add-ins comes with QTP: (1) ActiveX (2) Visual Basic (3) Web What are the views available in QTP (1) Keyword View (2) Expert View What is keyword view and Expert view in QTP? QuickTest's Keyword Driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View. Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industry-standard VBScript that QuickTest Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View. What is Active Screen? The Active Screen provides a snapshot of your application as it appeared when you performed a certain step during a recording session. How many tabs are available in Debug Viewer Pane?

Action toolbar The Action toolbar is available in the Keyword View and contains options that enable you to view all actions in the test flow or to view the details of a selected action. for example. This mode records at the object level and records all run-time objects as Window or WinObject test objects. Variables. you can view the properties of any object in an open application.enables you to record on any object in your application. You can also use low-level recording if the exact coordinates of the object are important for your . Object repository per-action mode is not available for components What is Object Spy in QTP? Using the Object Spy. The Testing toolbar 3. When you continue the run session.The Debug Viewer pane contains three tabs to assist you in debugging your test or component— Watch Expressions. QuickTest records and tracks every movement of the mouse as you drag the mouse around a screen or window. Command The Command tab enables you to execute a line of script in order to set or modify the current value of a variable or VBScript object in your test or component. In object repository peraction mode. You use the Object Spy pointer to point to an object. Variables The Variables tab enables you to view the current value of all variables that have been recognized up to the last step performed in the run session. whether or not QuickTest recognizes the specific object or the specific operation. Note: You cannot edit analog recording steps from within QuickTest. you can use one object repository file for multiple tests or components. The File toolbar 2.enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. recognizing the objects in your application regardless of their location on the screen. The Action toolbar is not available for components. Watch Expressions The Watch Expressions tab enables you to view the current value of any variable or other VBScript expression. The Debug toolbar 4. QuickTest uses the new value that was set in the command. In shared object repository mode. You can save your objects either in a shared object repository or in action object repository. This mode is useful for recording operations that cannot be recorded at the level of an object. recording a signature produced by dragging the mouse. The Object Spy displays the selected object's hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box Explain different recording modes ? QuickTest's normal recording mode records the objects in your application and the operations performed on them. In this recording mode. ? Low-Level Recording . It stores the object data it learns in the object repository. Use low-level recording for recording tests in an environment or on an object not recognized by QuickTest. This mode is the default and takes full advantage of QuickTest's test object model. How many toolbars QTP has? QuickTest has 4 built-in toolbars: 1. Analog Recording . What is object Repository ?Explain different types of Object Repositories? QuickTest identifies objects in your application based on a set of test object properties. QuickTest automatically creates an object repository file for each action in your test. and Command.

xls How to supress warnings from the "Test results page"? From the Test results Viewer "Tools > Filters > Warnings"…must be "Unchecked". This mode is useful for the operation which you can record at Object Level. How to Run a Test using QTP? 1 Start QuickTest and open your test. 2 Confirm that all images are saved to the test results. What is the extension of script and object repository files? Object Repository : . Click Run or choose Test > Run. In the Open Test dialog box. the browser is not launching automatically why? This is default behaviour In how many ways we can add check points to an application using QTP. click Open Existing.. Excel : Default. If QuickTest opens without displaying the Welcome window.. We can add checkpoints while recording the application or we can add after recording is completed using Active screen (Note : To perform the second one The Active screen must be enabled while recording). such as drawing a picture. choose File > Open or click the Open button.test. The steps recorded using Analog Mode is saved in separated data file. . Accept the default results folder name. Choose Tools > Options and select the Run tab. QuickTest allows you to determine when to save images to the test results. choose Start > Programs > QuickTest Professional > QuickTest Professional. The Run dialog box opens. 3 Start running your test.Click OK to close the Options dialog box. Note: Steps recorded using low-level mode may not run correctly on all objects.mts. When we try to use test run option "Run from Step". Select New run results folder. This file is stored with your action in which these Analog Steps are created.If QuickTest is not already open. select Always. recording signature. In the Save step screen capture to test results option. If the Welcome window opens. Script : . Explain the need to use analog recording in qtp? This mode records exact mouse and Key Board operations you perform in relation to the screen /Application Window. then click Open. Click OK to close the Run dialog box. locate and select your test. Quick Tests add to your Test a Run Analog File statement that calls the recorded analog File.tsr . The Step recorded in Analog mode can not be edited within QTP.

The Save dialog box opens to the Tests folder. Type your test name in the File name field. choose File > New. you can share reports across an entire QA and development team. If QuickTest is already open. select the Web Add-in. Otherwise. you must exit and restart QuickTest. but a og will be created and can viewed manulaly which cannot be restricted from getting created. Recording a scenerio in QTP of my web based application. But this supresses only the result window. If QuickTest is not currently open. A blank test opens. 2. do the load of application on server. choose Start > Programs > QuickTest Professional > QuickTest Professional. Click Save. Create a folder which you want to save to. or click the New button. 2. Your test name is displayed in the title bar of the main QuickTest window. check which add-ins are loaded by selecting Help > About QuickTest Professional. How to open a new test using QTP? 1. a TestFusion report displays all aspects of the test run: a high-level results overview. . an expandable Tree View of the test specifying exactly where application failures occurred. or click the New button. If the Welcome window opens. 4. A blank test opens. The basic logic of running the copy 100 times is to create same scenerio as if 100 users were working How to "Turn Off" QTP results after running a Script ? Goto "Tools > Options > Run Tab" and Deselect "View results when run session ends".How to Save your test using QTP? Select File > Save or click the Save button. By combining TestFusion reports with QuickTest Professional. When the Add-in Manager opens. What's Checkpoints for QTP? A checkpoint verifies that expected information is displayed in your application while the test is running. Explain about the Test Fusion Report of QTP ? Once a tester has run a test. In that case. How to do Laod testing for web based Application? 1. application screen shots for every step that highlight any discrepancies. click Blank Test. Choose File > New. Make 100 copies of that scenerio and run the test (scenerio run for 100 times) 3. Confirm that Save Active Screen files is selected. and detailed explanations of each checkpoint pass and failure. and click Open. If the Web Add-in is not loaded. QuickTest Professional offers the following types of checkpoints: . the test data used. select it. and clear all other add-ins.

bitmap Checks the contents of databases Check that the value in a database query is accessed by an application or Web correct. Content Accessibility Guidelines. site Check if the images on a Web page include Identifies areas of a Web site to ALT properties. Checks the property values of an image.Checkpoint Type Standard Checkpoint Image Checkpoint Table Checkpoint Page Checkpoint Description Checks values of an object's properties. XML application checkpoints are used to check an XML document within a Web page. required by the W3C Web check for Section 508 compliancy. or choose View > Active Screen. Checks information in a table. Select File > Save As. 5 Create a standard checkpoint. If you do not see the Active Screen at the bottom of the QuickTest window. Check how long a Web page takes to load or if a Web page contains broken links. Locate the page where you want to add a standard checkpoint. Database Checkpoint Accessibility Checkpoint Checks the data content of XML XML Checkpoint documents. Start QuickTest and open your test. Bitmap Checkpoint Checks an area of a Web page or Check that a Web page (or any portion of it) application after capturing it as a is displayed as expected. Example of Use Check that a radio button is selected. 6 Save the test. click the Active Screen button. Confirm that the Active Screen option is enabled. In the Open Test dialog box. right-click element in your application and choose Insert Standard Checkpoint. Save the test as Checkpoint . Checks the characteristics of a Web page. Check that the value in a table cell is correct. then click Open. Note: XML file checkpoints are used to check a specified XML file. 4. . In the Active Screen. locate and select your test. Save the test as Checkpoint. How to add a standard checkpoint in your test ? 1. Check that the image source file is correct. Checks that a text string is Text / Text Area displayed in the appropriate place Check whether the expected text string is Checkpoint in a Web page or application displayed in the expected locatio window.3. 2.

Create your test plan Prior to automating there should be a detailed description of the test including the exact steps to follow. 6 Modify the table checkpoint.When paramaterised. 3 Save the test. QuickTest graphically displays each step you perform in the form of a collapsible icon-based test tree. and all items to be verified by the test. what is the use of Text output value in Qtp? Output values enable to view the values that the application talkes during run time. 2. such as clicking a link or image.2. data to be input.Checkpoint Properties dialog box opens. The Object Selection . 7 Save the test. Right-click anywhere in the Active Screen. . and choose Insert Standard Checkpoint. 5 Set the output value settings. 2 Create a page checkpoint. What's the difference between a checkpoint and output value? Checkpoint only checks for the specific attribute of an object in AUT while Output value can output those attributes value to a column in data table Explain QTP Testing process ? The QuickTest testing process consists of 6 main phases: 1. Note that this dialog box may include different elements. The verification information should include both data validations and existence or state verifications of objects in the application. 1 Locate the page where you want to add a page checkpoint. Recording a session on your application As you navigate through your application. 3 Confirm that the Active Screen option is enabled. the values change for each iteration.How to add a page checkpoint to your test? The page checkpoint checks that the number of links and images in the page when you run your test is the same as when you recorded your test. depending on where you click in the Active Screen. 4 Select the text you want to use as an output value. we can capture the values that the application takes for each run and output them to the data table. Enhancing your test o Inserting checkpoints into your test lets you search for a specific value of a page.Thus by creating output values. object or text string. 2 Save the test as Output. or entering data in a form. How to Creating an Output Value using QTP? 1 Start QuickTest and open the Parameter test. which helps you identify whether or not your application is functioning correctly. A step is any user action that causes or makes a change in your site.

What is the difference between Call to Action and Copy Action. While running. editable copy of the Data Table information for the external action. External actions are read-only in the calling test. or integrated into Mercury Business Process Testing and Mercury Quality Center.0)? . o 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. easier maintenance. Introduces next-generation zero-configuration Keyword Driven testing technology in Quick Test Professional 8.? Call to Action : The changes made in Call to Action . external action—a reusable action stored with another test. and more powerful data-driving capability. you need to debug it to check that it operates smoothly and without interruption. Reporting defects As you encounter failures in the application when analyzing test results. will be reflected in the orginal action( from where the script is called). Running your test on a new version of your application You run a test to check the behavior of your application. even if they change from build to build.But where as in Copy Action . Analyzing the test results You examine the test results to pinpoint defects in your application. Debugging your test If changes were made to the script. 4. QuickTest connects to your application and performs each step in your test.NOTE: Checkpoints can be added to a test as you record it or after the fact via the Active Screen. enabling reliable unattended script execution.0 allowing for fast test creation. Enables thorough validation of applications through a full complement of checkpoints. o Adding logic and conditional statements to your test enables you to add sophisticated checks to your test. 3.will not effect the original script(Action . 5. How many types of Actions are there in QTP? There are three kinds of actions: non-reusable action—an action that can be called only in the test with which it is stored. Collapses test documentation and test creation to a single step with Auto-documentation technology. you will create defect reports in Defect Reporting Tool. but you can choose to use a local. Identifies objects with Unique Smart Object Recognition. reusable action—an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests. It is much easier and faster to add the checkpoints during the recording process. 6. the changes made in the script .Operates stand-alone. What are the Features & Benefits of Quick Test Pro (QTP 8. 1. and can be called only once.

the RunAction statement can return the value of the ExitAction's RetVal argument. you may want to consider using the Data Driver rather than adding parameters manually. TRUE.e. "MyValue" CloseApp : Indicates whether to close the WinRunner application when the WinRunner test run ends.RunTest TestPath. Note that this argument is relevant only when working with a test in a Quality Center project. Parameters] Here the actions becomes reusable on making this call to any Action. Enter the row range (i. action or component parameters enable you to use values passed from your test or component. Parameters ] TSLTest.RunTestEx TestPath. How many ways we can parameterize data in QTP ? There are four types of parameters: Test. [IterationMode . RunMinimized. "" (b)TSLTest. IterationRange .g : TSLTest. In each repetition. QuickTest uses a different value .Syntact for how to call one script from another? and Syntax to call one "Action" in another? RunAction ActionName. By dividing your tests into calls to multiple actions. Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. What is parameter? A parameter is a variable that is assigned a value from an external data source or generator. e. Valid only when the IterationMode is rngIterations. or values from other actions in your test. this parameter is ignored. If the action called by the RunAction statement includes an ExitAction statement.RunTestEx "C:\WinRunner\Tests\basic_flight". "1-7″). you can design more modular and efficient tests. TestSet [. IterationRange String Not always required. When the test is not saved in Quality Center. Indicates the rows for which action iterations will be performed. CloseApp [. Why? Inserting a call to action will only Import the columns of the Action called How to execute a WinRunner Script in QTP? (a) TSLTest. Inserting a Call to Action is not Importing all columns in Datatable of globalsheet.RunTest "D:\test1″. in which test runs are stored. it contains a call to one action.0 used for backward compatibility Parameters : The test set within Quality Center. or enter rngAll to run iterations on all rows. Parameters : Up to 15 WinRunner function argument Why divide a test into three action calls? When you create a new test. Parameters ] –> Used in QTP 6. or iteration. FALSE. If you wish to parameterize the same value in several steps in your test or component.

How to Defining a Data Table Parameter for QTP? 1 Start QuickTest and open the Checkpoint test. without programming. you can have QuickTest generate a random number and insert it in a number of tickets edit field. Random number parameters enable you to insert random numbers as values in your test or component. Data can be typed in or imported from databases. 3 Confirm that the Active Screen option is enabled. For example.LocalSheet. Environment variable parameters enable you to use variable values from other sources during the run session. "5:45″) . to expand test case coverage. to manipulate data sets and create multiple test iterations. 6 Set the parameterization properties.LocalSheet The following example uses the LocalSheet property to return the local sheet of the run-time Data Table in order to add a parameter (column) to it. 4 Confirm that the Data Table option is enabled. These may be values you supply. an integrated spreadsheet with the full functionality of Excel. to check how your application handles small and large ticket orders.AddParameter("Time". MyParam=DataTable. 5 Select the text to parameterize. How to add a runtime parameter to a datasheet? DataTable. or text files. 2 Save the test as Parameter. spreadsheets. How Does Run time data (Parameterization) is handled in QTP? You can then enter test data into the Data Table. or values that QuickTest generates for you based on conditions and options you choose.from the Data Table.

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer: Get 4 months of Scribd and The New York Times for just $1.87 per week!

Master Your Semester with a Special Offer from Scribd & The New York Times