Pages

Tuesday, May 25, 2010

QTP Questions,FAQ'S,TUTORIEAL

1.What did you use QTP for?
ans.To automate the Web, Windows, CRM & ERP applications
www.allwalkin.blogspot.com
2.How many years of testing experience do you have? Manual? Automated?
ans.I am having of 6 of QA Experience. In that I worked in every project Manual and as well as Automation.

3.Do you prefer Manual or Automated Testing?
ans.Both, before going to automation, the manual testing has to be performed.

4.What are the major drawbacks of QTP?
ans.Some times QTP fails to recognized the objects, fail to detect the dynamic controls and virtual objects
Risks of QTP:
1) High initial cost
2) Require maintenance when scripts developed along with development
Cycle. Sometimes you may have to throw away scripts and rewrite. If
Scripts written after application are stable enough then it will fine.
3) Require skilled labor to develop robust automated scripts to get
Returns in the later stages.If scripts are robust enough and break in
Between more time will be spent in fixing the scripts rather than
Finding application defects.
4) 100 % automation may not be achieved with tools, still require some
Manual testing.

5.What are the different types of checkpoints?
ans Text Check point
Standard Check Point
Low Level Check Point www.allwalkin.blogspot.com
output value checkpoint
database check point
XML check point
Accessabilitry check point
bitmap check point
image check point

6.What are the different views in QTP – EXPLAIN?
ans.Tree view: Graphical representation of the actions
Expert View: The script view of the user actions and user can write code.

7.How is QTP coded ?
ans.It is VB like language

8.How do you debug QTP scripts?
ans.Go to Debug _ Insert Breakpoint – at which we have the problem and place the break point Using debug viewer, you can bebug application ( view – debug viewer) , debug windows appears in the right hand corner. Three fields are watch expressions, Variables, Command

9.How will you open different URLs using QTP?
ans.Go to Test > Record & Running Testing, choose the Web and enter the URL

10.What is a Data Table?
ans.It is used to place the data for data driven testing and also used to parameterize the scripts.Useful for multiple tasks like

11.Explain why you use Object spy?
ans.It is used to capture object properties

12.Explain object repository? www.allwalkin.blogspot.com
ans.when you record the application, the QTP stores all the objects in the repository file. Whenever you playback the scripts, it will read from the specified object repository, we have two types of repository:
1. shared 2. per action repository
1. Shared: when ever you create different actions,
When you record a test, QuickTest adds each object on which you perform an operation to the object repository.

13.would you prefer resuing actions are creating new actions? Why?
ans.I prefer reusing actions, to save time, space and complexity..

14.what is the relationship between QTP and TD, how do you establish connection?
ans QTP is the functional automation tool for testing any web or windows application.
TD: is the test management tool, where the entire testing process from Requirements, Test Scripts, Test Execution and defects are stored central repository.
Install the TD addins first ( TD connectivity on your local machine).
To establish connection between QTP and TD
In QTP > Go to tools > Test Director Connection:
Enter Domain, Project
Enter user name and pwd and click connect.

15.what is Done, passed and Failed in Results report?
ans.Done: when you record and play back the recorded scripts without any validation, the results will display “Done”
Passed: When you playback the scripts with validation of check points in the script, the results will display “Passed”

16.When did you get warnings messages in the Test Results?
ans If the QTP invokes smart identification mechanism, then the results report display” warning

17.How do you setup Data Table iterations?
ans Go to Test > click on Run Tab and choose the desired iterations

18.How do you setup in QTP to run TD scripts?
ans.Go to Tools > click Run tab option and click “Allows other Mercury Interactive Tools to run tests” option

19.Can you able to submit a defect from QTP?
ans Yes
www.allwalkin.blogspot.com
20.How do you submit defect from QTP?
ans Go to Tools > Run choose “submit a defect to test director for each failed step
(Pre-requisite: User has to establish connection between QTP and TD( SEE 20.A)

21.What is the purpose of Update Run in QTP?
Ans: In run time QTP updates the following:
1. Test Object Descriptions
2. The expected check point values
3. Active screen images and values

22.When do you do analog recording?
ans If the objects are not recognized using standard recording, I use analog recording?
ans Start recording the application with standard recording,
Go to the step where standard recording fails to recognize the objects, put a break point
Go to Test > Analog Recording and record the object
Stop recording
Again start recording the application with standard recording

24.If the application is taking more time to load, and the QTP through the error, how do you avoid it?
ans I will use “wait” statement to sync the application

25.When did you use update run option?
ans For the new build release, I use update run option

26.How did you used update run option?
ans Go to Test > Update Run?
In update options, I checked all the three options?
1. Update test objects descriptions
2. Update check point properties
3. Update active screen images and values

27.Why did you recovery scenarios? And how?
ans During the run time the qtp will through some error messages, if you click “OK” on the pop window, the script will run normally.
How: www.allwalkin.blogspot.com
Go to Tools > Recovery Scenario ( it think you have the document)

28.How to avoid pop up windows, while record and playback?
ans Go to Tools > Internet connections > connections > LAN settings > and disable proxy settings.

29.How to create an external environmental variables file?
ans Test settings – environment tab . select the load variables and values from external file and then select file from the browse button.where file extension .ini and the file start with the variable [Envornment] on the first line.
Example:
[Environement]
parameter()
parameter()

30.What are the defaults Add-ins in QTP>
ans Active x, Multimedia, Visual Basic and Web

31.Can you disable add-ins window and how?
ans Yes, by un-checking the “show on startup” in “Add in Manager”

32.What are the icons that are displayed in QTP startup window?
ans a) Tutorial b) Start Recording c) Open Existing d) Blank test

33.What is the default object synchronization time-out?
ans 20 seconds

