CN106897227A - A kind of the control display methods and system of dynamic web page test - Google Patents

A kind of the control display methods and system of dynamic web page test Download PDF

Info

Publication number
CN106897227A
CN106897227A CN201710127225.7A CN201710127225A CN106897227A CN 106897227 A CN106897227 A CN 106897227A CN 201710127225 A CN201710127225 A CN 201710127225A CN 106897227 A CN106897227 A CN 106897227A
Authority
CN
China
Prior art keywords
submodule
data
web page
control
test
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.)
Withdrawn
Application number
CN201710127225.7A
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.)
USI Electronics Shenzhen Co Ltd
Original Assignee
USI Electronics Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by USI Electronics Shenzhen Co Ltd filed Critical USI Electronics Shenzhen Co Ltd
Priority to CN201710127225.7A priority Critical patent/CN106897227A/en
Publication of CN106897227A publication Critical patent/CN106897227A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The invention discloses the control display methods and system of a kind of test of dynamic web page.Method includes that S100 testing and control scripts invoking web page captures script, captures the related data of target web;S200 webpage captures script is stored the related data of target web in default storage data duration respectively;S300 testing and controls script reads the corresponding dependent variable data of web page contents picture of the current target webpage of storage, and carries out test statisticses and obtain current test data;S400 testing and control scripts are integrally formed current time control displayed page and show.The present invention realizes the relevant view and correlated variables of dynamic access webpage, Web programs are not changed directly uses original picture, test statisticses can be carried out to the related data of current access webpage, intuitively show type of error and errors present, improve error detection efficiency.

Description

