CN107590068A - Browser page method of testing, device and computer equipment - Google Patents

Browser page method of testing, device and computer equipment Download PDF

Info

Publication number
CN107590068A
CN107590068A CN201710661082.8A CN201710661082A CN107590068A CN 107590068 A CN107590068 A CN 107590068A CN 201710661082 A CN201710661082 A CN 201710661082A CN 107590068 A CN107590068 A CN 107590068A
Authority
CN
China
Prior art keywords
page
browser
tested
test
browser page
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.)
Pending
Application number
CN201710661082.8A
Other languages
Chinese (zh)
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710661082.8A priority Critical patent/CN107590068A/en
Publication of CN107590068A publication Critical patent/CN107590068A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention proposes a kind of browser page method of testing, device and computer equipment, wherein, this method includes:Obtain URL corresponding to browser page to be tested;In test page, using the mode of floating frame flag, the URL is loaded;By the test page, each page elements in the browser page are tested, to obtain the pattern of each page elements in the browser page to be tested.Browser page method of testing, device and computer equipment provided by the invention, by by browser page to be tested, it is loaded into test page, realize the test to browser page, method of testing and Test Strategy configuration are simple, autgmentability is strong, and writes test case without tester oneself, has saved human cost.

Description

Browser page method of testing, device and computer equipment
Technical field
The present invention relates to field of computer technology, more particularly to a kind of browser page method of testing, device and computer Equipment.
Background technology
With the development of computer and Internet technology, importance of the browser in the work of people, studying and living More and more higher.User in browser page by being operated, it is possible to achieve information inquiry, shopping at network etc..
Generally, in order to ensure the normal use of browser page, it is necessary to test browser page.It is and existing clear Look at device page method of testing, be all based on C/S (client/server) framework mostly, and depend on WebDriver/ mostly The instruments such as Selenium, framework is complicated, and autgmentability is poor, and Test Strategy file configuration is complicated.And head end test use-case relies on mostly Tester oneself writes, and causes iteratively faster to be developed, and when the page is frequently changed, the operating pressure of tester is significantly increased, Human cost is high.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of browser page method of testing, by will be to be tested Browser page, it is loaded into test page, realizes the test to browser page, method of testing and Test Strategy configuration letter Single, autgmentability is strong, and writes test case without tester oneself, has saved human cost.
Second object of the present invention is to propose a kind of browser page test device.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of computer-readable recording medium.
The 5th purpose of the present invention is to propose a kind of computer program product.
For the above-mentioned purpose, first aspect present invention embodiment proposes a kind of browser page method of testing, including:
Obtain URL corresponding to browser page to be tested;
In test page, using the mode of floating frame flag, the URL is loaded;
By the test page, each page elements in the browser page are tested, to be treated described in acquisition The pattern of each page elements in the browser page of test.
In a kind of possible way of realization of the present invention, domain and the test belonging to the browser page to be tested Domain belonging to the page is different;
It is described each page elements in the browser page are tested by the test page before, also wrap Include:
Reverse proxy processing is carried out to the test page and the browser page to be tested.
In the alternatively possible way of realization of the present invention, it is described by the test page in the browser page Each page elements tested, including:
Default page elements database is obtained, wherein the page elements database includes page elements and specification sample The mapping relations of formula information;
By the test page, the browser page is parsed, obtains each page in the browser page Actual style information corresponding to element difference;
Actual style information corresponding to each page elements difference in the browser page is judged, with each page elements Whether specification style information matches corresponding to respectively.
In the alternatively possible way of realization of the present invention, before the default page elements database of acquisition, also wrap Include:
Page elements history is trained using data, generation utilizes the page elements data of Java description languages Storehouse.
In the alternatively possible way of realization of the present invention, each page elements in the browser page are carried out Before test, in addition to:
The element type included according to the browser page to be tested, determines assembly set;
Each page elements in the browser page are tested, including:
The matching degree of each page elements and each component in the assembly set in the browser page is tested.
The browser page method of testing of the embodiment of the present invention, obtain first unified corresponding to browser page to be tested URLs, then in test page, using the mode of floating frame flag, URL is loaded, finally by Test page, each page elements in browser page are tested, to obtain each page in browser page to be tested The pattern of element.Thus, by by browser page to be tested, being loaded into test page, realizing to browser page Test, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and writes test case without tester oneself, section About human cost.
For the above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of browser page test device, including:
Acquisition module, for obtaining URL corresponding to browser page to be tested;
Load-on module, in test page, using the mode of floating frame flag, loading the unified resource positioning Symbol;
Test module, for by the test page, testing each page elements in the browser page, To obtain the pattern of each page elements in the browser page to be tested.
In a kind of possible way of realization of the present invention, domain and the test belonging to the browser page to be tested Domain belonging to the page is different;
Described device, in addition to:
Processing module, for carrying out reverse proxy processing to the test page and the browser page to be tested.
In the alternatively possible way of realization of the present invention, the test module, it is specifically used for:
Default page elements database is obtained, wherein the page elements database includes page elements and specification sample The mapping relations of formula information;
By the test page, the browser page is parsed, obtains each page in the browser page Actual style information corresponding to element difference;
Actual style information corresponding to each page elements difference in the browser page is judged, with each page elements Whether specification style information matches corresponding to respectively.
In the alternatively possible way of realization of the present invention, the test module, it is additionally operable to:
Page elements history is trained using data, generation utilizes the page elements data of Java description languages Storehouse.
In the alternatively possible way of realization of the present invention, described device, in addition to:
Determining module, for the element type included according to the browser page to be tested, determine assembly set;
The test module, is additionally operable to:
The matching degree of each page elements and each component in the assembly set in the browser page is tested.
The browser page test device of the embodiment of the present invention, obtain first unified corresponding to browser page to be tested URLs, then in test page, using the mode of floating frame flag, URL is loaded, finally by Test page, each page elements in browser page are tested, to obtain each page in browser page to be tested The pattern of element.Thus, by by browser page to be tested, being loaded into test page, realizing to browser page Test, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and writes test case without tester oneself, section About human cost.
For the above-mentioned purpose, third aspect present invention embodiment proposes a kind of computer equipment, including:Memory, place Reason device and storage on a memory and the computer program that can run on a processor, during the computing device described program, Realize browser page method of testing as described in relation to the first aspect.
For the above-mentioned purpose, fourth aspect present invention embodiment proposes a kind of computer-readable recording medium, deposits thereon Computer program is contained, browser page method of testing as described in relation to the first aspect is realized when the program is executed by processor.
For the above-mentioned purpose, fifth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction in machine program product is by computing device, browser page method of testing as described in relation to the first aspect is performed.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the browser page method of testing of one embodiment of the invention;
Fig. 2 is the flow chart of the browser page method of testing of another embodiment of the present invention;
Fig. 3 is the structural representation of the browser page test device of one embodiment of the invention;
Fig. 4 is the structural representation of the browser page test device of another embodiment of the present invention;
Fig. 5 is the structural representation of the computer equipment of one embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Specifically, various embodiments of the present invention are directed to by existing browser page method of testing, C/S is all based on mostly Framework, and mostly dependent on instruments such as WebDriver/Selenium, framework is complicated, and autgmentability is poor, Test Strategy file configuration Complexity, and head end test use-case relies on tester oneself and write mostly, causes iteratively faster to be developed, when the page is frequently changed, The problem of operating pressure of tester is significantly increased, and human cost is high, propose a kind of browser page method of testing.
Browser page method of testing provided in an embodiment of the present invention, obtaining system corresponding to browser page to be tested After one URLs, using the mode of floating frame flag, it can be loaded unified corresponding to browser page in test page URLs, so that by test page, each page elements in browser page are tested, it is to be tested to obtain The pattern of each page elements in browser page.Thus, by being loaded into browser page to be tested in test page, The test to browser page is realized, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and without tester certainly Oneself writes test case, has saved human cost.
Below with reference to the accompanying drawings browser page method of testing, device and the computer equipment of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the browser page method of testing of one embodiment of the invention.
As shown in figure 1, the browser page method of testing includes:
Step 101, URL corresponding to browser page to be tested is obtained.
Specifically, browser page method of testing provided in an embodiment of the present invention, can be by provided in an embodiment of the present invention Browser page test device performs.The browser page test device can be configured in any computer equipment.Wherein, Computer equipment can be server, computer etc..
Wherein, URL, can be from the position of the resource obtained on internet and access method for characterizing.
Step 102, in test page, using the mode of floating frame flag, URL is loaded.
Step 103, by test page, each page elements in browser page are tested, it is to be tested to obtain Browser page in each page elements pattern.
It is understood that using floating frame flag, i.e. Iframe marks, a html document can be embedded in another Shown in HTML, two html file contents mutually merge, and turn into an entirety.Window comprising Iframe is parent form, is floated Dynamic frame is child form.In parent form, child form is a subobject of document objects, directly can be accessed in script Object in child form.
In embodiments of the present invention, can be in test page in order to test browser page to be tested, profit With the mode of floating frame flag, the URL of browser page to be tested is loaded, so as to be tested be browsed In the device page Embedded test page.Pass through father as parent page using browser page to be tested as subpage frame, test page Page operation subpage frame, you can realization passes through test page, the test to each page elements in browser page.
Specifically, step 103 can include:
Step 103a, obtains default page elements database, wherein page elements database include page elements with The mapping relations of specification style information.
, can be as needed during specific implementation, and the history of page elements uses data, pre-sets each page elements Specification pattern, and according to the mapping relations of each page elements and specification style information, establish page elements database.
For example in order that the style of the page is consistent, it is identical that the size of word, color, font in the page can be pre-set;For It is user-friendly, it can pre-set and the button of same or like function is completed in the page be framed with Frame, it is conventional to press Button supports shortcut;In order to save page space, can pre-set page space it is less when, using combobox do not have to choosing Select frame, etc..The mapping relations with corresponding style information such as word, button, control in the page pre-set so as to basis, Establish page elements database.
It should be noted that in default page elements database, the mapping relations of page elements and specification pattern can be with It is mapping relations or the mapping of each page elements and specification pattern of various types of page elements and specification pattern Relation, it is not restricted herein.
Step 103b, by test page, browser page is parsed, obtain each page elements in browser page Actual style information corresponding to respectively.
Step 103c, actual style information corresponding to each page elements difference in browser page is judged, with each page member Element respectively corresponding to specification style information whether match.
Specifically, by after the browser page Embedded test page, you can by test page, browser page is grasped Make, to obtain actual style information corresponding to each page elements difference in browser page.Then by each page in browser page In actual style information, with default page elements database corresponding to surface element difference, each page elements are corresponding respectively to advise Model style information is compared, to determine whether to match.
It is understood that if actual style information corresponding to certain page elements and specification style information are inconsistent, table Show that the pattern of the page elements does not meet specification pattern, then the page elements can be exported, so that user is in browser page The style informations of the page elements be adjusted.
Specifically, can be each page elements in browser page and in page elements database, setting can be only One determines the mark of the page elements.So as to inconsistent in the specification style information for exporting its actual style information with pre-setting Page elements when, can only export the unique marks of the page elements so that user can according to the mark of the page elements, By searching page elements database, specification style information corresponding to the page elements is obtained, and then to the reality of the page elements Border style information is adjusted.
Or in a kind of preferably way of realization, it is determined that in page elements the actual style information of either element with When the specification style information pre-set is inconsistent, the mark of the page elements and corresponding specification style information can be exported, So that user believes the pattern of corresponding page elements directly according to the mark of the page elements and corresponding specification style information Breath is arranged to specification style information.
It is understood that in practice, a variety of page elements may be included in browser page to be detected, and Multiple assembly may be included in assembly set corresponding to every kind of page elements, in embodiments of the present invention, can also be to browser The matching degree of each page elements and each component in assembly set is tested in the page.That is, before step 103, can also wrap Include:
The element type included according to browser page to be tested, determines assembly set.
Wherein, component refers to the customized label for having particular meaning or the form from exploitation.
During specific implementation, component can be divided into multiple assembly sets, and pre-set element type and assembly set Corresponding relation, so as to it is determined that after the element type that browser page to be tested includes, you can according to default corresponding pass System, determines assembly set.
Accordingly, in step 103, each page elements in browser page is tested, can specifically be included:
The matching degree of each page elements and each component in assembly set in browser page is tested.
It is understood that according to the element type included in browser page to be tested, it is determined that assembly set in, Multiple components may be included, and each element may be different from the matching degree of each component in assembly set.In the embodiment of the present invention In, the matching degree of each page elements and each component in assembly set in browser page can be tested, so as to be user According to the matching degree of each component in each page elements and assembly set, the style information of each page elements in browser page is entered Row design or adjustment offer condition.
As an example it is assumed that when page elements are list type, corresponding assembly set A, and A includes component A1, component A2 With 3 components of component A3;When page elements are button-type, A ' in corresponding assembly set, and A ' includes component A1 ', component 3 components of A2 ' and component A3 '.
If by judging, determine that browser page to be tested includes list type page elements B and list type page member Plain C, then can determine corresponding to assembly set be A, so as to page elements B and page elements C respectively with assembly set A In, component A1, component A2 and component A3 matching degree are tested.
It should be noted that browser page method of testing provided in an embodiment of the present invention, can pass through JavaScript Language is realized, i.e. before step 103a, can also be included:
Page elements history is trained using data, generation utilizes the page elements database of Java description languages.
Wherein, Java description languages, JavaScript language is referred to.
Specifically, page elements and specification pattern can be obtained by being trained to page elements history using data The mapping relations of information, to establish the page elements database using Java description languages, so as to in browser page, each page Surface element respectively tested by corresponding actual style information.
Browser page method of testing provided in an embodiment of the present invention, is obtained corresponding to browser page to be tested first URL, then in test page, using the mode of floating frame flag, URL is loaded, finally By test page, each page elements in browser page are tested, it is each in browser page to be tested to obtain The pattern of page elements.Thus, by by browser page to be tested, being loaded into test page, realizing to browser The test of the page, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and write test without tester oneself and use Example, has saved human cost.
By above-mentioned analysis, URL corresponding to browser page to be tested can got Afterwards, in test page, using the mode of floating frame flag, URL is loaded, so that by test page, to clear Each page elements look in the device page are tested.In practice, domain and test belonging to browser page to be tested Domain belonging to the page may be different, and with reference to Fig. 2, the above situation is specifically described.
Fig. 2 is the flow chart of the browser page method of testing of one embodiment of the invention.
As shown in Fig. 2 this method includes:
Step 201, same URLs corresponding to browser page to be tested is obtained.
Step 202, in test page, using the mode of floating frame flag, same URLs is loaded.
Step 203, reverse proxy processing is carried out to test page and browser page to be tested.
Step 204, by test page, each page elements in browser page are tested, it is to be tested to obtain Browser page in each page elements pattern.
Wherein, step 201, step 202, the specific implementation process of step 204 and principle, are referred in above-described embodiment The detailed description of step 101- steps 103, here is omitted.
It is understood that the domain belonging to test page, identical with the domain possibility belonging to browser page to be tested, May be different.It is identical with the domain belonging to browser page to be tested if the domain belonging to test page, then it can directly pass through father The page is test page, is that each page elements in browser page are tested to subpage frame.If the domain belonging to test page, Different from the domain belonging to browser page to be tested, then parent page can not directly operate subpage frame.So, implement in the present invention In example, reverse proxy processing can be carried out to test page and browser page to be tested, to realize parent page to subpage frame Operation.
Specifically, there can be the server of reverse proxy function by nginx or other, test page and to be tested Browser page be unified under same domain name, to solve the problems, such as the cross-domain operation of test page and browser page, so as to real Now by test page, each page elements in browser page are tested.
By carrying out reverse proxy processing to test page and browser page to be tested, cross-domain ask can be quickly realized Topic, efficiency high, and method is simple, it is easy to accomplish, save human cost.
The browser page method of testing of the embodiment of the present invention, obtain first same corresponding to browser page to be tested URLs, then in test page, using the mode of floating frame flag, same URLs is loaded, then to test The page and browser page to be tested carry out reverse proxy processing, finally by test page, to each in browser page Page elements are tested, to obtain the pattern of each page elements in browser page to be tested.Thus, by will be to be tested Browser page, be loaded into test page, realize the test to browser page, and by reverse proxy, solve Test page and browser page Cross-domain problem that may be present, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and Test case is write without tester oneself, has saved human cost.
Fig. 3 is the structural representation of the browser page test device of one embodiment of the invention.
As shown in figure 3, the browser page test device, including:
Acquisition module 31, for obtaining URL corresponding to browser page to be tested;
Load-on module 32, in test page, using the mode of floating frame flag, loading URL;
Test module 33, for by test page, testing each page elements in browser page, to obtain The pattern of each page elements in browser page to be tested.
Specifically, the browser page test device that the present embodiment provides, can be configured in any computer equipment, To perform browser page method of testing provided in an embodiment of the present invention.Wherein, computer equipment can be server, computer Deng.
In a kind of possible way of realization of the embodiment of the present invention, above-mentioned test module 33, it is specifically used for:
Default page elements database is obtained, wherein page elements database includes page elements and specification pattern letter The mapping relations of breath;
By test page, browser page is parsed, each page elements in browser page is obtained and corresponds to respectively Actual style information;
Judge actual style information corresponding to each page elements difference in browser page, it is corresponding respectively with each page elements Specification style information whether match.
In the alternatively possible way of realization of the embodiment of the present invention, above-mentioned test module 33, it is additionally operable to:
Page elements history is trained using data, generation utilizes the page elements database of Java description languages.
It should be noted that the foregoing explanation to browser page method of testing embodiment is also applied for the embodiment Browser page test device, here is omitted.
The browser page test device of the embodiment of the present invention, obtain first unified corresponding to browser page to be tested URLs, then in test page, using the mode of floating frame flag, URL is loaded, finally by Test page, each page elements in browser page are tested, to obtain each page in browser page to be tested The pattern of element.Thus, by by browser page to be tested, being loaded into test page, realizing to browser page Test, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and writes test case without tester oneself, section About human cost.
Fig. 4 is the structural representation of the browser page test device of another embodiment of the present invention.
As shown in figure 4, in the browser page test device shown in Fig. 3, the domain belonging to browser page to be tested It is different from the domain belonging to test page;
The browser page test device, in addition to:
Processing module 41, for carrying out reverse proxy processing to test page and browser page to be tested.
In a kind of possible way of realization of the present invention, the browser page test device, in addition to:
Determining module 42, for the element type included according to browser page to be tested, determine assembly set.
Accordingly, test module 33, it is additionally operable to:
The matching degree of each page elements and each component in assembly set in browser page is tested.
It should be noted that the foregoing explanation to browser page method of testing embodiment is also applied for the embodiment Browser page test device, here is omitted.
The browser page test device of the embodiment of the present invention, obtain first unified corresponding to browser page to be tested URLs, then in test page, using the mode of floating frame flag, URL is loaded, finally by Test page, each page elements in browser page are tested, to obtain each page in browser page to be tested The pattern of element.Thus, by by browser page to be tested, being loaded into test page, realizing to browser page Test, method of testing and Test Strategy configuration are simple, and autgmentability is strong, and writes test case without tester oneself, section About human cost.
Fig. 5 is the structural representation of the computer equipment of one embodiment of the invention.
As shown in figure 5, computer equipment includes:
Memory 51, processor 52 and it is stored in the computer program that can be run on memory 51 and on the processor 52.
Processor 52 realizes the browser page method of testing provided in above-described embodiment when performing described program.
Further, browser page test device also includes:
Communication interface 53, for the communication between memory 51 and processor 52.
Memory 51, for depositing the computer program that can be run on the processor 52.
Memory 51 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Processor 52, the browser page method of testing described in above-described embodiment is realized during for performing described program.
If memory 51, processor 52 and the independent realization of communication interface 53, communication interface 53, memory 51 and processing Device 52 can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture (Industry Standard Architecture, abbreviation ISA) bus, external equipment interconnection (Peripheral Component Interconnect, abbreviation PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus etc..For ease of representing, only represented in Fig. 5 with a thick line, it is not intended that an only bus or a type of total Line.
Alternatively, in specific implementation, if memory 51, processor 52 and communication interface 53, are integrated in chip piece Upper realization, then memory 51, processor 52 and communication interface 53 can complete mutual communication by internal interface.
Processor 52 can be a central processing unit (Central Processing Unit, abbreviation CPU), either Specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), or be arranged to Implement one or more integrated circuits of the embodiment of the present invention.
For the above-mentioned purpose, fourth aspect present invention embodiment proposes a kind of computer-readable recording medium, deposits thereon Computer program is contained, the browser page method of testing as described in above-mentioned embodiment is realized when the program is executed by processor.
For the above-mentioned purpose, fifth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction in machine program product is by computing device, the browser page method of testing as shown in above-mentioned embodiment is performed.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

  1. A kind of 1. browser page method of testing, it is characterised in that including:
    Obtain URL corresponding to browser page to be tested;
    In test page, using the mode of floating frame flag, the URL is loaded;
    By the test page, each page elements in the browser page are tested, it is described to be tested to obtain Browser page in each page elements pattern.
  2. 2. the method as described in claim 1, it is characterised in that domain and the survey belonging to the browser page to be tested The domain tried belonging to the page is different;
    It is described each page elements in the browser page are tested by the test page before, in addition to:
    Reverse proxy processing is carried out to the test page and the browser page to be tested.
  3. 3. method as claimed in claim 1 or 2, it is characterised in that it is described by the test page to the browser page Each page elements in face are tested, including:
    Default page elements database is obtained, is believed wherein the page elements database includes page elements with specification pattern The mapping relations of breath;
    By the test page, the browser page is parsed, obtains each page elements in the browser page Actual style information corresponding to respectively;
    Judge actual style information corresponding to each page elements difference in the browser page, distinguish with each page elements Whether corresponding specification style information matches.
  4. 4. method as claimed in claim 3, it is characterised in that before the default page elements database of acquisition, also wrap Include:
    Page elements history is trained using data, generation utilizes the page elements database of Java description languages.
  5. 5. method as claimed in claim 1 or 2, it is characterised in that each page elements in the browser page Before being tested, in addition to:
    The element type included according to the browser page to be tested, determines assembly set;
    Each page elements in the browser page are tested, including:
    The matching degree of each page elements and each component in the assembly set in the browser page is tested.
  6. A kind of 6. browser page test device, it is characterised in that including:
    Acquisition module, for obtaining URL corresponding to browser page to be tested;
    Load-on module, in test page, using the mode of floating frame flag, loading the URL;
    Test module, for by the test page, testing each page elements in the browser page, to obtain Take the pattern of each page elements in the browser page to be tested.
  7. 7. device as claimed in claim 6, it is characterised in that domain and the survey belonging to the browser page to be tested The domain tried belonging to the page is different;
    Described device, in addition to:
    Processing module, for carrying out reverse proxy processing to the test page and the browser page to be tested.
  8. 8. a kind of computer equipment, including:
    Memory, processor and storage are on a memory and the computer program that can run on a processor, it is characterised in that institute When stating computing device described program, the browser page method of testing as any one of claim 1-5 is realized.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The browser page method of testing as described in any in claim 1-5 is realized during row.
  10. 10. a kind of computer program product, it is characterised in that when the instruction in the computer program product is by computing device When, perform the browser page method of testing as described in any in claim 1-5.
