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
Answers were Sorted based on User's Feedback
Answer / madhusudan
Using Descriptive Programming you can write the code for
(Using VBScript) requirement.
There are 4 types of Frame works supported by the QTP
1.Linear Programming
2.Modular Programming Frame work
3.Key word driven FW
4.Hybrid FW
Hybrid is the combination of 1 or more framworks listed the
above.
Differences between Record&Playback and Descriptive
programming are
1.Record&Playback required application build where as its
not mandatory in Descriptive programming.
2.Without ObjectRepository also we can execute the
Programme in Descriptive programming.
3.Fast execution in Descriptive programming.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Answer / chandu
thats not completely correct.coz in some cases we use
record and playback.but any how if u record it u need to
enhance the script for multiple data testing.so here there
are
1. data driven FW
2. keyword driven FW
3. Hybrid FW
3=2+1
if u are using 1. we used to import an excel sheet(it
contains the input data for the application)so that we can
test for multiple data.
if its 2. then we need to create some some actions and make
it reusable and also create some functions and with these
we can use where ever u want.
so for example:if uu write a function like "login"
so this is the keyword:
so just call the keyword.
like call login in ur script.
if its 3. its a combination of both 1 and 2.
in most of the cases we use 3.
| Is This Answer Correct ? | 0 Yes | 1 No |
LINUX environment supports QTP or not? LINUX environment supports QC or not?
Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP?
Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?
How is the Bitmap checkpoint different from Image checkpoint?
what is defination of regression testing?
1.what is the difference between childobjects and child items in qtp? 2.what is difference between a class and function? 3.can u convert ustimings to indian timings using vbscript? 4.i have scripts in one machine.can i run those scripts in another machine.how?
2 Answers Genpact, Infosys, Symantic Space, TCS,
how i can delete the excel process for the task manager using QTP
-->IF two TextBOxes 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)?
how to merge object repositories?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
Hello, I am working on automating unix application using QTP via terminal emulator.Recording and playback works as i execute my test case. I need to parameterise my data now. Steps to be followed 1. go to the application TeWindow("TeWindow").Window("Connect").WinButton ("Connect").Click 2. Make a transaction to an account I am able to make transaction one at a time (one person when i run the script) and the script is as below and works fine. TeWindow("TeWindow").TeTextScreen ("TeTextScreen").Type "./4ee.sh" TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync TeWindow("TeWindow").TeTextScreen ("TeTextScreen").Type "a21100002" TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync TeWindow("TeWindow").TeTextScreen ("TeTextScreen").Type "tcccc" TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync TeWindow("TeWindow").TeTextScreen ("TeTextScreen").Type "test" TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micF1 TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type "6" TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micF1 TeWindow("TeWindow").TeTextScreen ("TeTextScreen").Type "xexit" TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync 3. Now i need to Make a transaction to the account for the list of people available from data table. How do i do this? Please let me know if you can Thanks, Chaya
i have read that "non-reusable actions can not be called in any other test".but in 'call to copy action' copies non-reusable action in other test also..can u pls help to understand this..