First Look at:Before the Operation page:After the operation of the page:Front-desk JSP: "> my JSP ' index.jsp ' starting page Test Description: This page as QTP Test Assist page, you can complete the data table increase, delete, change,
Analyzing the test in the keyword View As you recorded your test, quicktest generated steps in the keyword view representing each operation you have med in the Web browser. The columns in the keyword view show different information for each step,
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
WebtableYesQtpProceedWebThe test object that is frequently encountered during page testing, becauseWebtableCan be nested, so it is usually requiredUseChilditemTo obtain nested child elements.
Some methods can be encapsulated to
The first way to create a browser object mode if you are prompted to create an object, you need to open the object first.Set ie = CreateObject ("Internetexplorer.application")Ie.visible=trueIe.navigate ("http://www.baidu.com")Set ie = Nothing'
FunctionMouse_click (x, y)DimDeviceSetDevice =Createobject("Mercury. devicereplay ")Device. mousemove X, YDevice. mouseclick X, Y, left_mouse_buttonEnd Function
The mercury. devicereplay object is used to simulate Mouse clicking and moving, keyboard
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
Read data from text files as test data
Dim Oshell Set Oshell = Createobject ( " Wscript. Shell " ) Oshell. Run " Calc " , 1 Wait 2 ' Window ("Calculator"). winbutton ("1"). Click ' Window ("Calculator"). winbutton ("+"). Click '
Regexp object
Attribute:
Global attributes:
Sets or returns a Boolean value that specifies whether the entire search string matches all or only the first one.
Ignorecase attributes:
Sets or returns a Boolean value to indicate whether the mode
It is found that writing automated test scripts is not difficult. What is difficult is that you cannot find the direction of the test framework. Without a good test framework, the written test scripts are very difficult to maintain, if the software
//Registered users, query "registered users" exist in the database, cycle only to register users, login and exit only run once 1, parameterized Dtlocalsheet 2, take the parameterized value 3, the query statement, assigns the value to the query
Set bp=browser ("Micclass:=browser", "index:=0"). Page ("Micclass:=page") BP. Webelement ("HTML Tag:=body", "index:=1"). Object.insertadjacenttext "BeforeEnd", "xxxxxxxxxx" & vbCrLf Where the insertAdjacentText method can be seen after inserting a
Author: iamfeiyu1009
1. Check regular experiession In the Check Point and enter the regular expression,2. Configure the object property or object library3. Describe the use in programming
Set mydesc = description. Create ()Mydesc ("HTML Tag").
1. Example of a calculator (manually add and write the result to the log file) systemutil. run "C: \ windows \ system32 \ calc.exe", "", "C: \ WINDOWS \ System32", "open" window ("Calculator "). winbutton ("1 "). click window ("Calculator ").
Http://bbs.51testing.com/thread-84332-1-20.html1. Set wkbook = xlapp. wookbooks. Open (PATH) can only write absolute paths.2. If it is stored in the Action directory, you can use the relative path.3. environment ("testdir") obtains the file path and
The webtable object is used to test the table objects on the web page.
The test on table objects mainly obtains data, such as the number of rows, number of columns, and content of cells in the table. Common Methods for webtable objects include
The parameterized user login script has been debugged for two days and has been encountered many times. There are also many examples of parameterized login scripts on the Internet, but many of them cannot be played back, the following is the script
Today, a recording company's website system, recording logon page, divided into logon success and logon failure, the results of a problem.
The Code is as follows:
Dim statusWait (3)Browser (""). Page (""). webedit ("username"). Set
1. When you click the recording date control, you cannot record the drop-down content. After testing, you can assign values to the date control through object. value.
The following shows how to assign the system time to the date control:
Work of Wen Qingshan, a member of TiB Studio
Some time agoQtpThe main problem encountered during the script is to assign values to rich text boxes. During recording, you can record the process of assigning values to the rich text box, but it
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.