I have written below reply for a question asked about "Framework in QTP" in our QTP knol
The below link may help to get some idea about Keyword driven testing.
http://mercuryquicktestprofessional.blogspot.com/2006/11/whats-your-automation-framework.html
In case of keyword driven testing, we need to do proper planning and initial huge effort. Anyway it will give benefit of easy maintenance and easily adding more test cases/scenarios.
As we see the keyword view in QTP IDE, the keyword driven testing involves specifying the test steps in below format
Object Action parameter
e.g
Browser("FireFox").Page("QualityPointHome").webEdit("username").Set "QualityPoint"
Here,
Browser("FireFox").Page("QualityPointHome").webEdit("username") is the Object
"Set" is the Action
"QualityPoint" is the parameter
Here we can change any of the three things to create test steps.
Regarding your question, the framework design will purely based on your requirements and your way of thinking. There is no Solid rule to follow.
Personally, I would like to have my own framework (hybrid framework) designed according to my own requirements.
Anyway, the best practice is, we should create below sub folders in your root folder.
ObjectRepository-> To keep your shared object repositories.
Datatables->To keep QTP data tables and external Excel sheets.
Config-> To keep environment variable xml file
RecoveryScenario ->To keep your recovery scenario files.
Tests-> You can keep your QTP Tests here. You may include Test containing Reusable Actions here. And a Test which is getting used as driver script can also be stored here.
library->you can keep your vbs file which contains vbscript functions.
Results-> You can store Result files (Either QTP result file or customized result file) here.
Note that the above thing is NOT answer for your question. Just I am trying to explain that there won't be any solid rules/approach for creating QTP framework.
eBook for learning Software Testing and QTP Automation.
More Articles...
Search This Blog
Blog Archive
-
▼
2009
(257)
-
▼
August
(14)
- Framework in QTP
- Disadvantage of Descriptive Programming in QTP
- We have added enhanced features to our Quiz
- Google includes Label Cloud for Blogger Blogs
- Use className instead of class for IE.
- Medical and Health Care News
- Tamil News
- Google SMS Channel for getting Free SMS in India.
- Submit your Article link or URL of your website or...
- CSS - Workaround for max-width property in IE6
- "Hans Christian Ørsted" is getting introduced by ...
- Why Google is acquiring On2?
- FCC inquires Apple about reason for Google Voice r...
- SEO friendly URL or Pretty URL using Apache mod_re...
-
▼
August
(14)

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment