HP QuickTest Professional 10.0 BASICS TRAINING

Automation Fundamental Concepts Testing Process with QTP Record and Run Settings in QTP QTP - Main Window & Commands VBScript for QTP

pptx28 trang | Chia sẻ: lylyngoc | Lượt xem: 1535 | Lượt tải: 1download
Bạn đang xem trước 20 trang tài liệu HP QuickTest Professional 10.0 BASICS TRAINING, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Click to edit Master title style Click to edit Master text styles Second level Third level Fourth level Fifth level ‹#› HP QuickTest Professional 10.0 BASICS TRAINING Tutor: Luong Tran Hy Hien Outline Automation Fundamental Concepts Testing Process with QTP Record and Run Settings in QTP QTP - Main Window & Commands VBScript for QTP Outline Automation Fundamental Concepts Testing Process with QTP Record and Run Settings in QTP QTP - Main Window & Commands VBScript for QTP What is Automation ? Automation is a technology that makes it possible to access software objects inside one application from other applications. These objects can be created and manipulated using a scripting or programming language such as VBScript or VC++. Automation enables you to control the functionality of an application programmatically. Why do you need Automation? Automation helps to avoid human errors and also expedite the testing process When application undergoes regression, some of the steps might be missed out or skipped which can be avoided through Automation Automated tests can be run at the same time on different machines, whereas the manual tests would have to be run sequentially. Automation saves time and effort which results in reduction of the Test life cycle To implement the Test Automation detailed planning and effort is required Benefits of Automation Consistency of Test Execution Reducing cycle time of regression test cycles Data driven testing Repeatability Coverage Reliability Reusability of test wares Why QTP Tool? Add in Manager Default Add-ins ActiveX Visual basic Web Other Add-Ins Siebel Web Services Java SAP Oracle .Net PowerBuilder and many more Technologies Supported Outline Automation Fundamental Concepts Testing Process with QTP Record and Run Settings in QTP QTP - Main Window & Commands VBScript for QTP Testing Process with QTP Quick Test Pro involves 3 main stages: Creating Test scripts Running Tests Analyzing Test Results Testing Process with QTP Creating Tests Create a test script by recording a manual test scenario on the AUT (Application Under Test) using QTP. Quick Test Pro graphically displays each step users perform in the form of a collapsible, icon based tree view in QTP’s Keyword View. Testing Process with QTP Running Tests & Analyzing Test Results Running Tests: Once the test scripts are recorded / created, next step is to execute them…While running (executing) the tests Quick Test Pro connects to the web site or AUT and performs each operation in the test as performed manually while recording / creating tests (test scripts)… Debugging Test : To identify and eliminate the defects in the test scripts. Analyzing Test Results: Once the test scripts are executed, test results and the summary can be viewed for result analysis. Outline Automation Fundamental Concepts Testing Process with QTP Record and Run Settings in QTP QTP - Main Window & Commands VBScript for QTP Record & Run Modes Recording Modes Normal Analog Low level Run Modes Normal Fast Update Options  General Best Practices for General Options: Deselect all check boxes except “Display Add-in Manager on startup” which is default setting. Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed. Options  Run Options  Run Best Practices for Options for Run Mode: Run Mode as Normal: This ensures that the execution arrow appears to help with trouble shooting the tests. Synchronization becomes better for the AUT (Application Under Test) Test Results: Deselect the option “View Results when run session ends” Mercury Tool Integration: Select "Allow other Mercury products to run tests and components“ Screen Capture: Save step screen capture to results "On error and warnings" Outline Automation Fundamental Concepts Testing Process with QTP Record and Run Settings in QTP QTP - Main Window & Commands VBScript for QTP QTP - Main Window QTP Window QTP - Main Window Test Pane: Test Pane contains two labs to view the tests, Keyword View Expert View Keyword View: Quick Test Pro displays your test in the form of a collapsible, icon based tree… Expert View: Quick Test Pro displays the source code (VB Script) of the tests in this view. QTP - Main Window QTP - Main Window Data Table : Data table assists in Parameterizing the tests… Debug Viewer Pane : It assists in debugging tests with the help of Watch Expressions, Variables, and Command. Quick Test Pro Commands Quick Test Pro Commands : The Quick Test Pro commands can be chosen from the menu bar or from a Tool bar. File Toolbar : File tool bar contains buttons for managing the test. Quick Test Pro Commands Test Tool bar : Test tool bar contains buttons for the commands used when creating or maintaining the tests… Quick Test Pro Commands Debug Tool Bar : It contains buttons for commands used when debugging the steps in the tests… Quick Test Pro Commands Action ToolBar: To view all actions in the test flow or to view the details of a selected action… Thank you Learning never ends. Every day is a learning day… * hienlth@hcmup.edu.vn
Tài liệu liên quan