CN201710661082.8A 2017-08-04 2017-08-04 Browser page method of testing, device and computer equipment Pending CN107590068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710661082.8A CN107590068A (en) 2017-08-04 2017-08-04 Browser page method of testing, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710661082.8A CN107590068A (en) 2017-08-04 2017-08-04 Browser page method of testing, device and computer equipment

Publications (1)

Publication Number Publication Date
CN107590068A true CN107590068A (en) 2018-01-16

Family

ID=61042875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710661082.8A Pending CN107590068A (en) 2017-08-04 2017-08-04 Browser page method of testing, device and computer equipment

Country Status (1)

Country Link
CN (1) CN107590068A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579425A (en) * 2019-09-27 2021-03-30 腾讯科技(深圳)有限公司 Method, device and medium for testing small program method interface
CN112631704A (en) * 2020-12-26 2021-04-09 深圳集智数字科技有限公司 Interface element identification method and device, storage medium and electronic equipment
CN113342637A (en) * 2021-05-08 2021-09-03 深圳奥哲网络科技有限公司 Application testing method, system, equipment and storage medium based on metadata
WO2022134582A1 (en) * 2020-12-21 2022-06-30 深圳壹账通智能科技有限公司 Browser page test method and apparatus, computer device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916847A (en) * 2011-12-08 2013-02-06 云智慧(北京)科技有限公司 Method and device for monitoring website speed
CN104035863A (en) * 2013-03-08 2014-09-10 腾讯科技(深圳)有限公司 Browser testing method and device
CN104424093A (en) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 Compatibility testing method and system
CN104965783A (en) * 2015-06-16 2015-10-07 百度在线网络技术(北京)有限公司 Method and apparatus for monitoring web content presentation
US20160232085A1 (en) * 2015-02-10 2016-08-11 Wipro Limited Method and device for improving software performance testing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916847A (en) * 2011-12-08 2013-02-06 云智慧(北京)科技有限公司 Method and device for monitoring website speed
CN104035863A (en) * 2013-03-08 2014-09-10 腾讯科技(深圳)有限公司 Browser testing method and device
CN104424093A (en) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 Compatibility testing method and system
US20160232085A1 (en) * 2015-02-10 2016-08-11 Wipro Limited Method and device for improving software performance testing
CN104965783A (en) * 2015-06-16 2015-10-07 百度在线网络技术(北京)有限公司 Method and apparatus for monitoring web content presentation

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579425A (en) * 2019-09-27 2021-03-30 腾讯科技(深圳)有限公司 Method, device and medium for testing small program method interface
CN112579425B (en) * 2019-09-27 2024-05-10 腾讯科技(深圳)有限公司 Method, device and medium for testing applet method interface
WO2022134582A1 (en) * 2020-12-21 2022-06-30 深圳壹账通智能科技有限公司 Browser page test method and apparatus, computer device, and storage medium
CN112631704A (en) * 2020-12-26 2021-04-09 深圳集智数字科技有限公司 Interface element identification method and device, storage medium and electronic equipment
CN113342637A (en) * 2021-05-08 2021-09-03 深圳奥哲网络科技有限公司 Application testing method, system, equipment and storage medium based on metadata

