Hello Friends!
In this post, we are going to discuss about Automation Framework! I’m not going to write any bookish definitions here. It’s all what I learned from practical experience.
Okey!
First thing first…
point you enter in Cinema Hall to the point you come out. Here are few typical
steps..
pick a movie broacher somewhere nearby ticket window
influenced by the choice of wife/girlfriend!!)
get the ticket.
show start time, Audi No. (Hall No.) etc.
earlier then show time, watch the movie (along with other activities 😉 ……
and so on….
use to manage and optimize your automation testing.
is a way to do the things in fashioned and organized manner! Framework is
nothing but a concept.
Why I need a Framework?:
movie broacher nearby ticket window??
credit/debit cards?? (and you don’t carry cash..)
tell you show time and Audi/Hall No.??
time??
not..
doing a lot of rework, everything will be here & there and in most of the
time you will end-up with a mess, especially in the large projects.
strategies and how you are going to proceed.
Types of Framework:
How to design a framework?
The first step of any test automation framework is to do a quick POC with few high priority test cases aka ‘smoke tests’. By doing POC, you will identify the object identification issues, challenges, complexities, required test-data and limitation you have. Once you are ready with this information, you can proceed with next steps. On the basis of above information, you can decide what type of framework is most suitable to you.
But before starting, you must take some time to decide your strategies about..
2. Test-Data
3. Function Library
4. Error Handling
5. Controller/Driver script
7. Test Reults
Although both OR and DP have their own pros n cons, but remember, you get full benefit of QTP only when you use OR like debugging, chechpoints etc. So make sure how to identify objects.
Many claim that DP should be used for whole project without using any OR approach, but I disagree. DP is nice thing to use but should be used only when required like if your application is having dynamic objects etc. Doing whole automation using DP without any solid reason is not sensible (personal opinion!).
Keep all the documentation, user guide/manuals, keywords descriptions here.
Result is probably most important part of the framework. Put extra attention to results.. always!!
Why? Because result is the face of your framework! This is what you show to world. If your result is fantastic, nobody bothers what type of framework you use, what the hell you have written in your functions!! 🙂 But if results are not flashy.. then.. you know!!
So never underestimate the importance of the results. It must be very well presented.
Create different folder for the these seven things and keep data in folders accordingly.
This was the one part.
- Try to document each and every thing, as much as you can! like comments in script, modification etc.
- Don’t stick with any particular object identification, use mix of OR and DP
- While using OR, don’t use record and playback, just add object in the object repository and code the script manually.
- Follow proper Naming-Conventions for all your variables, functions, files.
- Define all the variables in you scripts, use Option Explicit.
- Try to keep you functions small to enhance reusability and portability.
- Never hard code any data in the scripts, use parametrization.
- Take regular back-up of your work.
Good one and worth… Thanks for sharing your expertise
It is very nice. thanks a lot for this information. could you please elabotate about controller script.
Thanks
Grt…!
Very much realistic information.
Thanks..
Thanks for sharing information.
very nice and well structured.. thanks..
Hi
I would like have some sample code for keyword driven framework.
hey..can u pls explain POC?
Proof of Concept
Very nice and well structered… will you pls explain more clear for "Controller Script".
Thanks, Prasad
Its really useful and it is practical also .
Thanks for posting.
The Concepts are short and Very Effective ,
Thanks for Posting such a useful information…
Thank You
Vilas Rajeshware
Can you please tell what percentage of bugs are generally found using QTP? Is it more/less than Manual testing? Also, what kind of bugs are usually detected using automation?
it is really very useful .thanks for posting
This is the first blog where i have commented till now. Excellent article "How to design Automation Frameworks in QTP". It is appearing as realistic
just tell me i want to prepare frame fork how can i prepare framework………., plz give me reply
Nice one…
hey!! thanks a lot 🙂 🙂 i understood the real concept of automation framework after reading your article !!:)
I really like it. its so clear & easy to understand. Thanks Again.
Very Useful even for Beginners also. Thanks a lot…
Thanks for sharing information,its really great support for us.
very useful…
This is the first blog where i have commented till now. Excellent article "How to design Automation Frameworks in QTP". It is appearing as realistic
Nice and clear with useful information
I searched many sites for automation definition and not found useful one. I got clear idea after visiting ur site. thanks a lot. very useful info.
Thank you for this real effective information.
Thanks a lot to all of you for your comments.
Really nice…thank you
Very good info, Can you please little bit eloborate with examples of script, folder etc…
This is really Nice
Can you explain the frame work structure/folder?
tell me some sites from where I can download Qtp 10 and 11 on windows xp service pack 2 and 3 on 32 and 64 bit machine
What Exactly is this ? Can u please elaborate it ??
Thank you very much to all of you. I'm glad you liked my posts.
Thanks…it cleared me that framework is just aconcept…thanks it was useful
Nice one.., Thanks for sharing your expertise.. 🙂
Can you please share sample framework?
It will more helpful for us..
Advance Thanks.. 🙂
thanks for info…
thnx for good info, itz very useful
Can u plz show the framework using excel and notepad instead of QTP
Thanks
Tareq
@divya chum
Thank you very much. I'm glad you find it useful.
@Tariqul Islam
I didn't get your query, without QTP? Do you mean Keyword Driven Framework?
Really Helpful. Thank you very much for giving valuable inputs.
I am sick of reading same old answers, definitions every where. Thanks for being so clear. Everybody else just copies and paste in other websites. I hate it so much. Website is full of junk
thank you very much you all!!
Very Nice:)
Can you please tell more about the controller script?
Great…good real time knowledge …Thanks!!
Great information http://www.couponslake.com/
Good Article for QTP Framework
Really Helpful. Thank you very much for giving valuable inputs.
Reply
Thanks!
its realistic, even dummies can easily understand.it will be more useful if u explain with examples or by giving an example.
thanks to the blogger.
This is just like premium show, we just create some automation scripts for that application to check whether this is suitable for automation, if so we will expose to that client saying that we can automate this application. once that is approved by client he will sign for start of automation in detailed
i understood what actually framework is…thanks a lot for the blog.. 🙂
Thanks
Hey Hi…dis blog is useful n worth reading. Can u plz elaborate on controller script
Thank You:)
Awesome….. Hats off 🙂