CN110362488A - A kind of page test method, device, electronic equipment and storage medium - Google Patents

A kind of page test method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110362488A
CN110362488A CN201910628860.2A CN201910628860A CN110362488A CN 110362488 A CN110362488 A CN 110362488A CN 201910628860 A CN201910628860 A CN 201910628860A CN 110362488 A CN110362488 A CN 110362488A
Authority
CN
China
Prior art keywords
test
browser
smoke
page
target pages
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
CN201910628860.2A
Other languages
Chinese (zh)
Other versions
CN110362488B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910628860.2A priority Critical patent/CN110362488B/en
Publication of CN110362488A publication Critical patent/CN110362488A/en
Application granted granted Critical
Publication of CN110362488B publication Critical patent/CN110362488B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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

The invention discloses a kind of page test method, device, electronic equipment and storage mediums;This method comprises: obtaining and the matched test browser collection of target pages and smoke test item set to be tested;Start at least one target detection browser in the test browser collection, and executes the operation for loading the target pages in the target detection browser;Using each smoke test item for including in the smoke test item set, smoke test is carried out at least one described target detection browser to the target pages.The technical solution of the embodiment of the present invention, by obtaining and the matched test browser collection of target pages and smoke test item set, it not only realizes while opening target webpage respectively using multiple browsers and respectively carry out smoke test, the test for completing multiple smoke test items in a smoke test is also achieved, the testing efficiency of smoke test is improved.

Description