34.How to set the object synchronization timeout in QTP?
ans Go to > Test > Test Settings > Run Tab and enter the required seconds for object synchronization timeout.

35.What is the purpose of Smart Identification?
ans Configuring Smart Identification properties enables you to help QuickTest identify objects in ywww.allwalkin.blogspot.comour application even if some of the properties in the object’s recorded description have changed.

36.What are the common run time error messages in QTP?
ans Run Error: Can’t Identify Object
This error indicates that there is no object in the current view of the application that matches the description saved in the object repository for the object.
This error occurs in one of two basic situations:
• The object is not (or not yet) displayed in the application at the time of the error.
• The object is present, but the description in your application has changed so that it no longer matches the test object description that QuickTest is using to identify the object.

37.What are the common error messages in TD?
ans You do not have permissions to run tests on this machine. You can change this option in your testing tool's Options dialog box.


QuickTest Professional (QTP)

1.What is QTP ?
ans QuickTest is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, QuickTest Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and .NET framework applications…
QTP is Mercury Interactive Functional Testing Tool. QTP stands for Quality Test Professional. www.allwalkin.blogspot.com
Mercury QuickTest Professional: provides the industry’s best solution for functional test and regression test automation - addressing every major software application and environment. This next-generation automated testing solution deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance. Unique to QuickTest Professional’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.
QuickTest Professional enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QuickTest add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, ..NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications) .

2.What’s the basic concept of QTP?
ans QTP is based on two concept-
* Recording
* Playback

3.Which scripting language used by QTP?
ans QTP using VB scripting.

4.How many types of recording facility are available in QTP?
ans QTP provides three types of recording methods-
* Context Recording (Normal)
* Analog Recording
* Low Level Recording
www.allwalkin.blogspot.com
5.How many types of Parameters are available in QTP?
ans QTP provides three types of Parameter-
* Method Argument
* Data Driven
* Dynamic

6.What’s the QTP testing process?
ans QTP testing process consist of seven steps-
* Preparing to recoding
* Recording
* Enhancing your script
* Debugging
* Run
* Analyze
* Report Defects (more…)

7.How to Start recording using QTP?
ans Choose Test > Record or click the Record button.
When the Record and Run Settings dialog box opens to do this;
1. In the Web tab, select Open the following browser when a record or run session begins.
2. In the Windows Applications tab, confirm that Record and run on these applications (opened on session start) is selected, and that there are no applications listed.

8.How to insert a check point to a image to check enable property in QTP?
AnsAS you are saying that the all images are as push button than you can check the property enabled or disabled. If you are not able to find that property than go to object repository for that objecct and click on add remove to add the available properties to that object. Let me know if that works. And if you take it as image than you need to check visible or invisible property tht also might help you are there are no enable or disable properties for the image object.
Answer2:
The Image Checkpoint does not have any property to verify the enable/disable property.
One thing you need to check is:
* Find out form the Developer if he is showing different images for activating/deactivi ng i.e greyed out image. That is the only way a developer can show deactivate/activate if he is using an “image”. Else he might be using a button having a headsup with an image.
* If it is a button used to display with the headsup as an image you woudl need to use the object Properties as a checkpoint.

9.How to Save your test using QTP?
ans Select File > Save or click the Save button. The Save dialog box opens to the Tests folder.
Create a folder which you want to save to, select it, and click Open.
Type your test name in the File name field.
Confirm that Save Active Screen files is selected.
Click Save. Your test name is displayed in the title bar of the main QuickTest window.

10.How to Run a Test using QTP?
ans 1 Start QuickTest and open your test.
If QuickTest is not already open, choose Start > Programs > QuickTest Professional > QuickTest Professional.
. If the Welcome window opens, click Open Existing.
. If QuickTest opens without displaying the Welcome window, choose File > Open or click the Open button.
In the Open Test dialog box, locate and select your test, then click Open.
2 Confirm that all images are saved to the test results.
QuickTest allows you to determine when to save images to the test results.
Choose Tools > Options and select the Run tab. In the Save step screen capture to test results option, select Always.
Click OK to close the Options dialog box.
3 Start running your test.
Click Run or choose Test > Run. The Run dialog box opens.
Select New run results folder. Accept the default results folder name.
Click OK to close the Run dialog box.
www.allwalkin.blogspot.com
11.How to open a new test using QTP?
ans 1. If QuickTest is not currently open, choose Start > Programs > QuickTest Professional > QuickTest Professional. If the Welcome window opens, click Blank Test. Otherwise, choose File > New, or click the New button. A blank test opens. 2. . If QuickTest is already open, check which add-ins are loaded by selecting Help > About QuickTest Professional. If the Web Add-in is not loaded, you must exit and restart QuickTest. When the Add-in Manager opens, select the Web Add-in, and clear all other add-ins. Choose File > New, or click the New button. A blank test opens.

12.How to do Laod testing for web based Application?
ans 1. Recording a scenerio in QTP of my web based application.
2. Make 100 copies of that scenerio and run the test (scenerio run for 100 times)
3. In that case, do the load of application on server.
4. The basic logic of running the copy 100 times is to create same scenerio as if 100 users were working.

13.What is the extension of script and object repository files?
ans Object Repository : .tsr , Script : .mts, Excel : Default.xls
How to supress warnings from the “Test results page”?
From the Test results Viewer “Tools > Filters > Warnings”…must be “Unchecked”.
When we try to use test run option “Run from Step”, the browser is not launching automatically why
This is default behaviour.

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

16.How to add a page checkpoint to your test?
ans 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.
1 Locate the page where you want to add a page checkpoint.
2 Create a page checkpoint.
Right-click anywhere in the Active Screen, and choose Insert Standard Checkpoint. The Object Selection - Checkpoint Properties dialog box opens. Note that this dialog box may include different elements, depending on where you click in the Active Screen.
3 Save the test.

