HP quicktest Professional Course Notes

Source: Internet
Author: User

The company purchased the qtp test program for HP and taught by HP.

 

Employee: Yang zhixiang

The installation, configuration, and basic operations of the topic on the first day (morning) are described in the installation and configuration procedures to implement simple recording and playback functions. Record the ticket booking process and play back the basic operation mode of common qtp. Note: test items must comply with the reliability, accuracy, predictability test process reuse, consistency, and production test requirements in accordance with the constraints of the automated Use Case questions: programs involved in recording and playback must be in the same environment. Otherwise, errors may occur. You cannot capture the action of double-clicking a column to bring up a new window.

 

On the first day (afternoon), the synchronization point synchronizationpoint briefly describes how to set the synchronization point of the program. Wait for the Data Synchronization example to enter the user name and password, log in, and display "logged in". Set the synchronization point here, the adjustable wait time is usually applicable to some events with long synchronization latency. The following statements are usually used for synchronization of logs, read lists, and other remarks: program progress 100% status message synchronization object subject object library objectrepository simple description set Object Library, add and modify control object example on the test system interface add page text object username, you can set object values in an action. Achieve the effect of entering the user name. This feature is applicable to debugging when there are few changes on the interface and a small number of objects are added. This avoids adding objects when the value of the attachedtext control of the classname control type is re-entered, you can select "add" on the page, or select "add all default recognition controls". The verification point checkpoint is a simple description to set the verification point. After you verify the arrival of the verification point, after logging on to the property example of the interface control object, check whether there are "Login successful" and other characters on the page. It is often used to verify data input, object attributes, and other remarks for data verification. You can use a regular expression to determine whether the data is successfully logged on.

 

The next day (morning), the input and output of the topic, a simple description, uses the datatable loop to retrieve data and take the control attributes and output them to the datatable example for login, and uses the datatable to retrieve the username and password to the text box, obtain the login success information and output it to the able. Common usage is applicable to cyclic test data. The output result is displayed in window ("flight reservation "). winedit ("Tickets :"). output checkpoint ("Tickets:"). Split. Add reference action. Simple Description: split an action into multiple instances and execute them in steps, or copy and reference an existing action example to split the total action into registration action and login action for separate execution or one-step execution. You can also separately reference login action in other projects, actions can be generated separately from each module of the system, it is convenient to test and modify the maintenance remarks separately. Split the action from the selected row into two actions. Copy an existing action. You can modify the existing action to reference an existing action. Only the referenced action can be modified. action, synchronously reference action

 

The next day (afternoon), after manually writing a test action simple description, add an object, manually enter the test code, run the test object example, add a webpage object, and enter the code for entering the webpage path, this page is usually used to manually write test code remarks such as systemutil run,ii%e.exe "," www.baidu.com "browser (" webpage object name ") when a few changes are made to the written action "). control type ("Control name "). method topic custom attributes, Judgment, generate report simple instructions to retrieve a control attribute and assign it to the custom attribute. After judgment, generate the judgment result report example STR = Window (window name ). control type (Control name ). property if STR = XX then reporter. reportevent micdone, "calculation result", "correct" end if commonly used is suitable for verifying access data and generating report remarks msgbox pop-up messages

 

On the third day (morning), the database checkpoint/shared object/low-level recording/virtual object Simple Description Sets the Global Object of the database data verification point, you can use low-level recording to simulate recording of virtual objects in multiple actions to insert an order and read the latest record from the database. Compare the order number. If correct, the insert is successful. Common Database verification points are used to determine whether the output result after the program execution is consistent with the database to export a local object as a shared object, so that multiple people can work together to develop and record detailed events through the box selection, select a region and define it as a virtual object. Note: You need to set a data source for the database verification point. Select a query condition and set the query results to simulate events that cannot be recorded in detail after the recording is completed in normal recording. For example, you can drag the cursor to the track.

 

The third day (afternoon) topic recovery scenario restores the system monitor system resource monitoring tool. A simple description shows that when the recovery system runs to a specific State, the scenario is restored, run the scheduled action system monitor. In the test report, the system resource occupied by the program running is displayed. The example defines that when an error window pops up, the scenario recovery is triggered and the scheduled action is executed, click OK and other buttons. When you resume the applicable testing program in common scenarios after the action is completed, you can perform corresponding operations on the expected problematic interfaces to ensure smooth execution of the test. System Monitor has weak functions. It can only be used to view the system resource usage of the test program. remarks are used to restore triggerrecoverypost-recovery.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.