A kind of page test method, device, electronic equipment and storage medium
Technical field
The present embodiments relate to network technique field more particularly to a kind of page test method, device, electronic equipment and Storage medium.
Background technique
With the rapid development of network technology, it is more and more extensive that internet covers crowd, and webpage is as most basic letter Exhibition method is ceased, extensive function services has been provided a user, therefore, the functional test of webpage has just been become increasingly to weigh It wants.
Smoke test, the purpose is to confirm the basic function normal operation of webpage, is avoided as one of webpage test Existing defects in webpage do not require each function in webpage to carry out detailed test, but need coverage area to be tested most May be big, test more webpage functions.
In implementing the present disclosure, the discovery prior art has following defect to inventor: since smoke test requires to survey It is as big as possible to try range, therefore, a webpage is usually needed repeatedly to be tested, to search the loophole of various functions, But such test mode needs take considerable time, human resources and test resource, testing efficiency are too low.
Summary of the invention
The present invention provides a kind of page test method, device, electronic equipment and storage mediums, are once being emitted with realizing The test of multiple smoke test items is completed in cigarette test.
In a first aspect, the embodiment of the invention provides a kind of page test methods, comprising:
It obtains and the matched test browser collection of target pages and smoke test item set to be tested;
Start at least one target detection browser in the test browser collection, and is browsed in the target detection The operation for loading the target pages is executed in device;
Using each smoke test item for including in the smoke test item set, to the target pages described at least one Smoke test is carried out in a target detection browser.
Second aspect, the embodiment of the invention provides a kind of page test devices, comprising:
Test set obtains module, for obtaining and the matched test browser collection of target pages to be tested, and Smoke test item set;
Target pages loading module, for starting at least one target detection browsing in the test browser collection Device, and the operation for loading the target pages is executed in the target detection browser;
Smoke test execution module, for using each smoke test item for including in the smoke test item set, to institute It states target pages and carries out smoke test at least one described target detection browser.
The third aspect the embodiment of the invention provides a kind of electronic equipment, including memory, processing unit and is stored in On reservoir and the computer program that can run in processing unit, the processing unit realize that the disclosure is appointed when executing described program Page test method described in embodiment of anticipating.
Fourth aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters Calculation machine executable instruction as computer processor when being executed for executing page test side described in disclosure any embodiment Method.
The present invention is by acquisition and the matched test browser collection of target pages and smoke test item set, at least It is carried out after loading target webpage in one target detection browser according to each smoke test item for including in smoke test item set Smoke test, not only realizes while opening target webpage respectively using multiple browsers and respectively carry out smoke test, also realizes The test that multiple smoke test items are completed in a smoke test, improves the testing efficiency of smoke test.
Detailed description of the invention
In conjunction with attached drawing and refer to following specific embodiments, the above and other feature, advantage of each embodiment of the disclosure and Aspect will be apparent.In attached drawing, the same or similar appended drawing reference indicates the same or similar element.It should manage Solution attached drawing is schematically that original part and element are not necessarily drawn to scale.
Fig. 1 is the flow chart of one of embodiment of the present disclosure one page test method;
Fig. 2 is the flow chart of one of embodiment of the present disclosure two page test method;
Fig. 3 is the structural block diagram of one of embodiment of the present disclosure three page test device;
Fig. 4 is the structural block diagram of one of the embodiment of the present disclosure four electronic equipment.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order, And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairs The range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based" It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates " at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixed Justice provides in will be described below.
It is noted that the concepts such as " first " that refers in the disclosure, " second " are only used for different devices, module or list Member distinguishes, and is not intended to limit the sequence or relation of interdependence of function performed by these devices, module or unit.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this field It will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodiment Purpose, and be not used to limit the range of these message or information.
Embodiment one
Fig. 1 is the flow chart for the page test method that the embodiment of the present disclosure one provides, and the present embodiment is applicable to test sheets Face whether there is the case where security breaches and defect, and this method can be executed by page test device, which can lead to Software and or hardware realization is crossed, and generally can integrate in page testing service device, this method specifically comprises the following steps:
S110, it obtains and the matched test browser collection of target pages and smoke test item set to be tested.
Test browser collection includes the one or more test browsers for being used to open target pages.Due to browser It is to explain the grammer of webpage by browser kernel (Rendering Engine) and render webpage, therefore browser kernel determines How the browser shows the content of webpage and the format information of webpage, and different browser kernels is to program language The explanation of method is different, therefore rendering effect of the same webpage in the browser of different kernels may also be different.In order to guarantee Target pages can be opened in different browsers, the browser for using different browsers kernel can be formed test browsing Device set;For example, the Firefox browser that Gecko kernel will be used, using Webkit kernel Chrome browser and Safari browser, and the IE browser composition test browser collection using Trident kernel.Optionally, in the disclosure In embodiment, the type and quantity for the test browser that test browser collection includes are not especially limited.
Optionally, the test browser collection includes browser without a head;Browser (Headless browser) without a head The browser for referring to no graphical interface of user (Graphical User Interface, abbreviation GUI), by programming or ordering Row interface controls, and in addition to not showing specific interface, the institute for having conventional browser is functional.Compared to conventional browser, The test speed of browser without a head is very fast, while measuring stability is more preferable, can run, subtract on the testing service device at no interface Lack extraneous interference, meanwhile, it can be convenient for concurrent with the multiple browsers without a head of dry run on a testing service device Test.
In software program, smoke test is carried out before to these changes in the source tree for be embedded into coding change product The process of verifying, after having checked code, smoke test can be searched effectively and repair software defect, can also confirm that code In change whether operate as intended, if do not destroy the stability of entire version.For page test, smoke test Effect is the basic function normal operation for confirming webpage, avoids in webpage that there are security breaches and defects;Optionally, in this public affairs It opens in embodiment, smoke test item set includes: compatibility test, resource request test, console message test and difference Property test.
At least one target detection browser in S120, the starting test browser collection, and surveyed in the target It tries to execute the operation for loading the target pages in browser.
For target pages to be tested, it can be opened by a target detection browser, multiple mesh can also be passed through Mapping examination browser opens simultaneously;Target detection browser is beaten after load by the way that the program of target pages to be read into memory Open target pages.
Optionally, target detection browser is started by browser automated test frame;Automated test frame be by The tool set that functional module applied to automatic test forms includes basic automatization test module, provides automation One or more of the structure module and automatic test statistical module of test execution and management function;Implement in the disclosure In example, target detection browser is started by Selenium browser automated test frame, and Selenium can be directly clear It lookes in device and runs, have the characteristics that wide coverage, support to run in the systems such as Windows, Linux and Macintosh more Kind browser, for example, IE, Chrome and Firefox etc.;Selenium can be with the compatibility of test page and browser, can also With test macro function, for example, creation regression test, examines software function and user demand.
Optionally, starting at least one target detection browser in the test browser collection, and in the mesh Mapping is tried before the operation that execution in browser loads the target pages, comprising: passes through clocked flip, the touching of tracking Git branch Hair or the mode manually triggered trigger page test operation.Git is the distributed version control system of an open source, for carrying out The version management of project;Git branch is some tasks, for example, test, new function exploitation and loophole reparation etc., from project It is separated on exploitation main line, avoids influencing main line task, guarantee the stabilization and safety of exploitation main line task;Therefore, Ke Yitong Cross the Branch Tasks of tracking Git, triggering page test.
S130, using each smoke test item for including in the smoke test item set, to the target pages described Smoke test is carried out at least one target detection browser.
Optionally, using each smoke test item for including in the smoke test item set, exist to the target pages In at least one described target detection browser after progress smoke test, comprising: generate visual testing as a result, and being supplied to With the matched developer of the page.The test result of current smoke test is generated into visual test result, is supplied to page The developer in face checks and/or downloads.
Optionally, using each smoke test item for including in the smoke test item set, exist to the target pages In at least one described target detection browser after progress smoke test, comprising: if detecting the loophole of preset kind, to Matched developer sends warning note with the page, to prompt page developer to handle in time.Specifically, different default classes The loophole of type can preset different type of alarms, for example, when detecting general loophole or defect, such as page resource plus Carrying the time is more than preset time threshold, then the Notifications page developer by way of mail;When detecting serious loophole or defect When, it such as detects there is the script of malice implantation or advertisement in the page, then passes through the side such as flashing indicator light and/or triggering alarm sound Formula Notifications page developer.
The technical solution of the embodiment of the present disclosure, by obtaining and the matched test browser collection of target pages and smoldering Test item set is loaded after target webpage at least one target detection browser according to including in smoke test item set Each smoke test item carries out smoke test, not only realizes while opening target webpage respectively using multiple browsers and respectively carries out Smoke test also achieves the test for completing multiple smoke test items in a smoke test, improves smoke test Testing efficiency.
Embodiment two
Fig. 2 is the flow chart of one of the embodiment of the present disclosure two page test method, and the present embodiment is with above-described embodiment Based on embodied, in the present embodiment, smoke test item set include: compatibility test, resource request test, control Station information test and otherness test;Correspondingly, the method for the present embodiment specifically includes following operation:
S210, according to the target detection browser to the load condition of the target pages, to the target pages into Row compatibility test.
Compatibility test (Compatibility Test Suite, abbreviation CTS), be check software program hardware and/ Or whether can be operated normally on software platform;In the embodiments of the present disclosure, compatibility test includes browser compatibility test; Browser compatibility namely webpage compatibility are generated since display effect of the webpage on various browsers is inconsistent Compatibling problem between browser and webpage.Different browsers using the homepages languages such as kernel and the HTML supported standard not Together, the same webpage often results in different display effects on different browsers, for example, the position of web page element is chaotic Or dislocation, webpage open white screen situations such as, therefore, it is in user experience that webpage can normally be shown on different browsers Most intuitive impression.
S220, by it is described test browser external request interface, monitoring asked with the matched resource of the target pages Seek information.
Webpage includes one or more elements such as text, picture, video, table and/or file, each element and its description Information, for example, size, color, position and font etc., together constitute the resource in webpage;It monitors matched with target pages Resource request information, the displaying situation including each resource in the monitoring objective page, for example, can each resource normally show, respectively Whether the resource load time is too long etc.;Monitoring and the matched resource request information of target pages, further include to non-in target webpage The monitoring of own resource information, for example, with the presence or absence of the script or advertisement etc. being maliciously implanted into webpage.
S230, in the matched front-end control platform of test browser, obtain and the target pages are matched sets Determine the console message of type.
Console (Console) is the log information generated during loading webpage for showing browser;Console Information includes network request information, JavaScript script information, CSS (Cascading Style Sheets, cascading style Table) information, the mistake generated when JavaScript code operation in security-related mistake and warning message and the page, Warning and relevant information.
S240, the interception target pages in the displaying information tested in browser and are saved to version comparison library In, and carry out otherness with the stored displaying information of the page in the version comparison library and compare.
When target pages are opened in testing browser every time, it can all intercept the information of displaying and save to version comparison library In;History of the target pages in the test of all previous page is saved in version comparison library shows information, it can be by the target network The displaying information that page currently intercepts shows that information carries out otherness and compares with the history opened using the same test browser, example Such as, after target webpage is opened by IE browser, intercepted current presentation information, and by the displaying information be equally clear by IE The history for the target webpage that device of looking at is opened shows that information is compared, and compares the same test browser and is directed to the same target The all previous displaying information of webpage whether there is otherness in time series;Target webpage can also be browsed by different tests After device is opened, the current presentation information of interception carries out otherness comparison, for example, target webpage pass through simultaneously IE browser and Chrome browser is opened, and the current presentation information intercepted on two test browsers is compared, and the two are tested The current presentation information intercepted respectively on browser is compared, and compares the same target webpage and opens up under different unfolding modes Show information with the presence or absence of otherness;The displaying information that target webpage currently intercepts can also be beaten from using different test browsers The history opened shows that information carries out otherness comparison, for example, having intercepted current presentation after target webpage is opened by IE browser Information, and the displaying information is shown that information is compared with the history for the target webpage opened by Chrome browser, than Information, which is, to be shown from the history under different unfolding modes and different time sequence to the current presentation information of the same target webpage No having differences property.Particularly, after increase, operation is deleted or modified to page resource, current presentation can be passed through Information shows the comparison of information than history, and whether the determining part for increasing, being deleted or modified is effective.
The technical solution of the embodiment of the present disclosure completes multiple function survey in the smoke test carried out to target pages Examination, including compatibility test, resource request test, console message test and otherness test, cover in head end test All basic functions, improve the testing efficiency of smoke test.
Embodiment three
Fig. 3 is a kind of structural block diagram for page test device that the embodiment of the present disclosure three provides, and is specifically included: test set Obtain module 310, target pages loading module 320 and smoke test execution module 330.
Test set obtains module 310, for obtaining and the matched test browser collection of target pages to be tested, with And smoke test item set;
Target pages loading module 320, it is clear for starting at least one target detection in the test browser collection It lookes at device, and executes the operation for loading the target pages in the target detection browser;
Smoke test execution module 330 is right for using each smoke test item for including in the smoke test item set The target pages carry out smoke test at least one described target detection browser.
The technical solution of the embodiment of the present disclosure, by obtaining and the matched test browser collection of target pages and smoldering Test item set is loaded after target webpage at least one target detection browser according to including in smoke test item set Each smoke test item carries out smoke test, not only realizes while opening target webpage respectively using multiple browsers and respectively carries out Smoke test also achieves the test for completing multiple smoke test items in a smoke test, improves smoke test Testing efficiency.
Optionally, based on the above technical solution, the smoke test item set includes: compatibility test, resource Request for test, console message test and otherness test.
Optionally, based on the above technical solution, smoke test execution module 330, specifically includes:
Compatibility test unit, it is right for the load condition according to the target detection browser to the target pages The target pages carry out compatibility test;
Resource request test cell, for the external request interface by the test browser, monitoring and the target The matched resource request information of the page;
Console message test cell, for in the matched front-end control platform of test browser, acquisition and institute State the console message of the matched setting type of target pages;
Otherness test cell, for intercepting the target pages in the displaying information tested in browser and saving Into version comparison library, and otherness is carried out with the stored displaying information of the page in the version comparison library and is compared.
Optionally, based on the above technical solution, page test device, further includes:
Page test operation trigger module, for triggering page test by timing, tracking Git branch or artificial mode Operation.
It optionally, based on the above technical solution, include browser without a head in the test browser collection.
Optionally, based on the above technical solution, page test device, further includes:
Visual testing result obtains module, for generating visual testing as a result, and being supplied to and matching with the page Developer.
Optionally, based on the above technical solution, page test device, further includes:
Warning note module, if being sent out for detecting the loophole of preset kind to the matched developer of the page Send warning note.
Optionally, based on the above technical solution, warning note module is specifically used for:
If detecting the loophole of preset kind, acquisition and the matched type of alarm of the loophole, and pass through the alarm Mode sends warning note to the matched developer of the page.
Page test method provided by disclosure any embodiment can be performed in above-mentioned apparatus, and it is corresponding to have execution method Functional module and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to disclosure any embodiment mentions The method of confession.
Example IV
Below with reference to Fig. 4, it illustrates the structural representations for the electronic equipment 400 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 4 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 4, electronic equipment 400 may include processing unit (such as central processing unit, graphics processor etc.) 401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 406 Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with electronic equipment Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404 Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 407 of dynamic device etc.;Storage device 406 including such as tape, hard disk etc.;And communication device 409.Communication device 409, which can permit electronic equipment 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 4 shows tool There is the electronic equipment 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising being carried on non-transient computer can The computer program on medium is read, which includes the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed from network by communication device 409, or be filled from storage It sets 406 to be mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the disclosure is executed The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
In some embodiments, client, server can use such as HTTP (HyperText Transfer Protocol, hypertext transfer protocol) etc the network protocols of any currently known or following research and development communicated, and can To be interconnected with the digital data communications (for example, communication network) of arbitrary form or medium.The example of communication network includes local area network (" LAN "), wide area network (" WAN "), Internet (for example, internet) and ad-hoc network are (for example, the end-to-end net of ad hoc Network) and any currently known or following research and development network.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: acquisition and the matched test browser collection of target pages to be tested, and emit Cigarette test item set;Start at least one target detection browser in the test browser collection, and is surveyed in the target It tries to execute the operation for loading the target pages in browser;Using each smoke test for including in the smoke test item set , smoke test is carried out at least one described target detection browser to the target pages.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include but is not limited to object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, simultaneous Capacitive test module is also described as " for the load feelings according to the target detection browser to the target pages Condition carries out the module of compatibility test to the target pages ".
Function described herein can be executed at least partly by one or more hardware logic components.Example Such as, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA), specially With integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), complex programmable logic equipment (CPLD) etc. Deng.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or Any appropriate combination of above content.
According to one or more other embodiments of the present disclosure, [example 1] provides a kind of page test method, comprising:
It obtains and the matched test browser collection of target pages and smoke test item set to be tested;
Start at least one target detection browser in the test browser collection, and is browsed in the target detection The operation for loading the target pages is executed in device;
Using each smoke test item for including in the smoke test item set, to the target pages described at least one Smoke test is carried out in a target detection browser.
According to one or more other embodiments of the present disclosure, [example 2] provides the method for example 1, further includes:
The smoke test item set includes: compatibility test, resource request test, console message test and difference Property test;
Using each smoke test item for including in the smoke test item set, to the target pages described at least one Smoke test is carried out in a target detection browser, comprising:
According to the target detection browser to the load condition of the target pages, the target pages are compatible with Property test;
By the external request interface of the test browser, monitoring is believed with the matched resource request of the target pages Breath;
With the matched front-end control platform of test browser, obtain and the matched setting type of the target pages Console message;
Displaying information and preservation of the target pages in the test browser are intercepted into version comparison library, and with The stored displaying information of the page carries out otherness comparison in the version comparison library.
According to one or more other embodiments of the present disclosure, [example 3] provides the method for example 1, further includes:
Page test operation is triggered by timing, tracking Git branch or artificial mode.
According to one or more other embodiments of the present disclosure, [example 4] provides the method for example 1, further includes:
It include browser without a head in the test browser collection.
According to one or more other embodiments of the present disclosure, [example 5] provides the method for example 1, further includes:
Visual testing is generated as a result, and being supplied to and the matched developer of the page.
According to one or more other embodiments of the present disclosure, [example 6] provides the method for example 1, further includes:
If detecting the loophole of preset kind, warning note is sent to the matched developer of the page.
According to one or more other embodiments of the present disclosure, [example 7] provides the method for example 6, further includes:
If detecting the loophole of preset kind, acquisition and the matched type of alarm of the loophole, and pass through the alarm Mode sends warning note to the matched developer of the page.
According to one or more other embodiments of the present disclosure, [example 8] provides a kind of page test device, comprising:
Test set obtains module, for obtaining and the matched test browser collection of target pages to be tested, and Smoke test item set;
Target pages loading module, for starting at least one target detection browsing in the test browser collection Device, and the operation for loading the target pages is executed in the target detection browser;
Smoke test execution module, for using each smoke test item for including in the smoke test item set, to institute It states target pages and carries out smoke test at least one described target detection browser.
According to one or more other embodiments of the present disclosure, [example 9] provides a kind of electronic equipment, including memory, place The computer program managing device and storage on a memory and being run in processing unit, which is characterized in that the processing dress Set the page test method realized as described in any in example 1-7 when executing described program.
According to one or more other embodiments of the present disclosure, [example 10] provides a kind of comprising computer executable instructions Storage medium, the computer executable instructions by computer processor when being executed for executing such as institute any in example 1-7 The page test method stated.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain order The certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous 's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairs The limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single real It applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitable The mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary, Special characteristic described in face and movement are only to realize the exemplary forms of claims.