17.How Does Run time data (Parameterization) is handled in QTP?
ans You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files.

18.What is keyword view and Expert view in QTP?
ans 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.

19.How QTP recognizes Objects in AUT?
ans QuickTest stores the definitions for application objects in a file called the Object Repository. As you record your test, QuickTest will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by QuickTest), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the QuickTest script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.

20.What are the types of Object Repositorys in QTP?
ans QuickTest has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new tests, and you can change the default as necessary for each new test. The object repository per-action mode is the default setting. In this mode, QuickTest automatically creates an object repository file for each action in your test so that you can create and run tests without creating, choosing, or modifying object repository files. However, if you do modify values in an action object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an object’s property values in one action, you may need to make the same change in every action (and any test) containing the object.

21.If I give some thousand tests to execute in 2 days what do u do?
ans Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.
www.allwalkin.blogspot.com
22.Does QTP is “Unicode” compatible?
ans QTP 6.5 is not but QTP 8.0 is expected to be Unicode compatabile by end of December 2004.

23.How to “Turn Off” QTP results after running a Script?
ans Goto “Tools > Options > Run Tab” and Deselect “View results when run session ends”. But this supresses only the result window, but a og will be created and can viewed manulaly which cannot be restricted from getting created.

24.Explain about the Test Fusion Report of QTP ?
ans Once a tester has run a test, 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, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with QuickTest Professional, you can share reports across an entire QA and development team.

25.To which environments does QTP supports ?
ans QuickTest Professional supports functional testing of all enterprise environments, including Windows, Web, ..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services.

26.What’s QuickTest Window?
ans Before you begin creating tests, you should familiarize yourself with the main QuickTest window.
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
QuickTest identifies the object that you clicked as a WebButton test object. It creates a WebButton object with the name Find, and records the following properties and values for the Find WebButton:
It also records that you performed a Click method on the WebButton.
QuickTest displays your step in the Keyword View like this:
QuickTest displays your step in the Expert View like this:
Browser(”Mercury Interactive”).Page(”Mercury Interactive”).
WebButton(”Find”).
www.allwalkin.blogspot.com
27.How to analyzing Test Results using QTP?
ans When QuickTest finishes running the test, the Test Results window opens.
Initially, the Test Results window contains two panes for displaying the key elements of your test run.
. The left pane displays the results tree, an icon-based view of the steps that were performed while the test was running. The results tree is organized according to the Web pages visited during the test run and can be expanded (+) to view each step. The steps performed during the test run are represented by icons in the tree. You can instruct QuickTest to run a test or action more than once using different sets of data in each run. Each test run is called an iteration, and each iteration is numbered. (The test you ran had only one iteration.)
. The right pane displays the test results details. The iteration summary table indicates which iterations passed and which failed. The status summary table indicates the number of checkpoints or reports that passed, failed, and raised warnings during the test.
1 View the test results for a specific step.
In the results tree, expand (+) Test Recording Summary > Recording Iteration 1 (Row 1) > Action1 Summary > your application > your test name .
The Test Results window now contains three panes, displaying:
. the results tree, with one step highlighted
. the test results details of the highlighted step
. the Active Screen, showing a screen capture of the Web page on which the step was performed.
When you click a page in the results tree, QuickTest displays the corresponding page in the application view. When you click a step (an operation performed on an object) in the results tree, the corresponding object is highlighted in the application view. In this case, the Departing From text box is highlighted.
www.allwalkin.blogspot.com
28.Explain the check points in QTP?
ans A checkpoint verifies that expected information is displayed in a Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP.
• A page checkpoint checks the characteristics of a Application
• A text checkpoint checks that a text string is displayed in the appropriate place on a Application.
• An object checkpoint (Standard) checks the values of an object on a Application.
• An image checkpoint checks the values of an image on a Application.
• A table checkpoint checks information within a table on a Application
• An Accessiblity checkpoint checks the web page for Section 508 compliance.
• An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.
• A database checkpoint checks the contents of databases accessed by your web site

29.In how many ways we can add check points to an application using QTP?.
ans 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).

Explain in brief about the QTP Automation Object Model.
Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

30.Discuss QTP Environment. ?
ans QuickTest Pro environment using the graphical interface and ActiveScreen technologies - A testing process for creating test scripts, relating manual test requirements to automated verification features - Data driving to use several sets of data using one test script.

31.Explain the concept of how QTP identifies object?
ans During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time obkects that matches with the test object it learned while recording.

32.Object Repositories types? when to use?
ans Deciding Which Object Repository Mode to Choose
To choose the default object repository mode and the appropriate object repository mode for each test, you need to understand the differences between the two modes.
In general, the object repository per-action mode is easiest to use when you are creating simple record and run tests, especially under the following conditions:
You have only one, or very few, tests that correspond to a given application, interface, or set of objects.
You do not expect to frequently modify test object properties.
You generally create single-action tests.
Conversely, the shared object repository mode is generally the preferred mode when:
You have several tests that test elements of the same application, interface, or set of objects.
You expect the object properties in your application to change from time to time and/or you regularly need to update or modify test object properties.
You often work with multi-action tests and regularly use the Insert Copy of Action and Insert Call to Action options.
Can we Script any test case with out having Object repository? or Using Object Repository is a must?
No. U can script with out Object repository by knowing the Window Handlers, spying and recognizing the objects logical names and properties available.
www.allwalkin.blogspot.com
33.How to execute a WinRunner Script in QTP?
ans (a) TSLTest.RunTest TestPath, TestSet [, Parameters ] –> Used in QTP 6.0 used for backward compatibility Parameters : The test set within Quality Center, in which test runs are stored. Note that this argument is relevant only when working with a test in a Quality Center project. When the test is not saved in Quality Center, this parameter is ignored.
e.g : TSLTest.RunTest “D:\test1″, “”
(b)TSLTest.RunTestE x TestPath, RunMinimized, CloseApp [, Parameters ] TSLTest.RunTestEx “C:\WinRunner\ Tests\basic_ flight”, TRUE, FALSE, “MyValue” CloseApp : Indicates whether to close the WinRunner application when the WinRunner test run ends. Parameters : Up to 15 WinRunner function argument

