CN108628741A - Webpage test method, device, electronic equipment and medium - Google Patents

Webpage test method, device, electronic equipment and medium Download PDF

Info

Publication number
CN108628741A
CN108628741A CN201810316068.9A CN201810316068A CN108628741A CN 108628741 A CN108628741 A CN 108628741A CN 201810316068 A CN201810316068 A CN 201810316068A CN 108628741 A CN108628741 A CN 108628741A
Authority
CN
China
Prior art keywords
measured
operation element
page
network address
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810316068.9A
Other languages
Chinese (zh)
Other versions
CN108628741B (en
Inventor
彭明强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810316068.9A priority Critical patent/CN108628741B/en
Priority to PCT/CN2018/099282 priority patent/WO2019196274A1/en
Publication of CN108628741A publication Critical patent/CN108628741A/en
Application granted granted Critical
Publication of CN108628741B publication Critical patent/CN108628741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A kind of Webpage test method of present invention offer, device, electronic equipment and medium.The Webpage test method includes:Browser is started using automated test tool, and starts network address to be measured;Obtain the action event of the operation element and the operation element on the page of the network address to be measured;Operation element to be measured is chosen from the operation element of the acquisition;The page that the action event of the operation element to be measured and the operation element to be measured is sent to the network address to be measured is tested, and to carry out targetedly robustness testing to webpage, judges whether the page of the network address to be measured has error information;When the page of the network address to be measured has error information, export the error information, since above-mentioned testing scheme has specific aim, other functions of system to be tested will not be impacted, to ensure that the stability of test system to be measured and the integrality of system function to be tested.

Description

Webpage test method, device, electronic equipment and medium
Technical field
The present invention relates to technical field of measurement and test more particularly to a kind of Webpage test method, device, electronic equipment and Jie Matter.
Background technology
In prior art, for the test of webpage robustness to be tested and stability, it is generally focused on interface API (Application Programming Interface, application programming interface) layer, for UI (User Interface, User interface) layer is concerned only with the integrality of function, and seldom directly targetedly robustness testing is carried out to UI layers.
Invention content
In view of the foregoing, it is necessary to a kind of Webpage test method, device, electronic equipment and medium are provided, it can be right Webpage carries out targetedly robustness testing, at the same ensure that test system to be measured stability and system function to be tested it is complete Whole property.
A kind of Webpage test method, the method includes:
Browser is started using automated test tool, and starts network address to be measured;
Obtain the action event of the operation element and the operation element on the page of the network address to be measured;
Operation element to be measured is chosen from the operation element of the acquisition;
The action event of the operation element to be measured and the operation element to be measured is sent to the page of the network address to be measured Face is tested;
Judge whether the page of the network address to be measured has error information;
When the page of the network address to be measured has error information, the error information is exported.
According to the preferred embodiment of the present invention, the operation element includes the combination of following one or more:
Hyperlink element, input frame element, button element, drop-down choice box element, radio button element, multiselect frame member Element;
The action event of the operation element includes the combination of following one or more:
The corresponding action event of the hyperlink element includes click event;And/or
The corresponding action event of the input frame element includes input random text event, empties textual event;And/or
The corresponding action event of the button element includes click event;And/or
The corresponding action event of the drop-down choice box element includes choosing an option event;And/or
The corresponding action event of the radio button element includes choosing event;And/or
The corresponding action event of the multiselect frame element includes choosing event.
According to the preferred embodiment of the present invention, chosen in the operation element from the acquisition operation element to be measured include with The combination of lower one or more:
The access times of the operation element of the acquisition are obtained, and access times are more than or equal to the behaviour of preset times It is determined as the operation element to be measured as element;And/or
Obtain the acquisition operation element access times, by the acquisition operation element access times according to by More to few sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
The error rate of the operation element of the acquisition is obtained, and error rate is more than or equal to the operation of default error rate Element is determined as the operation element to be measured;And/or
Obtain the acquisition operation element error rate, by the acquisition operation element error rate according to by height to Low sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
After getting the operation element to be measured of selection, the operation associated member of the operation element to be measured of the selection is obtained Element, and the operation associated element is determined as the operation element to be measured;And/or
Current test module is obtained, and obtains the corresponding behaviour of the current test module from the operation element of the acquisition Make element, and the corresponding operation element is determined as the operation element to be measured, wherein the current test module corresponds to A kind of user group.
According to the preferred embodiment of the present invention, when the page of the network address to be measured has error information, the method further includes:
Obtain the corresponding daily record of the error information;
Sectional drawing is carried out to the daily record by the automated test tool, obtains daily record sectional drawing, and the daily record is cut Figure is preserved to designated position.
According to the preferred embodiment of the present invention, the method further includes:
The daily record is parsed, the classification of erroneous point and erroneous point is obtained;
According to the classification of the erroneous point, the erroneous point of every class is sent to corresponding maintenance personnel.
According to the preferred embodiment of the present invention, the parsing daily record, obtaining erroneous point includes:
Using trained wrong identification model erroneous point is obtained from the daily record.
According to the preferred embodiment of the present invention, the method further includes:
Before obtaining erroneous point in the daily record, the wrong identification mould is being trained using trained wrong identification model Type;
The training wrong identification model includes:
The training sample data for configuring the erroneous point of the different error categories, by different classes of training sample data point It is dealt into different files, extracts the training sample data training of the first preset ratio respectively from the different file Wrong identification model increases the different wrong classes when the accuracy rate of the wrong identification model of generation is less than default accuracy rate The acquisition ratio of other training sample data repeats the training process of the wrong identification model, until the wrong identification of generation The accuracy rate of model is more than or equal to the default accuracy rate.
A kind of Webpage test device, described device include:
Start unit for starting browser using automated test tool, and starts network address to be measured;
Acquiring unit, the operation of operation element and the operation element on the page for obtaining the network address to be measured Event;
Selection unit, for choosing operation element to be measured from the operation element of the acquisition;
Transmission unit, it is described for the action event of the operation element to be measured and the operation element to be measured to be sent to The page of network address to be measured is tested;
Judging unit, for judging whether the page of the network address to be measured has error information;
Output unit, for when the page of the network address to be measured has error information, exporting the error information.
According to the preferred embodiment of the present invention, the operation element includes the combination of following one or more:
Hyperlink element, input frame element, button element, drop-down choice box element, radio button element, multiselect frame member Element;
The action event of the operation element includes the combination of following one or more:
The corresponding action event of the hyperlink element includes click event;And/or
The corresponding action event of the input frame element includes input random text event, empties textual event;And/or
The corresponding action event of the button element includes click event;And/or
The corresponding action event of the drop-down choice box element includes choosing an option event;And/or
The corresponding action event of the radio button element includes choosing event;And/or
The corresponding action event of the multiselect frame element includes choosing event.
According to the preferred embodiment of the present invention, the selection unit is specifically used for:
The access times of the operation element of the acquisition are obtained, and access times are more than or equal to the behaviour of preset times It is determined as the operation element to be measured as element;And/or
Obtain the acquisition operation element access times, by the acquisition operation element access times according to by More to few sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
The error rate of the operation element of the acquisition is obtained, and error rate is more than or equal to the operation of default error rate Element is determined as the operation element to be measured;And/or
Obtain the acquisition operation element error rate, by the acquisition operation element error rate according to by height to Low sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
After getting the operation element to be measured of selection, the operation associated member of the operation element to be measured of the selection is obtained Element, and the operation associated element is determined as the operation element to be measured;And/or
Current test module is obtained, and obtains the corresponding behaviour of the current test module from the operation element of the acquisition Make element, and the corresponding operation element is determined as the operation element to be measured, wherein the current test module corresponds to A kind of user group.
According to the preferred embodiment of the present invention, the acquiring unit is additionally operable to the page when the network address to be measured and reports an error letter When breath, the corresponding daily record of the error information is obtained;
Described device further includes:
Sectional drawing unit, for, to daily record progress sectional drawing, obtaining daily record sectional drawing by the automated test tool, and The daily record sectional drawing is preserved to designated position.
According to the preferred embodiment of the present invention, described device further includes:
Resolution unit obtains the classification of erroneous point and erroneous point for parsing the daily record;
The transmission unit is additionally operable to the classification according to the erroneous point, and the erroneous point of every class is sent to corresponding dimension Shield personnel.
According to the preferred embodiment of the present invention, the resolution unit parses the daily record, and obtaining erroneous point includes:
Using trained wrong identification model erroneous point is obtained from the daily record.
According to the preferred embodiment of the present invention, described device further includes:
Training unit, for before obtaining erroneous point in the daily record, being trained using trained wrong identification model The wrong identification model;
The training unit trains the wrong identification model to include:
The training sample data for configuring the erroneous point of the different error categories, by different classes of training sample data point It is dealt into different files, extracts the training sample data training of the first preset ratio respectively from the different file Wrong identification model increases the different wrong classes when the accuracy rate of the wrong identification model of generation is less than default accuracy rate The acquisition ratio of other training sample data repeats the training process of the wrong identification model, until the wrong identification of generation The accuracy rate of model is more than or equal to the default accuracy rate.
A kind of electronic equipment, the electronic equipment include:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize the Webpage test method.
A kind of computer readable storage medium is stored at least one instruction, institute in the computer readable storage medium At least one instruction is stated to be executed to realize the Webpage test method by the processor in electronic equipment.
As can be seen from the above technical solutions, the present invention starts browser using automated test tool, and starts to be measured Network address;Obtain the action event of the operation element and the operation element on the page of the network address to be measured;From the acquisition Operation element in choose operation element to be measured;By the operation element to be measured and the action event hair of the operation element to be measured It send the page to the network address to be measured to be tested, to carry out targetedly robustness testing to webpage, is waited for described in judgement Whether the page of survey grid location has error information;When the page of the network address to be measured has error information, the error information is exported, Since above-mentioned testing scheme has specific aim, other functions of system to be tested will not be impacted, to ensure that The integrality of the stability of test system to be measured and system function to be tested.
Description of the drawings
Fig. 1 is the flow chart of the preferred embodiment of Webpage test method of the present invention.
Fig. 2 is the functional block diagram of the preferred embodiment of Webpage test device of the present invention.
Fig. 3 is the structural schematic diagram of the electronic equipment for the preferred embodiment that the present invention realizes Webpage test method.
Main element symbol description
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments The present invention is described in detail.
As shown in Figure 1, being the flow chart of the preferred embodiment of Webpage test method of the present invention.According to different need It asks, the sequence of step can change in the flow chart, and certain steps can be omitted.
The Webpage test method is applied in one or more electronic equipment, and the electronic equipment is a kind of energy It is enough according to the instruction for being previously set or store, the equipment of automatic progress numerical computations and/or information processing, hardware includes but not It is limited to microprocessor, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), can compiles Journey gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment can be the electronic product that any type can carry out human-computer interaction with user, for example, personal meter Calculation machine, tablet computer, smart mobile phone, personal digital assistant (Personal Digital Assistant, PDA), game machine, friendship Mutual formula Web TV (Internet Protocol Television, IPTV), intellectual Wearable etc..
The electronic equipment can also include the network equipment and/or user equipment.Wherein, the network equipment includes, but It is not limited to single network server, the server group of multiple network servers composition or is based on cloud computing (Cloud Computing the cloud being made of a large amount of hosts or network server).
Network residing for the electronic equipment include but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, it is virtual specially With network (Virtual Private Network, VPN) etc..
S10, the electronic equipment starts browser using automated test tool, and starts network address to be measured.
Specifically, computer software automatization testing technique Selenium WebDriver have stronger visualization automatic Interactive function simulates the interaction of people and webpage by programming, and to trigger dynamic data load, obtains the number of dynamic generation According to.I.e. Selenium WebDriver technologies can the operation that is executed on webpage of true analog subscriber, such as click and " check More ", " automated log on ", " clickthrough ", " filling in list ", " roll mouse ", " mouse drag ", " page load after the completion of Scroll down through ", " click page turning ", the functions such as " sectional drawing preservations " when, use in real time Ajax technologies to server request more Data, reuse JavaScript script dynamic generation contents and loaded and displayed comes out.
In the present embodiment, after user calls Selenium, by Selenium tool open browsers, in a browser The link (URL) of the website of testing data is inputted, Selenium Web page tools call get () method of WebDriver to beat Open the Web page of the website of testing data input by user.
Such as:The electronic equipment passes through program language driver.get (" http://www.XX ") XX nets can be opened The corresponding Webpage in location can remove input frame data by program language elem.clear (), pass through program language Elem.send_keys (Keys.RETURN) can simulate click carriage return button, can by program language driver.close () To close browser driving etc..
In the present embodiment, WebDriver is supported by primary browser or browser extension directly controls browser. And WebDriver is developed for each browser, can support to create more advanced survey with being closely integrated for browser Examination avoids limitation caused by JavaScript security models.
S11, the electronic equipment obtain operation element and the operation element on the page of the network address to be measured Action event.
In the present embodiment, the operation element includes, but are not limited to the combination of following one or more:
Hyperlink element, input frame element, button element, drop-down choice box element, radio button element, multiselect frame element Etc..
Further, correspond to the operation element, the action event of the operation element includes, but are not limited to next Kind or a variety of combinations:
(1) the corresponding action event of the hyperlink element includes click event.
Such as:After it is hyperlink element that the electronic equipment, which gets the operation element on the page of network address to be measured, institute It is click event to state electronic equipment and obtain the corresponding action event of the hyperlink element, that is to say, that when the electronic equipment When getting user and clicking the signal of the hyperlink element, the electronic equipment executes the corresponding task of the hyperlink, from And other webpages are linked to, or the designated position that is linked on the page of the network address to be measured.
(2) the corresponding action event of the input frame element includes input random text event, empties textual event.
Such as:After it is input frame element that the electronic equipment, which gets the operation element on the page of network address to be measured, institute Electronic equipment is stated to get the corresponding action event of the input frame element as input random text event or empty text thing Part, then the electronic equipment can input text in the input frame element, or empty text.
(3) the corresponding action event of the button element includes click event.
Such as:It is described after it is button element that the electronic equipment, which gets the operation element on the page of network address to be measured, It is click event that electronic equipment, which gets the corresponding action event of the button element, that is to say, that when the electronic equipment obtains When getting user and clicking the signal of the button element, the electronic equipment executes the corresponding task of the button element, such as: It brings into operation, is operation suspension, out of service etc..
(4) the corresponding action event of the drop-down choice box element includes choosing a certain option event.
Such as:It is drop-down choice box element when the electronic equipment gets the operation element on the page of network address to be measured (such as:The drop-down choice box element includes option A, option B and option C) after, the electronic equipment gets the drop-down choosing It is to choose a certain option event to select the corresponding action event of frame element, that is to say, that when the electronic equipment gets user's choosing Described in drop-down choice box element in option A after, the electronic equipment shows the option A as the selection of the user On the page of the network address to be measured.
(5) the corresponding action event of the radio button element includes choosing event.
Such as:When the electronic equipment get the operation element on the page of network address to be measured be radio button element (such as: The radio button element includes option A, option B and option C) after, the electronic equipment gets the radio button element Corresponding action event is to choose event, that is to say, that chooses the radio button member when the electronic equipment gets user After the option A in element, the electronic equipment includes in the network address to be measured using the option A as the selection of the user The page on.
(6) the corresponding action event of the multiselect frame element includes choosing event.
Such as:When the electronic equipment get the operation element on the page of network address to be measured be multiselect frame element (such as:Institute It includes option A, option B and option C to state multiselect frame element) after, it is corresponding that the electronic equipment gets the multiselect frame element Action event is to choose event, that is to say, that chooses institute in the multiselect frame element when the electronic equipment gets user After stating the option A and option B, the electronic equipment shows the option A and the option B as the selection of the user On the page of the network address to be measured.
Certainly, in other embodiments, the action event of the operation element and the operation element can also have it His form, the present invention are not restricted.
S12, the electronic equipment choose operation element to be measured from the operation element of the acquisition.
Preferably, the electronic equipment chooses operation element to be measured from the operation element of the acquisition and includes, but unlimited In the combination of following one or more:
(1) electronic equipment obtains the access times of the operation element of the acquisition, and access times are more than or It is determined as the operation element to be measured equal to the operation element of preset times.
Such as:After the electronic equipment obtains the access times of operation element of the acquisition, the electronic equipment Access times operation element of 200 times more than or equal to preset times is determined as the operation element to be measured.
Specifically, the preset times can carry out self-defined setting according to actual conditions by user, and the present invention does not limit System.
(2) electronic equipment obtains the access times of the operation element of the acquisition, by the operation element of the acquisition Access times be ranked up according to sequence from more to less, and the operation element of presetting digit capacity is determined as described wait for before coming Survey operation element.
Such as:The electronic equipment obtains the access times of the operation element of the acquisition, and by the operation of the acquisition The access times of element are ranked up according to sequence from more to less, before the electronic equipment will come 20 before presetting digit capacity Operation element is determined as the operation element to be measured.
Specifically, the presetting digit capacity can carry out self-defined setting according to actual conditions by user, and the present invention does not limit System.
(3) electronic equipment obtains the error rate of the operation element of the acquisition, and error rate is more than or equal to The operation element of default error rate is determined as the operation element to be measured.
Such as:After the electronic equipment obtains the error rate of operation element of the acquisition, the electronic equipment is by mistake The operation element that rate is more than or equal to default error rate 75% is determined as the operation element to be measured.
Specifically, the default error rate can carry out self-defined setting according to actual conditions by user, and the present invention does not make Limitation.
(4) electronic equipment obtains the error rate of the operation element of the acquisition, by the operation element of the acquisition Error rate is ranked up according to sequence from high to low, and the operation element that will come preceding presetting digit capacity is determined as the behaviour to be measured Make element.
Such as:The electronic equipment obtains the error rate of the operation element of the acquisition, and the operation of the acquisition is first The error rate of element is ranked up according to sequence from high to low, and the electronic equipment will come 20 before preceding presetting digit capacity operations Element is determined as the operation element to be measured.
Specifically, the default error rate can carry out self-defined setting according to actual conditions by user, and the present invention does not make Limitation.
(5) after getting the operation element to be measured of selection, the electronic equipment obtains the operation to be measured member of the selection The operation associated element of element, and the operation associated element is determined as the operation element to be measured.
Such as:After getting the operation element X to be measured of selection, the electronic equipment obtains the operation element X to be measured Operation associated element be Y and Z, the Y and Z are determined as the operation element to be measured by the electronic equipment simultaneously.
(6) electronic equipment obtains current test module, and the current test module corresponds to a kind of user group, described Electronic equipment obtains the corresponding operation element of the current test module from the operation element of the acquisition, and by the correspondence Operation element be determined as the operation element to be measured.
Specifically, multiple modules, each module correspond to different user groups, such as a gold in the network address to be measured Melt in class network address, there is enterprise customer's module that personal user's module of personal use, enterprise use.It, can be with when test Only test a module.
Such as:If it is W that the electronic equipment, which gets current test module, then is obtained from the operation element of the acquisition Take the corresponding operation elements of the W, the electronic equipment that the corresponding operation element is determined as the operation element to be measured.
It is understood that due to may include a large amount of operation element on a page, but some operation elements are What user hardly used, therefore, the higher operation element of frequency of use can be filtered out by way of above-mentioned (1)-(2) As the operation element to be measured;Again since some operation elements are that error rate is very low or do not malfunction, by upper The higher operation element of error rate can be filtered out as the operation element to be measured by stating the mode of (3)-(4);Again due to some It is to be mutually related between operation element, after having executed the action event of an operation element, associated operation will be continued to execute Therefore associated action event directly can be determined as the behaviour to be measured by the action event of element by way of above-mentioned (5) Make element, avoids complicated screening process;Again due to need to only correspond to the part behaviour on one page of test in a test module Make element, therefore, can directly be transferred by way of above-mentioned (6) and be waited for described in the corresponding action event conduct of current test module Survey operation element.
In this way, not only the efficiency of test can be influenced to avoid due to extra test job, but also the cost of test can be saved.
The action event of the operation element to be measured and the operation element to be measured is sent to by S13, the electronic equipment The page of the network address to be measured is tested.
By the above embodiment, the electronic equipment is according to the operation element to be measured and the operation element to be measured Action event, you can the page of the network address to be measured is tested, test method is not restricted.
Such as:The electronic equipment can be by the operation element hyperlink element to be measured of selection and the hyperlink element The page that corresponding action event click event is sent to the network address to be measured is tested.
S14, the electronic equipment judge whether the page of the network address to be measured has error information.
In the present embodiment, when the page of the network address to be measured is wrong, the electronic equipment will send out error information.
Such as:When carrying out clicking operation to the hyperlink element, if being not linked to other webpages or chain It is connected to the designated position on the page of the network address to be measured, then explanation is in the page of the network address to be measured, the hyperlink member There is mistake in plain position, and the electronic equipment will send out error information.
Specifically, the error information may be shown on the page in the form of prompting frame, it is also possible to be marked in advance On the page, the present invention is not restricted for note display.
S15, when the page of the network address to be measured has error information, the electronic equipment exports the error information.
Preferably, when the page of the network address to be measured has error information, the method further includes:
The electronic equipment obtains the corresponding daily record of the error information, by the automated test tool to the day Will carries out sectional drawing, obtains daily record sectional drawing, the electronic equipment preserves the daily record sectional drawing to designated position.
Specifically, the driver instruction browser of Selenium tools executes order, finally by browser in kernel It carries out sectional drawing and preserves operation, final effect intercepts the complete phase of effect of picture and preservation with user using mouse on the page Together.
Further, the electronic equipment preserves the daily record sectional drawing to after designated position (such as specified folder), also It can be named for the daily record sectional drawing according to information such as the content of the daily record sectional drawing or times, it is convenient subsequently to the daily record Sectional drawing is inquired.
Preferably, the electronic equipment parses the daily record, obtains the classification of erroneous point and erroneous point, and according to the mistake The erroneous point of every class is sent to corresponding maintenance personnel by overdue classification.
Preferably, the electronic equipment parses the daily record, and obtaining erroneous point includes:
The electronic equipment obtains erroneous point using trained wrong identification model from the daily record.
In the present embodiment, the electronic equipment training wrong identification model includes:
The electronic equipment configures the erroneous point training sample data of the different error categories, by different classes of training Sample data is distributed in different files.For example, the training sample data of first category are distributed in the first file; The training sample data of second category are distributed in the second file;The training sample data of third classification are distributed to third file Underedge;The training sample data of 4th classification are distributed in the 4th file.The electronic equipment is never respectively carried under file The first preset ratio is taken, for example, 70% training sample data carry out the training of the wrong identification model as training data, The electronic equipment is never with remaining second preset ratio is respectively taken under file, for example, 30% training sample data conduct Test data to the wrong identification model of generation to carry out Accuracy Verification.
If the wrong identification model accuracy rate generated is less than default accuracy rate, for example, 99%, then the electronic equipment Increase the acquisition quantity of the different classes of training sample data, repeat the generating process of wrong identification model described above, Accuracy rate is preset until the wrong identification model accuracy rate of generation is more than or equal to, for example, 99%.
By the above embodiment, the error message of corresponding classification can be sent to corresponding maintenance personnel, not only more Added with specific aim, while maintenance efficiency is improved, saved due to the loss of time caused by matching maintenance personnel.
Such as:When it is H to determine error category, the electronic equipment obtains the corresponding maintenance personnel I of H, and the electronics is set It is standby that error message is sent to the maintenance personnel I, so that the maintenance personnel I is safeguarded immediately.
Specifically, the error message of every class can be sent to correspondence by the electronic equipment in a manner of short message or mail etc. Maintenance personnel, the present invention is not restricted.
In conclusion the present invention can use automated test tool to start browser, and start network address to be measured;Described in acquisition The action event of operation element and the operation element on the page of network address to be measured;It is selected from the operation element of the acquisition Take operation element to be measured;The action event of the operation element to be measured and the operation element to be measured is sent to and described waits for survey grid The page of location is tested, and to carry out targetedly robustness testing to webpage, judges that the page of the network address to be measured is It is no to have error information;When the page of the network address to be measured has error information, the error information is exported, due to above-mentioned test side Case has specific aim, therefore will not be impacted to other functions of system to be tested, to ensure that the steady of test system to be measured The integrality of system function qualitative and to be tested.
As shown in Fig. 2, being the functional block diagram of the preferred embodiment of Webpage test device of the present invention.The webpage page Face test device 11 include start unit 110, acquiring unit 111, selection unit 112, transmission unit 113, judging unit 114, Output unit 115, sectional drawing unit 116, resolution unit 117 and training unit 118.So-called module/the unit of the present invention refers to one Kind can be performed by processor 13, and can complete the series of computation machine program segment of fixed function, is stored in storage In device 12.In the present embodiment, it will be described in detail in subsequent embodiment about the function of each module/unit.
Start unit 110 starts browser using automated test tool, and starts network address to be measured.
Specifically, computer software automatization testing technique Selenium WebDriver have stronger visualization automatic Interactive function simulates the interaction of people and webpage by programming, and to trigger dynamic data load, obtains the number of dynamic generation According to.I.e. Selenium WebDriver technologies can the operation that is executed on webpage of true analog subscriber, such as click and " check More ", " automated log on ", " clickthrough ", " filling in list ", " roll mouse ", " mouse drag ", " page load after the completion of Scroll down through ", " click page turning ", the functions such as " sectional drawing preservations " when, use in real time Ajax technologies to server request more Data, reuse JavaScript script dynamic generation contents and loaded and displayed comes out.
In the present embodiment, after user calls Selenium, by Selenium tool open browsers, in a browser The link (URL) of the website of testing data is inputted, Selenium Web page tools call get () method of WebDriver to beat Open the Web page of the website of testing data input by user.
Such as:The start unit 110 passes through program language driver.get (" http://www.XX ") XX can be opened The corresponding Webpage of network address can remove input frame data by program language elem.clear (), pass through program language Elem.send_keys (Keys.RETURN) can simulate click carriage return button, can by program language driver.close () To close browser driving etc..
In the present embodiment, WebDriver is supported by primary browser or browser extension directly controls browser. And WebDriver is developed for each browser, can support to create more advanced survey with being closely integrated for browser Examination avoids limitation caused by JavaScript security models.
Acquiring unit 111 obtains the operation thing of operation element and the operation element on the page of the network address to be measured Part.
In the present embodiment, the operation element includes, but are not limited to the combination of following one or more:
Hyperlink element, input frame element, button element, drop-down choice box element, radio button element, multiselect frame element Etc..
Further, correspond to the operation element, the action event of the operation element includes, but are not limited to next Kind or a variety of combinations:
(1) the corresponding action event of the hyperlink element includes click event.
Such as:After it is hyperlink element that the acquiring unit 111, which gets the operation element on the page of network address to be measured, It is click event that the acquiring unit 111, which obtains the corresponding action event of the hyperlink element, that is to say, that when the acquisition Unit 111 gets user when clicking the signal of the hyperlink element, and it is corresponding that the electronic equipment executes the hyperlink Task, to be linked to other webpages, or the designated position that is linked on the page of the network address to be measured.
(2) the corresponding action event of the input frame element includes input random text event, empties textual event.
Such as:After it is input frame element that the acquiring unit 111, which gets the operation element on the page of network address to be measured, The acquiring unit 111 gets the corresponding action event of the input frame element as input random text event or empties text Present event, then the electronic equipment can input text in the input frame element, or empty text.
(3) the corresponding action event of the button element includes click event.
Such as:After it is button element that the acquiring unit 111, which gets the operation element on the page of network address to be measured, institute It is click event to state acquiring unit 111 and get the corresponding action event of the button element, that is to say, that when the acquisition is single When member 111 gets user and clicks the signal of the button element, the electronic equipment executes corresponding of the button element Business, such as:It brings into operation, is operation suspension, out of service etc..
(4) the corresponding action event of the drop-down choice box element includes choosing a certain option event.
Such as:It is drop-down choice box member when the acquiring unit 111 gets the operation element on the page of network address to be measured Element is (such as:The drop-down choice box element includes option A, option B and option C) after, the acquiring unit 111 get it is described under It is to choose a certain option event to draw the corresponding action event of choice box element, that is to say, that when the acquiring unit 111 is got After user chooses the option A in the drop-down choice box element, the electronic equipment is using the option A as the choosing of the user It selects and is shown on the page of the network address to be measured.
(5) the corresponding action event of the radio button element includes choosing event.
Such as:It is radio button element when the acquiring unit 111 gets the operation element on the page of network address to be measured (such as:The radio button element includes option A, option B and option C) after, the acquiring unit 111 get the single choice by The corresponding action event of button element is to choose event, that is to say, that chooses the list when the acquiring unit 111 gets user After selecting the option A in button element, the electronic equipment includes described using the option A as the selection of the user On the page of network address to be measured.
(6) the corresponding action event of the multiselect frame element includes choosing event.
Such as:It is multiselect frame element when the acquiring unit 111 gets the operation element on the page of network address to be measured (such as:The multiselect frame element includes option A, option B and option C) after, the acquiring unit 111 gets the multiselect frame member The corresponding action event of element is to choose event, that is to say, that chooses the multiselect frame when the acquiring unit 111 gets user After the option A and the option B in element, the electronic equipment is using the option A and the option B as the user Selection be shown on the page of the network address to be measured.
Certainly, in other embodiments, the action event of the operation element and the operation element can also have it His form, the present invention are not restricted.
Selection unit 112 chooses operation element to be measured from the operation element of the acquisition.
Preferably, the selection unit 112 chooses operation element to be measured from the operation element of the acquisition and includes, but not It is limited to the combination of following one or more:
(1) selection unit 112 obtains the access times of the operation element of the acquisition, and access times are more than or The operation element that person is equal to preset times is determined as the operation element to be measured.
Such as:After the selection unit 112 obtains the access times of operation element of the acquisition, the selection unit The 112 operation elements that access times can be more than or equal to preset times 200 times are determined as the operation element to be measured.
Specifically, the preset times can carry out self-defined setting according to actual conditions by user, and the present invention does not limit System.
(2) selection unit 112 obtains the access times of the operation element of the acquisition, by the operation member of the acquisition The access times of element are ranked up according to sequence from more to less, and before coming the operation element of presetting digit capacity be determined as it is described Operation element to be measured.
Such as:The selection unit 112 obtains the access times of the operation element of the acquisition, and by the behaviour of the acquisition The access times for making element are ranked up according to sequence from more to less, before the selection unit 112 will come before presetting digit capacity 20 operation elements are determined as the operation element to be measured.
Specifically, the presetting digit capacity can carry out self-defined setting according to actual conditions by user, and the present invention does not limit System.
(3) selection unit 112 obtains the error rate of the operation element of the acquisition, and error rate is more than or is waited It is determined as the operation element to be measured in the operation element of default error rate.
Such as:After the selection unit 112 obtains the error rate of operation element of the acquisition, the selection unit 112 The operation element that error rate is more than or equal to default error rate 75% is determined as the operation element to be measured.
Specifically, the default error rate can carry out self-defined setting according to actual conditions by user, and the present invention does not make Limitation.
(4) selection unit 112 obtains the error rate of the operation element of the acquisition, by the operation element of the acquisition Error rate be ranked up according to sequence from high to low, and will come before presetting digit capacity operation element be determined as it is described to be measured Operate element.
Such as:The selection unit 112 obtains the error rate of the operation element of the acquisition, and by the operation of the acquisition The error rate of element is ranked up according to sequence from high to low, before the selection unit 112 will come 20 before presetting digit capacity Operation element be determined as the operation element to be measured.
Specifically, the default error rate can carry out self-defined setting according to actual conditions by user, and the present invention does not make Limitation.
(5) after getting the operation element to be measured of selection, the selection unit 112 obtains the operation to be measured of the selection The operation associated element of element, and the operation associated element is determined as the operation element to be measured.
Such as:After getting the operation element X to be measured of selection, the selection unit 112 obtains the operation member to be measured The operation associated element of plain X is Y and Z, and the Y and Z are determined as the operation element to be measured by the selection unit 112 simultaneously.
(6) selection unit 112 obtains current test module, and the current test module corresponds to a kind of user group, The selection unit 112 obtains the corresponding operation element of the current test module from the operation element of the acquisition, and will The corresponding operation element is determined as the operation element to be measured.
Specifically, multiple modules, each module correspond to different user groups, such as a gold in the network address to be measured Melt in class network address, there is enterprise customer's module that personal user's module of personal use, enterprise use.It, can be with when test Only test a module.
Such as:If it is W, then the operation element from the acquisition that the selection unit 112, which gets current test module, Middle to obtain the corresponding operation elements of the W, the corresponding operation element is determined as the behaviour to be measured by the selection unit 112 Make element.
It is understood that due to may include a large amount of operation element on a page, but some operation elements are What user hardly used, therefore, the higher operation element of frequency of use can be filtered out by way of above-mentioned (1)-(2) As the operation element to be measured;Again since some operation elements are that error rate is very low or do not malfunction, by upper The higher operation element of error rate can be filtered out as the operation element to be measured by stating the mode of (3)-(4);Again due to some It is to be mutually related between operation element, after having executed the action event of an operation element, associated operation will be continued to execute Therefore associated action event directly can be determined as the behaviour to be measured by the action event of element by way of above-mentioned (5) Make element, avoids complicated screening process;Again due to need to only correspond to the part behaviour on one page of test in a test module Make element, therefore, can directly be transferred by way of above-mentioned (6) and be waited for described in the corresponding action event conduct of current test module Survey operation element.
In this way, not only the efficiency of test can be influenced to avoid due to extra test job, but also the cost of test can be saved.
The action event of the operation element to be measured and the operation element to be measured is sent to described wait for by transmission unit 113 The page of survey grid location is tested.
By the above embodiment, the electronic equipment is according to the operation element to be measured and the operation element to be measured Action event, you can the page of the network address to be measured is tested, test method is not restricted.
Such as:The transmission unit 113 can be by the operation element hyperlink element to be measured of selection and hyperlink member The page that the corresponding action event click event of element is sent to the network address to be measured is tested.
Judging unit 114 judges whether the page of the network address to be measured has error information.
In the present embodiment, when the page of the network address to be measured is wrong, the judging unit 114 will send out the letter that reports an error Breath.
Such as:When carrying out clicking operation to the hyperlink element, if being not linked to other webpages or chain It is connected to the designated position on the page of the network address to be measured, then explanation is in the page of the network address to be measured, the hyperlink member There is mistake in plain position, and the judging unit 114 will send out error information.
Specifically, the error information may be shown on the page in the form of prompting frame, it is also possible to be marked in advance On the page, the present invention is not restricted for note display.
When the page of the network address to be measured has error information, output unit 115 exports the error information.
Preferably, when the page of the network address to be measured has error information, the method further includes:
The acquiring unit 111 obtains the corresponding daily record of the error information, and sectional drawing unit 116 is surveyed by the automation Trial work tool carries out sectional drawing to the daily record, obtains daily record sectional drawing, and the sectional drawing unit 116 preserves the daily record sectional drawing to specified Position.
Specifically, the driver instruction browser of Selenium tools executes order, finally by browser in kernel It carries out sectional drawing and preserves operation, final effect intercepts the complete phase of effect of picture and preservation with user using mouse on the page Together.
Further, the sectional drawing unit 116 preserves the daily record sectional drawing to after designated position (such as specified folder), It can also be named for the daily record sectional drawing according to information such as the content of the daily record sectional drawing or times, it is convenient subsequently to the day Will sectional drawing is inquired.
Preferably, resolution unit 117 parses the daily record, obtains the classification of erroneous point and erroneous point, the transmission unit The erroneous point of every class according to the classification of the erroneous point, is sent to corresponding maintenance personnel by 113.
Preferably, the resolution unit 117 parses the daily record, obtains erroneous point and includes:
The resolution unit 117 obtains erroneous point using trained wrong identification model from the daily record.
In the present embodiment, training unit 118 trains the wrong identification model to include:
The training unit 118 configures the erroneous point training sample data of the different error categories, will be different classes of Training sample data are distributed in different files.For example, the training sample data of first category are distributed to the first file Underedge;The training sample data of second category are distributed in the second file;The training sample data of third classification are distributed to In three files;The training sample data of 4th classification are distributed in the 4th file.The never same file of the training unit 118 The first preset ratio of each extraction under folder, for example, 70% training sample data carry out the wrong identification mould as training data The training of type, the training unit 118 is never with remaining second preset ratio is respectively taken under file, for example, 30% training Sample data is as test data to carry out Accuracy Verification to the wrong identification model of generation.
If the wrong identification model accuracy rate generated is less than default accuracy rate, for example, 99%, then the training unit 118 increase the acquisition quantity of the different classes of training sample data, repeat the generation of wrong identification model described above Journey presets accuracy rate, for example, 99% until the wrong identification model accuracy rate of generation is more than or equal to.
The erroneous point of every class is sent to and corresponding safeguards people according to the classification of the erroneous point by the transmission unit 113 Member.
By the above embodiment, the error message of corresponding classification can be sent to corresponding maintenance personnel, not only more Added with specific aim, while maintenance efficiency is improved, saved due to the loss of time caused by matching maintenance personnel.
Such as:When it is H to determine error category, the transmission unit 113 obtains the corresponding maintenance personnel I of H, the transmission Error message is sent to the maintenance personnel I by unit 113, so that the maintenance personnel I is safeguarded immediately.
Specifically, the error message of every class can be sent to by the transmission unit 113 in a manner of short message or mail etc. Corresponding maintenance personnel, the present invention are not restricted.
In conclusion the present invention can use automated test tool to start browser, and start network address to be measured;Described in acquisition The action event of operation element and the operation element on the page of network address to be measured;It is selected from the operation element of the acquisition Take operation element to be measured;The action event of the operation element to be measured and the operation element to be measured is sent to and described waits for survey grid The page of location is tested, and to carry out targetedly robustness testing to webpage, judges that the page of the network address to be measured is It is no to have error information;When the page of the network address to be measured has error information, the error information is exported, due to above-mentioned test side Case has specific aim, therefore will not be impacted to other functions of system to be tested, to ensure that the steady of test system to be measured The integrality of system function qualitative and to be tested.
As shown in figure 3, being that the present invention realizes that the structure of electronic equipment of the preferred embodiment of Webpage test method is shown It is intended to.
The electronic equipment 1 be it is a kind of can according to the instruction for being previously set or storing, it is automatic carry out numerical computations and/or The equipment of information processing, hardware include but not limited to microprocessor, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment 1 can also be but not limited to any type can with user by keyboard, mouse, remote controler, touch The modes such as template or voice-operated device carry out the electronic product of human-computer interaction, for example, personal computer, tablet computer, smart mobile phone, Personal digital assistant (Personal Digital Assistant, PDA), game machine, Interactive Internet TV (Internet Protocol Television, IPTV), intellectual Wearable etc..
The electronic equipment 1 can also be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.
Network residing for the electronic equipment 1 include but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, it is virtual specially With network (Virtual Private Network, VPN) etc..
In one embodiment of the invention, the electronic equipment 1 includes, but are not limited to memory 12, processor 13, And it is stored in the computer program that can be run in the memory 12 and on the processor 13, such as Webpage test Program.
It will be understood by those skilled in the art that the schematic diagram is only the example of electronic equipment 1, not structure paired electrons The restriction of equipment 1 may include either combining certain components or different components, example than illustrating more or fewer components Such as electronic equipment 1 can also include input-output equipment, network access equipment, bus.
Alleged processor 13 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng the processor 13 is arithmetic core and the control centre of the electronic equipment 1, entire using various interfaces and connection The various pieces of electronic equipment 1, and execute the operating system of the electronic equipment 1 and types of applications program, the program of installation Code etc..
The processor 13 executes the operating system of the electronic equipment 1 and the types of applications program of installation.The place Reason device 13 executes the application program to realize the step in above-mentioned each Webpage test method embodiment, such as Fig. 1 institutes Step S10, S11, S12, S13, S14 and the S15 shown.
Alternatively, the processor 13 realizes each module in above-mentioned each device embodiment/mono- when executing the computer program The function of member, such as:Browser is started using automated test tool, and starts network address to be measured;Obtain the network address to be measured The action event of operation element and the operation element on the page;Operation to be measured is chosen from the operation element of the acquisition Element;By the action event of the operation element to be measured and the operation element to be measured be sent to the page of the network address to be measured into Row test;Judge whether the page of the network address to be measured has error information;When the page of the network address to be measured has error information, Export the error information.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory 12, and is executed by the processor 13, to complete the present invention.It is one Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for retouching State implementation procedure of the computer program in the electronic equipment 1.It is opened for example, the computer program can be divided into Moving cell 110, acquiring unit 111, selection unit 112, transmission unit 113, judging unit 114, output unit 115, sectional drawing list Member 116, resolution unit 117 and training unit 118.
The memory 12 can be used for storing the computer program and/or module, the processor 13 by operation or The computer program and/or module being stored in the memory 12 are executed, and calls the data being stored in memory 12, Realize the various functions of the electronic equipment 1.The memory 12 can include mainly storing program area and storage data field, In, storing program area can storage program area, application program (such as sound-playing function, image needed at least one function Playing function etc.) etc.;Storage data field can be stored uses created data (such as audio data, phone directory according to mobile phone Deng) etc..In addition, memory 12 may include high-speed random access memory, can also include nonvolatile memory, such as firmly Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states Part.
The memory 12 can be the external memory and/or internal storage of electronic equipment 1.Further, described Memory 12 can be the circuit with store function for not having in integrated circuit physical form, such as RAM (Random-Access Memory, random access memory), FIFO (First In First Out) etc..Alternatively, the memory 12 can also be Memory with physical form, such as memory bar, TF card (Trans-flash Card).
If the integrated module/unit of the electronic equipment 1 is realized in the form of SFU software functional unit and as independent Product is sold or in use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention is real All or part of flow in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, which is being executed by processor When, it can be achieved that the step of above-mentioned each embodiment of the method.
Wherein, the computer program includes computer program code, and the computer program code can be source code Form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include:It can Carry any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer of the computer program code Memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium Including content can carry out increase and decrease appropriate according to legislation in jurisdiction and the requirement of patent practice, such as in certain departments Method administrative area, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
In conjunction with Fig. 1, the memory 12 in the electronic equipment 1 stores multiple instruction to realize that a kind of Webpage is surveyed Method for testing, the processor 13 can perform the multiple instruction to realize:Browser is started using automated test tool, and Start network address to be measured;Obtain the action event of the operation element and the operation element on the page of the network address to be measured;From Operation element to be measured is chosen in the operation element of the acquisition;By the behaviour of the operation element to be measured and the operation element to be measured The page that the network address to be measured is sent to as event is tested;Judge whether the page of the network address to be measured has error information; When the page of the network address to be measured has error information, the error information is exported.
According to the preferred embodiment of the present invention, the operation element includes the combination of following one or more:
Hyperlink element, input frame element, button element, drop-down choice box element, radio button element, multiselect frame member Element;
The action event of the operation element includes the combination of following one or more:
The corresponding action event of the hyperlink element includes click event;And/or
The corresponding action event of the input frame element includes input random text event, empties textual event;And/or
The corresponding action event of the button element includes click event;And/or
The corresponding action event of the drop-down choice box element includes choosing an option event;And/or
The corresponding action event of the radio button element includes choosing event;And/or
The corresponding action event of the multiselect frame element includes choosing event.
According to the preferred embodiment of the present invention, the processor 13 also executes multiple instruction and includes:
The access times of the operation element of the acquisition are obtained, and access times are more than or equal to the behaviour of preset times It is determined as the operation element to be measured as element;And/or
Obtain the acquisition operation element access times, by the acquisition operation element access times according to by More to few sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
The error rate of the operation element of the acquisition is obtained, and error rate is more than or equal to the operation of default error rate Element is determined as the operation element to be measured;And/or
Obtain the acquisition operation element error rate, by the acquisition operation element error rate according to by height to Low sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
After getting the operation element to be measured of selection, the operation associated member of the operation element to be measured of the selection is obtained Element, and the operation associated element is determined as the operation element to be measured;And/or
Current test module is obtained, and obtains the corresponding behaviour of the current test module from the operation element of the acquisition Make element, and the corresponding operation element is determined as the operation element to be measured, wherein the current test module corresponds to A kind of user group.
According to the preferred embodiment of the present invention, the processor 13 also executes multiple instruction and includes:
Obtain the corresponding daily record of the error information;
Sectional drawing is carried out to the daily record by the automated test tool, obtains daily record sectional drawing, and the daily record is cut Figure is preserved to designated position.
According to the preferred embodiment of the present invention, the processor 13 also executes multiple instruction and includes:
The daily record is parsed, the classification of erroneous point and erroneous point is obtained;
According to the classification of the erroneous point, the erroneous point of every class is sent to corresponding maintenance personnel.
According to the preferred embodiment of the present invention, the processor 13 also executes multiple instruction and includes:
Using trained wrong identification model erroneous point is obtained from the daily record.
According to the preferred embodiment of the present invention, the processor 13 also executes multiple instruction and includes:
Before obtaining erroneous point in the daily record, the wrong identification mould is being trained using trained wrong identification model Type;
The training wrong identification model includes:
The training sample data for configuring the erroneous point of the different error categories, by different classes of training sample data point It is dealt into different files, extracts the training sample data training of the first preset ratio respectively from the different file Wrong identification model increases the different wrong classes when the accuracy rate of the wrong identification model of generation is less than default accuracy rate The acquisition ratio of other training sample data repeats the training process of the wrong identification model, until the wrong identification of generation The accuracy rate of model is more than or equal to the default accuracy rate.
Specifically, the processor 13 can refer to the concrete methods of realizing of above-metioned instruction related in Fig. 1 corresponding embodiments The description of step, this will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
The module illustrated as separating component may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.
Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, this The range of invention is indicated by the appended claims rather than the foregoing description, it is intended that by falling in the equivalent requirements of the claims All changes in meaning and scope include within the present invention.Any attached associated diagram label in claim should not be considered as limit The involved claim of system.
Furthermore, it is to be understood that one word of " comprising " is not excluded for other units or step, odd number is not excluded for plural number.In system claims The multiple units or device of statement can also be realized by a unit or device by software or hardware.Second equal words are used It indicates title, and does not represent any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, it will be understood by those of ordinary skill in the art that, it can be to the present invention's Technical solution is modified or equivalent replacement, without departing from the spirit of the technical scheme of the invention and range.