Claims (10)

1. a kind of page test method characterized by comprising
It obtains and the matched test browser collection of target pages and smoke test item set to be tested;
Start at least one target detection browser in the test browser collection, and in the target detection browser Execute the operation for loading the target pages;
Using each smoke test item for including in the smoke test item set, to the target pages at least one described mesh Smoke test is carried out in mapping examination browser.
2. the method according to claim 1, wherein the smoke test item set includes: compatibility test, money Source request for test, console message test and otherness test;
Using each smoke test item for including in the smoke test item set, to the target pages at least one described mesh Smoke test is carried out in mapping examination browser, comprising:
According to the target detection browser to the load condition of the target pages, compatible survey is carried out to the target pages Examination;
By the external request interface of the test browser, monitoring and the matched resource request information of the target pages;
With in the matched front-end control platform of test browser, obtain with the target pages it is matched setting type control Station information processed;
Intercept the target pages it is described test browser in displaying information and save into version comparison library, and with it is described The stored displaying information of the page carries out otherness comparison in version comparison library.
3. the method according to claim 1, wherein starting at least one of described test browser collection Target detection browser, and in the target detection browser before the operation of the execution load target pages, comprising:
Page test operation is triggered by timing, tracking Git branch or artificial mode.
4. the method according to claim 1, wherein including browser without a head in the test browser collection.
5. the method according to claim 1, wherein respectively being emitted using include in the smoke test item set Cigarette test item, after the target pages are carried out with smoke test at least one described target detection browser, comprising:
Visual testing is generated as a result, and being supplied to and the matched developer of the page.
6. the method according to claim 1, wherein respectively being emitted using include in the smoke test item set Cigarette test item, after the target pages are carried out with smoke test at least one described target detection browser, comprising:
If detecting the loophole of preset kind, warning note is sent to the matched developer of the page.
If 7. according to the method described in claim 6, it is characterized in that, the loophole for detecting preset kind, to institute It states the matched developer of the page and sends warning note, comprising:
If detecting the loophole of preset kind, acquisition and the matched type of alarm of the loophole, and pass through the type of alarm Warning note is sent to the matched developer of the page.
8. a kind of page test device characterized by comprising
Test set obtains module, for obtaining and the matched test browser collection of target pages to be tested, and smolders Test item set;
Target pages loading module, for starting at least one target detection browser in the test browser collection, and The operation for loading the target pages is executed in the target detection browser;
Smoke test execution module, for using each smoke test item for including in the smoke test item set, to the mesh The mark page carries out smoke test at least one described target detection browser.
9. a kind of electronic equipment, can run on a memory and in processing unit including memory, processing unit and storage Computer program, which is characterized in that the processing unit is realized as described in any in claim 1-7 when executing described program Page test method.
10. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal For executing the page test method as described in any in claim 1-7 when device executes.
CN201910628860.2A 2019-07-12 2019-07-12 Page testing method and device, electronic equipment and storage medium Active CN110362488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910628860.2A CN110362488B (en) 2019-07-12 2019-07-12 Page testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910628860.2A CN110362488B (en) 2019-07-12 2019-07-12 Page testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110362488A true CN110362488A (en) 2019-10-22
CN110362488B CN110362488B (en) 2023-08-08

