Showing posts with label QTP Questions and Answers. Show all posts
Showing posts with label QTP Questions and Answers. Show all posts

Friday, 6 February 2015

QTP: QTP - Vbscript interview questions and answers Page8

Below are some important QTP interview questions which are asked in most MNC company interviews for beginners or professionals.

71.  What are Output values and why they are used ?
Ouput values are values we can get those values from our application. We can put those values in data table and wherever we want we can use those values. In Parameterizing Tests, you created parameters that inserted different data into each iteration of a test run. You can also retrieve data from your application and output it to the Data Table, using output values. This data can then be used at a later stage in the test. QuickTest displays the retrieved data, following the test run, in the Runtime Data Table

72.  What are the Different types of Functions available in QTP and Explain ?
Functions are 2 types   1)VB Script Functions-abs,now….etc    2) User defind Functions

73.  What are the main Differences of QTP and Win Runner?
 1) QTP is icon based testing tool.
        2) QTP uses VB script while winRunner uses TSL which is C language based
        3) QTP has Recovery Manager .Win Runner 7.5 also having Recovery Manager.
        4) QTP generates output values and these can be used as input values to other Objects
5) QTP has userfriendly Browser, At a glance we can have a look of scripts ,Active Screen and Data XL sheet
 6) In QTP we can’t put Runtime Database check Point. In win runner we can

74. Differences between Text and Test Area Checkpoints?
 Text Checkpoint—Enables you to check that the text is displayed in a screen, window, or Web page, according to specified criteria. It is supported for all environments
Text Area Checkpoint—Enables you to check that a text string appears within a defined area in a Windows application, according to specified criteria. It is supported for Standard Windows, Visual Basic, and ActiveX environments

75  In what occasion we can specify Global sheet and Action sheet?
 We store data in the Global tab when we want it to be available to all actions in our test, for example, to pass parameters from one action to another.
We store data in the action’s tab when we want it to be available to only one action in our test

76.  What are Main panes available in QTP Test Browser?
 Test pane—Contains the Tree View and Expert View tabs
       Test Details pane—Contains the Active Screen
      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 toolbar by choosing View > Debug Viewer.)

77.  How we can import data from database?
 we can import data from a database by selecting a query from Microsoft Query or by manually specifying an SQL statement
Right-click on the Data Table sheet to which you want to import the data and select Sheet > Import > from Database. The Database Query Wizard opens. Select your database selection preferences like create query using Microsoft query or specify SQL statement manually and click next. After words by specifying connecting string and SQL statements. We can get data from database to data table.

78.  Define Virtual object?
Virtual objects enable you to record and run tests on objects that are not normally recognized by QuickTest. We can teach QuickTest to recognize any area of your application as an object by defining it as a virtual object.Some times QTP may not recognize some objects. In this kind of situations Using New Virtual Object we can convert Custom Objects into standard Objects.
More Questions & Answers :-
Page1  Page2  Page3  Page4  Page5  Page6  
Page7  Page8

QTP: QTP questions and answers for Experienced Page7

Below are some important QTP interview questions which are asked in most MNC company interviews for beginners or professionals.

61.  How will you check that your test cases covered all the requirements?
There is one formula to know the number of test cases is Minimum Number of test cases=No. Of inputs *1.6

62.  How is test case write?
Effective test case contain Test case description, test i/p data,exp o/p and actual o/p.

63.  What is meant by hot keys?
A hot key is a key or a combination of keys on a computer keyboard when pressed performs a task. The specific task performed by a particular hot key varies by operating system or application. However, there are commonly-used hot keys. For example, pressing

64. With what extension you can save the list of tests in a file to run in Test Batch Runner?
 .mtb

65.  What are the key elements available in Test Result window?
 Test Result File bar, Menu bar, Test results tool bar, Test result tree, Test result details, Status bar.

66.  What are Main panes available in QTP Test Browser?
 Test Pane (Tree & Expert), Test Details Pane (Active Screen), Date table, Debug viewer Pane.

67.  How many tabs are available to view your test in a Test pane and what are they?
 Tree & Expert

68. What are the 3 main stages involved in Testing with QTP?
 Creating Tests, Running Tests, Analyzing Tests.

69. Write a Function to capture the Pop-up's?
 Here I am writing steps to handle Pop-up Exceptions
