Explain me in deatail about DATADRIVEN framework including
scripts ?(realtimes plz)(Chandana)
Answers were Sorted based on User's Feedback
Answer / a.thirumalareddy@gmail.com
in DataDriven framework we have to pass the test data for parameterization from external sheet like excel and we have to write script (record and playback is not followed by all companies)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / venkat
Data driven framework is an approach while automating Test
case, in that
"Test script" is being separated from the "test data"
All the test data being send to the Test Script as a parameter
All components should be placed inside a single project folder
Components like
Library folder
Repositories folder
Test Data folder
Business Scenario Folder
Results Folder
Driver Script Folder
We have one Business Scenario and Test data excel sheet
From the Business Scenario Excel sheet, we configure the
Scenario and test case execution
Normally we create "Action" for any execution. But here we
create those action as an ".vbs" file and make it as an
external function, and those functions are kept stored in
the "Library" folder. We call the function using the
function name based on the corresponding test cases while
executing.
For Ex:
U created an "Action1" for "Customer Registration"
In data driven approach, that action, u need to convert
that action as an function
Function Fn_CustomerReg
'Your execution scripts
End Function
And this should be stored as a separated ".vbs" file ex
(customer.vbs)
And associate this function through script whenever u required
We have only one Action, that action we call as an "Driver
Script". That driver script being executed by another ".vbs"
file. We call it as an "Automation file" or "Configuration
/ Execution" file.
Simple we can say,
here we dont maintain 'n' number of "Actions".
Instead of "Actions", we create "Library Functions"
To make any changes of execution, we dont require to change
the code.
Instead of that, we can configure in the "Business
Scenario" excel sheet, which test case to execute and how
many times it to execute.
And test data are being separated from the "Test Script"
Advantage
Code Maintain and execution is simple
Disadvantage
Code creations are complex
If you are not cleared with this explanation, i explain in
detail clearly through email.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / pallavi nandula
QTP can be used with Keyword View(u do not need to program
the automation script, thru Record/playback code gets
generated automatically) and Expert View (automation code
is manually scripted). Though "Data Driven" testing is
possible thru both the views, data driven framework is
mainly concerned with Expert view. For example, for the
fields that u want to parameterize, we store the respective
field values(data) in a data table such that for the each
iteration u run, data is driven from the data table.using
the object model reference ur code in expert view can be
further enhanced.For ex: for the client server flight
example, try different wrong logins(by parameterizing)using
function concept and capture the recovery scenarios and
automate the login such that after 2 or more failures user
successfully logins.
| Is This Answer Correct ? | 1 Yes | 2 No |
How to fetch web elements count from Google Page which contains letter "e"
If our application contain one image while executing script application failed to show that image but you have to check that image by importing dynamically from other location... Can we use Check Points here on dynamically imported image?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
Does quicktest professional (qtp) is unicode compatible?
I am a beginner plz tell me,how do we write scripts in QTP? In my opinion we can write scipts in expert view or there is another option where we can write scripts. plz tell me.
Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office they want to schedule individual scripts of QTP so that it can run unattended during night time, Please help me how to do that. 2. what is the use of silent test run in qtp can I schedule the scripts in Silent runner, Please explain. 3.I retrieved data from the database using output value -> Database output value. the result of the query for eg is 5 rows, iam able to output the first row by selecting the cols and adding it to output, but am not able to do it for the rest of the rows. please tell me how to do it. Sorry for posting so many qns, am not able to find answ to any of the above in any websites, hoping that someone would really help me with these here, please help me. awaiting for ur immediate revert. Priya
We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)
What does "Dynamic change on web pages" means.As per my knowledge, this comes in "Complete" level of Active screen capture levels, where it says, "Also dynamic changes on web changes are saved.so i want to know what type of dynamic changes are made and is this dyanmic changes efftes only on web application or any other?
What is the parameterization? Give one example?
What is difference between version 6.5 and 8.2 in QTP?
What is reusable action?
How can we disable smart identification at the time of recording? Ideally, smart identification should be enabled only at the run-time.