Claims (10)

1. a kind of Webpage test method, which is characterized in that the method includes:
Browser is started using automated test tool, and starts network address to be measured;
Obtain the action event of the operation element and the operation element on the page of the network address to be measured;
Operation element to be measured is chosen from the operation element of the acquisition;
By the action event of the operation element to be measured and the operation element to be measured be sent to the page of the network address to be measured into Row test;
Judge whether the page of the network address to be measured has error information;
When the page of the network address to be measured has error information, the error information is exported.
2. Webpage test method as described in claim 1, which is characterized in that the operation element include it is following a kind of or The a variety of combination of person:
Hyperlink element, input frame element, button element, drop-down choice box element, radio button element, multiselect frame element;
The action event of the operation element includes the combination of following one or more:
The corresponding action event of the hyperlink element includes click event;And/or
The corresponding action event of the input frame element includes input random text event, empties textual event;And/or
The corresponding action event of the button element includes click event;And/or
The corresponding action event of the drop-down choice box element includes choosing an option event;And/or
The corresponding action event of the radio button element includes choosing event;And/or
The corresponding action event of the multiselect frame element includes choosing event.
3. Webpage test method as described in claim 1, which is characterized in that in the operation element from the acquisition Choose the combination that operation element to be measured includes following one or more:
The access times of the operation element of the acquisition are obtained, and access times are more than or equal to the operation member of preset times Element is determined as the operation element to be measured;And/or
The access times for obtaining the operation element of the acquisition, by the access times of the operation element of the acquisition according to by more to Few sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
The error rate of the operation element of the acquisition is obtained, and error rate is more than or equal to the operation element of default error rate It is determined as the operation element to be measured;And/or
The error rate for obtaining the operation element of the acquisition, by the error rate of the operation element of the acquisition according to from high to low Sequence is ranked up, and the operation element that will come preceding presetting digit capacity is determined as the operation element to be measured;And/or
After getting the operation element to be measured of selection, the operation associated element of the operation element to be measured of the selection is obtained, and The operation associated element is determined as the operation element to be measured;And/or
Current test module is obtained, and obtains the corresponding operation member of the current test module from the operation element of the acquisition Element, and the corresponding operation element is determined as the operation element to be measured, wherein the current test module corresponds to a kind of User group.
4. Webpage test method as described in claim 1, which is characterized in that the method further includes:
Obtain the corresponding daily record of the error information;
Sectional drawing is carried out to the daily record by the automated test tool, obtains daily record sectional drawing, and the daily record sectional drawing is protected It deposits to designated position.
5. Webpage test method as claimed in claim 4, which is characterized in that the method further includes:
The daily record is parsed, the classification of erroneous point and erroneous point is obtained;
According to the classification of the erroneous point, the erroneous point of every class is sent to corresponding maintenance personnel.
6. Webpage test method as claimed in claim 5, which is characterized in that the parsing daily record obtains mistake It puts and includes:
Using trained wrong identification model erroneous point is obtained from the daily record.
7. Webpage test method as claimed in claim 6, which is characterized in that the method further includes:
Before obtaining erroneous point in the daily record, the wrong identification model is being trained using trained wrong identification model;
The training wrong identification model includes:
The training sample data for configuring the erroneous point of the different error categories, different classes of training sample data are distributed to In different files, the training sample data training mistake of the first preset ratio is extracted respectively from the different file Identification model increases the different error categories when the accuracy rate of the wrong identification model of generation is less than default accuracy rate The acquisition ratio of training sample data repeats the training process of the wrong identification model, until the wrong identification model of generation Accuracy rate be more than or equal to the default accuracy rate.
8. a kind of Webpage test device, which is characterized in that described device includes:
Start unit for starting browser using automated test tool, and starts network address to be measured;
Acquiring unit, the operation thing of operation element and the operation element on the page for obtaining the network address to be measured Part;
Selection unit, for choosing operation element to be measured from the operation element of the acquisition;
Transmission unit, it is described to be measured for the action event of the operation element to be measured and the operation element to be measured to be sent to The page of network address is tested;
Judging unit, for judging whether the page of the network address to be measured has error information;
Output unit, for when the page of the network address to be measured has error information, exporting the error information.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize webpage as claimed in any of claims 1 to 7 in one of claims Page test method.
10. a kind of computer readable storage medium, it is characterised in that:At least one is stored in the computer readable storage medium A instruction, at least one instruction are executed by the processor in electronic equipment to realize such as any one of claim 1 to 7 The Webpage test method.
CN201810316068.9A 2018-04-10 2018-04-10 Webpage testing method and device, electronic equipment and medium Active CN108628741B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810316068.9A CN108628741B (en) 2018-04-10 2018-04-10 Webpage testing method and device, electronic equipment and medium
PCT/CN2018/099282 WO2019196274A1 (en) 2018-04-10 2018-08-08 Web page testing method and apparatus, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810316068.9A CN108628741B (en) 2018-04-10 2018-04-10 Webpage testing method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN108628741A true CN108628741A (en) 2018-10-09
CN108628741B CN108628741B (en) 2021-10-01