Family

ID=68219138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910628860.2A Active CN110362488B (en) 2019-07-12 2019-07-12 Page testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110362488B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100051A (en) * 2020-07-30 2020-12-18 江苏清微智能科技有限公司 Automatic smoking test system and test method thereof
CN112286822A (en) * 2020-11-06 2021-01-29 国家电网有限公司 Web automatic test system, test method and test device based on selenium framework
CN112486826A (en) * 2020-11-30 2021-03-12 北京字跳网络技术有限公司 Test method, test device, electronic equipment and computer readable medium
CN113821387A (en) * 2021-08-06 2021-12-21 苏州浪潮智能科技有限公司 KVM function keep-alive test method, device, equipment and medium
CN114090139A (en) * 2020-07-29 2022-02-25 北京字节跳动网络技术有限公司 Page processing method and device, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005044A1 (en) * 2000-10-31 2003-01-02 Miller Edward F. Method and system for testing websites
US20110093773A1 (en) * 2009-10-19 2011-04-21 Browsera LLC Automated application compatibility testing
CN103136094A (en) * 2011-11-25 2013-06-05 阿里巴巴集团控股有限公司 Page testing method and device
CN103927253A (en) * 2013-01-11 2014-07-16 阿里巴巴集团控股有限公司 Multiple browser compatibility testing method and system
CN104102578A (en) * 2014-06-27 2014-10-15 百度在线网络技术(北京)有限公司 Test method and system and operation terminal
CN106326091A (en) * 2015-06-24 2017-01-11 深圳市腾讯计算机系统有限公司 Browser webpage compatibility detection method and system
CN109656643A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 More browser compatibility test methods, storage medium, electronic equipment and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005044A1 (en) * 2000-10-31 2003-01-02 Miller Edward F. Method and system for testing websites
US20110093773A1 (en) * 2009-10-19 2011-04-21 Browsera LLC Automated application compatibility testing
CN103136094A (en) * 2011-11-25 2013-06-05 阿里巴巴集团控股有限公司 Page testing method and device
CN103927253A (en) * 2013-01-11 2014-07-16 阿里巴巴集团控股有限公司 Multiple browser compatibility testing method and system
CN104102578A (en) * 2014-06-27 2014-10-15 百度在线网络技术(北京)有限公司 Test method and system and operation terminal
CN106326091A (en) * 2015-06-24 2017-01-11 深圳市腾讯计算机系统有限公司 Browser webpage compatibility detection method and system
CN109656643A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 More browser compatibility test methods, storage medium, electronic equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王欢欢等: "Web应用界面跨浏览器兼容性的自动检测方法", 《计算机科学》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114090139A (en) * 2020-07-29 2022-02-25 北京字节跳动网络技术有限公司 Page processing method and device, electronic equipment and computer readable storage medium
CN112100051A (en) * 2020-07-30 2020-12-18 江苏清微智能科技有限公司 Automatic smoking test system and test method thereof
CN112100051B (en) * 2020-07-30 2024-03-08 江苏清微智能科技有限公司 Automatic smoking testing system and testing method thereof
CN112286822A (en) * 2020-11-06 2021-01-29 国家电网有限公司 Web automatic test system, test method and test device based on selenium framework
CN112486826A (en) * 2020-11-30 2021-03-12 北京字跳网络技术有限公司 Test method, test device, electronic equipment and computer readable medium
CN113821387A (en) * 2021-08-06 2021-12-21 苏州浪潮智能科技有限公司 KVM function keep-alive test method, device, equipment and medium
CN113821387B (en) * 2021-08-06 2023-07-18 苏州浪潮智能科技有限公司 KVM function keep-alive test method, device, equipment and medium

