Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

So it’s been 5 years since I have been working on manual testing and from 6 months back I was working on QTP 10.0 version at home. I understood some basic things and can write basic QTP scripts for web based applications.

I have written some scripts for my web based application, but I honestly have no idea, how to start the framework design in QTP.

My goal is to learn the building QTP framework from the scratch, would be nice if an automation test engineer can respond, how can to start designing QTP hybrid framework frok the scratch. Thanks in advance.

share|improve this question

3 Answers 3

The question is too broad, however I will try to answer as best as I can.

A framework is a combination of predefined process and components that can be used to write actual automation scripts.

Following are the critical features of any automation framework

  1. Test GUI Object Repository - Any UI automation will have objects to interact with. These object will have to be stored and retrieved in an efficient manner and used in automation scripts. Either Object repository or descriptive programming approaches can be used however it should be uniform across the automation project, otherwise you will have very troubled automation project, where you can't find if you already have a certain objects or if you have to create a new one. This will create confusion and duplicate objects.
  2. Configuration - How are you going to do the configurations required for your tests, how are the people going to change this configuration settings? ini files or property files or xml files can be used what ever approach is used, certain convention has to be formulated and communicated to the entire team.
  3. Data parameterization & input data modifications - The main requirement of automation tests is that it can run for different sets of data without too much modification or fiddling. Typically data will be stored in excel files when it comes to QTP. However Certain wrapper funcitons needs to be written so that bulk data required for tests can be read easily. For example, if all your tests need address which consists of 10 fields, your framework should provide quick way for people to read all 10 fields without having write code for all ten fields. How will you maintain data for hundreds of tests? Are you going to maintain in one excel file? or are you going to create multiple xml files? How are you going to store common data? All these questions must be answered and necessary functions must be written before you can call your framework complete.
  4. Test Dependencies & Order of execution - How does your framework solve the problem of running all pre-requisite steps required for certain tests? Are there going to be dependencies between tests? In such case how will you ensure all tests can be run without duplicating the code? Your framework should take care of that. How will the tests be triggered?
  5. Filtering of tests - Your framework should also take care of easy filtering of tests. If you want to run only 20 out of 100 tests you have, how will you do that? Some frameworks do that by making use of extra column in your data file where you mention whether a certain test should run or not. There are other approaches as well.
  6. Naming conventions - Naming conventions are very important for tracing of tests. Especially if you don't use a test management tool and test automation tool from same company. If your company writes all tests in excel but uses QTP to automate how will you ensure that your automation scripts are running all the tests? Naming conventions will help you there.
  7. Error handling incase of exceptions - What happens when a test is stuck and couldn't continue, how does your framework ensure that you don't come back in the morning and find that your test execution is stuck in test number 2?
  8. Easy reporting of failures - How does your framework report failures? Is it always going to be reports that are generated by QTP? Is it easy for a project manager to see the QTP report and understand how many tests failed and how many passed?

Try to solve each of these questions, you will be able to create a framework on your own by the end of implementation of solutions for all the above issues.

share|improve this answer

Have a look at the link. Hope this should get you started http://www.automationrepository.com/2012/03/qtp-framework-types-an-introduction/

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

i highly recommend the course "Mastering Test Automation" offered by SQE. all aspects of the test automation framework are covered (high-level).

http://www.sqetraining.com/training/course/mastering-test-automation

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

1  
Daniel I didn't see any mention of QTP in the course outline of the provided link and it sounds like Girish is looking for information specific to the QTP framework. –  Francis Nov 26 '13 at 4:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.