hai friends
i'm learning qtp now where we r using only record &playback
frame work.and people r saying in realtime they won't use
this frame work. if so what frame work actually using in
realtime .and could you give explanation comaparing the
record &play back fm and what ever FWyou r using in your
organization.
hoping cool response.
thanx in advance
Answer Posted / sharad garg
A framework is a mechanism to run the test cases and store
the test results such that they can be further used for
manipulation. There are various types of framework:
Record and Replay - U cant enhance the tests and can record
only static objects in application,It fails where dynamic
objects or application in which values are constantly
changing are encountered.
Keyword Driven- This is a table driven framework which
stores keywords as parameters to parameterise the qtp
scripts or business functions which are called by a business
function script (as a result of functional decomposition of
business functions). There are three scripts:
1.Input script
2.Main Script
3.And Output script
Data Driven: Input and output parameters to parametrise the
qtp scripts, Imput parameters like enviornment variables, or
global variables which are set during the launch of qtp are
used.output parameters return values through means of
business functions. At first input script launches qtp and
set the paths like reporting areas, folder structures and
test results folder and return the control to controller
script or main script.
Main script is a business function script which loads the
Test cases list in qtp, selects a corresponding row in
keyword table for an object and pass the parameter value
(from test data.xls) to the functions by calling functions.
These functioons take input variable from test data.xls and
returns the values in form of output variables which are
then manipulated, either stored in data table or send to
test results folder through output script.
These functions/ business scripts provide modularity to the
test cases as same function is reusable across application,
and multiple test cases can be tested by one function, Hence
there is no need to write multiple qtp scripts to test
multiple test scenarios. You can parameterise one BFS
(business function script) like this for different values
and fields in your application.
There are methods for fetching values from /to application
and also set them in datatable which can be accessed through
datatable methods in qtp.
For more details : email: sharadgenius@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to add synchronisation points in qtp?
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
Explain the types of object repository?
What is the difference between the design-time and run-time data tables?
Explain more about the Test Fusion Report of QTP?
what is the difference between the modular framework and datadriven frame work
How will you check a web application for broken links using qtp?
how to evalute defects in QTP script?
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
What are table and db checkpoints?
How can you pass value one action to another action?
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
Explain about the quicktest professional (qtp) automation object model?