Wednesday, February 2, 2011

QTP FAQ 6

This mode records exact mouse and Key Board operations you perform in relation to the screen /Application Window. This mode is useful for the operation which you can record at Object Level, such as drawing a picture, recording signature. The steps recorded using Analog Mode is saved in separated data file, Quick Tests add to your Test a Run Analog File statement that calls the recorded analog File. This file is stored with your action in which these Analog Steps are created. The Step recorded in Analog mode can not be edited within QT.
Window is a seperate window that appears on clicking on a particular link on which we can perform actions like edit the content etc.This will contain many objects like chkbox,edit box, combo box etc.

Dialog box is used by developers to validate a field.It will contain an alert message and OK or/and Cancel buttons.

"name" would be another property apart from "title" that we can use.
ex: Browser("name:="xxx"").page("name:="xxxx"").....
OR

We can also use the property "micClass".
ex: Browser("micClass:=browser").page("micClass:=page")....

As you encounter failures in the application when analyzing test results, you will create defect reports in Defect Reporting Tool.
right click ont he database table.

sheet->import->database

create the connection

write the sql
Look at qiuck test plus with searching the word dynamic (i will give u apaste)
Using Property Pattern to Identify Objects
If certain object property values in your Web site or application are generated dynamically for all objects of a given type, you can create a property pattern configuration file that instructs QuickTest to automatically record the object property string as a regular expression.

Note: The property pattern configuration file applies only to constant test object properties of type String. It does not convert the expected values of checkpoints (including automatic checkpoints) to regular expressions.

For example, suppose a Web site displays a number of thumbnail photographs and clipart images as the results of a search, with links to page containing a larger version of each image. The image name property for each image is generated dynamically, so the name of the



U've something called "Object Mapping" under Object Identification. This is only for Standard Windows Class. U can map the Tree View to WinTreeView and then try recording. It works.
If you know the one property of the object .that is sufficient for the QTP to identyfy the object.if u know the one object property.at that time we need to use object identifier to identifithe object we need to add some more properties of the object. to give uniqe identification for the object.Or we need to go for the discriptive programming ,it bypass the objectrepository


Using regular expressions concept you can handle dynamic webpage links


while debugging your script, using command tab you can execute a line of script to change or set the current value of a variable or object. Further execution of your test will use the changed value.
In qtp the compiled modules are called library files .

so write different files in a file extention with .vbs and call this in qtp test scipt file


We generally use virtual object wizard to map the non standard windows object to standard window object.when you use the virtual object wizard some times the check points will not work.
Quick Test 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.
In addition to the creation of the excel object, you can use the ADO concept as well as the inbuit dataexport function of QTP.

1) ADO : In this , you have to create one DSN through ODBC for the Microsoft Excel *.xls driver. Using this define ADODB.Connection and Recordset for the required excel which you want to update. Then simply you can update any column using Recordset.Updte concept similar in VB

2) DataTable.ExportSheet "C:name.xls" ,1


The content of objects in a web page or application changes due to dynamic content ,u cn create dynamic descriptions of these objects so that quick test will recognize them when it runs the test. you can use SetToproperty method to modify object properties during test run without changing the properties valuesin the object repository, you can use set of the properties that QT uses to identify the object .so that it will be able t identify the object even some of its properties change dynamically. you can use object properties dialog box, object repository , regular expression in that to identify the object, after that use GetRoproperty method to capture the content of dynamically changing object.

syntax:Browser(<browsername>).page(<page name>).webelement(<web object>).SetToProperty "Index" , 2

syntax:Browser(<browsername>).page(<page name>).webelement(<web object>).GetRoProperty(<property>) or use (text)
Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner

Pr Action: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner


Peraction repository:
1.This is the default repository.
2.Peracction repository is local and it is specific to actions ie., it will be used for a particular action only.
3.Prefarable when application is not dynamic with respect to time.
Shared object repository:
1.This is the global one, it stores objects in one file and can be accessed by multiple tests in read only mode.
2.Prefarable when application is dynamic with respect to time.

No comments:

Post a Comment