Friday, January 21, 2011

Basic of Automation using QTP


Benefits of Automated Testing
If you have ever tested applications or Web sites manually, you are aware of the drawbacks. Manual testing is time-consuming and tedious, requiring a heavy investment in human resources. Time constraints often make it impossible to manually test every feature thoroughly before the application is released. Serious bugs may have gone undetected. Automated testing with QuickTest Professional addresses these problems by:
§  Dramatically speeding up the testing process.
§  Facilitating the creation of tests that check all aspects of an application or web site.
  • Providing reusability for running these tests every time the site or application changes.
As QuickTest runs tests, it simulates a human user by moving the mouse cursor in
a Web page or application window, clicking Graphical User Interface (GUI) objects,
and entering keyboard input; however, QuickTest does this faster than any human user.

Optimizing Browser Settings


If you are using Internet Explorer as your browser, you should clear the option to use auto complete for user names and passwords. This will ensure that all of your operations are accurately recorded while creating your tests.
To clear the auto complete option:
§  In your Internet Explorer menu bar, choose Tools > Internet Options > Content tab.
§  Click AutoComplete in the Personal information area. The Autocomplete Settings dialog box opens.
§  In the Use AutoComplete for area, clear the User names and passwords on forms option.
§  Click OK to save your changes and close the AutoComplete Settings dialog box, then click OK again to close the Internet Options dialog box.

QuickTest Windows


Before you begin creating tests, take a moment to become familiar with the main QuickTest window. The image below shows QuickTest window as it would appear after you record a test, with all toolbars and panes (except the Debug Viewer pane) displayed. Place your mouse over the titles to display a description of these key elements.

The Testing Process


The QuickTest testing process consists of seven main phases:
1.     Preparing to record
2.     Recording a session on your application
3.     Enhancing your test
4.     Debugging your test
5.     Running your test
6.     Analyzing the test results
7.     Reporting defects
This tutorial provides you with an introduction to each of these phases.

No comments:

Post a Comment