tag:blogger.com,1999:blog-218132452009-02-21T07:39:38.874-08:00QuickTest Professional™ - An Automation Tool by Mercury - Questions and AnswersQuickTest 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.QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.comBlogger41125tag:blogger.com,1999:blog-21813245.post-39320824868683834202009-01-10T13:16:00.000-08:002009-01-10T13:16:01.071-08:00QTP Question 41: What is the difference between Call to Action and Copy Action?The changes made in <span style="font-weight:bold;">Call to Action</span>, will be reflected in the original action( from where the script is called).But where as in <span style="font-weight:bold;">Copy Action</span> , the changes made in the script ,will not effect the original script(Action)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-3932082486868383420?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-2141302090118192052009-01-09T13:12:00.000-08:002009-01-09T13:12:01.072-08:00QTP Question 40: How does Parametrization and Data-Driving relate to each other in QTP?To data drive we have to parametrize i.e. we have to make the constant value as parameter, so that in each iteration(cycle) it takes a value that is supplied in run-time data table. Through parametrization 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 suggestible, & it’s also of no use.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-214130209011819205?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-56674088741743601012009-01-08T13:10:00.000-08:002009-01-08T13:10:00.382-08:00QTP Question 39: Differences between QTP & Winrunner?<ul><li>QTP is object bases Scripting ( VBS) where Winrunner is TSL (C based) Scripting.</li><li>QTP supports “.NET” application Automation not available in Winrunner</li><li>QTP has “Active Screen” support which captures the application, not available in WR.</li><li>QTP has “Data Table” to store script values , variables which WR does not have.</li><li>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</li></ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-5667408874174360101?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-22444233362708067232009-01-07T13:09:00.000-08:002009-01-07T13:09:00.173-08:00QTP Question 38: Types of properties that Quick Test learns while recording?Types of properties that Quick Test learns while recording?<br /><br />(a) Mandatory (b) Assistive .<br /><br />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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-2244423336270806723?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-20065951798189827642009-01-06T13:07:00.000-08:002009-01-06T13:07:01.032-08:00QTP Question 37: What is a Run-Time Data Table? Where can I find and view this table?In QTP, there is data table used , which is used at runtime.<br /><br />Select the option View->Data table.<br /><br />This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-2006595179818982764?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-75127361777936140852009-01-05T13:05:00.000-08:002009-01-05T13:05:00.340-08:00QTP Question 36: Explain the keyword createobject with an exampleIt creates and returns a reference to an Automation object<br /><br /><span style="font-weight: bold;">Syntax</span><br /><br />CreateObject(servername.typename [, location])<br /><br /><span style="font-weight: bold;">Arguments</span><br /><br />servername:Required. The name of the application providing the object.<br /><br />typename : Required. The type or class of the object to create.<br /><br />location : Optional. The name of the network server where the object is to be created.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-7512736177793614085?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-46808357320939511302009-01-04T13:03:00.000-08:002009-01-04T13:03:00.980-08:00QTP Question 35: How to handle dynamic objects in QTP?QTP has a unique feature called <span style="font-weight: bold;">Smart Object Identification/recognitio</span>n. 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.<br /><br /><span style="font-weight: bold;">Check this out-</span><br /><br />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.<br /><span style="font-weight: bold;"><br />The Smart Identification mechanism</span> uses two types of properties:<br /><br /><span style="font-weight: bold;">Base filter properties</span>—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.<br /><br /><span style="font-weight: bold;">Optional filter properties</span>—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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-4680835732093951130?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-88832782663397893832009-01-03T13:01:00.000-08:002009-01-03T13:01:00.494-08:00QTP Question 34: What are the different scripting languages you could use when working with QTP?Visual Basic (VB), XML, JavaScript, Java, HTML are few of the different scripting languages you could use when working with QTP.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-8883278266339789383?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-60987477985483465242009-01-02T13:00:00.000-08:002009-01-02T13:00:02.642-08:00QTP Question 33: How to handle Run-time errors?<span style="font-weight:bold;">On Error Resume Next</span>: 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.<br /><br />You can then build the error-handling routine inline within the procedure.<br />Using “Err” object msgbox “Error no: ” & ” ” & Err.Number & ” ” & Err.description & ” ” & Err.Source & Err.HelpContext.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-6098747798548346524?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-34188112151850818552009-01-01T12:58:00.000-08:002009-01-01T12:58:00.295-08:00QTP Question 32: How to analyze the Checkpoint results?<span style="font-weight:bold;">Using Standard Checkpoint</span><br /><br />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<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-3418811215185081855?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-52821887611978639102008-12-31T12:56:00.000-08:002008-12-31T12:56:00.900-08:00QTP Question 31: How many types of Actions are there in QTP?There are three kinds of actions:<br /><br /><span style="font-weight:bold;">non-reusable action</span>—an action that can be called only in the test with which it is stored, and can be called only once.<br /><br /><span style="font-weight:bold;">reusable action</span>—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.<br /><br /><span style="font-weight:bold;">external action</span>—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<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-5282188761197863910?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-73505228000664888942008-12-30T12:53:00.000-08:002008-12-30T12:53:00.720-08:00QTP Question 30: How to open a Notepad window without recording a test and without using SystemUtil.Run command?You 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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-7350522800066488894?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-80469496768232191982008-12-29T12:52:00.000-08:002008-12-29T12:52:00.589-08:00QTP Question 29: What are the properties you would use for identifying a browser and page when using descriptive programming?“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”)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-8046949676823219198?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-72299059658288121402008-12-28T12:50:00.000-08:002008-12-28T12:52:22.577-08:00QTP Question 28: Explain the concept of object repository & how QTP recognises objects?<span style="font-weight: bold;">Object Repository: </span>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.<br /><br />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 Ordinal identifier such as objects location onthe page or in the source code.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-7229905965828812140?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-27670679543709480352007-03-06T08:35:00.000-08:002007-03-06T08:36:01.615-08:00QTP Question 27: How to export data present in Datatable to an ".xls" file?<p class="MsoNormal" style="line-height: 12pt;"><b style=""><span style="font-size: 10pt; font-family: Verdana;">How to export data present in Datatable to an ".xls" file?</span></b></p><span style="font-size: 10pt; font-family: Verdana;">DataTable.Export<span style=""> </span>"....xls file name..."<o:p></o:p></span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-2767067954370948035?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com2tag:blogger.com,1999:blog-21813245.post-24284024536862870562007-03-06T08:25:00.000-08:002007-03-06T08:34:38.131-08:00QTP Question 26: How to Import data from a ".xls" file to Data table during RuntimeHow to Import data from a ".xls" file to Data table during Runtime?<br /><br />Datatable.Import "...XLS file name..."<br /><br />DataTable.ImportSheet(FileName, SheetSource, SheetDest)<br /><br />DataTable.ImportSheet "C:\name.xls" ,1 ,"name"<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-2428402453686287056?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com3tag:blogger.com,1999:blog-21813245.post-1163603638082339402006-11-15T07:08:00.000-08:002006-11-15T07:13:58.096-08:00QTP Question 25: How do u create new test sets in Test Director?<strong>How do you create new test sets in Test Director?</strong><br /><br /><ul><li>Login to Test Director </li><li>Click on "Test Lab" tab </li><li>Select the Desired folder under which we need to Create the Test Set. (Test Sets can be grouped as per module.) </li><li>Click on "New Test Set or Ctrl+N" Icon to create a Test Set. </li></ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-116360363808233940?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1157462766596934092006-09-05T06:25:00.000-07:002006-09-05T06:26:06.596-07:00QTP Question 24: What do you call the window test director - testlab?What do you call the window test director - testlab? <br /><br />It’s called "Execution Grid". It is place from where we Run all Manual / Automated Scripts<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115746276659693409?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com1tag:blogger.com,1999:blog-21813245.post-1157462691852696012006-09-05T06:24:00.000-07:002006-09-05T06:24:51.876-07:00QTP Question 23: What does it mean when a check point is in red color? What do u do?<strong>What does it mean when a check point is in red color? What do u do?</strong><br /><br />A red color indicates failure. Here we analyze the cause for failure whether it is a Script Issue or Environment Issue or a Application issue<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115746269185269601?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1155817967671815752006-08-17T05:31:00.000-07:002006-08-17T05:32:47.680-07:00QTP Question 22: How do you do batch testing in Winrunner & is it possible to do in QTP, if so explain?<span style="font-weight:bold;">How do you do batch testing in Winrunner & is it possible to do in QTP, if so explain?</span> <br /><br />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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115581796767181575?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1154442269387995642006-08-01T07:23:00.000-07:002006-08-01T07:25:28.973-07:00QTP Question 21: How many ways we can parameterize data in QTP?<strong>How many ways we can parameterize data in QTP?</strong><br /><br />There are four types of parameters:<br /><strong>Test, action or component parameters</strong> enable you to use values passed from your test or component, or values from other actions in your test.<br /><br /><strong>Data Table parameters</strong> 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.<br /><br /><strong>Environment variable parameters</strong> 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.<br /><br /><strong>Random number parameters</strong> 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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115444226938799564?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1153918765291544802006-07-26T05:59:00.000-07:002006-07-26T05:59:25.343-07:00QTP Question 20: What is the Diff between Image check-point and Bit map Check point?<strong><span style="font-family:Verdana;font-size:85%;">What is the Diff between Image check-point and Bit map Check point?</span></strong><br/><span style="font-family:Verdana;font-size:85%;">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. </span><br/><span style="font-family:Verdana;font-size:85%;"></span><br/><span style="font-family:Verdana;font-size:85%;">You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded).</span><br/><strong><span style="font-family:Verdana;font-size:85%;">Note: </span></strong><span style="font-family:Verdana;font-size:85%;">The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings.</span><br/><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115391876529154480?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1153742816930636912006-07-24T04:53:00.000-07:002006-07-24T05:19:24.593-07:00QTP Question 19: What are Supported Check-Points in QTP?<a href="http://photos1.blogger.com/blogger/5850/2209/1600/QTP.0.gif"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/5850/2209/400/QTP.png" border="0" alt="" /></a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115374281693063691?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1153227728372178142006-07-18T06:02:00.000-07:002006-07-18T06:03:16.446-07:00QTP Question 18: What is Object Spy in QTP?<strong><span style="font-family:Verdana;font-size:85%;">What is Object Spy in QTP?</span></strong><br/><span style="font-family:Verdana;font-size:85%;"></span><br/><span style="font-family:Verdana;font-size:85%;">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.</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115322772837217814?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com0tag:blogger.com,1999:blog-21813245.post-1152182522521602952006-07-06T03:42:00.000-07:002006-08-01T07:31:24.546-07:00QTP Question 17: What is test object model in QTP?<span style="font-family:arial;"><strong>What is test object model in QTP?</strong><br />The <em>test object model </em>is a large set of object types or <em>classes </em>that QuickTest uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that QuickTest can record for it.<br /><br />A <em>test object </em>is an object that QuickTest creates in the test or component to represent the actual object in your application. QuickTest stores information about the object that will help it identify and check the object during the run session.<br /><br />A <em>run-time object </em>is the actual object in your Web site or application on which methods are performed during the run session. When you perform an operation on your application while recording,<br />QuickTest:<br /><br />➤ identifies the QuickTest test object class that represents the object on which you performed the operation and creates the appropriate test object<br />➤ reads the current value of the object’s properties in your application and stores the list of properties and values with the test object<br />➤ chooses a unique name for the object, generally using the value of one of its prominent properties<br />➤ records the operation that you performed on the object using the appropriate QuickTest test object method<br /><br />For example, suppose you click on a <strong>Find </strong>button with the following HTML<br />source code:<br /><br /></span>< type="submit" name="Find" value="Find"><br />QuickTest identifies the object that you clicked as a <strong>WebButton </strong>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 <strong>Click </strong>method on the WebButton.<br /><br />QuickTest displays your step in the Expert View like this:<br /><br />Browser("Mercury Interactive").Page("Mercury Interactive").<br />WebButton("Find").Click </span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21813245-115218252252160295?l=qtpro.blogspot.com'/></div>QTProhttp://www.blogger.com/profile/00752281273106574929noreply@blogger.com1