Family

ID=63705027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810316068.9A Active CN108628741B (en) 2018-04-10 2018-04-10 Webpage testing method and device, electronic equipment and medium

Country Status (2)

Country Link
CN (1) CN108628741B (en)
WO (1) WO2019196274A1 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542763A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 Page monitoring method, device, computer equipment and storage medium
CN109710528A (en) * 2018-12-25 2019-05-03 中国人民财产保险股份有限公司 A kind of test script generation method, device, equipment and medium
CN109783168A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 The method, apparatus of individualized selection user interface element, medium, electronic equipment
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN110287108A (en) * 2019-05-31 2019-09-27 北京随信云链科技有限公司 A kind of page test method calculates equipment and storage medium
CN110781089A (en) * 2019-10-31 2020-02-11 睿云联(厦门)网络通讯技术有限公司 Method and device for automatically testing UI of equipment, electronic equipment and medium
CN111061526A (en) * 2019-10-12 2020-04-24 平安普惠企业管理有限公司 Automatic testing method and device, computer equipment and storage medium
CN111258904A (en) * 2020-01-16 2020-06-09 恩亿科(北京)数据科技有限公司 Webpage element testing method and related device
CN111949510A (en) * 2019-05-17 2020-11-17 百度在线网络技术(北京)有限公司 Test processing method and device, electronic equipment and readable storage medium
CN111983429A (en) * 2020-08-19 2020-11-24 Oppo广东移动通信有限公司 Chip verification system, chip verification method, terminal and storage medium
CN112152823A (en) * 2019-06-26 2020-12-29 北京易真学思教育科技有限公司 Website operation error monitoring method and device and computer storage medium
CN112347244A (en) * 2019-08-08 2021-02-09 四川大学 Method for detecting website involved in yellow and gambling based on mixed feature analysis
CN112579948A (en) * 2019-09-29 2021-03-30 北京国双科技有限公司 Webpage screenshot method and device, storage medium and electronic equipment
CN112631704A (en) * 2020-12-26 2021-04-09 深圳集智数字科技有限公司 Interface element identification method and device, storage medium and electronic equipment
CN112685253A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 Front-end error log collection method, device, equipment and storage medium
CN113254018A (en) * 2021-07-14 2021-08-13 广州易方信息科技股份有限公司 Automatic operation method and device for webpage view
CN113342637A (en) * 2021-05-08 2021-09-03 深圳奥哲网络科技有限公司 Application testing method, system, equipment and storage medium based on metadata
CN113656319A (en) * 2021-08-25 2021-11-16 广东三维家信息科技有限公司 Regression testing method and device, electronic equipment and storage medium
CN115202762A (en) * 2022-09-13 2022-10-18 北京达佳互联信息技术有限公司 Application program control method and device, electronic equipment and storage medium
CN115426277A (en) * 2022-08-30 2022-12-02 杭州安恒信息技术股份有限公司 Quality safety detection method, device, equipment and readable storage medium

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104308A (en) * 2019-11-12 2020-05-05 贝壳技术有限公司 Display page testing method and device, storage medium and electronic equipment
CN111026648A (en) * 2019-11-21 2020-04-17 汉海信息技术(上海)有限公司 Application program page testing method and device, electronic equipment and storage medium
CN111045934A (en) * 2019-11-29 2020-04-21 北京三快在线科技有限公司 Page analysis method, device, client, storage medium and electronic equipment
CN110888709A (en) * 2019-12-04 2020-03-17 中山市凯能集团有限公司 Intelligent operation method and device of monitoring screen, computer equipment and storage medium
CN111159028B (en) * 2019-12-23 2023-08-01 望海康信(北京)科技股份公司 Webpage testing method and device
CN111488539B (en) * 2020-04-08 2023-04-21 中国银行股份有限公司 Page adjustment method and device
CN114077537A (en) * 2020-08-14 2022-02-22 福建天泉教育科技有限公司 Optimization method and system of UI (user interface) automation test framework
CN112649717A (en) * 2020-09-15 2021-04-13 广州市几米物联科技有限公司 Test method, test device, terminal equipment and storage medium
CN112231214B (en) * 2020-10-16 2023-09-26 百度国际科技(深圳)有限公司 Page test method, device, electronic equipment and medium
CN112256984B (en) * 2020-10-22 2022-09-30 上海万物新生环保科技集团有限公司 Method and device for acquiring interface background screenshot corresponding to webpage
CN112671615B (en) * 2020-12-29 2023-07-07 中国平安财产保险股份有限公司 Method, system and storage medium for collecting front-end user operation behavior data
CN113760721A (en) * 2021-01-13 2021-12-07 北京沃东天骏信息技术有限公司 Page testing method and device
CN113238958A (en) * 2021-06-01 2021-08-10 广东好太太智能家居有限公司 Automatic testing method and device for big data visualization platform and electronic equipment
CN113220596B (en) * 2021-06-17 2024-04-30 中国农业银行股份有限公司 Application testing method, device, equipment, storage medium and program product
CN113791968A (en) * 2021-08-10 2021-12-14 武汉光庭信息技术股份有限公司 UI automation test method, system, electronic equipment and storage medium
CN115277396B (en) * 2022-08-04 2024-03-26 北京智慧星光信息技术有限公司 Message driving method and system for simulating browser operation

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768641A (en) * 2012-06-15 2012-11-07 深圳中兴网信科技有限公司 Webpage testing factor selecting device and webpage testing factor selecting method
CN103678120A (en) * 2013-11-12 2014-03-26 北京京东尚科信息技术有限公司 Automatic web-application testing method based on modeling
CN104461855A (en) * 2013-09-22 2015-03-25 腾讯科技(北京)有限公司 Automatic Web testing method, system and device
US9336126B1 (en) * 2014-06-24 2016-05-10 Amazon Technologies, Inc. Client-side event logging for heterogeneous client environments
CN105653444A (en) * 2015-12-23 2016-06-08 北京大学 Internet log data-based software defect failure recognition method and system
CN105677615A (en) * 2016-01-04 2016-06-15 北京邮电大学 Distributed machine learning method based on weka interface
CN106126413A (en) * 2016-06-16 2016-11-16 南通大学 Software Defects Predict Methods based on two benches packaging type feature selection
CN107203464A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 The localization method and device of traffic issues
CN107665165A (en) * 2016-07-27 2018-02-06 中兴通讯股份有限公司 Ambient noise generation method and device, method for testing pressure and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521121B (en) * 2011-11-18 2015-04-08 华为技术有限公司 Page testing method and page testing device
US20140351796A1 (en) * 2013-05-24 2014-11-27 Microsoft Corporation Accessibility compliance testing using code injection
CN105843734B (en) * 2016-03-18 2019-03-15 厦门美图移动科技有限公司 A kind of automated testing method, device and calculate equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768641A (en) * 2012-06-15 2012-11-07 深圳中兴网信科技有限公司 Webpage testing factor selecting device and webpage testing factor selecting method
CN104461855A (en) * 2013-09-22 2015-03-25 腾讯科技(北京)有限公司 Automatic Web testing method, system and device
WO2015039566A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Method and system for facilitating automated web page testing
CN103678120A (en) * 2013-11-12 2014-03-26 北京京东尚科信息技术有限公司 Automatic web-application testing method based on modeling
US9336126B1 (en) * 2014-06-24 2016-05-10 Amazon Technologies, Inc. Client-side event logging for heterogeneous client environments
CN105653444A (en) * 2015-12-23 2016-06-08 北京大学 Internet log data-based software defect failure recognition method and system
CN105677615A (en) * 2016-01-04 2016-06-15 北京邮电大学 Distributed machine learning method based on weka interface
CN107203464A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 The localization method and device of traffic issues
CN106126413A (en) * 2016-06-16 2016-11-16 南通大学 Software Defects Predict Methods based on two benches packaging type feature selection
CN107665165A (en) * 2016-07-27 2018-02-06 中兴通讯股份有限公司 Ambient noise generation method and device, method for testing pressure and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XIAO-YANG GUO 等: "Design and implementation of performance testing model for Web Services", 《IEEE》 *
明仲 等: "一种Web系统性能测试框架及其混合建模过程", 《计算机研究与发展》 *

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542763A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 Page monitoring method, device, computer equipment and storage medium
CN109783168A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 The method, apparatus of individualized selection user interface element, medium, electronic equipment
CN109783168B (en) * 2018-12-13 2023-07-18 平安科技(深圳)有限公司 Method, device, medium and electronic equipment for personalized selection of user interface element
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN109710528A (en) * 2018-12-25 2019-05-03 中国人民财产保险股份有限公司 A kind of test script generation method, device, equipment and medium
CN109710528B (en) * 2018-12-25 2022-03-01 中国人民财产保险股份有限公司 Test script generation method, device, equipment and medium
CN111949510B (en) * 2019-05-17 2024-05-14 百度在线网络技术(北京)有限公司 Test processing method, device, electronic equipment and readable storage medium
CN111949510A (en) * 2019-05-17 2020-11-17 百度在线网络技术(北京)有限公司 Test processing method and device, electronic equipment and readable storage medium
CN110287108A (en) * 2019-05-31 2019-09-27 北京随信云链科技有限公司 A kind of page test method calculates equipment and storage medium
CN112152823A (en) * 2019-06-26 2020-12-29 北京易真学思教育科技有限公司 Website operation error monitoring method and device and computer storage medium
CN112347244A (en) * 2019-08-08 2021-02-09 四川大学 Method for detecting website involved in yellow and gambling based on mixed feature analysis
CN112579948A (en) * 2019-09-29 2021-03-30 北京国双科技有限公司 Webpage screenshot method and device, storage medium and electronic equipment
CN111061526A (en) * 2019-10-12 2020-04-24 平安普惠企业管理有限公司 Automatic testing method and device, computer equipment and storage medium
CN111061526B (en) * 2019-10-12 2023-12-01 天航长鹰(江苏)科技有限公司 Automatic test method, device, computer equipment and storage medium
CN110781089A (en) * 2019-10-31 2020-02-11 睿云联(厦门)网络通讯技术有限公司 Method and device for automatically testing UI of equipment, electronic equipment and medium
CN111258904A (en) * 2020-01-16 2020-06-09 恩亿科(北京)数据科技有限公司 Webpage element testing method and related device
CN111983429A (en) * 2020-08-19 2020-11-24 Oppo广东移动通信有限公司 Chip verification system, chip verification method, terminal and storage medium
CN112631704A (en) * 2020-12-26 2021-04-09 深圳集智数字科技有限公司 Interface element identification method and device, storage medium and electronic equipment
CN112685253A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 Front-end error log collection method, device, equipment and storage medium
CN113342637A (en) * 2021-05-08 2021-09-03 深圳奥哲网络科技有限公司 Application testing method, system, equipment and storage medium based on metadata
CN113254018A (en) * 2021-07-14 2021-08-13 广州易方信息科技股份有限公司 Automatic operation method and device for webpage view
CN113656319A (en) * 2021-08-25 2021-11-16 广东三维家信息科技有限公司 Regression testing method and device, electronic equipment and storage medium
CN115426277A (en) * 2022-08-30 2022-12-02 杭州安恒信息技术股份有限公司 Quality safety detection method, device, equipment and readable storage medium
CN115202762B (en) * 2022-09-13 2023-03-10 北京达佳互联信息技术有限公司 Application program control method and device, electronic equipment and storage medium
CN115202762A (en) * 2022-09-13 2022-10-18 北京达佳互联信息技术有限公司 Application program control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108628741B (en) 2021-10-01
WO2019196274A1 (en) 2019-10-17