Also Published As

Publication number Publication date
CN110362488B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN110362488A (en) A kind of page test method, device, electronic equipment and storage medium
CN105940654B (en) Franchise static web application in trust
CN108614774A (en) Automated testing method and device
US9280665B2 (en) Fast and accurate identification of message-based API calls in application binaries
TW201441829A (en) Client side page processing
CN109582317B (en) Method and apparatus for debugging hosted applications
CN109815105A (en) Applied program testing method and device based on Btrace
CN111596971B (en) Application cleaning method and device, storage medium and electronic equipment
US20140052851A1 (en) Systems and methods for discovering sources of online content
CN113535577B (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN110851211A (en) Method, apparatus, electronic device, and medium for displaying application information
CN110275736A (en) Obtain operation data method, apparatus, equipment and the readable medium of application program
CN113742551A (en) Dynamic data capture method based on script and puppeteer
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN111813685A (en) Automatic testing method and device
US11822452B2 (en) Dynamic remote collection of supplemental diagnostic data and triggering of client actions for client software application
CN110348226A (en) A kind of scan method of project file, device, electronic equipment and storage medium
CN109582580A (en) For debugging system, the method and apparatus of the page
CN110874446A (en) Page display method and system, computer system and computer readable medium
US11797315B2 (en) Automatic acquisition and integration of supplemental software programs
CN109840113A (en) A kind of application data processing method and its equipment, storage medium, terminal
CN111241368B (en) Data processing method, device, medium and equipment
CN111222067B (en) Information generation method and device
CN111767486A (en) Method, device, electronic equipment and computer readable medium for displaying page
CN111371745B (en) Method and apparatus for determining SSRF vulnerability

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