34.How To clear the AutoComplete?
ans 1 In your Internet Explorer’s menu bar, choose Tools > Internet Options > Content tab.
2 Click AutoComplete in the Personal information area. The AutoComplete Settings dialog box opens.
3 In the Use AutoComplete for area, clear the User names and passwords on forms option.
4 Click OK to save your changes and close the AutoComplete Settings dialog box, then click OK again to close the Internet Options dialog box.

35.What is Object Spy in QTP?
ans Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. 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.

36.What is the Diff between Image check-point and Bit map Check point?
ans Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. QuickTest captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order to save disk Space For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly.
You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded).
Note: The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings.

37.How many ways we can parameterize data in QTP ?
ans There are four types of parameters:
Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test.
Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, QuickTest uses a different value from the Data Table.
Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that QuickTest generates for you based on conditions and options you choose.
Random number parameters enable you to insert random numbers as values in your test or component. For example, to check how your application handles small and large ticket orders, you can have QuickTest generate a random number and insert it in a number of tickets edit field.
www.allwalkin.blogspot.com
38.How do u do batch testing in WR & is it possible to do in QTP, if so explain?
ans Batch Testing in WR is nothing but running the whole test set by selecting “Run Testset” from the “Execution Grid”.The same is possible with QTP also. If our test cases are automated then by selecting “Run Testset” all the test scripts can be executed. In this process the Scripts get executed one by one by keeping all the remaining scripts in “Waiting” mode.

39.How to use the Object spy in QTP 8.0 version?
ans There are two ways to Spy the objects in QTP
1) Thru file toolbar
—In the File ToolBar click on the last toolbar button (an icon showing a person with hat). 2) Tru Object repository Dialog
—In Objectrepository dialog click on the button”object spy…”
In the Object spy Dialog click on the button showing hand symbol. the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button.

40.What is the file extension of the code file & object repository file in QTP?
ans File extension of
– Per test object rep :- filename.mtr
– Shared Oject rep :- filename.tsr
Code file extension id script.mts

41.How to Creating an Output Value using QTP?
ans 1 Start QuickTest and open the Parameter test.
2 Save the test as Output.
3 Confirm that the Active Screen option is enabled.
4 Select the text you want to use as an output value.
5 Set the output value settings.
6 Modify the table checkpoint.
7 Save the test.
42.What does it mean when a check point is in red color? what do u do?
ans A red color indicates failure. Here we analyze the the cause for failure whether it is a Script Issue or Envronment Issue or a Application issue.
www.allwalkin.blogspot.com
43.What do you call the window testdirector- testlab?
“Execution Grid”. It is place from where we Run all Manual / Automated Scripts
44.How do u create new test sets in TD?
Login to TD.
Click on “Test Lab” tab.
Select the Desired folder under which we need to Create the Test Set. ( Test Sets can be grouped as per module.) Click on “New Test Set or Ctrl+N” Icon to create a Test Set.

45.Explain the concept of object repository & how QTP recognises objects?
ans Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected). we can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description. If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.

46.What are the properties you would use for identifying a browser & page when using descriptive programming ?
ans name” would be another property apart from “title” that we can use. OR We can also use the property “micClass”. ex: Browser(”micClass:=browser”).page(”micClass:=page”)….
I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?
U can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window. Try it out. All the Best.
48.How to Import data from a “.xls” file to Data table during Runtime.?
ans Datatable.Import “…XLS file name…”
DataTable.ImportShe et(FileName, SheetSource, SheetDest)
DataTable.ImportShe et “C:\name.xls” ,1 ,”name”

49.How to export data present in Datatable to an “.xls” file?
DataTable.Export “….xls file name…?”
Syntact for how to call one script from another? and Syntax to call one “Action” in another?
RunAction ActionName, [IterationMode , IterationRange , Parameters]
Here the actions becomes reusable on making this call to any Action.
IterationRange String Not always required. Indicates the rows for which action iterations will be performed. Valid only when the IterationMode is rngIterations. Enter the row range (i.e. “1-7″), or enter rngAll to run iterations on all rows.
If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction’s RetVal argument.
www.allwalkin.blogspot.com
50.How to export QTP results to an “.xls” file?
ans By default it creates an “XML” file and displays the results

51.How the exception handling can be done using QTP?It can be done ans Using the Recovery Scenario Manager which provides a wizard that gudies you through the process of defining a recovery scenario. FYI.. The wizard could be accesed in QTP> Tools-> Recovery Scenario Manager …….

52.How many types of Actions are there in QTP?
ans There are three kinds of actions:
non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once. 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.
external action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.
Analyzing the Checpoint results
Standard Checpoint :By adding standard checkpoints to your tests or components, you can compare the expected values of object properties to the object’s current values during a run session. If the results do not match, the checkpoint fails.

53.How to handle Run-time errors?
ans On Error Resume Next : causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure.
Using “Err” object msgbox “Error no: ” & ” ” & Err.Number & ” ” & Err.description & ” ” & Err.Source & Err.HelpContext

54.What are the different scripting languages you could use when working with QTP ?
ans Visual Basic (VB),XML,JavaScript ,Java,HTML

55.How to handle dynamic objects in QTP?
ans QTP has a unique feature called Smart Object Identification/ recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognise the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time. Check this out-
If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object. While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails.
The Smart Identification mechanism uses two types of properties:
Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link’s tag was changed from to any other value, you could no longer call it the same object. Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.
Explain the keyword createobject with an example.
Creates and returns a reference to an Automation object
syntax: CreateObject( servername. typename [, location])
Arguments
servername:Required . The name of the application providing the object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be created.
www.allwalkin.blogspot.com
56.What is a Run-Time Data Table? Where can I find and view this table?
ans -In QTP, there is data table used , which is used at runtime..
-In QTP, select the option View->Data tabke.
-This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

57.How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?
ans Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps.

58.What is the difference between check point and output value?.
ans An outPut value is a value captured during the test run and entered in the run-time but to a specified location. EX:-Location in Data Table[Global sheet / local sheet]
Types of properties that Quick Test learns while recording?
(a) Mandatory (b) Assistive . In addition to recording the mandatory and assistive properties specified in the Object Identification dialog box, QuickTest can also record a backup ordinal identifier for each test object. The ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with an otherwise identical description (objects that have the same values for all properties specified in the mandatory and assistive property lists). This ordered value enables QuickTest to create a unique description when the mandatory and assistive properties are not sufficient to do so.

59.Differences between QTP & Winrunner?
ans a) QTP is object bases Scripting ( VBS) where Winrunner is TSL (C based) Scripting.
(b) QTP supports “.NET” application Automation not available in Winrunner
(c) QTP has “Active Screen” support which captures the application, not available in WR.
(d) QTP has “Data Table” to store script values , variables which WR does not have.
(e) Using a “point and click” capability you can easily interface with objects, their definitions and create checkpoints after having recorded a script – without having to navigate back to that location in your application like you have to with WinRunner. This greatly speeds up script development.
Few basic questions on commonly used Excel VBA functions.
common functions are:
Coloring the cell
Auto fit cell
setting navigation from link in one cell to other saving

60.How does Parameterization and Data-Driving relate to each other in QTP?
ans To datadrive we have to parameterize. i.e. we have to make the constant value as parameter, so that in each iteraration( cycle) it takes a value that is supplied in run-time datatable. Through parameterization only we can drive a transaction( action) with different sets of data. You know running the script with the same set of data several times is not suggestable, & it’s also of no use.
61.What is the difference between Call to Action and Copy Action.?
ans Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

62.How to verify the Cursor focus of a certain field?
ans Use “focus” property of “GetRoProperty” method”

63.Any limitation to XML Checkpoints?
ans Mercury has determined that 1.4MB is the maximum size of a XML file that QTP 6.5 can handle

64.How to make arguments optional in a function?
ans this is not possible as default VBS doesn’t support this. Instead you can pass a blank scring and have a default value if arguments r not required.
www.allwalkin.blogspot.com
65.How to add a text checkpoint to your test to check whether ‘welcome’ is displayed in your welcome page?
ans 1 Locate the page where you want to add a text checkpoint.
2 Create a text checkpoint.
In the Active Screen, under your page highlight the text welcome. Right-click the highlighted text and choose Insert Text Checkpoint. The Text Checkpoint Properties dialog box opens.
When Checked Text appears in the list box, the Constant field displays the text string you highlighted. This is the text QuickTest looks for when running the test.
Click OK to accept the default settings in this dialog box.
QuickTest adds the text checkpoint to your test. It is displayed in the Keyword View as a checkpoint operation on your welcome page
3 Save the test.

66.How to Running and Analyzing a Test with Checkpoints?
ans 1 Expand the test and review your test.
Choose View > Expand All or use the * shortcut key on your number keypad.
2 Start running your test.
Click Run or choose Test > Run. The Run dialog box opens. Ensure that New run results folder is selected. Accept the default results folder name. Click OK. When the test run is completed, the Test Results window opens.
3 View the test results.
When QuickTest finishes running the test, the Test Results window opens. The test result should be Passed, indicating that all checkpoints passed. If one or more checkpoints had failed, the test result would be Failed.
4 View the results of the page checkpoint.
In the Details pane, you can review the details of the page checkpoint, which lists the items checked.
5 View the results of the table checkpoint.
In the Details pane, you can review the details of the table checkpoint. You can also review the values of the table cells (cell values that were checked are displayed in black; cell values that were not checked are displayed in gray).
6 View the results of the standard checkpoint.
In the Details pane, you can review the details of the standard checkpoint, which lists the properties that were checked and their values. The checkpoint passed because the actual values of the checked properties match the expected values.
7 View the results of the text checkpoint.
In the Details pane, you can review the details of the text checkpoint. The checkpoint passed because the actual text matches the expected text.
8 Close the Test Results window. Choose File > Exit.

66.How to Defining a Data Table Parameter for QTP?
ans 1 Start QuickTest and open the Checkpoint test.
2 Save the test as Parameter.
3 Confirm that the Active Screen option is enabled.
4 Confirm that the Data Table option is enabled.
5 Select the text to parameterize.
6 Set the parameterization properties.

67.How to add a runtime parameter to a datasheet?
ans DataTable.LocalShee t
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.
MyParam=DataTable. LocalSheet. AddParameter(”Time”, “5:45″)

68.How to change the run-time value of a property for an object?
ans SetTOProperty changes the property values used to identify an object during the test run. Only properties that are included in the test object description can be set.

69.How to retrieve the property of an object?
ans using “GetRoProperty”.

70.How to open any application during Scripting?
ans SystemUtil , object used to open and close applications and processes during a run session.
(a) A SystemUtil.Run statement is automatically added to your test when you run an application from the Start menu or the Run dialog box while recording a test
E.g : SystemUtil.Run “Notepad.exe” SystemUtil.CloseDes cendentProcesses ( Closes all the processes opened by QTP )
www.allwalkin.blogspot.com
71.Differentiate the two Object Repository Types of QTP?
ans Object repository is used to store all the objects in the application being tested.2 types of oject repositoy per action and shared. In shared repository only one centralised repository for all the tests. where as in per action.for each test a separate per action repostory is created.

72.What the differences are and best practical application of each.?
ans Per Action: For Each Action, one Object Repository is created. Shared : One Object Repository is used by entire application.

73.Explain what the difference between Shared Repository and Per_Action Repository?
ans Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner Per Action: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner

74.Have you ever written a compiled module? If yes tell me about some of the functions that you wrote?
ans I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages.

75.What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them?
ans pbs :WR fails to identify the object in gui. If there is a non std window obk wr cannot recognize it ,we use GUI SPY for that to handle such situation.

76.Can you do more than just capture and playback?
ans I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
-It was done by the windows scripting using the DOM(Document Object Model) of the windows.


www.allwalkin.blogspot.com
Some QTP Interview questions