A kind of the control display methods and system of dynamic web page test
Technical field
The present invention relates to webpage test display field, more particularly to a kind of control display methods of dynamic web page test and System.
Background technology
With the continuous progress of Internet technology, the Internet media has obtained very big development in recent years, its audient and covers Capping can compare favourably with traditional media.Due to developing rapidly for web front-end technology, carried out as between terminal user Interactive carrier, the function that webpage is carried is more and more, and pattern also becomes increasingly complex.
Conventional Windows regular messages round-robin queue, window application is message based programming mould Formula, using event-driven programming model, is divided into message summary, message structure, type of message.(there is a system to disappear in Windows Breath queue, for the window application that each is carrying out, system sets up one " message queue " for it, that is, apply Program queue, for depositing the message of the various windows that the program may be created.Containing one section, referred to as " message is followed in application program The code of ring ", for retrieving these message from message queue and they being distributed in corresponding window function.It is so-called " to disappear Breath circulation ", really program circulation.)
In a webpage, various web page elements are generally comprised, many programs have had existing web user's picture, such as Fruit will design new user's picture, and some interfaces are increased on the basis of this picture, and common practices is directly to be drawn according to user The element in face, redesigns interface.Although do so can reach requirement, Web program clients are ready for, content ratio It is more, change relatively costly, waste time and energy.And, in the prior art, it is typically with the survey that textual form exports web page Test result information, tester needs to position mistake corresponding with test result in corresponding web page by artificial mode By mistake, it is not easy to tester and quickly determines type of error and errors present, increased error detection and the time repaired, influence The efficiency of whole test phase.
The content of the invention
The invention provides the control display methods and system of a kind of test of dynamic web page, its purpose one is dynamic access net The relevant view and correlated variables of page, turn into view working process a part for program user picture;Another object is that being not required to Web programs are changed, directly using original picture, increases new user interface requirement, as a new program, saving is opened The hair time, save development cost.Another object is that intuitively showing type of error and errors present, error detection efficiency is improved.
The technical scheme that the present invention is provided is as follows:
A kind of control display methods of dynamic web page test, including step:S100 testing and control scripts invoking web page is captured Script, captures the related data of target web, the related data of the target web include web page address, web page contents picture and Dependent variable data;Webpage capture script described in S200 is stored in data duration default, by the correlation of the target web Data are stored respectively;Testing and control script described in S300 reads the correlated variables of the current target webpage of the storage Data, and carry out test statisticses and obtain current test data;Testing and control script described in S400 is integrally formed current time control Displayed page simultaneously shows.
View working process, is turned into program user picture by the relevant view and correlated variables of dynamic access webpage of the present invention A part, it is not necessary to change Web programs, directly using original picture, can be related to some of current access webpage Data carry out test statisticses, intuitively show type of error and errors present, improve error detection efficiency, it is to avoid form web page insertion Caused fitness problem not high and occurs dodging the problem moved back at regular intervals.
Further, the step S100 includes step:The timer crawl time that S110 pre-sets when timing reaches During interval, the testing and control script calls the webpage capture script to open crawl task;Webpage capture script described in S120 Web page address thread is opened, in default crawl network address duration, the web page address of the current target webpage is captured;S130 The webpage capture script opens webpage view thread, in default capturing pictures duration, captures the current target net The web page contents picture of page;Webpage capture script described in S140 opens web page variable thread, in default crawl data duration, grabs Take the dependent variable data of the current target webpage.
Dependent variable data of the present invention includes MAC Address, test item aim sequence number, the product of Devices to test of Devices to test The relevant information datas such as product model, access-in point information, channel information.Different task process are opened, so different tasks are entered Journey simultaneously synchronous can be carried out, it is also possible to carry out next task process again after completing a task process, here, it is preferred that synchronous open Crawl process is opened, when being broken down this avoid a process, process below cannot be normally carried out.Crawl current time Web page address be to ensure that the image content and dependent variable data of crawl are the contents of current time current web page, it is to avoid What current time captured is the web page contents of last moment or subsequent time, causes test unnecessary mistake occur.
Further, the step S300 includes step:Testing and control script described in S310 reaches when itself waiting time During the operation duration of the webpage capture script, the dependent variable data of the current target webpage of the storage is read; Testing and control script described in S320 tests the dependent variable data of current target webpage by default test mode, obtains Current test result;The current test result count and obtains the current test number by testing and control script described in S330 According to;Wherein, the operation duration of the webpage capture script is equal to the crawl network address duration, capturing pictures duration, crawl data Duration and the total duration for storing data duration.
The present invention has only reached default webpage capture script after java applet is captured and preserves a related data Operation duration, main program could reading and saving data simultaneously tested and counted, then test result, statistics are entered Row intuitively statistics display.Here, whether test is normal in order to test the related data variable of current target webpage, is Understanding extent of error, obtains statistics, so as to allowing users to according to extent of error by height by related statistical computation To low order, preferential solving error degree program code and page setup high can also work as what error rate was more or less the same certainly In the case of, modified mistake according to time order and function order.
Further, the step S400 includes step:Testing and control script described in S410 presets viewing area first, Show the web page contents picture of the current target webpage of storage;Testing and control script obtains test statisticses described in S420 The described current test data for arriving, generation statistical views are carried out in default generation duration;Testing and control script described in S430 The statistical views are included in the second default viewing area.
The present invention shows comprehensive control that client disposes comprehensively by thermal map, wireless channel and signal intensity, so that right Network state makes real-time report, and user can easily find known access point, illegal on current time control displayed page Access point and the client for associating, do not interfere with the other guide that user browses webpage, are easy to user to receive, and have taken into account user's Online experience.
Further, step is included after the step S400:Testing and control script judges message loop team described in S500 Whether row receive next timers trigger message, if so, return to step S100;And/or;Testing and control script is sentenced described in S600 It is disconnected whether to receive END instruction, if so, controlling whole process to terminate.
The present invention can carry out the webpage capture of a new round using the present invention according to triggering command, or be referred to according to end Order terminates crawl test display task.
The present invention also provides a kind of control display system of dynamic web page test, including:It is handling module, control module, aobvious Show module;The handling module is communicated to connect with the control module;The control module is communicated to connect with the display module; The handling module, script is captured by testing and control script invoking web page, captures the related data of target web, the target The related data of webpage includes web page address, web page contents picture and dependent variable data;In default storage data duration, The related data of the target web is stored respectively;The control module, reads the current target of the storage The dependent variable data of webpage, and carry out test statisticses and obtain current test data;The display module, when being integrally formed current Carve control displayed page and show.
After present invention triggering timer, background access Web obtains coherent element data and picture and is saved in disk, VC Coherent element data and picture in Windows main program reading disks, are tested and are counted, by test result and current accessed Web pictures in same interface display out.This avoid fitness problem not high caused by form web page insertion and Occurs dodging the problem moved back at regular intervals.And staff can intuitively know errors present from Web active areas Information, moreover it is possible to know the information such as error probability and type of error from statistics viewing area.
Further, the handling module includes:Submodule, crawl network address submodule, capturing pictures submodule are opened in timing Block, crawl variable submodule and storage submodule;The timing open submodule respectively with the crawl network address submodule, it is described Capturing pictures submodule and the crawl variable submodule are communicated to connect;The storage submodule is sub with the crawl network address respectively Module, the capturing pictures submodule and the crawl variable submodule are communicated to connect;Submodule is opened in the timing, works as timing When reaching the timer crawl time interval for pre-setting, the testing and control script calls the webpage capture script to open and grabs Take task;The crawl network address submodule, opens web page address thread, in default crawl network address duration, captures described current The web page address of moment target web;The capturing pictures submodule, opens webpage view thread, in default capturing pictures duration It is interior, capture the web page contents picture of the current target webpage;The crawl variable submodule, opens web page variable line Journey, in default crawl data duration, captures the dependent variable data of the current target webpage;The storage submodule Block, in default storage data duration, the related data of the target web is stored respectively.
The present invention opens different task process, and so different task process simultaneously synchronous can be carried out, it is also possible to complete Next task process is carried out again after into a task process, here, it is preferred that synchronous open crawl process, is entered this avoid one When journey breaks down, process below cannot be normally carried out.Need to capture the web page address at current time simultaneously, so can be with After picture and related data variable is grabbed, carry out detection and judge that the data or picture of crawl are current time rather than upper a period of time Carve or subsequent time, it is to avoid unnecessary mistake occurs in test.
Further, the control module includes:Reading submodule, test submodule, statistic submodule;It is described to read son Module is communicated to connect with the test submodule;The test submodule is communicated to connect with the statistic submodule;The reading Submodule, when testing and control script itself waiting time operation duration of the webpage capture script is reached, the survey Examination control script reads the dependent variable data of the current target webpage of the storage;The test submodule, by pre- If test mode test current target webpage dependent variable data, obtain current test result;The statistics submodule Block, the current test result count obtains the current test data;Wherein, the operation of the webpage capture script Duration is equal to the total duration of the crawl network address duration, capturing pictures duration, crawl data duration and the storage data duration.
In the present invention, after having reached the operation duration of default webpage capture script, the data of main program reading and saving are simultaneously Tested and counted, test result, statistics are intuitively then counted into display.Show in corresponding web page Show the corresponding errors present of test result, be easy to tester quickly to determine type of error and errors present, reduce mistake Detection and the time repaired, improve the efficiency of whole test phase.
Further, the display module includes the first display sub-module, forms submodule, the second display sub-module;Institute The first display sub-module is stated to be communicated to connect with the formation submodule;The formation submodule is logical with second display sub-module Letter connection;First display sub-module, in the first default viewing area, show storage current target webpage it is described Web page contents picture;The formation submodule, the described current test data that test statisticses are obtained, in default generation duration Inside carry out generation statistical views;Second display sub-module, the statistical views are included in the second default viewing area.
The present invention shows comprehensive control of client's deployment comprehensively to thermal map, wireless channel and signal intensity excessively, so as to net Whether network state normal etc., and information makes real-time report, user after the target network address for browsing is wanted in input, to user intuitively The current time control displayed page of the webpage view comprising current goal network address after integrating and statistical views content is presented, uses Family can easily find the letter such as client of known access point, rogue access point and association on current time control displayed page Breath, intuitively show type of error and errors present, raising error detection efficiency, at the same do not interfere with user browse webpage other in Hold, be easy to user to receive, taken into account the online experience of user.
Further, the control display system of the dynamic web page test also includes:Judge module;The judge module point Do not communicated to connect with the handling module, control module and display module;Whether the judge module, judge Message Rotation Queue Next timers trigger message is received, if so, opening the crawl test process of a new round by the control module;And/or; The judge module, further determines whether to receive END instruction order, if so, controlling whole crawl test by the control module Show process terminates.
The present invention can carry out the webpage capture of a new round and show according to triggering command, so can be according to user's Actual demand successively captures new web content data and carries out test statisticses and display, is once captured rather than completing Task and test display after, just end task, or according to END instruction terminate crawl test display task, in this manner it is possible to According to the demand of user, no matter what state is whole flow of task be in, as long as getting END instruction, it becomes possible to terminate at any time Whole flow of task.
Compared with prior art, the present invention provides a kind of the control display methods and system of dynamic web page test, at least band Carry out a kind of following technique effect:
View working process, is turned into the one of program user picture by the 1st, relevant view and correlated variables of dynamic access webpage Part.
2nd, Web programs need not be changed, directly using original picture, increases new user interface requirement, as one New program, saves the development time, saves development cost.
3rd, real-time report is made to network state, type of error and errors present is intuitively shown, error detection efficiency is improved.
4th, avoid fitness problem not high caused by form web page insertion and occurring at regular intervals and dodge asking of moving back Topic.
Brief description of the drawings
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of test of dynamic web page Characteristic, technical characteristic, advantage and its implementation for compareing display methods and system are further described.
Fig. 1 is a kind of flow chart of control display methods one embodiment of dynamic web page test of the invention;
Fig. 2 is a kind of flow chart of another embodiment of the control display methods of dynamic web page test of the invention;
Fig. 3 is a kind of flow chart of another embodiment of the control display methods of dynamic web page test of the invention;
Fig. 4 is a kind of flow chart of another embodiment of the control display methods of dynamic web page test of the invention;
Fig. 5 is a kind of structure chart of control display system one embodiment of dynamic web page test of the invention;
Fig. 6 is a kind of structure chart of control display system one embodiment of dynamic web page test of the invention;
Fig. 7 is a kind of one flow chart of example of control display methods of dynamic web page test of the invention;
Fig. 8 is a kind of one structure chart of example of control display system of dynamic web page test of the invention;
Fig. 9 is a kind of one design sketch of example of control display system of dynamic web page test of the invention..
Specific embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below Specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing, and obtain other implementation methods.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented Its as product practical structures.In addition, so that simplified form is readily appreciated, there is identical structure or function in some figures Part, only symbolically depicts one of those, or has only marked one of those.Herein, " one " is not only represented " only this ", it is also possible to represent the situation of " more than one ".
Shown in reference picture 1, the present invention provides a kind of one embodiment of the control display methods of dynamic web page test, bag Include:.
S100 testing and control scripts invoking web page captures script, captures the related data of target web, the target web Related data include web page address, web page contents picture and dependent variable data;
Webpage capture script described in S200 divides the related data of the target web in default storage data duration Do not stored;
Testing and control script described in S300 reads the dependent variable data of the current target webpage of the storage, goes forward side by side Row test statisticses obtain current test data;
Testing and control script described in S400 is integrally formed current time control displayed page and shows.
Specifically, in the present embodiment, the relevant view and correlated variables of dynamic access webpage, view working process into It is a part for program user picture, it is not necessary to change Web programs, directly using original picture, can be to current access Some related datas of webpage carry out test statisticses, intuitively show type of error and errors present, improve error detection efficiency, it is to avoid Fitness problem not high and occurs dodging the problem moved back at regular intervals caused by form web page insertion.In the present embodiment, Needed to do homework before crawl test show process, concrete operations are as follows:
S010 initializes the relevant parameter of the webpage to be embedded;
S020 creates user window interface according to the relevant parameter of the webpage to be embedded;
S030 pre-sets the operation duration of webpage capture script, captures network address duration, and capturing pictures duration captures data Duration, stores data duration, and timer crawl time interval.
Shown in reference picture 2, the present invention provides a kind of another embodiment of the control display methods of dynamic web page test, bag Include:
During the timer crawl time interval that S110 pre-sets when timing reaches, the testing and control script calls described Webpage capture script opens crawl task;
Webpage capture script described in S120 opens web page address thread, and in default crawl network address duration, crawl is described to work as The web page address of preceding moment target web;
Webpage capture script described in S130 opens webpage view thread, and in default capturing pictures duration, crawl is described to work as The web page contents picture of preceding moment target web;
Webpage capture script described in S140 opens web page variable thread, and in default crawl data duration, crawl is described to work as The dependent variable data of preceding moment target web;
Preferably, webpage view thread is opened, the current target webpage is captured in default capturing pictures duration Web page contents picture before, also need to carry out to judge that operation is as follows:Judge target web address to be captured whether step S120 The web page address of the current target webpage of middle crawl is consistent;If consistent according to the webpage to be captured, in default crawl figure The web page contents picture of the crawl current target webpage in piece duration.Web page variable thread is opened, in default crawl number According to before the dependent variable data for capturing the current target webpage in duration, also needing to carry out to judge that operation is as follows:Judge Target web address to be captured whether the current target webpage captured in step S120 web page address it is consistent;If consistent According to the webpage to be captured, in default crawl data duration, the correlated variables number of the current target webpage is captured According to.
Wherein, dependent variable data includes MAC Address, test item aim sequence number, the product of Devices to test of Devices to test The relevant information datas such as product model, access-in point information, channel information.Different task process are opened, so different tasks are entered Journey simultaneously synchronous can be carried out, it is also possible to carry out next task process again after completing a task process, here, it is preferred that synchronous open Crawl process is opened, when being broken down this avoid a process, process below cannot be normally carried out.Crawl is needed simultaneously The web page address at current time, so can carry out the number that detection judges crawl after picture and related data variable is grabbed According to or picture be current time rather than last moment or subsequent time, it is to avoid there is unnecessary mistake in test.The present invention is opened After opening crawl task, carry out capturing the web page address of current target webpage, web page contents picture and related change simultaneously respectively Amount data.
Webpage capture script described in S200 divides the related data of the target web in default storage data duration Do not stored;
Testing and control script described in S310 is read when itself waiting time the operation duration of the webpage capture script is reached Take the dependent variable data of the current target webpage of the storage;
Testing and control script described in S320 tests the correlated variables of current target webpage by default test mode Data, obtain current test result;
The current test result count and obtains the current test data by testing and control script described in S330;
Testing and control script described in S410 shows the institute of the current target webpage of storage in the first default viewing area State web page contents picture;
The described current test data that testing and control script described in S420 obtains test statisticses, in default generation duration Inside carry out generation statistical views;
Testing and control script described in S430 includes in the second default viewing area the statistical views.Specifically, this reality In applying example, when the operation duration of the webpage capture script is equal to the crawl network address duration, capturing pictures duration, crawl data Total duration with the storage data duration long.The operation duration of webpage capture script is reached when testing and control script waiting time Afterwards, can read and carry out data test statisticses, i.e. backstage after java applet is captured and preserves a related data, only After having reached the default stand-by period, main program could reading and saving data simultaneously tested and counted, then by test result, Statistics is intuitively counted display.In concrete application, visitor is shown comprehensively by thermal map, wireless channel and signal intensity Comprehensive control of administration of the Ministry of Revenue, so as to make real-time report to network state, user can be on current time control displayed page Easily find the client of known access point, rogue access point and association.The other guide that user browses webpage is not interfered with, just Receive in user, taken into account the online experience of user.Multiple is generally comprised on one web page be test for page elements, Many places mistake may be included, therefore the test result information may not only one, but be made up of a plurality of test result information Set, every test result according to user's request is carried out into statistic of classification and is labelled, it is finally straight in browser window The particular location that ground shows coherent element corresponding with test result information is seen, is easy to tester quickly to judge test result Type, improve errors repair efficiency.
Shown in reference picture 3, relative to the embodiment shown in Fig. 2, identical part will not be repeated here.The present invention is provided A kind of another embodiment of the control display methods of dynamic web page test, including:
Testing and control script described in S500 judges whether Message Rotation Queue receives next timers trigger message, if Return to step S110;And/or;Testing and control script judges whether to receive END instruction described in S600, if control is entirely entered Journey terminates.
Specifically, using conventional Windows regular messages round-robin queue in the present embodiment, when every how long disappear Cease to being carried out Java subprograms.After program waits the execution of Java subprograms to terminate, go to read what Java subprograms were preserved As a result, such as the image for preserving, or other data for reading, using these data, main program can show some figures, or Some results are counted to show.If persistently receiving triggering timer crawl message here, data are captured in previous moment After test display terminates, the crawl data test that can be just further continued for current time shows, so, each crawl data test shows Duration be consistent, if current time T1 can not complete to capture data test show process, then, it is necessary to by current time It is marked display, and leaps to subsequent time T2 and carry out crawl data test and show.If that is, current time refreshes There is no current time to compare displayed page, then it is shown that the control displayed page of last moment, and current time is marked, together When backstage proceed capture data test show subsequent time control displayed page.Refer to once getting end and integrating display Order, then no matter whether whole process in crawl data, here the execution sequence of step S500 and step S600 be not necessarily, Can first carry out step S500, or first carry out step S600, or step S500 and step S600 is synchronously performed, always It, as long as receive END instruction, controls whole crawl test show process to terminate immediately.
Shown in reference picture 4, relative to the embodiment shown in Fig. 2, identical part will not be repeated here.The present invention provides one Another embodiment of the control display methods of dynamic web page test is planted, including:
Testing and control script described in S440 is by the web page contents picture of the current target webpage of the storage and test The described current test data that statistics is obtained, carries out being integrally formed visual view and statistics is regarded in default integration duration Figure;
The visual view and statistical views parsing are obtained corresponding control exhibition by testing and control script described in S450 Show web page contents code;
Testing and control script described in S460 forms the current time control according to the control displayed web page content code Displayed page;
Current time control displayed page is substituted the current target net by testing and control script described in S470 Page is filled into display interface and is shown;
Wherein, the view display area domain of the current time control displayed page is shown from the interception of current target webpage Or download the web page contents picture for obtaining;The statistics viewing area of the current time control displayed page was shown from current time The dependent variable data that target web gets carries out test result information and the statistics information that test statisticses computing is obtained.
In the present embodiment, user is presented to the not target network address of user after the target network address for browsing is wanted in input Web page contents, but displaying network address can be jumped to, it is presented to the user for the webpage comprising current goal network address after integrating and regards The current time control displayed page of figure and statistical views content.The other guide that user browses webpage is not interfered with, is easy to use Family receives, and has taken into account the online experience of user.
Shown in reference picture 5, the present invention provides a kind of one embodiment of the control display system 1000 of dynamic web page test, Including:Handling module 100, control module 200, display module 300;The handling module 100 communicates with the control module 200 Connection;The control module 200 is communicated to connect with the display module 300;
The handling module 100, script is captured by testing and control script invoking web page, captures the dependency number of target web According to the related data of the target web includes web page address, web page contents picture and dependent variable data;In default storage In data duration, the related data of the target web is stored respectively;The control module 200, reads the storage Current target webpage dependent variable data, and carry out test statisticses and obtain current test data;The display module 300, it is integrally formed current time control displayed page and shows.
Specifically, the present invention is used to show the Web pictures and test result that current accessed is called that it to utilize VC Windows Main program initializes correlated variables, after triggering timer, calls Java subprograms to carry out background access Web, obtains the correlation of Web Element data, and the Web pictures of current accessed are saved in disk, coherent element in VC Windows main program reading disks Data and Web pictures, count coherent element test result, by the Web pictures of test result and current accessed on same boundary Face shows.On the one hand, it is background access Web with Java and obtains Web pictures, then this Web picture is put into and has been deposited Web programs, it is not necessary to change Web programs, directly using original picture, eliminate redesign this The cost of picture program, while saving the development time, saves development cost;On the other hand, it is to avoid form web page insertion causes Fitness problem not high and occur dodging the problem moved back at regular intervals.Staff can be straight from Web active areas See ground and know errors present information, moreover it is possible to know the information such as error probability and type of error from statistics viewing area.
Shown in reference picture 6, relative to upper one embodiment, identical part will not be repeated here.The present invention provides a kind of Another embodiment of the control display system 1000 of dynamic web page test, the handling module 100 includes:Submodule is opened in timing Block 110, crawl network address submodule 120, capturing pictures submodule 130, crawl variable submodule 140 and storage submodule 150;Institute State timing open submodule 110 respectively with the crawl network address submodule 120, the capturing pictures submodule 130 and described grab Variable submodule 140 is taken to communicate to connect;The storage submodule 150 captures network address submodule 120, the crawl with described respectively Picture submodule 130 and the crawl variable submodule 140 are communicated to connect;
The control module 200 includes:Reading submodule 210, test submodule 220, statistic submodule 230;The reading Submodule 210 is taken to be communicated to connect with the test submodule 220;The test submodule 220 is logical with the statistic submodule 230 Letter connection;
The display module 300 includes the first display sub-module 310, forms submodule 320, the second display sub-module 330; First display sub-module 310 is communicated to connect with the formation submodule 320;It is described to form submodule 320 and the display Submodule 330 is communicated to connect:
Specifically, in the present embodiment, timing unlatching submodule 110 carries out timing and has reached the timer crawl for pre-setting During time interval, open crawl task carries out capturing respectively the web page address of current target webpage, web page contents figure simultaneously Piece and dependent variable data.Synchronous to open crawl process, when being broken down this avoid a process, process below is just not Can be normally carried out.The address information of current goal webpage is captured and preserved, the image content and phase at crawl current time has been ensured Close the content that variable data is current time current web page.The fortune of webpage capture script is reached when testing and control script waiting time After row duration, can read and carry out data test statisticses, i.e. backstage and related data of preservation is captured by java applet Afterwards, after only having reached the default stand-by period, the data of main program reading and saving are simultaneously tested and counted, and then tie test Really, statistics is intuitively counted display.User is presented to user not after the target network address for browsing is wanted in input Web page contents of target network address, but displaying network address can be jumped to, after being presented to the user for integrating comprising current goal net The current time control displayed page of the webpage view of location and statistical views content, the control displayed page is by current time webpage Content, current time test result, current time statistics, can be visually displayed in display interface.In corresponding web The corresponding errors present of test result is shown in the page, is easy to tester quickly to determine type of error and errors present, subtracted Lack error detection and the time repaired, improve the efficiency of whole test phase.In concrete application, by thermal map, wireless Channel and signal intensity show comprehensive control of client's deployment comprehensively, and so as to make real-time report to network state, user can be with The client of known access point, rogue access point and association is easily found on current time control displayed page.Do not interfere with User browses the other guide of webpage, is easy to user to receive, and has taken into account the online experience of user.
Preferably, the control display system of the dynamic web page test also includes:Judge module 400;The judge module 400 communicate to connect with the handling module 100, control module 200 and display module 300 respectively;
Specifically, the judge module 400, judges whether Message Rotation Queue receives next timers trigger message, If so, opening the crawl test process of a new round by the control module;And/or;The judge module 400, judges whether END instruction is received, if so, controlling whole crawl test show process to terminate by the control module.Whole process is to adopt With Windows regular messages round-robin queue, when triggering message is received after default waiting time, pin is captured with regard to invoking web page This execution Java subprograms backstage captures related data, after main program waits the execution of Java subprograms to terminate, goes to read Java The result that subprogram is preserved, the image for such as preserving, or other data for reading, using these data, main program can show Some figures, or count some results and show.If triggering timer crawl message is persistently received here, previous Moment crawl data test shows after terminating that the crawl data test that can be just further continued for current time shows, so, each crawl The duration that data test shows is consistent, if current time T1 can not complete to capture data test show process, then, need To be marked display current time, and leap to subsequent time T2 and carry out crawl data test and show.If that is, Current time refreshes no current time control displayed page, then it is shown that the control displayed page of last moment, and mark Note current time, while backstage proceeds to capture the control displayed page that data test shows subsequent time.Referred to according to triggering Order can carry out the webpage capture of a new round and show, so can successively be captured according to the actual demand of user new Web content data simultaneously carries out test statisticses and display, rather than complete it is once crawl task and test display after, just terminate Task, or crawl test display task is terminated according to END instruction, in this manner it is possible to according to the demand of user, no matter entirely Flow of task is in any state, as long as getting END instruction, it becomes possible to terminate whole flow of task at any time.
Shown in reference picture 7, the present invention provides an a kind of example of the control display methods of dynamic web page test:
The embodiment of the present invention includes program:VC Windows main programs 1 and Java subprograms 2, wherein, step tool of the present invention Body is as follows:
S1:Initialization correlated variables and establishment UI.Ini relevant parameters are initialized, mainly there is the MAC of Devices to test, item Aim sequence number, the title of Model and how long go produce Timer message (timer) read Web pictures and data.Wound UI is built, is exactly that VC Windows main programs 1 create window interface.
S2:Inbound message circular wait.Such as common Windows conventional Message Rotation Queue.
S3:Triggering timer message calls Java subprograms 2.Determine whenever default webpage capture duration receives triggering When device message, be carried out Java subprograms 2.
S4 logins target web by this backstage of Java subprograms 2, obtains the backstage view on target web, and be saved in Disk.
S5 logins target web by this backstage of Java subprograms 2, obtains the coherent element variable on target web, and protect It is stored to disk.
S6:Relevant parameter and graph data are read, is made and display interface.Program waits the execution of Java subprograms 2 to terminate Afterwards, go to read the result that Java subprograms 2 are preserved, the image for such as preserving, or other data for reading, using these data, VC Windows main programs 1 can show some figures, or count some results and show.
Many programs have had existing web user's picture, if to design new user's picture, common practices is before Directly according to the element of user's picture, interface is redesigned.The present invention is compiled using the technology combination VC of the background access web of Java View working process, is turned into the one of program user picture by journey, the relevant view of dynamic access webpage and the element variable of correlation Part.Have that many web's is abundant in content, both pictures and texts are excellent, the element variable with its a part of view and correlation is merely desired to now, such as Fruit is directly partially embedded into the existing application program for having existed what is needed, many times can be saved like that, if entirely Portion picture is wasted time and energy if redesigning, but with Java realize being dynamically embedded into Web pictures can save substantial amounts of manpower into Sheet and time cost.
Shown in reference picture 8, the present invention provides an a kind of example of the control display system of dynamic web page test:
(user UI is the abbreviation of User Interface- user interfaces to user UI interface Cs, and UI designs refer to then to software Man-machine interaction, operation logic, the global design of beautiful interface.) be made up of display interface A and display interface B.Display interface A Partial content is the program page of compiled completion, the target web that as current time is captured by backstage java applet Web displaying picture, if later stage user has other requirement, then the part based on display page A is modified, due to interior Hold a lot, code complexity, and be difficult to look for people to change, therefore be designed using the inventive method.Such as current user's will Seeking Truth is want to increase some test statisticses result interfaces on the basis of display interface A this picture, so do backstage with Java visiting Ask that target Web obtains the picture at current time display interface A, this picture is then put into existing program, then will The current time related data of crawl is tested and counted on backstage, and a test system is generated according to this test statisticses result Meter interface, as display interface B, the content that this display interface B shows is to be captured by backstage java applet at current time The test statisticses result of the related data of target web, direct backstage crawl Web page picture is displayed in a-quadrant, and backstage is tested simultaneously The result of the test data for wanting crawl is counted, statistics picture is formed and is displayed in B regions, eliminated and redesign this The cost of picture, the program of final displaying is last it is seen that following appearance, as shown in figure 8, being directly displayed at user UI The left-hand component of interface C is the picture (need not be regenerated with script) that display interface A shows, exactly directly displays backstage The page pictures that java applet is preserved, the right-hand component of user's UI interface Cs, i.e. display interface B are shown and left lateral split-phase The related data for gathering in the same time carries out test statisticses crawl data and test data (being displayed in the right of UI) out.Alright UI designs are not only and allow so that interface becomes have individual character to have good taste, moreover it is possible to interface operation is become comfortable, simple, free, reduce The memory burden of user, keeps the uniformity at interface.
Specifically, the display interface program of current router WC7500 is that user has been completed, the interface of WC7500 There are network condition, conventional AP information, conventional SSID information, conventional client-side information, sequence number, config update time, channel point With related datas such as times, if this interface that user is intended not only to by having existed learns whether these information mistake occur By mistake, also want to during tester comes off duty, whether record above- mentioned information goes wrong, then be accomplished by using after Java Platform accesses the technology combination VC programmings of web, the relevant view of dynamic access webpage and the element variable of correlation, at view processing A part of the reason as program user picture, the sequence number or MAC Address of the equipment gone wrong during record statistical monitoring, Record opens time and testing time and the number of times of failure of test, so that failure rate is counted, and by transferring The page pictures that the backstage java applet of the corresponding preservation of test result is preserved, facilitate tester's later stage directly rapidly to search Trouble point and fault type, it is not necessary to change Web programs, are to increase new use on this basis directly using original picture Family interface requirements, as a new program, shown in reference picture 9, the left side mark part 1 in picture is shown, crawl The display content of current time webpage, right indicia part 2 is shown network condition, AP information, SSID information, the visitor of crawl The related data informations such as family client information, sequence number, config update time, channel allocation times, and tested and counted, make Go out statistical graph, and mark part 2 shows on the right.Program interface is attractive in appearance, while saving the development time, saves development cost.
It should be noted that above-described embodiment can independent assortment as needed.The above is only of the invention preferred Implementation method, it is noted that for those skilled in the art, is not departing from the premise of the principle of the invention Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the control display methods that a kind of dynamic web page is tested, it is characterised in that including step:
S100 testing and control scripts invoking web page captures script, captures the related data of target web, the phase of the target web Closing data includes web page address, web page contents picture and dependent variable data;
Webpage capture script described in S200 enters the related data of the target web in default storage data duration respectively Row storage;
Testing and control script described in S300 reads the dependent variable data of the current target webpage of the storage, and is surveyed Examination statistics obtains current test data;
Testing and control script described in S400 is integrally formed current time control displayed page and shows.
2. the control display methods that dynamic web page according to claim 1 is tested, it is characterised in that the step S100 bags Include step:
During the timer crawl time interval that S110 pre-sets when timing reaches, the testing and control script calls the webpage Crawl script opens crawl task;
Webpage capture script described in S120 opens web page address thread, in default crawl network address duration, when capturing described current Carve the web page address of target web;
Webpage capture script described in S130 opens webpage view thread, in default capturing pictures duration, when capturing described current Carve the web page contents picture of target web;
Webpage capture script described in S140 opens web page variable thread, in default crawl data duration, when capturing described current Carve the dependent variable data of target web.
3. the control display methods that dynamic web page according to claim 2 is tested, it is characterised in that the step S300 bags Include step:
Testing and control script described in S310 reads institute when itself waiting time the operation duration of the webpage capture script is reached State the dependent variable data of the current target webpage of storage;
Testing and control script described in S320 tests the dependent variable data of current target webpage by default test mode, Obtain current test result;
The current test result count and obtains the current test data by testing and control script described in S330;
Wherein, the operation duration of the webpage capture script is equal to the crawl network address duration, capturing pictures duration, crawl data Duration and the total duration for storing data duration.
4. the control display methods that dynamic web page according to claim 1 is tested, it is characterised in that the step S400 bags Include step:
Testing and control script described in S410 shows the net of the current target webpage of storage in the first default viewing area Page content picture;
The described current test data that testing and control script described in S420 obtains test statisticses, enters in default generation duration Row generation statistical views;
Testing and control script described in S430 includes in the second default viewing area the statistical views.
5. the control display methods tested according to any described dynamic web pages of claim 1-4, it is characterised in that the step Include step after S400:
Testing and control script described in S500 judges whether Message Rotation Queue receives next timers trigger message, if returning Step S100;
And/or;
Testing and control script judges whether to receive END instruction described in S600, if performing step S700;
The whole process of testing and control Script controlling terminates described in S700.
6. the control display system that a kind of dynamic web page is tested, it is characterised in that including:Handling module, control module, display mould Block;The handling module is communicated to connect with the control module;The control module is communicated to connect with the display module;
The handling module, script is captured by testing and control script invoking web page, captures the related data of target web, described The related data of target web includes web page address, web page contents picture and dependent variable data;In default storage data In long, the related data of the target web is stored respectively;
The control module, reads the dependent variable data of the current target webpage of the storage, and carries out test statisticses Obtain current test data;
The display module, is integrally formed current time control displayed page and shows.
7. the control display system that dynamic web page according to claim 6 is tested, it is characterised in that the handling module bag Include:Submodule, crawl network address submodule, capturing pictures submodule, crawl variable submodule and storage submodule are opened in timing;Institute State timing unlatching submodule and capture network address submodule, the capturing pictures submodule and the crawl variable submodule with described respectively Block is communicated to connect;The storage submodule respectively with the crawl network address submodule, the capturing pictures submodule and described grab Take the communication connection of variable submodule;
Submodule is opened in the timing, when timing reaches the timer crawl time interval for pre-setting, the testing and control Script calls the webpage capture script to open crawl task;
The crawl network address submodule, opens web page address thread, in default crawl network address duration, captures the current time The web page address of target web;
The capturing pictures submodule, opens webpage view thread, in default capturing pictures duration, captures the current time The web page contents picture of target web;
The crawl variable submodule, opens web page variable thread, in default crawl data duration, captures the current time The dependent variable data of target web;
The storage submodule, in default storage data duration, the related data of the target web is stored up respectively Deposit.
8. the control display system that dynamic web page according to claim 7 is tested, it is characterised in that the control module bag Include:Reading submodule, test submodule, statistic submodule;The reading submodule is communicated to connect with the test submodule;Institute Test submodule is stated to be communicated to connect with the statistic submodule;
The reading submodule, when testing and control script itself waiting time operation of the webpage capture script is reached When long, the testing and control script reads the dependent variable data of the current target webpage of the storage;
The test submodule, the dependent variable data of current target webpage is tested by default test mode, is obtained Current test result;
The statistic submodule, the current test result count obtains the current test data;
Wherein, the operation duration of the webpage capture script is equal to the crawl network address duration, capturing pictures duration, crawl data Duration and the total duration for storing data duration.
9. the control display system that dynamic web page according to claim 6 is tested, it is characterised in that the display module bag Include the first display sub-module, form submodule, the second display sub-module;First display sub-module and the formation submodule Communication connection;The formation submodule is communicated to connect with second display sub-module;
First display sub-module, in the first default viewing area, shows the net of the current target webpage of storage Page content picture;
The formation submodule, the described current test data that test statisticses are obtained is given birth in default generation duration Into statistical views;
Second display sub-module, the statistical views are included in the second default viewing area.
10. the control display system tested according to any described dynamic web pages of claim 6-9, it is characterised in that also include: Judge module;The judge module is communicated to connect with the handling module, control module and display module respectively;
The judge module, judges whether Message Rotation Queue receives next timers trigger message, if so, by the control Molding block opens the crawl test process of a new round;And/or;
The judge module, further determines whether to receive END instruction, if so, controlling whole crawl to survey by the control module Examination show process terminates.
CN201710127225.7A 2017-03-06 2017-03-06 A kind of the control display methods and system of dynamic web page test Withdrawn CN106897227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710127225.7A CN106897227A (en) 2017-03-06 2017-03-06 A kind of the control display methods and system of dynamic web page test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710127225.7A CN106897227A (en) 2017-03-06 2017-03-06 A kind of the control display methods and system of dynamic web page test