1)select the Recovery scenario manager
2)Press the new scenario
3)click next  4)select the pop-up exception
5)select the pop-window which we want to handle(capture) by clicking the spy button
6)press next  7)select the specified option like keyboard or mouse operation press next
8)select the specified option cleck default button or press enter
9)cleck next and uncheck add another recovery operation
10)cleck next and select proceed next step
11)click next and give the scenarion name and description
12)click next and select add scenario to current test and add scenario to default setting.click finish
afterword save that scenario.

70.  What are different types of exceptions ?
4 Types of Exceptions are there
1)Pop-Up exceptions
2)Object State exceptions
3)Test Run error exceptions
4)Application Crash exceptions
More Questions & Answers :-

QTP Tutorials & Interview Questions

Below are some important QTP interview questions which are asked in most MNC company interviews for beginners or professionals.

51.  What is system testing and what are the different types of tests you perform in system testing?
System testing is a type of Black box testing. System testing means testing the application. After the integration testing, usually will do system testing. Functionality, Regression, and performance testing’s comes under system testing.

52.  How do we know about the build we are going to test? where do you see this?
in test plan we r going to have all the details about who should test which tests in a team which is given by team leader.according to that all the group will do their testing

53.  What did you do as a team leader?
The roles of a lead1) Before the project gets started, will conduct one team meeting and discuss briefly about the upcoimg project2) will distribute the work among the team members and let them know which part of the application they are going to test3)

54.  What test you perform mostly? Regression or retesting in your testing process?
Retesting is the repeated execution of the test case which results in a fault,with the aim that fault has been cured,Regression testing is the renewed testing of already tested program or part after modification with the aim that the modification had.

55.  What is the difference in testing a CLENT-SERVER application and a WEB application?
Client/server application is a 2-tier application where as web application is an n-tier application.

56.  What is the difference in testing a CLENT-SERVER application and a WEB application?
Suganthi Wrote: In both of the Test we are performing Load and Performance Testing. Testing the application in intranet (without browser) is an example for client -server. Testing an application in internet (using browser) is called web testing

57.  What command is used to launch a application in winrunner?
Invoke application command used to launch application in WR. See function generate in WR

58.  Without using gui map editor? We can recognize the application in WinRunner ?
Without Using GUI map Editor, We can recognize the Application in WinRunner by using Rapid Test Script Wizard, but it is also recognize only Client server application, not Web based application.

59.  How can we write a good test case?
Prasad Wrote: how to conduct a testing in Broken-links using WinRunner? Please If you know the Answer for a question .give that. or else submit question  aging.