1.List me out the short cut keys for some functionalities in the QTP….for example…….to record……to run….etc
2.What are the challenges do we face while testing webbased applications using the automation tool QTP or any?
3.Do we get any issues if we run the testscript on different browsers?What are the options we need to st in QTP?
4.How we can add actions in the test using QTP?
5.Does QTP provides any tools for parametarization?
6.What are recovery management techniques?
7.How we can merge the object repositories? say if we have two or three object repositories then how we can merge them?is there any option in qtp to merge the object repositories?
8.What is the difference between link and hyperlink?
9.Can some one help me how to compare thevalues from one sheet to values in another sheet?suppose i have a field called temp in action1 and i also have temp in action2. i want to compare the values of those two actions sheets data table? how can i do it using descriptive programming?
10.How to do batch run in qtp? provide the steps?
11.Can we do qtp testing without creating objects in Dbject repository?can we do it completely writing code i.e in expert view only. are there any books for this?
12. In qtp,how to interact tool & application build?
13.Scenario: 2 combo boxes.1st combo contains a,b,c,d.2nd combo contains 10..20,20…30,30.40,…selecting ‘a’ shuld display
10…..20.,’b’ shld display 20…….30…….and so on.tell d script? 2.Random testing of 500 test cases in qtp?
14.How to do the batch testing using qtp?
15. What is the use of “function generator ” in qtp?
16. What is environment variables?
17. What is the use of virtual object?explain?
www.allwalkin.blogspot.com
18. Difference between wr 8.2? how to integrate with some other tools?
19. What is the function (how to do) the batch testing in test director using manual testing procedure?
20. What is a test strategy & what is the difference between test strategy & test plan?
21. What is descriptive programming when it is useful? & when to use this?
22.How to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?
23. If two text boxes are there in a “form”. ….>A table contains some records which contains usernames & password….what is the script we need to write using descriptive programming concept….in QTP(simply data driven test script of qtp)?
24. Can we run the scripts of qtp 8.2 in the qtp 7.0?
25. How to capture data from images in qtp and produce them in excel sheet?
26. How to handle recovery scenario in QTP. give detailed explanation about recovery scenario..
27. How we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables
28. What are the file extensions for pre-action,shared object repository files and what is the extension for library files?
29. What are the most frequent errors you faced while executing your scripts?
30. among all the check points what is the most important check point?
31. How to write script in QTP(vbscript)…i mean with out application deployed…and how to call script1 into script2?
32. How do you handle multiple banners(at the top the page,the banner is scrolling) in a web page(donot take the name property(regular expression))
33. How do you handle XML exceptions in QTP(here it is exception,not the check point) www.allwalkin.blogspot.com
34. What is iteration? how it is related to test results in QTP
35. Is it possible to map an image as standard object or u’ve to treat as virtual? how to map an dynamic image into standard object?
36. What is the exact diff between test and component in QTP?
37. Difference between image checkpoint and bitmap checkpoint?
38. What is the descriptive. crate() in QTP?
39. What is TOM in QTP?
40. What is the abbrivation of .mtr in action repository?
41.I am new in QTP, plz tell me any books for QTP,my company is QTP,so i learn QTP
42. Tell about descriptive programming in QTP8.2?
43. Tell about automation object model(Aom) in QTP?
44. How to merge object repositories?
45. What is the command used to start the QTP from run.(start-> run)
46. What does VBS file contain…??what is VBS file?
47. What is unicoad compability? how does this makes a difference from winrunner?
48. What is the exact meaning of environment variables? what is complie module in QTP?what exactly it contains functions or actions?
49. What is compile modulein QTP?what exactly it contains functions or actions? www.allwalkin.blogspot.com
50. What is the exact meaning of environment variabes?
51. How to watch currnet value of an object like OK button or edit box with “agent nale:” lable. in watch expression tab
52. Which functionalities of QTP used in banking project?
53. I am begineer in QTP and i want to try the software QTP. i checked the mercury site for QTP trial version and i found QTP9.0. the thing is tht it supports windows 2000,Xp but not windows 98. and i am using windows 98 only and its not possible for me to update to windows 2000.guide me to get the tria version of QTP which supports windows 98 operating system.
54. Tell me the QTP advantage and disadvantges?
55. How do you configure QTP and test director?
56. How to get the column count and column name from the result set in the data base connection program?
57. Scalability testing comes under in which tool?
58. What is the difference between rational rose and QTP?which tool is better to learn?
59. How to test the mainframe application? (tell me few basic things)
60. What is throw object?
61. How will you handle the situation when object isnot captured during recors? www.allwalkin.blogspot.com
62. What kind of errors can be handled in QTP in real time scenario?
63. Can objects recognised without repository?
64. What is smart identification?
65. What is the differece between normal mode and fast moce?
66. In how many ways you perform batchtesting
67. What is API
68.What is the difference between action and script
69.Synchronozation types in QTP
70.Batch testing in howmany ways u perform in QTP
71. Approch for installation, comaptibility, system testing
72.user defined function in QTP
73.How you perform exception handling in QTP,what is other name for this.
74.How you call functions in QTP
75.How you connect bugzilla with QTP
76.How you sre using QTP in ur projrct
77.how you automate testscripts one by one or modukewise or all at once
78.Can we directly automate testscripts according to requirements
79.How you automate test scripts
80.What do you do if QTP doesnt recognize object,what action should be taken www.allwalkin.blogspot.com
81.After running scripts how you report results, there is any specific report form?
82.In object repository,two actions r there.action1 name is A.tsr, action2 name is B.tsr.is it possible?if yes,what is the output of A+B?if no, why?
83.Anybody explain me,the concept of checkpoint declaration in the QTP mainly for the objects,pages, text and tables?
84.How to use regular expressions in QTP?give an example.
85.Take a situation when you are working with QTP,suddenly systam has crashed. so u again start the system. my que ishow can QTP directly opened when the system desktop appears?
86.Give me descriptive programming code sample flight application in QTP
87.Can you put checkpoints for moving images.
88.how to test background color and dynamic images during runtime
89.Where is the bitmap checkpoint be saved?
90.What happen in object repository(shared) if we call an existing action from an external action? and what happen in object repository(peractio n) if we call an existing action from an external action?
91.How can we retrive ten rows from the data table using loop concept?
92.How to convert a string to an integer?
93.How to “turn off” QTP results after running a script?
94.Does QTP is “unicoe” compatible?
95.How to supress warnings from the “test results page”?
96.What is the extension of script and object repository files in QTP?
97.How to open any application during scripting in QTP?
98.How to retrive the property of an object in QTP?
99.How to change the run time values of a property for an object in QTP?
100.How to handle run-time errors?www.allwalkin.blogspot.com
1. how many maximum actions can be performed in a single test
2. How to create the dynamic object repository in QTP?
3. What is difference between global sheet anh action sheet?
4. How to pass parameters from one action to another action.
5. How to perform Cross platform testing and Cross browser testing using QTP?Can u explain giving some exampl
6. how to connect the database through QTP
7. How to open multiple instances of an application from QTP? 2. How to recognize each instance and setting
8. This is the chain of question#: 15434What conditions we go for Reusable Scripts and how we create and
9. Can we call QTP test from another test using scripting.Suppose there are 4 tests and i want to call these
10. Is it possible to test a web application( java) with winrunner?otherwise is it possible to check with
11. How can we insert Text check point and Bit map check point ? if provide example script, it is greatefu
12. Can we mask a Code In .vbs file so that it is not viewable to others?
13. Is there any function to double click a particular row in a webtable?
14. what is the use of command tab in Debug viewer ?can we execute any user defined queries
15. What is Analog recording,What is the difference between analog recording and low level recording
16. what is database check point.
17. What is the use of function and sub function in QTP?
18. What is the new Version of QTP which is recently released in the Market?
19. How to call a funtion present in dll file in QTP Script.
20. I have n iterations of test run in QTP. I want to see the results of not only the latest (‘n’th) iteration
21. How to call from one action to another action in QTP?
22. What is the Difference Between Bit map Check point & Image Check pointPlease explain in detailText &
23. How can we do block commenting in QTP?
24. How to get the column count and column name from resultset in database connction program?
25. 1. How to write QTP scripts?2. Any related website resource to learn QTP?3. What steps the to be follwed
26. How to check an XML schema (XML Schema Validation–from XML file)? Ttell me about .XSD file format. www.allwalkin.blogspot.com
27. How to schedule tests in QTP?
28. Is Addins enough to work in Flex based applications? or do we have to get a licence for multimedia for
29. how to identify a ‘web element’ class object while recording and running in ‘Event’ mode of settings.
30. What are the new features available in QTP 8.2 compared with earlier versions?
31. Hi forum. Could any body tell me what is AMDOCS, and what are its models ? Best regrds.
32. What is difference between window(” “) and dialog(” “) in QTP while creating script?
33. How do you retrieve the Class name of a Test Object programmatically from within a script?
34. What is the best way to test UNIX (QTP, Winrunner or Xrunner)? If QTP supports let me know the brief
35. What is the Recovery Scenerio can apllied for any telephone line connection(Ex: BSNl,Airtel etc
36. what are advantages and disadvantages between internet explorer and netscape navigator (or) Internet
37. Anybody with an experience of testing Mainframe applications. I usually check the ActiveX and VB add-ins
38. Difference Between text and Textarea checkpoints in QTP
39. How to Handle dynamic WebList in QTP…Values in Weblist are different
40. What is the Hotkey that can be used for Hitting spacebar?
41. We are trying to avoid that anybody see our script after we wrote it. Did anybody know how to do this?
42. how can i insert database checkpoint in qtp-6.5
43. What are different execution modes available in QTP & explain them.
44. How can we recognize objects in Flex application using QTP? When I record scripts, it takes all objects
45. For the AS/400 application that takes data only thru the keyboard input and not even single mouse click
46. How to write QTP test results to an Excel application
47. How to write recovery scenario for below questions and what are the steps we will follow?if i click
48. If winrunner and QTP both are functional testing tools from the same company.why a separate tool QTP
49. How do we test Links using Quick Test Professional and confirm that the page we are requesting is seen www.allwalkin.blogspot.com
50. How do you test DLL files using QTP?
51. After importing external .xls datasheet in to Datatable of QTP, How to set NO of iterations run for
52. How to test Dynamic web pages using QTP
53. How to record Flex (1.0) objects using QTP?Post the code which works for this.
54. Advantage of using Mercury Quality Center over Test Director
55. How do we connect to Oracle database from QTP ?
56. Can any one pls tell me about how to configure the environment variables in qtp and how to use the variables
57. What is the process for creating an automated test script using QTP assuming you have reviewed the manual
58. How to use a data driver in QTP?
59. What is the method used to focus on particuler field.I need the script.I will give example.I flights
60. 1)what is the advantage and disadvantage of using Virtual Object wizard?2) How efficiently we can use
61. Without recording objects in Object Repository are we able to run scripts?
62. Can we call a QTP script from a main script without making it reusable?
63. wat is xml schema validation and how to perform schema validation for a file.wat is *.XSD extention
64. Can any body expalin me the differences between a reusable and a external action with example?
65. I need information on using FSO(file system object) also its significance
66. How to Run a script recorded in English flavor of my application and re-run the same script on different
67. How to write QTP test results to an Excel application, Please provide the exact code if possible ASAPThanks
68. What are the limitations for XML Checkpoints in QTP 8.0?
69. how good is QTP for testing siebel applications? whether QTP recognizes siebel objects or something else
70. How do I use text checkpoint in QTP as everytime I use this checkpoint in the excel sheet and highlight
71. How is automation used in QTP for regreession testing. Please give me a sample script. www.allwalkin.blogspot.com
72. Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text
73. How can we validate the PDF file recognization and its content with the help of Mercury product QTP(Quick
74. What is Expert view in QTP?Can you explain with example?
75. What is the best way to do regression testing using QTP.
76. what is the use functions in QTP. public, private
77. How can we return values from userdefined function? anybody provide code with small example its great
78. how to retrive/update database by writing code in expert viewIn my case database is Accessmy dsn name=”try”database
79. How can I import and/or merge an existing repository into my current test?
81. Hi,I was set the repository as per test mode and recorded my script.. Now I wana to change the repository
82. What are Limitation of QTP?
83. what is difference between stub and driver?
84. What is meant by Source Control?
85. What is descriptive programming?
86. how to automate editing an XML file .because when i record the editing on an XML file and run it,some
87. What are the disadvantages or drawbacks in QTP?
88. 1. Each test that you run is displayed into the screen … I’m looking for a way to run a test in background
89. I have faced one question in interviewhe has given one screen with one bitmap and one edit box.The original
90. What qt plus ? How we merge the files in qtp?What is feasibility study in automation?
91. when a script is recorded in quick test for connecting 10 rows in the database, can we change script
92. How do you test siebel application using qtp?
93. How to get Traceability matrix from TD?
94. How to import a test case present in “.xls” file to TD under a Test set?
95. How to attach a file to TD?
96. What do you to script when objects are removed from application?
97. How do you data drive an external spreadsheet?
98. Give me an example where you have used a COM interface in your QTP project?
99. How long have you used the product?
100. How to get “FontSize” of a “WebEdit”?
101. Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
102. How to create a Runtime property for an object?
103. How to handle the exceptions using recovery scenario manager in QTP ?
104. What is the use of Text output value in QTP?
105. Have you ever written a compiled module? If yes tell me about some of the features.
106. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?
107. What is the command in QTP to invoke IE Browser?
108. How to execute QTP script from command prompt?
109. How We will count the total number of web Links on a Page?
110. How you will creat a object in VB Script?
111. What is the difference between TSL & VBScript?
112. Write a Script if a button is enable or not?
1. What is the difference between QTP and Winrunner?
2. Which one do you prefer, QTP or Winrunner? And why?
3. What are the different data tables in QTP
4. What are the different types of object repositories in QTP
5. What in the difference between shared and global object repositories, which one do you prefer and why?
6. What are checkpoints and how many types of checkpoints are there in QTP?
7. What is the difference between database checkpoint and table checkpoint?
8. How do you insert a database checkpoint and a table checkpoint?
9. Can we use text checkpoint on a word document, pdf and a web application? Which of these is not possible if at all it is not possible and why?
10. What is an add-in?
11. What is parameterization?
12. Can we parameterize a link on a website?www.allwalkin.blogspot.com
13. What is synchronization?
14. What is the difference between a sync and a wait statement?
15. What are looping functions in QTP, give examples?
16. How many modes of recording are available in QTP and explain each.
17. What is the default synchronization time in QTP and where and how can you change it?
18. What is an object repository?
19. What is the object identification process that QTP uses to identify an object?
20. What is an ordinal identifier?
21. What is smart identification?
22. What is a virtual object?
23. Can we run winrunner script from QTP?
24. Can we run a Vugen script from QTP?
25. What is a regular expression; give an example that is not from the mercury tutorial.
26. What is the difference between normal recording mode, low level and analog mode?
27. Where does the origin (0,0) lay on the screen for the x and y co-ordinates during low level recording?
28.How u connect bugzilla with QTP
29.User defined functions in QTP and one example?
30.How do you handle objects that were not recognized by QTP?
31.Error handling in QTP and example for that?
32.If there is any error or hard pause in the application, how does your script handle it?

Differences between QTP & Winrunner?
(a) QTP is object bases Scripting ( VBS) where Winrunner is TSL (C based) Scripting.
(b) QTP supports “.NET” application Automation not available in Winrunner
(c) QTP has “Active Screen” support which captures the application, not available in WR.
(d) QTP has “Data Table” to store script values , variables which WR does not have.
(e) Using a “point and click” capability you can easily interface with objects, their definitions and create checkpoints after having recorded a script – without having to navigate back to that location in your application like you have to with WinRunnerwww.allwalkin.blogspot.com

No comments:

Receive All Free Updates Via Facebook.