Publications (1)

Publication Number Publication Date
CN106897227A true CN106897227A (en) 2017-06-27

Family

ID=59185125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710127225.7A Withdrawn CN106897227A (en) 2017-03-06 2017-03-06 A kind of the control display methods and system of dynamic web page test

Country Status (1)

Country Link
CN (1) CN106897227A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920326A (en) * 2018-06-14 2018-11-30 阿里巴巴集团控股有限公司 Determine system time-consuming abnormal method, apparatus and electronic equipment
CN111177222A (en) * 2019-12-26 2020-05-19 腾讯云计算(北京)有限责任公司 Model testing method and device, computing equipment and storage medium
CN111428168A (en) * 2020-03-18 2020-07-17 北京三维天地科技股份有限公司 Browser front-end architecture system capable of being separately developed from rear-end architecture
CN112925716A (en) * 2021-03-19 2021-06-08 广东好太太智能家居有限公司 Visual image testing method and device and storage medium
CN116521572A (en) * 2023-07-03 2023-08-01 天津金城银行股份有限公司 Webpage script visual verification method, system, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521121A (en) * 2011-11-18 2012-06-27 华为技术有限公司 Page testing method and page testing device
CN103034640A (en) * 2011-09-30 2013-04-10 腾讯科技(深圳)有限公司 Analysis method and system of page information
US20140298298A1 (en) * 2011-09-23 2014-10-02 Amazon Technologies, Inc. Intermediary for testing content and applications
CN104699789A (en) * 2015-03-16 2015-06-10 北京盛世光明软件股份有限公司 Method and system for embedding webpage
CN105868096A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Methods and apparatuses used for displaying web page test result in browser and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298298A1 (en) * 2011-09-23 2014-10-02 Amazon Technologies, Inc. Intermediary for testing content and applications
CN103034640A (en) * 2011-09-30 2013-04-10 腾讯科技(深圳)有限公司 Analysis method and system of page information
CN102521121A (en) * 2011-11-18 2012-06-27 华为技术有限公司 Page testing method and page testing device
CN105868096A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Methods and apparatuses used for displaying web page test result in browser and device
CN104699789A (en) * 2015-03-16 2015-06-10 北京盛世光明软件股份有限公司 Method and system for embedding webpage

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920326A (en) * 2018-06-14 2018-11-30 阿里巴巴集团控股有限公司 Determine system time-consuming abnormal method, apparatus and electronic equipment
CN111177222A (en) * 2019-12-26 2020-05-19 腾讯云计算(北京)有限责任公司 Model testing method and device, computing equipment and storage medium
CN111177222B (en) * 2019-12-26 2023-03-03 腾讯云计算(北京)有限责任公司 Model testing method and device, computing equipment and storage medium
CN111428168A (en) * 2020-03-18 2020-07-17 北京三维天地科技股份有限公司 Browser front-end architecture system capable of being separately developed from rear-end architecture
CN111428168B (en) * 2020-03-18 2020-11-10 北京三维天地科技股份有限公司 Browser front-end architecture system capable of being separately developed from rear-end architecture
CN112925716A (en) * 2021-03-19 2021-06-08 广东好太太智能家居有限公司 Visual image testing method and device and storage medium
CN112925716B (en) * 2021-03-19 2024-01-23 广东好太太智能家居有限公司 Visual image testing method, visual image testing equipment and storage medium
CN116521572A (en) * 2023-07-03 2023-08-01 天津金城银行股份有限公司 Webpage script visual verification method, system, terminal equipment and storage medium
CN116521572B (en) * 2023-07-03 2023-09-19 天津金城银行股份有限公司 Webpage script visual verification method, system, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106897227A (en) A kind of the control display methods and system of dynamic web page test
CN103927253B (en) Multiple browser compatibility testing method and system
CN106802803A (en) The method and apparatus of application data treatment
CN106302008A (en) Data-updating method and device
CN106886570A (en) page processing method and device
CN104820667B (en) The report method of webpage click amount, device and system
CN103577229B (en) The loading method of a kind of web game and web browser
CN104182234B (en) A kind of method for processing business and operation system
CN107391626A (en) Land the creation method and device of page
CN107158705A (en) The update method and device of service
CN104965778B (en) Method of testing of playing and device
CN106557426B (en) A kind of method and system for analyzing the ends Android application operation fluency
CN104899131B (en) Detection method, device and the mobile terminal that webpage loads in a kind of pair of browser
CN108519943A (en) Testing and control and test execution device, method and computer storage media
CN103744787A (en) Cellphone automated testing method
CN102576286A (en) Object displacement method for a web page
CN107943372A (en) A kind of interface display method, device and computer-readable recording medium
CN106649497A (en) Method and device for displaying web pages
US20160080463A1 (en) Methods and Systems for Dynamically Generating and Reusing Dynamic Web Content
CN103838851B (en) The rendering intent and device of three-dimensional scene models file
CN107015801A (en) A kind of web page display method and application terminal
CN107450899A (en) The generation method and device of terminal control script
CN106874204A (en) Automatic test method for customizing and custom-built system
CN106664285A (en) Event-based record and replay for advanced applications
CN111159014A (en) Response method and device for exploratory test, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170627

WW01 Invention patent application withdrawn after publication