60.  For a triangle (sum of two sides is greater than or equal to the third side),what is the minimal number of test cases required.
Generally, we will calculate the number of test cases that depends on the particular module and its complexity. Minimum number of test cases= (number of inputs) multiply (1.6) (approx. calculation.
  More Questions & Answers :-

Technical Round QTP Interview Questions and Answers

41.  What would be strategy to fix bugs in an unknown piece of code? | QTP Questions
R&D works means basically we can say it is a verification process. Before you implementing some logic into your function you have to review those to find is their any errors which can be cleared by goingthrough that piece of logic we are going

42.  If a customer wants a new feature to be added, how would you go about adding that?
First Dev team do some R &D on required new feature, weather it is feasible or not.. If it is feasible then onle we will think further on that,  We will update our old requirement docs and test plan. After that we will create some test

43.  Did u ever have to deal with someone who doesn't believe in testing? What did u do?
geetanjali Wrote: i will explain if the product will release without testing it can cause loose of quality, customer relaibilty, loss of reputation, and even loss of life, in a normal IT company there are 1:1 tester to developer, but in NASA there are

44.  Generate test cases for replace string method
1. If characters in new string > characaters in previous string, none of the characters should get truncated.  2. If characters in new string < characters in previous string, junk characters should not be added.  3. Spaces

45.  Write test cases for char * my_itoa(int n) method? What if this function is mission critical? How will you test it? How can you speed up the implementation?
char * my_itoa(int n) method For this function :  First I will pass correct argument and checks weather it is functioning correctly or not for correct arguments. I will pass float as argument, and check weather type casting is happening

46.  How will you test a keyboard?
First check the requirements of the keyboard as we are familiar with keyboards, check the dimensions and design of the keyboard as requirements next checks the total no. of keys and check whether all keys are present and present correctly in their specified

47.  How will you test a newly installed elevator? What will you be the broad categories of your test cases.
go through the requirements.. check for the maximum load cpacity.. check wheather the system is funcitoning properly.. check for the different switches awilable.. check their funtionality...

48.  What is defect leakage?
Defect leakage defines the time gap between defects found to defect resolved

49.  What are the flaws in water fall model and how to overcome it?
Since testing comes at the last stage , there are huge chances of defect multiplication, defects will be migrated to every stage wastage of human resources and time delays are also introduced

50.  How does u test a weblink which is changing dynamically?
This could be tested through the automated test tools like rational robot and winrunner.
 More Questions & Answers :-

Latest Quick Test Pro Interview Questions And Answers

31.  How do you test siebel application using qtp? | QTP Questions
In SWE section u need to addAutomationEnable = TRUE and at the same time you need to use SWECmd= AutoOn in the URL

32.  How many types of Actions are there in QTP? | QTP Questions
QTP structured by actions. actions are subprocedures which perform certain actions on application under test.there are 2 types of actionsregular actions (non reusable actions) reusable actions regular actions:regular actions are used only in the script in

33.  How do you data drive an external spreadsheet? | QTP Questions
Import from External Spreadsheet File by selecting Import then From File .  This imports a tabbed text file or a single sheet from an existing Microsoft Excel file into the table.  The sheet you import replaces all data in the currently selected

34.  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? | QTP Questions
 Another alternative to open a notepad is to use ShellObject. Check out with the following example:Dim aSet a = WScript.CreateObject ("WSCript.shell")a.run "notepad.exe"

35.  how many types of recording modes in QTP?describe each type with an example where we use them? | QTP Questions
3 types of recording modes in QTP.1.norma 2.analog mode 3.low level recording mode.pls describe where we use them exactly..

37.  How will you test a stapler? | QTP Questions
Using user acceptance test

38.  How will you write test cases for a code currently under development? | QTP Questions
The First Thing I will go through the Requirments if it is not understandable then we will conduct Requirment Analysis within our Team, then if need we will get the knowledge on the product from the developers.after that i will Prepare Requirement Traceblity

39.  Describe the last project scenario and generate test cases for it? | QTP Questions
Based on the last project functionality we write test cases for it.

40.  If there are a lot of bugs to be fixed, which one would you resolve first. | QTP Questions
As a tester.. We donot fix bugs.. we only find bugsAs a developer... Bugs are to be fixed basing on the Priority and severity of bug.Sometimes even the severity is low..but if attaches to major functionality, then priority will be more to fix that bug..
More Questions & Answers :-

Basic QTP interview Questions and answers for Freshers Page3

21.  What the differences are and best practical application of each. | QTP Questions
Per Action: For Each Action, one Object Repository is created.  Shared: One Object Repository is used by entire application

22.  Explain what the difference between Shared Repository and Per_Action Repository. | QTP Questions
In Shared reporsitory, one object is used in more than one actions and in per action reporsitory, everytime in every action, objects are stored differently and are not shared.

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

24.  What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them. | QTP Questions
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

25.  Can you do more than just capture and playback? | QTP Questions
Yes you can do more than capture/playback. Descriptive Programming is the answer to this question. We can write scripts without recording and it would still work fine.

26.  How to fetch test data from Database by using QTP? | QTP Questions
In order to fetch test data from Database we have to create a adobdb connection object to connect with data base. the syntax is .... >CreateObject("Adodb.connection").

27.  How to do the scripting.  Is there any inbuilt function in QTP as in QTP-S.  Whatz the difference between them?  how to handle script issues? | QTP Questions
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.

28.  What is the difference between check point and output value. | QTP Questions
Additional comment on Above comment:An output value is a value retrieved during the runsession and entered into runtime table or data table subsequently it can be used as input value in your test.

29.  IF we use batch testing.the result shown for last action only.in that how can i get result for every action. | QTP Questions
You can click on the icon in the tree view to view the result of every action

30.  How the exception handling can be done using QTP. | QTP Questions
Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps 1. Triggered Events 2. Recovery steps 3. Post Recovery Test-Run .
More Questions & Answers :-

QuickTest Professional (QTP) Questions and Answers Part2

11.  Few basic questions on commonly used Excel VBA functions. | QTP Questions
Common functions are:  Coloring the cell Auto fit cell setting navigation from link in one cell to other saving

12.  Explain the keyword createobject with an example. | QTP Questions
Createobject:Creates and returns a reference to an Automation object.Example:Dim ExcelSheetSet ExcelSheet = CreateObject("Excel.Sheet")

13.  Explain in brief about the QTP Automation Object Model. | QTP Questions
Hello Friends,              Can anyone explain, as what is a Framework and how to create a Framework using any automation tool like WinRunner or QTP?        

14.  How to handle dynamic objects in QTP? | QTP Questions
Using GETRO Property we will handle the runtime objects.

15.  What is a Run-Time Data Table? Where can I find and view this table? | QTP Questions
The test results tree also includes the table-shaped icon that displays the run-time Data Table—a table that shows the values used to run a test containing Data Table parameters or the Data Table output values retrieved from a test while application

16.  How does Parameterization and Data-Driving relate to each other in QTP? | QTP Questions
How i can get evaluation version of QTP.

17.  What is the difference between Call to Action and Copy Action? | QTP Questions
When u insert a call to action,they r read only in the calling test.It can be modified in the original test.where as come to copy action,you can make changes to the copied action,your changes will not effect the original action where it created.

18.  Discuss QTP Environment. | QTP Questions
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

19.  Explain the concept of how QTP identifies object. | QTP Questions
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

20.  Differentiate the two Object Repository Types of QTP. | QTP Questions
In Qtp there are 2 object repositories, they are1.Shared Object Repository2.Per Action Mode,by default it's per action mode.we will use shared OR for calling a particular action,it's like calling external libraries.we will use per action for a particular
More Questions & Answers :-

78 TOP QTP Interview Questions and Answers pdf

Below are some important QTP interview questions which are asked in most MNC company interviews for beginners or professionals.

1.  What are the Features & Benefits of Quick Test Pro (QTP)..? | QTP Questions
Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation “zero-configuration” Keyword Driven testing technology in QuickTest Professional 8.0 — allowing for fast test creation, easier

2.  Where can I get Quck Test pro (QTP Pro) software.. This is Just for Information purpose only. | QTP Questions
Introduction to QuickTest Professional 8.0, Computer Based Training: Please find the step to get QuickTest Professional 8.0 CBT Step by Step Tutorial and Evaluation copy of the software. The full CBT is 162 MB. You will have to create account to be able

3.  How to handle the exceptions using recovery secnario manager in Qtp? | QTP Questions
There are 4 trigger events during which a recovery scenario should be activated. They are A pop up window appears in an opened application during the test run. A property of an object changes its state or value. A step in the test does

4.  What is the use of Text output value in Qtp? | QTP Questions
Answer posted by shreethik on 2005-06-09 08:36:38: Output values enable to view the values that the application takes during run time. When parameterized, the values change for each iteration. Thus by creating output values, we can capture the values that

5.  how to handle java tree in QTP. | QTP Questions
Hi,    first of all we need to have a java add-in to handle a java tree. In tools option we have the "object identification" drop down list. There we have the java option to recognize the objects there select the tree option. Add the properties

6.  What is the file extension of the code file & object repository file in QTP? | QTP Questions
Regarding code I have no idea but for object repository there are 2 files Shared repository .tstper test .mtr

7.  Explain the concept of object repository & how QTP recognises objects? | QTP Questions
With QTP 8.2, there available QTP Plus,setup.It provides Repositories Merge Utility.The Object Repository Merge Utility enables user to merge Object repository files into a single Object repository file.

8.  What are the properties you would use for identifying a browser & page when using descriptive programming? | QTP Questions
For Browser We will have to see for "title"For Page also We will have to see for "title"

9.  What are the different scripting languages you could use when working with QTP? | QTP Questions
This will also support java script, but i hve not tries refer Quick test plus help for each functions they have give code in vbs and js.

10.  Give me an example where you have used a COM interface in your QTP project? | QTP Questions
com inteface appears in the scenario of front end and back end.for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface.of which COM wil be one among those intefaces.
More Questions & Answers :-