Similar Documents

Publication Publication Date Title
US11372935B2 (en) Automatically generating a website specific to an industry
CN107220094B (en) Page loading method and device and electronic equipment
CN107291822B (en) Problem classification model training method, classification method and device based on deep learning
CN107590068A (en) Browser page method of testing, device and computer equipment
CN107562600B (en) Page detection method and device, computing equipment and storage medium
US11194884B2 (en) Method for facilitating identification of navigation regions in a web page based on document object model analysis
CN103970864B (en) Mood classification and mood component analyzing method and system based on microblogging text
US20130083996A1 (en) Using Machine Learning to Improve Visual Comparison
CN110210021A (en) Read understanding method and device
US20170109442A1 (en) Customizing a website string content specific to an industry
CN107220066A (en) Method and device for releasing application software in application store
CN107122492A (en) Lyric generation method and device based on picture content
US20200293592A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN108334484A (en) The method and apparatus of data inputting
CN107294918A (en) A kind of fishing webpage detection method and device
CN112764736A (en) Web end flow chart modeling method, device and system
US10282398B1 (en) Editing tool for domain-specific objects with reference variables corresponding to preceding pages
CN110874534A (en) Data processing method and data processing device
CN108052658A (en) Query Information error correction framework generation method and device based on artificial intelligence
CN113065570B (en) Image audit detection method and device and electronic equipment
CN110232117A (en) Sentence fluency detection method, device and terminal
CN105739717B (en) Data inputting method and device
WO2023155274A1 (en) Recruitment information publishing method and apparatus based on rpa and ai
CN116263784A (en) Picture text-oriented coarse granularity emotion analysis method and device
CN109684844A (en) A kind of webshell detection method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180116

RJ01 Rejection of invention patent application after publication