Similar Documents

Publication Publication Date Title
CN108628741A (en) Webpage test method, device, electronic equipment and medium
US10650082B2 (en) Collaborative virtual markup
US10466971B2 (en) Generation of an application from data
US11645046B2 (en) Systems and methods for development and deployment of software platforms having advanced workflow and event processing components
CN111930370A (en) Visualized page processing method and device, computer equipment and storage medium
CN114330233A (en) Method for realizing correlation between electronic form content and file through file bottom
CN108140018A (en) Creation is used for the visual representation of text based document
CN105335338B (en) A kind of electronic document conversion method and device
CN112711418B (en) Front-end interface layout method and device for multiple components, electronic equipment and storage medium
CN105894183A (en) Project evaluation method and apparatus
US20110191381A1 (en) Interactive System for Extracting Data from a Website
EP1830275A1 (en) Information distribution system
CN107451112B (en) Form tool data checking method, device, terminal equipment and storage medium
CN106951495A (en) Method and apparatus for information to be presented
CN101976394A (en) Data acquiring and counting system and method
CN107169076A (en) Method, system and the computer-readable recording medium cleaned for 2-D data
CN116663517A (en) Single-screen operation method based on workflow form system data interaction and input content
CN117193745A (en) Application development method and device combining assembly and large language model
CN109949090A (en) Lead referral method, apparatus, electronic equipment and medium
CN111435300A (en) Web system development method, device, equipment and storage medium
CN108874829A (en) Processing method, device, smart machine and the computer storage medium of webpage
CN107168627A (en) Method for editing text and device for touch-screen
JP6855720B2 (en) Information processing equipment and information processing programs
KR20160011905A (en) Computer readable medium recording program for converting to online learning data and method of converting to online learning data
KR101077206B1 (en) System and method of font management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant