operating principle of QTP:
QTP will find the name of the object library by "User name input Box", find the following object name, and then find the Object Name Mapping property bag through the found object name, the script is to find the object name in the warehouse through the object name of the control, find the corresponding data and method through the object name.
(1) Win10 system, prompt to prevent application installation, workaround: Enter "cmd" in the desktop run, but do not point in, enter CMD after the command prompt in the top right-click Run as Administrator to open to the command prompt, and then paste the full path of the application to install the command prompt, Then hit enter, will directly eject the installation interface (1 and Figure 2)(2) Input certmgr.msc in desktop operation, enter;-Select "Untrusted Certificate" in the left column;-Sel
other regular expressions to change this field.
Select case result_message
Case ""
Msgbox ("the date format you entered does not match the standard ")
Case else msgbox (result_message)
End select
17. returns the position of a string in another string.Code: [copy to clipboard] instr (string1, string2)
18 sometimes, when the playback fails to find the object, it may not be because of your code, but because of your operating system and other settings;Code: [copy to clipboard] Example 1:
For exampl
box", and "Web page dialog box" on 2003"19"Is + *" Type FunctionCode:Isarray' is an arrayIsconnected 'determines whether qtp is connected to TDIsdate' is a valid date typeIsempty' determines whether to initializeIsnull' determines whether it is nullIsnumeric 'determines whether it is a numberIsobject' determines whether a function object is usedIsready' determine whether the device is readyIsrootfolder' is the root directoryQtp provides a global erro
= nothingEnd sub
10. "Is + *" Type FunctionIsarray' is an arrayIsconnected 'determines whether qtp is connected to TDIsdate' is a valid date typeIsempty' determines whether to initializeIsnull' determines whether it is nullIsnumeric 'determines whether it is a numberIsobject' determines whether a function object is usedIsready' determine whether the device is readyIsrootfolder' is the root directory
11. For method 1, select dtlocalsheet for parameter
Qtp environment variables are classified into built in and user define. Some environment variables are not listed in the environment variables, such as exe_env_1, lnch_env_1, and chld_env_1.
To use environment variables to define the details for Windows applications on which you want to record and run tests, you must use the appropriate variable names as specified below:
Option
Variable names
Description
Application
Ex
Ah, I am depressed by the qtp problem. Can it be said that it is two weeks? I started to install win7, but it does not support 9.0. I immediately changed the system to XP. What I did not expect was that after I changed it to XP, this problem still exists. The problem is as follows:
I asked a lot of people why I couldn't open this webpage, but none of them solved it. They all said I should use that flight to open it, or I wouldn't want to tell me that
1. Add the unrecognized control to the object library. Resources->object Repositories->object->add object to local, select the control you want to select, OK.2, in active screen to select the recorded control, right-click, there is the View/add object option, the Popup Object Selection window display of the control is not what you just added to the object library, if so, then continue, if not, Re-operate it.3, if there will be some VB program, in the expert view to write their own code manually
found."Else' This enables database to update immediately when the field value changesTestset.autopost = True' Tstestfactory manages test instances (Tstest objects) in a test setSet tstestfactory = testset.tstestfactory' Tstestfactory.newlist (") creates a list of objects according to the specified filterFor each qttest in Tstestfactory.newlist ("")' Change Test status to N/a' We do the ' Ensure all tests has ' not run ' before starting execution' If the execution errors out, we can keep track o
For a long time, my machine (Win2000 Server SP4) has never been able to use qtp.
ProgramWhen the interface is half displayed, it will die. And the operating system is no longer dead! Very helpless, only reset at a time. I finally gave up when I tried it multiple times.
Recently, I got a qtp9.2 project. I hope to uninstall the old version, install the new version, restart, run, and run it. The result... is still dead! I'm crazy !!!
Later, I asked ot
In qtp, link objects can be used for Web Page Link tests. For example, the following script is used to check the link address: 'Check the link address browser ("welcome: mercury Tours "). page ("Welcome: Mercury Tours "). link ("register "). checkproperty ("url", http://newtours.demoaut.com/mercuryregister.php) uses the checkproperty method to compare whether the url property of the Link object is equal to the specified address. You can also use the h
The question is: When I click QTP setup.exe for QTP installation, I get the hint "the Microsoft Visual c++2005 SP1 runtime component is missing, the installation prompts for command-line Options syntax error, type" command/? " Can get rib information, unable to install properly "The workaround is to enter the "***\qtp\extensibility and toolkits\extacctool\common\
Selenium and QTP are functional automated tests, LoadRunner and JMeter are automated tests of performance
Selenium requires a higher code capacity, suitable for PYTHON,QTP general use of Vbs,loadrunner General C, but now also can be used in Java and other languages.
Now the most powerful tool for functional automation is QTP, but the trend of selenium is gr
Cause:After qtp is installed or some ActiveX controls in IE browser are disabled, the corresponding recording script cannot be generated during normal qtp recording. The script content is blank.Solution: qtp recording scripts in IE relies on a dynamic link library called bhomanager class. When the control is not loaded or disabled, the above symptoms will occur.
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
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
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.