CN108614762A - A kind of browser testing method and device - Google Patents
A kind of browser testing method and device Download PDFInfo
- Publication number
- CN108614762A CN108614762A CN201611127836.3A CN201611127836A CN108614762A CN 108614762 A CN108614762 A CN 108614762A CN 201611127836 A CN201611127836 A CN 201611127836A CN 108614762 A CN108614762 A CN 108614762A
- Authority
- CN
- China
- Prior art keywords
- browser
- test
- sectional drawing
- page
- information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
The invention discloses a kind of browser testing method and devices, are applied to internet arena, and this method includes:The browser kernel information of browser to be tested is obtained by thinkPHP test frames;Browser kernel information is written without interface browser tool;By, without interface browser tool, test page sectional drawing being captured from the Webpage loaded after write-in browser kernel information;Test page sectional drawing is returned to thinkPHP test frames so that exports test page sectional drawing in thinkPHP test frames.It can be compatible with the browser of each operating system and different editions through the invention, solve browser-safe sex chromosome mosaicism when test very well.
Description
Technical field
The present invention relates to internet arena more particularly to a kind of browser testing method and devices.
Background technology
The development speed in recent years of information technology and Internet technology can be rated as surprising.Under this overall background, increasingly
More systems based on Web uses B/S frameworks.That is visitor can physical location it is different place by oneself
Computer passes through each webpage based on Web system of operating system access under the operating system of oneself installation.Developer into
When row system development, also can consider browser some compatibility problems, to webpage different browsers compatibility
It is tested.
In the testing scheme of browser compatibility, compatible browser type is limited, basically can not be compatible with domestic clear
Look at device, however, many country's browsers still occupy certain ratio on subscriber usage, therefore for the simultaneous of domestic browser
Capacitive test should not also be ignored.
Invention content
In view of the above problems, an embodiment of the present invention provides a kind of browser testing method and devices, realize in browser
Compatible various browsers in compatibility test.
In a first aspect, an embodiment of the present invention provides a kind of browser testing methods, including:
The browser kernel information of browser to be tested is obtained by thinkPHP test frames;
The browser kernel information is written without interface browser tool;
By, without interface browser tool, being captured from the Webpage loaded after the write-in browser kernel information
Test page sectional drawing;
The test page sectional drawing is returned to the thinkPHP test frames so that in the thinkPHP test frames
Export the test page sectional drawing.
Preferably, described that the browser kernel information is written without interface browser tool, including:
The current sectional drawing comprising the browser kernel information is submitted to ask to the no interface browser tool;
By in the current sectional drawing request write-in object queue, the object queue limitation current sectional drawing request is located
At the time of reason;
When the current sectional drawing please find out the object queue, by the original kernel in the no interface browser tool
Information replaces with the browser kernel information.
Preferably, the browser kernel information that browser to be tested is obtained by thinkPHP test frames, including:
Obtain test user the thinkPHP test frames front end page input with the browser to be tested
Corresponding web page interlinkage, operating system version information and browser version information;
Verify whether the web page interlinkage is true;
If the check results to the web page interlinkage are true, inquire and the operating system version information and described clear
Look at device version information simultaneously matched browser kernel information.
Preferably, it is described by be written after the browser kernel information without interface browser tool, from what is loaded
Webpage captures test page sectional drawing, including:
Invoking web page module creation page model;
By, without interface browser tool, institute being loaded in the page model after the write-in browser kernel information
State the corresponding Webpage of web page interlinkage;
By, without interface browser tool, being caught to the Webpage after the write-in browser kernel information
It catches, to generate the test page sectional drawing.
Preferably, after the generation test page sectional drawing, the method further includes:With the test user's
User ID marks the test page sectional drawing and preserves.
Preferably, described to return to the test page sectional drawing to the thinkPHP test frames, including:
The test page sectional drawing is uniquely named;
Unique name of the test page sectional drawing is passed into the thinkPHP test frames so that described
ThinkPHP test frames obtain the test page sectional drawing according to unique name.
Second aspect, an embodiment of the present invention provides a kind of browser testing devices, including:
Kernel data collection unit, the browser kernel for obtaining browser to be tested by thinkPHP test frames
Information;
Kernel information writing unit, for being written the browser kernel information without interface browser tool;
Capture unit, for by be written after the browser kernel information without interface browser tool, from being loaded
Webpage capture test page sectional drawing;
Returning unit, for returning to the test page sectional drawing to the thinkPHP test frames so that described
ThinkPHP test frames export the test page sectional drawing.
Preferably, the kernel information writing unit, including:
Subelement is submitted in request, for being submitted to the no interface browser tool comprising the browser kernel information
Current sectional drawing request
Request write-in subelement, for the current sectional drawing request to be written in object queue, the object queue limitation
The current sectional drawing asks the processed moment;
Subelement is replaced, for when the current sectional drawing please find out the object queue, by the no interface browser
Original kernel information in tool replaces with the browser kernel information.
Preferably, the Kernel data collection unit, including:
Relevant information obtains subelement, defeated in the front end page of the thinkPHP test frames for obtaining test user
Web page interlinkage corresponding with the browser to be tested, operating system version information and the browser version information entered;
Subelement is verified, for verifying whether the web page interlinkage is true;
Inquiry subelement inquires and the operating system if being true for the check results to the web page interlinkage
Version information and the browser version information while matched browser kernel information.
Preferably, the capture unit, including:
Subelement is called, invoking web page module creation page model is used for;
Load subelement, for by be written after the browser kernel information without interface browser tool, described
The corresponding Webpage of the web page interlinkage is loaded in page model;
Generate subelement, for by be written after the browser kernel information without interface browser tool, to described
Webpage is captured, to generate the test page sectional drawing.
Preferably, described device further includes storage unit, for marking the test with the User ID of the test user
Page screenshot simultaneously preserves.
Preferably, the returning unit, including:
Unit is named, for uniquely being named the test page sectional drawing;
Transfer unit, for unique name of the test page sectional drawing to be passed to the thinkPHP test frames,
So that the thinkPHP test frames obtain the test page sectional drawing according to unique name.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Browser kernel information due to obtaining browser to be tested by thinkPHP test frames is written clear without interface
Look at device tool;Again by, without interface browser tool, being captured from the Webpage loaded after write-in browser kernel information
Test page sectional drawing returns to thinkPHP test frames so that test page sectional drawing is exported in thinkPHP test frames, from
And will be combined with thinkPHP test frames without interface browser tool, no interface browser tool is by being written in browser
Nuclear information goes to simulate different browser progress webpage loads, and the Webpage after load captures test page sectional drawing and gives
ThinkPHP test frames are presented, to be checked for test user.Only need offer browser kernel information that can simulate difference
Browser, therefore the browser of each operating system and different editions can be compatible with, solve browsing when test well
Device compatibility issue, and then for the compatibility test of more browsers, improve testing efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, others are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the flow chart of browser testing method provided in an embodiment of the present invention;
Fig. 2 is the refined flow chart of S101 in the embodiment of the present invention;
Fig. 3 is the function unit figure of browser testing device provided in an embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention can be compatible with each operating system and not by providing a kind of browser testing method and device
With the browser of version, solves browser-safe sex chromosome mosaicism when test well, total thinking is as follows:
It will be combined with thinkPHP test frames without interface browser tool, waited for by the acquisition of thinkPHP test frames
The browser kernel information for testing browser loads Webpage using no interface browser tool simulation browser kernel information
Test page sectional drawing is captured afterwards, and the test page sectional drawing of capture returns to the presentation of thinkPHP test frames.As can be seen that only needing
Browser kernel information is provided, therefore the browser of each operating system and different editions can be compatible with, is solved well
Browser-safe sex chromosome mosaicism when test, and then for the compatibility test of more browsers, improve testing efficiency.
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
An embodiment of the present invention provides a kind of browser testing methods, refering to what is shown in Fig. 1, including:
S101, pass through thinkPHP (think Hypertext Preprocessor, HyperText Preprocessor) test block
Frame obtains the browser kernel information of browser to be tested;
S102, browser kernel information is written without interface browser tool;
S103, by be written browser kernel information after without interface browser tool, caught from the Webpage loaded
Catch test page sectional drawing;
S104, test page sectional drawing is returned to thinkPHP test frames so that export and survey in thinkPHP test frames
Try page screenshot.
It should be noted that operating in windows systems or Linux without interface browser tool in the embodiment of the present invention
System.ThinkPHP test frames are a PHP frames increased income.It is provided in the following, the embodiment of the present invention is discussed in detail in conjunction with Fig. 1
Browser testing method specific implementation step:
First, S101 is executed:The browser kernel information of browser to be tested is obtained from thinkPHP test frames.
In one embodiment, refering to what is shown in Fig. 2, S101 includes:
S1011, obtain test user thinkPHP test frames front end page input with browser pair to be tested
Web page interlinkage, operating system version information and the browser version information answered;
Whether S1012, verification web page interlinkage are true;
If being S1013, true to the check results of web page interlinkage, inquire and operating system version information and browser version
This information while matched browser kernel information.
Specifically, in S1011, start thinkPHP test frames, before the thinkPHP test frames after startup
End page bread contains the link input frame for inputting web page interlinkage, the first choice row for selection operation system version information
Table and the second selective listing for selecting browser version information.
Certainly, the first choice list selection operation for testing user in the front end page of thinkPHP test frames is detected
When system version information, part browser version information is presented in the second selective listing, and other and the operation system that has been selected
The system unmatched browser version information of version information is arranged to not optional state.
By thinkPHP test frames judge to link input frame, first choice list and the second selective listing whether be
It is empty.If it is not sky to link input frame, first choice list and the second selective listing, submitted by thinkPHP test frames
Link web page interlinkage, the operating system version information in first choice list and the browsing in the second selective listing in input frame
Device version information is to control layer.Execute S1012's by control layer:It verifies whether web page interlinkage is true, and executes S1013's:
If the check results to web page interlinkage are true, inquire and matched simultaneously with operating system version information with browser version information
Browser kernel information.
The embodiment of the present invention so that test user only needs to input web page interlinkage, selection operation system when testing
Version information and browser version information, without carrying out other operations, you can obtain test page sectional drawing as test result,
Thus it is easy to operate, testing efficiency is effectively improved, manual work amount is reduced.
In specific implementation process, pass through the operating system in post () function submission web page interlinkage, first choice list
Browser version information in version information and the second selective listing is to control layer.
Specifically, whether verification web page interlinkage is that genuine embodiment is:By fopen () function access web page interlinkage,
If the access result returned is true, characterization web page interlinkage links for effective web, that is, shows the check results to web page interlinkage
It is true, otherwise returns to the error message (false) that characterization web page interlinkage is invalid web pages link.
If the operating system version information for being submitted to control layer is included in system version character string, pass through explode
() function pair operating system version character string is split to obtain operating system version information.
If the browser version information for being submitted to control layer is included in browser version character string, pass through explode
() function pair browser version character string is split to obtain browser version information.
Specifically, in the database inquiry with the presence or absence of with browser version information and operating system version information simultaneously
Agent-user (user agent) information matched, if inquiry is same less than with browser version information and operating system version information
When matched Agent-user (user agent) information, return to error message (false).Believe with browser version if inquired
Breath and operating system version information while matched Agent-user (user agent) information are determined from Agent-user information
Go out the browser kernel information of browser to be tested.
Then, S102 is executed:Browser kernel information is written without interface browser tool.
In embodiments of the present invention, no interface browser tool is phantomjs, and phantomjs serves as reasons
AriyaHidayat is created, and in embodiments of the present invention, phantomjs is used to capture webpage in browser level, is tested
Page screenshot.
In one embodiment, the current sectional drawing comprising browser kernel information is submitted to ask to no interface browser tool;
Current sectional drawing is asked in write-in object queue, object queue limits current sectional drawing and asks the processed moment;In current sectional drawing
When asking out object queue, the original kernel information in no interface browser tool is replaced with into browser kernel information, with suitable
The multiple sectional drawing requests of sequence processing, ask the when of handling to be conflicted, also mitigate no interface browser work so as to avoid multiple sectional drawings
The processing pressure of tool.
It should be noted that original kernel information is in the initialization kernel information of no interface browser tool or processing
One sectional drawing corresponding kernel information when asking.
Then, S103 is executed:By be written browser kernel information after without interface browser tool, from the net loaded
The page page captures test page sectional drawing.
In one example, invoking web page module creation page model;By be written browser kernel information after without interface
Browser tool, in the corresponding Webpage of page model load web page interlinkage;Pass through the nothing after write-in browser kernel information
Interface browser tool captures Webpage, to generate test page sectional drawing.Specifically, no interface browser tool
Following core js codes can be executed, Webpage is captured, but following core js codes are not used in the limitation present invention:
Wherein, $ weburl indicate the web page interlinkage;$ kernelInfo indicate the browser kernel information, i.e.,
Agent-user;$ imagePath indicate the exclusive path of test page sectional drawing.Invoking web page module creates page model
Process includes:It establishes page model and the window size for loading Webpage is set, window size is according to test user's
Demand is arranged, for example setting window size is 1920*1920, is corresponded to full frame.It, can be by coordinate when capturing test page sectional drawing
(0,0) it is that starting point coordinate captures full frame test page sectional drawing, can also changes starting point coordinate and modification captures test page sectional drawing
Window size.It will be browsed without interface by following page.settings.userAgent=' " kernelInfo. " ' codes
Original kernel information in device tool replaces with the browser kernel information of browser to be tested, to simulate browsing to be tested
Device by the corresponding Webpage of load web page interlinkage after the browser kernel information of simulation browser to be tested, then passes through
Page.open () function opens Webpage, captures to open Webpage, to generate test page sectional drawing, passes through
The test page sectional drawing of capture is saved in exclusive path by page.render () function.
By replacing without the browser kernel information in interface browser tool, to simulate different browsers so that
It only needs to provide browser kernel information when test, each operating system and different browsers can be compatible with, do not have to structure
Build experimental situation.
Further, the embodiment of the invention also includes:Test page sectional drawing is uniquely named;Only by test page sectional drawing
One name passes to thinkPHP test frames so that thinkPHP test frames obtain test page according to unique name and cut
Figure.In one embodiment, test page sectional drawing is uniquely named using the form of " time+random number ".Each test sheets
After face sectional drawing generates, the current time obtained by Date () function and 5 random digits obtained by random () function
Test page sectional drawing is uniquely named, for example is uniquely named as:win10_64_23457_2016-10-
19172519.png can be capped to avoid test page sectional drawing is requested to generate for sectional drawing simultaneously.
The embodiment of the invention also includes preservation test page sectional drawings to exclusive path, for example preserves to dy_data/
Public/imageOutput/, while returning to unique name of test page sectional drawing.
After S103, then S104:Test page sectional drawing is returned to thinkPHP test frames so that in thinkPHP
Test frame exports test page sectional drawing.
Specifically, in S104, according to unique name of the test page sectional drawing of return, from the unique of test page sectional drawing
Path obtains the image link information of test page sectional drawing, and the image link information such as obtained is:/public/
The front end page of imageOutput/win10_64_23457_2016-10-19172519.png, thinkPHP test frame from
Loaded and displayed after the image link acquisition of information test page sectional drawing of test page sectional drawing, to defeated in thinkPHP test frames
Go out test page sectional drawing.
It should be noted that when submitting multiple sectional drawings to ask to no interface browser tool simultaneously, asked by each sectional drawing
The time sequencing asked responds successively, then returns to multiple test page sectional drawings to thinkPHP test frames together, then exists
ThinkPHP test frames front end page shows multiple test page sectional drawings together.
By the test page sectional drawing shown, test user can examine web page interlinkage corresponding from test page sectional drawing
Load condition of the webpage in different browsers, if normal load, and element layout would all show well, then illustrating that webpage exists
Compatibility in the browser is good, if load is abnormal, for example Webpage is not shown completely.It is former caused by possible
Because being network or request error etc., test user can resubmit sectional drawing request, so that it is determined that webpage is in such browser
It is middle to there is a problem of that compatibility is bad, to complete the compatibility test task of webpage.
In one embodiment, test page sectional drawing is saved as:The User ID labeled test page to test user is cut
Scheme and preserves.To which user can check the test page sectional drawing in certain period, test page is captured without repeating
Sectional drawing.In specific implementation process, checking for test page sectional drawing can be completed by showHistoryImage () function,
It checks that request includes testing the User ID of user, inquires multiple test page sectional drawings in required query time section.For example,
Need one week interior test page sectional drawing tested of inquiry.The front end page of thinkPHP test frames is returned in the form of a list
It is shown, according to specific test page sectional drawing in the displaying list of the click details button of test user.
Based on same inventive concept, the present invention provides a kind of browser testing device, refering to what is shown in Fig. 3, including:
Kernel data collection unit 201, the browser for obtaining browser to be tested by thinkPHP test frames
Kernel information;
Kernel information writing unit 202, for being written the browser kernel information without interface browser tool;
Capture unit 203, for by be written after the browser kernel information without interface browser tool, from added
The Webpage of load captures test page sectional drawing;
Returning unit 204, for returning to the test page sectional drawing to the thinkPHP test frames so that described
ThinkPHP test frames export the test page sectional drawing.
Preferably, the kernel information writing unit 202, including:
Subelement is submitted in request, for being submitted to the no interface browser tool comprising the browser kernel information
Current sectional drawing request
Request write-in subelement, for the current sectional drawing request to be written in object queue, the object queue limitation
The current sectional drawing asks the processed moment;
Subelement is replaced, for when the current sectional drawing please find out the object queue, by the no interface browser
Original kernel information in tool replaces with the browser kernel information.
Preferably, the Kernel data collection unit 201, including:
Relevant information obtains subelement, defeated in the front end page of the thinkPHP test frames for obtaining test user
Web page interlinkage corresponding with the browser to be tested, operating system version information and the browser version information entered;
Subelement is verified, for verifying whether the web page interlinkage is true;
Inquiry subelement inquires and the operating system if being true for the check results to the web page interlinkage
Version information and the browser version information while matched browser kernel information.
Preferably, the capture unit 203, including:
Subelement is called, invoking web page module creation page model is used for;
Load subelement, for by be written after the browser kernel information without interface browser tool, described
The corresponding Webpage of the web page interlinkage is loaded in page model;
Generate subelement, for by be written after the browser kernel information without interface browser tool, to described
Webpage is captured, to generate the test page sectional drawing.
Preferably, described device further includes:
The test page sectional drawing is marked with the User ID of the test user and is preserved.
Preferably, the returning unit 204, including:
Unit is named, for uniquely being named the test page sectional drawing;
Transfer unit, for unique name of the test page sectional drawing to be passed to the thinkPHP test frames,
So that the thinkPHP test frames obtain the test page sectional drawing according to unique name.
Since the device that the present embodiment is introduced is to implement to fill used by browser testing method in the embodiment of the present invention
It sets, so based on the browser testing described in the embodiment of the present invention, those skilled in the art can understand this implementation
The specific implementation mode and its various change form of the browser testing device of example, so how to be realized for the device herein
Browser testing method is no longer discussed in detail in the embodiment of the present invention.Implement as long as those skilled in the art implement the present invention
Device used by browser testing method in example, belongs to the range of the invention to be protected.
By the one or more embodiments provided in aforementioned present invention, have at least the following technical effects or advantages:
Browser kernel information due to obtaining browser to be tested by thinkPHP test frames is written clear without interface
Look at device tool;Again by, without interface browser tool, being captured from the Webpage loaded after write-in browser kernel information
Test page sectional drawing returns to thinkPHP test frames so that test page sectional drawing is exported in thinkPHP test frames, from
And will be combined with thinkPHP test frames without interface browser tool, no interface browser tool is by being written in browser
Nuclear information goes to simulate different browser progress webpage loads, and the Webpage after load captures test page sectional drawing and gives
ThinkPHP test frames are presented, to be checked for test user.Only need offer browser kernel information that can simulate difference
Browser, therefore the browser of each operating system and different editions can be compatible with, solve browsing when test well
Device compatibility issue, and then for the compatibility test of more browsers, improve testing efficiency.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means to be in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment claimed it is arbitrary it
One mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors
Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) are realized in gateway according to the ... of the embodiment of the present invention, proxy server, system
Some or all components some or all functions.The present invention is also implemented as executing side as described herein
Some or all equipment or program of device (for example, computer program and computer program product) of method.It is such
Realize that the program of the present invention can may be stored on the computer-readable medium, or can be with the shape of one or more signal
Formula.Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or with any other shape
Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of browser testing method, which is characterized in that including:
The browser kernel information of browser to be tested is obtained by thinkPHP test frames;
The browser kernel information is written without interface browser tool;
By, without interface browser tool, test being captured from the Webpage loaded after the write-in browser kernel information
Page screenshot;
The test page sectional drawing is returned to the thinkPHP test frames so that is exported in the thinkPHP test frames
The test page sectional drawing.
2. browser testing method as described in claim 1, which is characterized in that described that the browser kernel information is written
Without interface browser tool, including:
The current sectional drawing comprising the browser kernel information is submitted to ask to the no interface browser tool;
By in the current sectional drawing request write-in object queue, the object queue limitation current sectional drawing request is processed
Moment;
When the current sectional drawing please find out the object queue, by the original kernel information in the no interface browser tool
Replace with the browser kernel information.
3. browser testing method as described in claim 1, which is characterized in that described to be obtained by thinkPHP test frames
The browser kernel information of browser to be tested, including:
Obtain the corresponding with the browser to be tested of front end page input of the test user in the thinkPHP test frames
Web page interlinkage, operating system version information and browser version information;
Verify whether the web page interlinkage is true;
If the check results to the web page interlinkage are true, inquire and the operating system version information and the browser
Version information while matched browser kernel information.
4. browser testing method as claimed in claim 3, which is characterized in that described to be believed by the way that the browser kernel is written
After breath without interface browser tool, capture test page sectional drawing from the Webpage loaded, including:
Invoking web page module creation page model;
By, without interface browser tool, the net being loaded in the page model after the write-in browser kernel information
Page links corresponding Webpage;
By, without interface browser tool, being captured to the Webpage after the write-in browser kernel information, with
Generate the test page sectional drawing.
5. browser testing method as claimed in claim 4, which is characterized in that it is described generate the test page sectional drawing it
Afterwards, the method further includes:
The test page sectional drawing is marked with the User ID of the test user and is preserved.
6. browser testing method as described in claim 1, which is characterized in that described to be returned to the thinkPHP test frames
The test page sectional drawing is returned, including:
The test page sectional drawing is uniquely named;
Unique name of the test page sectional drawing is passed into the thinkPHP test frames so that the thinkPHP is surveyed
It tries frame and the test page sectional drawing is obtained according to unique name.
7. a kind of browser testing device, which is characterized in that including:
Kernel data collection unit, the browser kernel for obtaining browser to be tested by thinkPHP test frames are believed
Breath;
Kernel information writing unit, for being written the browser kernel information without interface browser tool;
Capture unit, for by be written after the browser kernel information without interface browser tool, from the net loaded
The page page captures test page sectional drawing;
Returning unit, for returning to the test page sectional drawing to the thinkPHP test frames so that described
ThinkPHP test frames export the test page sectional drawing.
8. browser testing device as claimed in claim 7, which is characterized in that the kernel information writing unit, including:
Subelement is submitted in request, current comprising the browser kernel information for being submitted to the no interface browser tool
Sectional drawing is asked
Request write-in subelement, for the current sectional drawing request to be written in object queue, described in the object queue limitation
Current sectional drawing asks the processed moment;
Subelement is replaced, for when the current sectional drawing please find out the object queue, by the no interface browser tool
In original kernel information replace with the browser kernel information.
9. browser testing device as claimed in claim 7, which is characterized in that the Kernel data collection unit, including:
Relevant information obtains subelement, for obtaining front end page input of the test user in the thinkPHP test frames
Web page interlinkage corresponding with the browser to be tested, operating system version information and browser version information;
Subelement is verified, for verifying whether the web page interlinkage is true;
Inquiry subelement inquires and the operating system version if being true for the check results to the web page interlinkage
Information and the browser version information while matched browser kernel information.
10. browser testing device as claimed in claim 9, which is characterized in that the capture unit, including:
Subelement is called, invoking web page module creation page model is used for;
Load subelement, for by be written after the browser kernel information without interface browser tool, in the page
The corresponding Webpage of the web page interlinkage is loaded in model;
Generate subelement, for by be written after the browser kernel information without interface browser tool, to the webpage
The page is captured, to generate the test page sectional drawing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611127836.3A CN108614762A (en) | 2016-12-09 | 2016-12-09 | A kind of browser testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611127836.3A CN108614762A (en) | 2016-12-09 | 2016-12-09 | A kind of browser testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108614762A true CN108614762A (en) | 2018-10-02 |
Family
ID=63657414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611127836.3A Pending CN108614762A (en) | 2016-12-09 | 2016-12-09 | A kind of browser testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108614762A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109740100A (en) * | 2019-01-03 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of web page joint sniff method, apparatus, equipment and storage medium |
CN109885446A (en) * | 2018-12-25 | 2019-06-14 | 北京互金新融科技有限公司 | Determine that Website page shows the method and device of state |
CN110221843A (en) * | 2019-05-08 | 2019-09-10 | 北京深睿博联科技有限责任公司 | The method and device of browser kernel switching |
CN110457616A (en) * | 2019-07-24 | 2019-11-15 | 万达信息股份有限公司 | A kind of method that webpage consistency is shown under isomery CPU system |
CN110716778A (en) * | 2019-09-10 | 2020-01-21 | 阿里巴巴集团控股有限公司 | Application compatibility testing method, device and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005266954A (en) * | 2004-03-16 | 2005-09-29 | Hitachi Software Eng Co Ltd | Operation information recording/reproduction apparatus |
CN102968448A (en) * | 2012-10-25 | 2013-03-13 | 北京奇虎科技有限公司 | Browser |
CN103136094A (en) * | 2011-11-25 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Page testing method and device |
CN103631709A (en) * | 2012-08-29 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Method and system for testing double-kernel browser |
CN103902441A (en) * | 2012-12-25 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Method and device for carrying out testing processing on mobile web application |
CN104731694A (en) * | 2013-12-18 | 2015-06-24 | 中国银联股份有限公司 | Browser compatibility test analyzing method and system |
CN104794056A (en) * | 2015-04-29 | 2015-07-22 | 北京京东尚科信息技术有限公司 | Web browser compatibility testing method and device |
-
2016
- 2016-12-09 CN CN201611127836.3A patent/CN108614762A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005266954A (en) * | 2004-03-16 | 2005-09-29 | Hitachi Software Eng Co Ltd | Operation information recording/reproduction apparatus |
CN103136094A (en) * | 2011-11-25 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Page testing method and device |
CN103631709A (en) * | 2012-08-29 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Method and system for testing double-kernel browser |
CN102968448A (en) * | 2012-10-25 | 2013-03-13 | 北京奇虎科技有限公司 | Browser |
CN103902441A (en) * | 2012-12-25 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Method and device for carrying out testing processing on mobile web application |
CN104731694A (en) * | 2013-12-18 | 2015-06-24 | 中国银联股份有限公司 | Browser compatibility test analyzing method and system |
CN104794056A (en) * | 2015-04-29 | 2015-07-22 | 北京京东尚科信息技术有限公司 | Web browser compatibility testing method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885446A (en) * | 2018-12-25 | 2019-06-14 | 北京互金新融科技有限公司 | Determine that Website page shows the method and device of state |
CN109740100A (en) * | 2019-01-03 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of web page joint sniff method, apparatus, equipment and storage medium |
CN110221843A (en) * | 2019-05-08 | 2019-09-10 | 北京深睿博联科技有限责任公司 | The method and device of browser kernel switching |
CN110457616A (en) * | 2019-07-24 | 2019-11-15 | 万达信息股份有限公司 | A kind of method that webpage consistency is shown under isomery CPU system |
CN110457616B (en) * | 2019-07-24 | 2024-02-13 | 万达信息股份有限公司 | Method for displaying web page consistency under heterogeneous CPU system |
CN110716778A (en) * | 2019-09-10 | 2020-01-21 | 阿里巴巴集团控股有限公司 | Application compatibility testing method, device and system |
CN110716778B (en) * | 2019-09-10 | 2023-09-26 | 创新先进技术有限公司 | Application compatibility testing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108614762A (en) | A kind of browser testing method and device | |
JP5821678B2 (en) | Web service for automatic compatibility check independent of web application browser | |
CN106569856B (en) | A kind of loading method and device of application view resource file | |
EP3273362A1 (en) | Webpage access method, apparatus, device and non-volatile computer storage medium | |
CN105868096B (en) | For showing the method, device and equipment of web page test result in a browser | |
CN106484383A (en) | page rendering method, device and equipment | |
CN107688529B (en) | Component debugging method and device | |
US10362089B1 (en) | Methods and systems for dynamically generating and reusing dynamic web content | |
US8661245B1 (en) | Systems and methods for empowering IP practitioners | |
CN103823841B (en) | Improve the method and its device of mobile terminal client terminal surfing | |
CN108647141A (en) | Automatic test approach, device, computer-readable medium and electronic equipment | |
CN107729249A (en) | Browser compatibility method of testing, device, system and electronic equipment | |
CN106126197A (en) | Make the method and device of the mobile terminal application page and PC end application page synchronization | |
CN110781425B (en) | Display method, device and equipment of mobile terminal H5 page and storage medium | |
CN103544271B (en) | Load Image in a kind of browser the method and apparatus for processing window | |
CN105373533B (en) | A kind of detection method, client and the device of page link address | |
CN105051714B (en) | The system and method that network virtual media redirects | |
KR102181630B1 (en) | Apparatus and method for application emulation | |
CN108958855A (en) | The method, apparatus and system of page jump | |
US10282398B1 (en) | Editing tool for domain-specific objects with reference variables corresponding to preceding pages | |
US9104573B1 (en) | Providing relevant diagnostic information using ontology rules | |
CN106126517A (en) | The PC end application page is converted to the method and device of the mobile terminal application page | |
CN116775034A (en) | Method, device and equipment for constructing kernel observation program | |
CN106126198B (en) | In the method and device of the mobile terminal load end PC application page | |
CN106202319B (en) | Abnormal URL (Uniform resource locator) verification method and system |
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: 20181002 |
|
RJ01 | Rejection of invention patent application after publication |