Qtp is an automated function testing tool, and the page loading time or response speed should be a matter of performance testing. In fact, qtp can also achieve the statistical function of page loading time. Because qtp uses a vbs script, which is powerful in that it can call any Windows COM components and objects. The solution is simple, that is, we need to use v
Refer:
Http://knowledgeinbox.com/articles/qtp/settings/when-to-change-qtp-web-replaytype-setting/
What is replaytype:
Replaytype is qtp web add-in setting. It can be used to change how the events are replayed on the browser. There are two modes of replaytype
Events (1)-replay of events using the browser methods (something similar to Dom ).
Mouse (2)-re
There has been a problem for a long time, which is bothering some usersQtpStudents: Some browser methods, such as navigate, back, home, and refresh, are useful on some human machines, but not on others. When the script runs these methods, no error is thrown. The qtp log shows the "done" status ".
After a period of observation, I finally found that the IE add-on (ie "tool"-> "Manage Add-on") on these machines are different:
Bhomanager class plug-in p
Using descriptive programming in qtp is a good way to improve the qtp script utilization.
Generally, qtp identifies different objects through the object library, while descriptive programming is another way for qtp to recognize objects. It does not depend on the object library, identify objects by adding object descrip
Qtp10CrackingThe method is similar to the previous version!1. Download and install qtp10.0 from the official HP website.2. After the installation is successful, create a folder: License Manager under c: \ Program Files \ common files \ Mercury InteractiveIii. cracking toolsMgn-mqt82Copy. EXE to c: \ Program Files \ HP \ quicktest Professional \ bin.Run mgn-mqt82.exe, OK, and disable.5. Use notepad to open t
1.QTP Open Browser:' Systemutil.run ' C:\Program files\internet Explorer\iexplore. EXE "," http://www.baidu.com "Systemutil.run "Http://www.baidu.com"C:\Windows\system32\calc.exe2. calling the VBS file Executefile "C:\test.vbs"3.VBS RelatedByref: pass by referenceRedim: re-declaring dynamic arraysConst4. reading a DataTableA. xlsx files are not supportedB. Import Datatable.import excelfilenameGet row count: Datatable.getrowcount ()Set the current line
Serial number function name function Function 1 qtp_small () to minimize qtp Runtime 2 qtp_big () 'restore the qtp window 3 "qtp_writefile (pathway, words)" 'Write File function (append) file path write content 4 "function qtp_writefile_change (pathway, words)" 'Write File function (rewrite) file path write content 5 "qtp_read_excel (pathway, sheetname, x, y)" 'read the value of the row value column of the
of using a program to retrieve the div id and think of the tree structure. So I made the following function, which is a recursive call. I 'd like to share it with you.Of course, it is based on the DOM definition on W3.
The nodetype property returns the type of node. nodetype is read only.The Node Type attribute returns the node type, which is read-only.The most important node types are:The most important node types are:Element type nodetypeElement 1Attribute 2Text 3Comment 8Document 9
In this c
When writing a script, you often have to consider the interval between two steps, for example, 1. Open http://www.baidu. com2/. Enter avepoint. Due to the different network speeds, there will be a certain delay after opening Baidu web pages, so there must be a short wait between steps 1 and 2, which can be achieved through the following methods:
1. Default wait time of the object.
QtpWhen an object is identified, a default wait time can be set in file --> Settings --> Run --> Object synchro
I encountered a problem today: After qtp is started using the plug-in ActiveX plug-in, ie cannot be started, But the strange thing is that I used the plug-in yesterday and it was okay this morning, because I have been checking the information while I open qtp, and I am also using ActiveX, So I accidentally closed the webpage, and the problem arises, I use a window browser, but if I use IE6 in the system, th
Ajax has been widely used. When using qtp to test Ajax applications, you often encounter the need to wait for Ajax operations to complete data loading. Relevantcodes.com's "qtp: synchronization for Ajax Applications" article describes how to encapsulate an ajaxutil object to handle these problems in a unified manner:
Http://relevantcodes.com/qtp-synchronization-f
The default Debugger in the qtp Script Editor has very limited functions. During the debugging process, attributes of many objects cannot be seen in detail.
However, if Visual Studio. NET 2008 is installed, the qtp debugging capability can be enhanced. You can view most of the attributes of the object in "Debug viewer.
You can install Visual Studio.. net 2008 to enhance the
When writing a script, you must always consider the interval between two steps. For example, 1. Open www.baidu.com 2. Enter avepoint. Due to the different network speeds, there will be a certain delay after opening Baidu web pages, so there must be a short wait between steps 1 and 2, which can be achieved through the following methods:
1. Default wait time of the object. When the qtp identifies an object, there will be a default wait time, which can
Qtp provides many Automatic startup applications
Program The method is as follows: 1) systemutil. Run allows starting a new process in the format of systemutil. Run file, [Params], [dir], [op], [mode]
Code Use the systemutil object to start the process. 'Start ie systemutil. Run "iexplore.exe" systemutil. Run "iexplore.exe", "http://www.51testing.com /? 72 "'Open the PCL blog systemutil. run "iexplore.exe", "http://www.knowledgeinbox.com", 3 open an
1. Why should I use the framework?
Original article address: Http://www.uml.org.cn/Test/200810108.asp Author: Chen nengtech
Framework is the basis of a set of automated testing specifications and test scriptsCodeAnd a set of testing ideas and practices. It can be used to reduce redundant code, improve code productivity, and improve code reusability and maintainability. For example, qtestware is one of the qtp automated testing frameworks.
2. Int
First of all, because many friends in the group said QTP connect Oracle a bit of a hassle, I do a complete tutorial for connecting to Oracle, I hope that the need to learn friends can look at the following: 1, no matter what language, connect Oracle client is not few, this is no way to save; I use 10g_win32_client; if you feel old, friends can use the new version; Decompression-Installation-the aspect is nothing more than the next operation, this side
AutomationanywhereOfTestinganywhereClaimed to beQtpReplacement:
Http://www.automationanywhere.com/blog/testinganywhere/finally-an-alternative-to-hp-quicktest-pro
Its main features are workflow design, a large number of convenient insertionCheckpoint, Test cases packagedEXEAnd so on:
Powerful state-of-the-art features makeThis the only testing software you need:
5 ways to create tests
Use our object recorder, advanced WebReco
Currently, the UFT plug-in customized using the EA tool provided by HP cannot work on chrome.The project does need to run on chrome.UFT must load an extension on chrome to operate chrome.Read the extended content that UFT loads in chrome. It is actually some JS that interacts with UFT.All UFT chrome operations are performed by Chrome extension JS above.Therefore, you can modify chrome extensions to implement custom UFT plug-ins to run on chrome.Qtp (U
Descriptive programming techniques are described to describe the input box: Set Po=browser ("Creationtime:=0"). Page ("Micclass:=page") set Desc=description.creatre () Odesc ("Micclass "). Value=" Webedit "Odesc (" HTML Tag "). Value=" Input "... HTML tag in HTML input box in addition to input in fact there are textarea, etc.The Description Item property supports regular expressions, and the default switch opensOdesc. Item.regularexpression=trueTherefore, it can be modified to: Odesc ("Micclass"
Connect to MySQL in QTP and edit the vbs script as follows: DimConnSetConnCreateObject ( quot; ADODB. connection quot;) #39; ConstConnectionString quot; DSNtest; DATABASEchen; PWDroot; PORT3306; SERVERlocalhost; UIDroot quot; ConstConnectionString quot; Driver {MysqlODBC5.1Driver mysqlqtp database
Connect to MySQL in QTP and edit the vbs script as follows:Dim ConnSet Conn = CreateObject ("ADODB.
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.