Link: http://hi.baidu.com/widebright/blog/item/8b08ca95230a0247d1135ef5.html
The reporter public method provided by qtp by default is obviously unable to meet our common needs, so some people have discovered undisclosed methods. One of the mining methods is to use the debug function of qtp to locate the reporter object and view its property value and method name. Similarly, for other
Download qtp
Official website address: address 1
Online address: address 1(Version 9.2) address 2(Version 10.0)
Run qtp
The running interface is as follows:
Start recording
Here we take the plane ticket booking system that comes with recording as an example:
1. Click record to start recording.
2. perform the following settings:
3. Click Run To start recording. The logon window of th
We often use registeruserfunc to register the specified test object when writing a qtp user-defined function. However, if you need to register many test objects, You need to register them one by one, which is troublesome. Anshoo Arora introduces a method for batch registration:
Http://relevantcodes.com/registeruserfuncx-register-methods-to-all-qtp-objects-automatically/
The key to this method is to use the
in QTP in whichDescriptionThe purpose of the object is based on such a basis:QTPis an automated test tool based on object recognition and there are three ways to manipulate an object:1, using the name of the control already recorded in the object library;2, using descriptive programming;3, usingDescriptionobject. in fact, for 2 and the3the understanding is similar, that is to say, whenQTPin the course of execution you need to give him a description o
the test batch runner tool, but there is no report after running. HP has another tool called MTM.(Multi test Manager).
Q:In qtp, how to set other browsers (XP system, when using IE to access the program, every time the system always prompts to block the installation of ActiveX plug-in, you need to manually install. But this process is recorded to qtpThe playback is successful. When I parameterize a large amount of data for an input box, some will fa
LoadRunner 8.1, qtp 9.2/qc9.0, testdirector 8.0, and rational robot 7.0 are installed in Windows XP.
LoadRunner 8.1
Run the menu samples setup and generate the mercurywebtours website. The user name and password of the website are Jojo/bean. You can register first, and then log on.
The Web server is a built-in Xitami with the directory c: \ Program Files \ mercury \ LoadRunner \ webtours. The password file Xitami. Aut contains the Administrator accoun
RSS subscribes to iquicktest (how to subscribe ?)Googlereader subscribe address: http://feeds.feedburner.com/iquicktest
Author: zzxxbb112Time: copyright, infringement required.
Source: http://blog.csdn.net/zzxxbb112
Edit multiple quicktest (r) pro tests and actions at once
We all know that qtp can open multiple function libraries, but qtp users have a very large limit when editing a single script, that
Yesterday, I encountered a strange phenomenon of qtp descriptive programming. The previous script suddenly failed to be verified. After several attempts, I finally found the rule, that is, there is an error in object identification in descriptive programming of qtp. If you have encountered this problem or have a good solution, please advise.
The crime scene is as follows:Define the object with descripti
| 2520711168 | 20bb51ad406405d79aef1c10da6cea01 | H = vi5rkmbc6h2zkqid2dttkbdjfg2nciez |/The download speed may be a little slow because there are few people to download at the beginning. If there are more people to download, it will be faster. We recommend using thunder to download.By the way, we can share a brute-force solution to express connect. If you can enable express connect, it will speed up a lot.Of course, this is also related to the network speed. If the network speed is so slow, it
Qtp
Read Excel
Data methodWhen building your own testing framework, or reading external data from Excel for checking, you must use the Excel COM object programming method. The readfile function in the script below implements this function, create an Excel application object, open an Excel file, and read the Excel data to an array. Arrrange = readfile ("D:/qtp/mywork/readexcelfiletest1/objecttree.xls", "Tree
Qtp allows simple monkey testing on Web ApplicationsFor example, you can traverse every link on the home page, select a link each time, click the link, return to the home page, select the next link, and so on. During the test, each action is written to the test log.
The following code is taken from codesamplesplus of qtp and some necessary modifications are made:
'Start IE browserSystemutil. Run "ipolice.
Baidu on the internet a bit, mostly said the following methods:Open IE and select [Tools]/[internet Options] from the menu to enter the Internet configuration interface. SELECT [Programs]/[Manage add-ons] to view the currently loaded ActiveX situation.When you see that the Bhomanager class is present and its status is "Disabled", click "Enable" to turn on this feature and save and exit to resolve the issue.When the Bhomanger class add-in is not found in the admin add-in, if you install
Two days ago, I learned three recording modes: "normal recording" (normal recording mode), "analog recording" (analog recording mode), and "low level recording" (low-level recording mode ).
"Normal recording" Mode: the default recording mode. It recognizes objects on the application, regardless of their location on the interface;
"Analog recording" Mode: allows you to record accurate mouse and keyboard operations. In this mode, you can record each mouse action, which is often used to drag the
In the qtp test, where a bug occurs, we want to leave evidence, but sometimes the webpage is not maximized, so that we can capture irrelevant images. Here we provide some methods, this phenomenon can be avoided as much as possible.
YesUse the built-in functions of qtp, suchOnly page captures, excluding the preceding tools and navigation barBrowser (" シテ"). Page (" ステ"). capturebitmap ("D:/1.bmp)Entire Bro
For the first time, I felt the power of qtp. It looked at the software from another perspective, namely, the outside. If we look at ArcGIS from an internal perspective from the perspective of AO, and qtp is the opposite, we look at it from the external perspective, but both internal and external batches have achieved the same effect!
Window ("test version"). winmenu ("menu"). Select "Watermark Embedding"Wi
Many of my friends found that their hard drive root directory contains three files: mfc71.dll, mfc71u. dll, and msvcp71.dll.This is actually installedQtpGenerated after 9.x-these files are the VC 7 Runtime library files, and many common software cannot run without them.Some of my friends thought it was a virus and deleted them directly. As a result, when qtp was opened again, the dialog box in appeared, asking you to reinstall
Qtp supports direct access to the DOM (Document Object Model) and HTML tags can be accessed through the Dom. In qtp, Dom access is further accessed by using the object attribute of the page test object. For example, the following script obtains the object attribute on the Google homepage:
On Error resume nextSet Doc = browser ("google"). Page ("google"). Object'Obtain all objects in the page cyclicallyFor
We recommend a powerful API called screencapture API to capture various screen objects. The screencapture API can make up for the qtp capturebitmap function and add powerful screen capture functions to the test script. The screencapture API provides the following functions: (1) Capture desktops. (2) capture the current active window. (3) capture an area of the screen. (4) capture the window through the window handle. (5) capture an area of the window
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.