CN103955425B - Webpage (WEB) exploring testing device and method - Google Patents
Webpage (WEB) exploring testing device and method Download PDFInfo
- Publication number
- CN103955425B CN103955425B CN201410153210.4A CN201410153210A CN103955425B CN 103955425 B CN103955425 B CN 103955425B CN 201410153210 A CN201410153210 A CN 201410153210A CN 103955425 B CN103955425 B CN 103955425B
- Authority
- CN
- China
- Prior art keywords
- data
- information
- scheduling
- web
- detection
- 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a webpage (WEB) exploring testing device and method. The device comprises an external service device, a scheduling execution device, a data analysis device and a form data generation device; the external service device is used for providing an exploring starting point and the maximum exploring depth and starting the scheduling execution device after receiving a starting instruction; the scheduling execution device is used for obtaining the exploring starting point and the maximum exploring depth and executing the exploring scheduling according to the exploring starting point and the maximum exploring depth; the data analysis device is used for obtaining the exploring scheduling executing result of the scheduling executing device, judging the correctness of the result, analyzing and generating the next layer of content to be explored, and calling the form data generating device when finding form information in the analysis process; the form data generating device is used for finishing the form data creation according to the form information. By adopting the WEB exploring testing device and method, automatic exploring test can be efficiently performed based on WEB in a simple implementation mode.
Description
Technical field
The present invention relates to computer software testing technical field, more particularly, to WEB (webpage) exploratory testing device and method.
Background technology
In the R&D process of software system, the system development scale based on WEB is more and more huger, and quantity gets more and more,
Link between the page redirects, the resource such as form information, picture loads and gets more and more.The tests such as list, link redirect, resource loading
Content is extremely important in the system test stage, if there is problem it is likely that deriving the bottleneck for system test, therefore surveys in system
Examination early stage ensures that the functions such as list, connection redirect, resource loads are normally significant for test.In order to ensure system test
The measurability of environment, at present in the system test early stage of numerous items, tester passes through to execute by hand in system test environment
By property case, the measurability of inspection system.
The system test early stage of numerous items at present, for ensureing the measurability of system test environment, general employing is manually surveyed
Examination technology.Prior art needs through the following steps in test process:First, tester's system for writing and compiling property passed through case;
Secondly, tester executes test operation by hand according to by property case;Finally, if finding bottleneck problem, require exploit person
Member is preferential to change, and deeply launches test again for the page not affecting test and module.
From the point of view of the case of existing manual test technology prepares, prior art relies on the engineer's property passed through case, case
Design efficiency is low;From the point of view of the test execution of prior art, prior art relies on manually to enter by property case according to existing
Row test execution, execution efficiency is low;From the point of view of the test popularity of prior art, prior art is entered only for by property case
Row test execution is it is impossible to accomplish automatically to explore, test scope is narrower;From the point of view of the MTD of prior art, prior art pair
FORM (in VB programming, to liking window or dialog box, it forms a part for application program user interface to Form) list
Test, because the combined situation between input domain is various, manual mode be difficult to cover all combined situation, MTD is relatively
Shallow;From the point of view of prior art is to the dependence of system and environment, if there is change or research and development new system, existing skill in test environment system
Art relies on manual redesign's case, and manual execution again, and adaptability is very poor.
Content of the invention
The embodiment of the present invention provides a kind of WEB exploratory testing device, visits in order to carry out simply efficient automatization based on WEB
Test without hesitation, this WEB exploratory testing device includes:
Externally service unit, detects starting point and max survey depth for providing;After receiving enabled instruction, start and adjust
Degree performs device;
Scheduling performs device, detects starting point and max survey depth for obtaining;Deep according to detection starting point and maximum probe
Degree execution detects scheduling;
Data analysis set-up, dispatches, for obtaining, the result that performs device execution detects scheduling, the correctness of judged result,
And analyze next layer of content to be detected of generation;When finding form information during analysis, call form data generating means;
Form data generating means, make number for completing form data according to form information;
Storage device, generates for storing external service unit, scheduling performs device, data analysis set-up and form data
The interactive information of device;
Storage device includes:
URL essential information memory element, for storage detection starting point and max survey depth;
URL extends information memory cell, detects the result of scheduling for storage scheduling performs device execution;
Form fields Back ground Information memory element, for storing form information;
Form field data combined information memory element, makes several results for storing form data;
Described form data generating means include:
Model data initialization unit, for reading the model data in configuration file, model data is initialized to defeated
Ru Yu automatization makes counting apparatus;
Form fields Back ground Information reading unit, does not make several form fields information for reading and incoming input domain is automatic
Change and make counting apparatus;
List form field data signal generating unit, makes the list individual character hop count of counting apparatus generation for obtaining input domain automatization
It is believed that breath;
Form fields data splitting signal generating unit, for generating field data combination letter according to list form field data information
Breath;
Described input domain automatization makes counting apparatus for according to model data with do not make several form fields information and complete oneself
Dynamicization makes number, generates list form field data information.
In one embodiment, described external service unit includes:
Parameter setting and detection start unit, refer to for receiving the startup being provided with detection starting point and max survey depth
Order, initializes global variable max survey depth, initialization global variable active flag is true, calls scheduling performs device.
In one embodiment, described external service unit detects starting point for system under test (SUT) page to be tested specifically for providing
The URL (Uniform Resoure Locator, URL) in face.
In one embodiment, described external service unit also includes:
Stop probe unit, for receiving halt instruction, setting active flag is false;
Described scheduling performs device is additionally operable to:After judgement has reached max survey depth or active flag is vacation, stop
Only detect.
In one embodiment, described external service unit also includes:
Result of detection Report Forms Service unit, for, after detection terminates, externally providing result of detection Report Forms Service.
In one embodiment, described external service unit also includes:
Judgment rule definition unit, for providing automatic decision rule;
Described data analysis set-up specifically for:After the result obtaining scheduling performs device execution detection scheduling, according to
The correctness of automatic decision rule judgment result.
In one embodiment, described storage device also includes:
Judgment rule memory element, for the automatic decision of the correctness institute foundation of data storage analytical equipment judged result
Rule.
In one embodiment, described storage device also includes:
List form field data information memory cell, for storing the individual character hop count generating during form data makes number
According to;
Described form field data combined information memory element specifically for:Storage form data is made during counting to individual character
The list data splitting being formed after segment data combination.
In one embodiment, described scheduling performs device includes:
Detection data reading unit, detects starting point and max survey depth for reading, provides detection data;
Scheduling data generating unit, for being processed as HTTP (Hyper Text Transfer by detection data
Protocol, HTML (Hypertext Markup Language)) protocol form;
Performance element, is sent to system under test (SUT) for the detection data of http protocol form is generated HTTP message, and connects
Receive the response message of system under test (SUT).
In one embodiment, described data analysis set-up includes:
Response message reading unit, detects, for reading scheduling performs device execution, the response that the system under test (SUT) of scheduling returns
Information;
Response message analytic unit, for analyzing the correctness of system under test (SUT) response message;
Response message resolution unit, for parsing to system under test (SUT) response message, generates next layer of content to be detected;
When finding form information in resolving, call form data generating means.
The embodiment of the present invention also provides a kind of WEB exploratory testing method, in order to carry out simply efficient automatization based on WEB
Exploratory testing, this WEB exploratory testing method includes:
There is provided and detect starting point and max survey depth, after receiving enabled instruction, start and detect;
Scheduling is detected according to detection starting point and max survey depth execution;
Obtain the result that execution detects scheduling, the correctness of judged result, and analyze next layer of content to be detected of generation;When
When finding form information during analysis, form data is completed according to form information and makes number;
Store the interaction letter of external service unit, scheduling performs device, data analysis set-up and form data generating means
Breath;
Store the interaction letter of external service unit, scheduling performs device, data analysis set-up and form data generating means
Breath, including:
Storage detection starting point and max survey depth;
Storage scheduling performs device execution detects the result of scheduling;
Storage form information;
Storage form data makes several results;
Described form data completed according to form information make number, including:
Read the model data in configuration file, model data is initialized;
Read and do not make several form fields information;
According to model data with do not make several form fields information and complete automatization and make number, generate list form field data letter
Breath;
Field data combined information is generated according to list form field data information.
In one embodiment, described offer detects starting point and max survey depth, after receiving enabled instruction, starts and visits
Survey, including:
Receive and be provided with the enabled instruction detecting starting point and max survey depth, initialization global variable maximum probe is deep
Degree, initialization global variable active flag is true, starts and detects.
In one embodiment, described detection starting point is the URL of the system under test (SUT) page to be tested.
In one embodiment, described WEB exploratory testing method also includes:
Receive halt instruction, setting active flag is false;
After judgement has reached max survey depth or active flag is vacation, stop detecting.
In one embodiment, described WEB exploratory testing method also includes:
After detection terminates, externally provide result of detection Report Forms Service.
In one embodiment, the described result obtaining execution detection scheduling, the correctness of judged result, including:
After the result obtaining scheduling performs device execution detection scheduling, correct according to automatic decision rule judgment result
Property.
In one embodiment, the external service unit of described storage, scheduling performs device, data analysis set-up and form data
The interactive information of generating means, also includes:
The automatic decision rule of the correctness institute foundation of storage judged result.
In one embodiment, the external service unit of described storage, scheduling performs device, data analysis set-up and form data
The interactive information of generating means, also includes:
The form field data that storage form data generates during making number;
Described storage form data makes several results, including:Storage form data combines to form field data during making number
The list data splitting being formed afterwards.
In one embodiment, described execution according to detection starting point and max survey depth detects scheduling, including:
Read and detect starting point and max survey depth, detection data is provided;
Detection data is processed as http protocol form;
The detection data of http protocol form is generated HTTP message and is sent to system under test (SUT), and receive the sound of system under test (SUT)
Answer information.
In one embodiment, the described result obtaining execution detection scheduling, the correctness of judged result, and analyze under generation
One layer of content to be detected;When finding form information during analysis, form data is completed according to form information and makes number, including:
Read execution and detect the response message that the system under test (SUT) of scheduling returns;
The correctness of analysis system under test (SUT) response message;
System under test (SUT) response message is parsed, generates next layer of content to be detected;When discovery list in resolving
During information, form data is completed according to form information and makes number.
It is to ensure that systematically measurability relies on manually to dominate in system test early stage that the embodiment of the present invention overcomes prior art
Case Design and the shortcoming of test execution, provide a kind of efficient, implement simple, can carry out automatization's exploration based on WEB and survey
The WEB exploratory testing device and method of examination, is explored automatically by page analysis, decreases to engineer's case and case execution
Dependence, improve case execution efficiency;And automatic detection can widen the scope that the page is tested;By the automatic metaplasia of form data
Become, decrease the dependence that form data is prepared;General execution detects the automatization judgement of scheduling result, reduces result judgement
Manpower intervention, improve efficiency.
Further, in an embodiment also by form field data Automatic Combined, improve the comprehensive of test;Also logical
Cross the external reporting service of result, decrease the artificial access of collection, improve efficiency.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.In the accompanying drawings:
Fig. 1 is the structural representation of WEB exploratory testing device in the embodiment of the present invention;
Fig. 2 is the structural representation of externally service unit in the embodiment of the present invention;
Fig. 3 is the structural representation of storage device in the embodiment of the present invention;
Fig. 4 is the structural representation dispatching performs device in the embodiment of the present invention;
Fig. 5 is the structural representation of data analysis set-up in the embodiment of the present invention;
Fig. 6 is the structural representation of form data generating means in the embodiment of the present invention;
Fig. 7 is the instantiation that in the embodiment of the present invention, WEB exploratory testing device carries out automatization's exploratory testing
Flow chart;
Fig. 8 is the flow chart of WEB exploratory testing method in the embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention become more apparent, below in conjunction with the accompanying drawings to this
Bright embodiment is described in further details.Here, the schematic description and description of the present invention is used for explaining the present invention, but simultaneously
Not as a limitation of the invention.
In order to solve prior art in WEB system test early stage, Case Design is less efficient, execution efficiency is low, test
The problems such as scope is narrower, MTD is relatively low, adaptability is poor, the embodiment of the present invention provides a kind of WEB exploratory testing device, real
The now automatic exploratory testing to WEB.
Fig. 1 is the structural representation of WEB exploratory testing device in the embodiment of the present invention.As shown in figure 1, the embodiment of the present invention
Middle WEB exploratory testing device can include:
Externally service unit 1, detects starting point and max survey depth for providing;After receiving enabled instruction, start
Scheduling performs device 3;
Scheduling performs device 3, detects starting point and max survey depth for obtaining;Deep according to detection starting point and maximum probe
Degree execution detects scheduling;
Data analysis set-up 4, for obtain scheduling performs device 3 execution detect scheduling result, judged result correct
Property, and analyze next layer of content to be detected of generation;When finding form information during analysis, call form data generating means
5;
Form data generating means 5, make number for completing form data according to form information.
When being embodied as, detecting starting point can be system under test (SUT) page starting point to be tested, be usually the URL of this page.
Max survey depth can be by detecting the depth capacity that starting point successively detects downwards.
When being embodied as, external service unit can receive to be provided with and detect the startup of starting point and max survey depth and refer to
Order, initializes global variable max survey depth, initialization global variable active flag is true, calls scheduling performs device.Right
Outer service unit can also receive halt instruction, and setting active flag is false;Follow-up scheduling performs device can judge to reach
After being vacation to max survey depth or active flag, stop detecting.Externally service unit can also be after detection terminates, externally
Result of detection Report Forms Service is provided.Externally service unit may also provide automatic decision rule;Subsequent data analysis device is permissible
After the result obtaining scheduling performs device execution detection scheduling, according to the correctness of automatic decision rule judgment result.
As shown in figure 1, WEB exploratory testing device can also include in the embodiment of the present invention:
Storage device 2, for storing external service unit 1, scheduling performs device 3, data analysis set-up 4 and form data
The interactive information of generating means 5.
When being embodied as, storage device can be with storage detection starting point and max survey depth;Storage scheduling performs device is held
Row detects the result of scheduling;Storage form information;Storage form data makes several results.Storage device can be analyzed with data storage
The automatic decision rule of the correctness institute foundation of device judged result.Storage device can also store form data make number during
The form field data generating;Storage form data make several results can be form data make number during to form field data group
The list data splitting being formed after conjunction.
When being embodied as, scheduling performs device can read detection starting point and max survey depth, provides detection data;Will
Detection data is processed as http protocol form;The detection data of http protocol form is generated HTTP message and is sent to tested system
System, and receive the response message of system under test (SUT).Wherein response message is after http protocol access server, and server returns
Response message.
When being embodied as, data analysis set-up can read the system under test (SUT) return that scheduling performs device execution detects scheduling
Response message;The correctness of analysis system under test (SUT) response message;System under test (SUT) response message is parsed, generates next layer
Content to be detected;When finding form information in resolving, call form data generating means.
When being embodied as, form data generating means can read the model data in configuration file, by the beginning of model data
Beginningization makes counting apparatus to input domain automatization;Several form fields information are not made in reading and incoming input domain automatization makes number dress
Put;Obtain the list form field data information that input domain automatization makes counting apparatus generation;Given birth to according to list form field data information
Become field data combined information;Input domain automatization therein makes counting apparatus and is used for according to model data and does not make several list words
Segment information completes automatization and makes number, generates list form field data information.
The detailed process that in the explanation embodiment of the present invention, the execution of WEB exploratory testing device detects as an example below.
Still to be illustrated with Fig. 1 structure in this example, during enforcement external service unit 1 receive outside incoming detection starting point,
Max survey depth and enabled instruction, detection starting point, max survey depth are stored to storage device 2, start scheduling and execute dress
Put 3;Scheduling performs device 3 is interacted with storage device 2, obtains after detecting starting point and investigation depth, and execution detects scheduling (with HTTP
Protocol mode actively accesses system under test (SUT) server);Data analysis set-up 4 obtains scheduling performs device 3 and accesses tested server
Returning result, according to server response message automatic decision response correctness, and analyze generation next layer of content to be detected,
Will determine that result and next layer of content to be detected are stored in storage device 2;When discovery list in data analysis set-up 4 resolving
During information, call form data generating means 5 complete form data make number (form data generating means 5 are handed over storage device 2
Mutually, obtain form structure information, incoming for form structure information input domain automatization made counting apparatus and completes form field data generation,
Data storage will be generated in storage device 2, and be stored in storage device to forming list data splitting after form field data combination
2);After externally service unit 1 receives outside incoming END instruction, setting active flag is "false";Start scheduling performs device 3
Judge to reach depth capacity or active flag as "false" after, stop detected event;Externally service unit 1 externally provides form
Service.
Specifically, external service unit 1, is responsible for externally providing detection starting point, the setting of max survey depth and acceptance to open
Dynamic, halt instruction function;After receiving enabled instruction, it is stored in storage device 2 by detecting starting point, initialization global variable is " maximum
Investigation depth ", initialization global variable " active flag " is "true", and scheduling performs device 3 starts automatization from detection starting point and visits
Survey;After receiving halt instruction, setting global variable " active flag " is "false", during scheduling performs device 3 execution, judges " to start
Mark " is that vacation then stops detecting;Externally provide test result automatic decision rule setting, automatic decision rule is stored in storage dress
Put 2, after data analysis set-up 4 receives the response message of system under test (SUT), retrieve automatic judgment rule, complete sentencing of response results
Disconnected.
Storage device 2, is responsible for detection origin information, automatic decision Rule Information that the external service unit 1 of storage provides;Carry
Inquire about to external service unit 1 for URL Back ground Information, URL extension information;URL Back ground Information, URL extension information, list are provided
Field data combined information reads to scheduling performs device 3;The URL Back ground Information that data storage analytical equipment 4 generates, URL expand
Exhibition information and form fields Back ground Information;Form fields Back ground Information is provided to read to form data generating means 5, and storage table
URL extension information, form field data information and form field data combined information that forms data generating means 5 generate.
Scheduling performs device 3, the content to be detected in responsible read storage device 2, it is automatically performed information splicing and pass through
Http protocol accesses system under test (SUT) and completes to test, and calls data analysis set-up 4 to process the response message of system under test (SUT);Scheduling is held
Luggage put 3 be that whole automatization exploratory testing runs kernel scheduling device.
Data analysis set-up 4, is responsible for receiving the response message of system under test (SUT), the automatic decision rule in read storage device 2
Then information completes whether response message correctly judges, and response results and judged result are stored in storage device 2;Parsing rings
Answer information, obtain the link information in response message, resource information, form structure information etc. and be stored in storage device 2, and call
The automatization that form data generating means 5 complete form data generates.
Form data generating means 5, are responsible for the model data that initialization input domain automatization makes counting apparatus, read storage dress
Put the form fields Back ground Information in 2 and be supplied to input domain automatization and make counting apparatus.Input domain automatization makes counting apparatus and completes table
The data genaration of individual character section, and form fields are made several results return form data generating means 5.Form data generating means 5
The form field data of generation is stored in storage device 2, and form field data is combined, ultimately form form fields
Data splitting is stored in storage device 2.
Fig. 2 is the structural representation of externally service unit 1 in the embodiment of the present invention.As shown in Fig. 2 external service unit 1
Can include:
Parameter setting and detection start unit 11, refer to for receiving the startup being provided with detection starting point and max survey depth
Order, initializes global variable max survey depth, initialization global variable active flag is true, calls scheduling performs device.Example
It is provided with, as outside can be received, the enabled instruction detecting starting point A, max survey depth B, store detecting starting point A to storage dress
Put 2 URL essential information memory element 21, initialization global variable max survey depth TB is B, initialization global variable starts
Mark TS is "true", calls scheduling performs device 3 to start automatization's probing test.
As shown in Fig. 2 external service unit 1 can also include:Stop probe unit 12, for receiving halt instruction, if
Putting active flag TS is "false", when dispatching performs device 3 execution, runs into active flag and is judged as "false", then stop detecting.
As shown in Fig. 2 external service unit 1 can also include:Result of detection Report Forms Service unit 13, in automatization
After exploratory testing terminates, externally provide result of detection Report Forms Service.Can store single from the URL essential information of storage device 2
Obtain result of detection in unit 21 and URL extension information memory cell 22, form result of detection form.
As shown in Fig. 2 external service unit 1 can also include:Judgment rule definition unit 14, for receiving automatic decision
Regular definition information, and it is stored in the judgment rule memory element 23 of storage device 2.This information is subsequently used for data analysiss
The correctness of the response message analytic unit 32 automatic analysis and judgment response message of device 3.
Fig. 3 is the structural representation of storage device 2 in the embodiment of the present invention.As shown in figure 3, storage device 2 can include:
URL essential information memory element 21, for storage detection starting point and max survey depth;URL extends information memory cell 22, uses
Detect the result of scheduling in storage scheduling performs device execution;Form fields Back ground Information memory element 24, for storing list
Information;Form field data combined information memory element 26, makes several results for storing form data.
As shown in figure 3, storage device 2 can also include judgment rule memory element 23, for data storage analytical equipment
The automatic decision rule of the correctness institute foundation of judged result.Storage device 2 can also include list form field data information and deposit
Storage unit 25, for storing the form field data generating during form data makes number;Form field data combined information stores
The list data splitting that unit 26 is formed after specifically can be used for during storage form data makes number, form field data being combined.
Storage device 2 for example includes several stages as follows with the interactive relation of other devices:
Externally service unit 1 receives detection starting point and is stored in storage device 21;Externally service unit 2 receives judgment rule and deposits
It is stored in judgment rule memory element 23.
Scheduling performs device 3 accesses URL essential information memory element 21, URL extension information memory cell 22 and list word
Segment data combined information memory element 26, obtains call address and related data information, is used for automatically generating access system under test (SUT)
Ground HTTP message, and use the automatic test to system under test (SUT) of this message.
After data analysis set-up 4 receives the response message of system under test (SUT), access judgment rule memory element 23, obtain relatively
The judgment rule of current response message highest priority, using the judgment rule automatic decision response message getting whether just
Really, and will determine that result, response message be stored in URL essential information memory element 21 and URL extension information memory cell 22.Number
According to analytical equipment 4 resolution response information, resource information, link information, the form informations such as the picture after parsing are stored in URL base
This information memory cell 21 and form fields Back ground Information memory element 24.
Form data generating means 5 read list Back ground Information from form fields Back ground Information memory element 24, input
Domain automatization makes counting apparatus and reads the list Back ground Information that form data generating means 5 are read in, and completes the data genaration of individual character section,
And form field data information Store will be generated in list form field data information memory cell 25;Form data generating means 5
Correlation form field basis information memory cell 24 and list form field data information memory cell 25 generate form fields number again
It is stored in form field data combined information memory element 26 according to combined information, and the corresponding relation of data splitting and URL is deposited
It is stored in URL extension information memory cell 22.
Each memory element in storage device 2 is introduced in citing separately below.
URL essential information memory element 21, specifically can be used for storing URL information to be detected, this information can comprise
URL sequence number, URL address, depth, execute mark, return code, type, method of calling, preamble URL, the form of its data storage is such as
Shown in the example of table one:
Table one
Wherein, the major key of this memory element of URL serial number;URL is to detect address;Depth is this detection address with respect to this
The secondary depth detecting starting point;Execution mark is used for indicating whether this detection address has executed, and whether execution is abnormal;Return code is
The return code of system under test (SUT) feedback after detection;Type is used for indicating that this detection address is the resource such as the page, picture or list, pin
Generation to different type subsequent probe messages and return information process and be slightly different (refer to detection data reading unit 31,
Performance element 33 and response message analytic unit 42);Method of calling shows to detect the protocol method that system under test (SUT) is used, typically
In the case of detect the page of system under test (SUT) and resource accesses and uses GET mode, detect the list occupation mode then root of system under test (SUT)
(refer to performance element 33 according to depending on the analysis result of upper page), preamble URL is the preamble currently detecting address, if there is
During multiple front sequence address, use " | | " interval.
URL extends information memory cell 22, specifically can be used for storing URL extension information to be detected, this information is permissible
Comprise URL sequence number, data combination sequence number, response message, execute mark, return code, analysis mark, the form of its data storage is such as
Shown in the example of table two:
Table two
Wherein, URL sequence number external key is associated with the URL sequence number field of URL essential information memory element 21;Data combines sequence number
External key is associated with the data combination sequence number field of form field data combined information memory element 26, if this field detects address
It is for sky for the page;Response message have recorded the response message detecting this address system under test (SUT), and return code is then system under test (SUT)
Return code;After return information data analysis set-up 4 parses the information such as the detection address generating next depth, analysis mark is set to
Analyze.
Judgment rule memory element 23, specifically can be used for the automatic decision rule storing external service unit 1, this information
Whether normal it is subsequently used for data analysis set-up 3 automatic decision system under test (SUT) response message.This information include at least the scope of application,
Normal abnormality mark, regular expression, the form of its data storage is as shown in the example of table three:
Table three
The scope of application | Normal abnormality mark | Regular expression |
All | Normally | .+ |
All lists | Normally | .+ |
All pages | Normally | .+ |
URL10003 | Abnormal | bad |
Wherein, the scope of application be judgment rule automatic decision scope, data analysis set-up 3 obtain judgment rule when,
Its obtain priority be:Preferential acquisition detects the corresponding judgment rule in address;Secondly, obtained according to the type detecting address
(type detecting address is list to the judgment rule of " all lists " or " all pages ", then obtain " all lists " corresponding
Judgment rule;The type detecting address is " page ", then obtain " all pages " corresponding judgment rule);Finally, obtain model
Enclose the judgment rule for " whole ".
In judge process, if the current rule obtaining can judge the correctness of system under test (SUT) response message,
Judgement terminates;If still cannot judging, continuing the relatively low rule of acquisition priority and being judged, until can interpolate that out response
The correctness of information or no met the rule of requirement and terminate, now default response information is correct.If response message can be normal
Matching judgment rule, then judged result is " normal " or "abnormal" mark.Regular expression is specific judgment rule, and data is divided
After analysis apparatus 3 get this expression formula, first compile this expression formula, then with compiling result coupling response message, can correctly mate, then
Illustrate that this judgment rule can normally judge the correctness of response message.
Form fields Back ground Information memory element 24, specifically can be used for the FORM table after the parsing of data storage analytical equipment
Single structure information, this information can comprise URL sequence number, field name, type, parameter, the example of the form such as table four of its data storage
Shown in son:
Table four
URL sequence number | Field name | Type | Parameter |
URL10003 | suggestion | type | 30 |
URL10003 | gender | radio | male|female |
Wherein, when data analysis set-up 3 parses to response message, if in resolving, match FORM list letter
Breath, then first by information Stores such as corresponding for FORM list action, method in URL Back ground Information memory element 21, then will
In FORM list, specific field structure information Store is to form fields Back ground Information memory element 24, form fields Back ground Information
Memory element 24 is read by form data generating means 5 in subsequent treatment, and the automatization realizing field data generates;If parsing
During match page link or resource, then page link or resource information are stored to URL Back ground Information memory element
21.
List form field data information memory cell 25, specifically can be used for storing the word that form data generating means generate
Segment data combined information, this information includes at least URL sequence number, field name, data value, the example of the form such as table five of its data storage
Shown in son:
Table five
Data combines sequence number | Field name | Data value |
URL10003001 | suggestion | 1234567890123456789012345678901 |
URL10003001 | gender | male |
URL10003002 | suggestion | Numerous |
URL10003002 | gender | female |
URL10003003 | suggestion | =イ エ ガ グ go |
URL10003003 | gender | male |
URL10003004 | suggestion | abcde |
URL10003004 | gender | Non- option |
Fig. 4 is the structural representation dispatching performs device 3 in the embodiment of the present invention, as shown in figure 4, scheduling performs device 3
Can include:Detection data reading unit 31, detects starting point and max survey depth for reading, provides detection data;Scheduling
Data generating unit 32, for being processed as HTML (Hypertext Markup Language) http protocol form by detection data;Performance element 33, is used for
The detection data of http protocol form is generated HTTP message and is sent to system under test (SUT), and receive the response message of system under test (SUT).
Wherein detection data reading unit 31 reads detection data, and the detection data reading is combined as by scheduling data generating unit 32
HTTP message, performance element 33 sends HTTP message to system under test (SUT).Specifically:
Detection data reading unit 31 may determine that whether current depth can continue to detect, if can continue to detect,
Obtain one to be not carried out recording from storage device 2, incoming scheduling data generating unit 32 will be recorded;If can not follow-up visit
Survey, then terminate detected event.Wherein:Untreated record obtain when, first read URL essential information memory element 21 in one not
Process record, if this record type is resource or connection, directly this is recorded corresponding URL incoming scheduling data generating unit
32;If this record type is list, association URL extension information memory cell 22, the storage of form field data combined information are single
Unit 26 obtains link address and form data, with link address and form data as group, by group mode incoming scheduling data genaration
Unit 32.
Scheduling data generating unit 32 can receive the incoming data of detection data reading unit 31, and scheduling parameter is processed
For the receptible form of http protocol.Currently available technology can support the process of scheduling parameter well, for example, be based on python
The urllib bag of language, the code of processing parameter is:Data=urlencode (param), parameter during concrete application
Param is incoming as dictionary, and the param of such as certain list is dictionary:{“suggestion”:" numerous ", " gender ", "
female”}.
Performance element 33 can receive the param parameter after scheduling data generating unit 32 is processed, according to method of calling not
Same, generate HTTP message using different modes and be sent to system under test (SUT), and receive the response of system under test (SUT).Currently available technology
The scheduling that HTTP message can be supported well executes, for example the urllib2 bag based on python, if method of calling is " GET ",
With system under test (SUT) interaction code it is:Response=urlopen (url, data);If method of calling is " POST ", and tested
System interaction code is:Response=urlopen (url+ "?”+data).
Fig. 5 is the structural representation of data analysis set-up 4 in the embodiment of the present invention, as shown in figure 5, data analysis set-up 4
Can include:Response message reading unit 41, detects what the system under test (SUT) dispatched returned for reading scheduling performs device execution
Response message;Response message analytic unit 42, for analyzing the correctness of system under test (SUT) response message;Response message resolution unit
43, for parsing to system under test (SUT) response message, generate next layer of content to be detected;When discovery list letter in resolving
During breath, call form data generating means.
For example, response message reading unit 41 obtains the return of system under test (SUT) from the variable response of performance element 33
Code and response message, and incoming response message analytic unit 42, by incoming for response message response message resolution unit 43;Response letter
Whether breath analytic unit 42 analysis return code is normal, checks the correctness of corresponding information, and it is basic that analysis result is stored in URL
Information memory cell 21, URL extension information memory cell 22;Response message resolution unit 43 receives response message reading unit 41
Incoming response message, parses the information Stores such as the resource comprising in response message, page link, FORM list in URL base
This information memory cell 21, URL extension information memory cell 22 and form fields Back ground Information memory element 24.Wherein:
Response message reading unit 41, is responsible for reading return code and the response message of system under test (SUT), by return code and response
Information incoming response message analytic unit 42, by incoming for response message response message resolution unit 43.Return code and response message
Reading can adopt the correlation technique of prior art, such as under python language environment, addressable performance element 33 variable
The code attribute of response obtains return code, and the read method of access variable response obtains response message.
Response message analytic unit 42, is responsible for receiving the incoming return code of response message reading unit 41 and response message,
And the correctness of the response of automatic decision system under test (SUT).When return code is not 200, system under test (SUT) response is abnormal, by return code
It is stored in URL essential information memory element 21, URL extension information memory cell 22 with abnormal information;When return code is 200,
Determine whether whether response message is correct.The determination methods of response message correctness are:Acquisition judgment rule be (judgment rule
Obtain the corresponding introduction of reference logic judgment rule memory element 23);(compiling can use prior art, for example to compiling judgment rule
Re module in python grammer.Realize compiling using re.compile method);(used using judgment rule coupling response message
Re.match mode is realized mating), if can normally mate, provide judged result.And by implementing result, return code, response
Information Store extends information memory cell 22 in URL essential information memory element 21, URL.
Response message resolution unit 43, is responsible for receiving the incoming response message of response message reading unit 41, by canonical
Parsing, parses resource therein, page link, FORM form information, and it is single to store that information in the storage of URL essential information
Unit 21, URL extension information memory cell 22, form fields Back ground Information memory element 24.During storage, the detection of storage information is deep
Spend and add 1 for current investigation depth, currently detect next Layer Detection content of content.For example, resource category information can be by expression
Formula (background | src) s*=s*'.+. (jpg | gif | js | css) ' is mated, in example expression formula only with jpg,
Gif, js and css a few class resource is illustrated, and during actual match, resource add-in is not limited to several classes in example, can be by adjusting canonical
Expression formula increases further types of support.Page link and FORM form information analysis mode are similar with resource resolution mode, all
Parsed using regular expression mode.If parsing form data in response message, by form fields structural information
It is stored in individual character section Back ground Information memory element 24, and calls form data generating means 5 to complete form data and generate.
Fig. 6 is the structural representation of form data generating means 5 in the embodiment of the present invention, as shown in fig. 6, form data life
Become device 5 can include:Model data initialization unit 51, for reading the model data in configuration file, by model data
Initialize and make counting apparatus to input domain automatization;Form fields Back ground Information reading unit 52, does not make several lists for reading
Field information incoming input domain automatization makes counting apparatus;List form field data signal generating unit 53, for obtaining input domain certainly
Dynamicization makes the list form field data information of counting apparatus generation;Form fields data splitting signal generating unit 54, for according to list
Form field data information generates field data combined information.Wherein, input domain automatization makes counting apparatus for according to model data
Do not make several form fields information and complete automatization and make number, generate list form field data information.
For example, when device starts, read the model data in configuration file, model data is initialized automatic to input domain
Change and make counting apparatus.Do not make several in form fields Back ground Information reading unit 52 reading form fields Back ground Information memory element 24
Form fields information, its incoming input domain automatization is made counting apparatus, and input domain automatization makes counting apparatus and completes automatization and makes number
Afterwards by incoming for information list form field data signal generating unit 53, form field data is believed by list form field data signal generating unit 53
Breath stores to list form field data information memory cell 25, and calls form fields data splitting signal generating unit 54 that field is believed
Breath is combined, and form fields data splitting signal generating unit 54 reads the individual character in list form field data information memory cell 25
Segment data information, forms field data combined information after combination, stores to form field data combined information memory element 26, and
Extend information memory cell 22 to URL to add field data combination number and detect the mapping relations of address, so that subsequent association
Obtain form fields data splitting.Wherein:
Model data initialization unit 51 specifically can be used for reading the key element component information in configuration file and general class
Type component information, and this information initializing is made counting apparatus to input domain automatization.
Form fields Back ground Information reading unit 52, specifically can be used for reading not completing making several form fields information,
And incoming for this information input domain automatization is made counting apparatus, input domain automatization makes counting apparatus and is automatically performed field and makes number, and will
Make several results incoming list form field data signal generating unit 53.
List form field data signal generating unit 53, specifically can be used for the word that receives input domain automatization makes counting apparatus generation
Segment data, and data storage will be generated in list form field data information memory cell 25, call form fields data splitting to give birth to
Unit 54 is become to generate form field data combined information.
Form fields data splitting signal generating unit 54, specifically can be used for receiving incoming URL sequence number, reads URL sequence number
Corresponding all fields and field data information, by cartesian product mode combined field information, and combined result are stored in
Form field data combined information memory element 26.
Fig. 7 is the instantiation that in the embodiment of the present invention, WEB exploratory testing device carries out automatization's exploratory testing
Flow chart, as shown in fig. 7, concrete steps can include in this example:
Step 101:Parameter setting and start probe unit 11 and receive outside incoming max survey depth, detect starting point and
Enabled instruction, setting global variable " max survey depth " is incoming value, and setting global variable " current depth " is 0, and setting is complete
Office's variable " active flag " is "true", and calling model data initialization unit 51 completes input domain automatization and makes will counting of counting apparatus
Component and universal class fabric initialization.Start scheduling performs device 5 and start automatization's exploratory testing.
Step 102:Detection data reading unit 31 judges whether global variable " opening mark " is true, if very, then holds
Row step 103;Otherwise, execution step 120.
Step 103:Detection data reading unit 31 judges whether to be provided with global variable " max survey depth ", if existing
Setting, then execution step 104;Otherwise, execution step 105.
Step 104:Detection data reading unit 31 judges whether current depth is more than " max survey depth ", if greatly
In then execution step 120;Otherwise, execution step 105.
Step 105:Detection data reading unit 31 accesses URL essential information memory element 21, whether checks current depth
Exist and detect record, if existing, execution step 106;Otherwise execution step 120.
Step 106:Detection data reading unit 31 accesses URL essential information memory element 21, whether checks current depth
There is the record not detected, if existing, execution step 107;Otherwise execution step 119.
Step 107:Detection data reading unit 31 reads URL essential information memory element 21, URL extension information Store list
Unit and form field data combined information memory element obtain an information to be detected, and pass information to dispatch data genaration
Unit 32.Execution step 108.
Step 108:Scheduling data generating unit 32 receives the incoming information of detection data reading unit 31, by parameter processing
For the receivable form of HTTP, and call performance element 33.Execution step 109.
Step 109:Performance element 33 receives the incoming URL address of scheduling data generating unit 32, call method, parameter,
Difference according to call method accesses system under test (SUT) in a different manner, obtains system under test (SUT) response.Execution 110.
Step 110:Response message reading unit 41 reads system under test (SUT) return code and the response letter that performance element 33 obtains
Breath, by return code and response message incoming response message analytic unit 42, by incoming for response message response message resolution unit 43.
Execution step 111.
Step 111:After response message analytic unit 42 receives return code and response message, judge whether return code is 200,
If it is, execution step 113;Otherwise, execution step 112.
Step 112:Response message analytic unit 42 will execute the information Stores such as abnormal conditions, return code to be believed substantially in URL
Breath memory element 21 and URL extension information memory cell 22.Execution step 106.
Step 113:Response message analytic unit 42 accesses the judgement that judgment rule memory element 23 obtains highest priority
Rule, if got, execution step 114;Otherwise, execution step 112.
Step 114:Response message analytic unit 42 compiles decision rule, execution step 115.
Step 115:Response message analytic unit 42 mates response message using the decision rule after compiling, if can mate,
Then execution step 116;Otherwise, execution step 113 continues to obtain the decision rule of lower priority.
Step 116:Response message analytic unit 42 judges if correct, then execution step 117 to response message;No
Then, execution step 112;
Step 117:It is " executed " that response message analytic unit 42 changes the current content execution state that detects, response message
For the response message of system under test (SUT), return code is 200.Execution step 118.
Step 118:Response message resolution unit 43 receives the incoming response message of response message reading unit 41, by just
Then expression parsing goes out the information Stores such as resource, page link, list in URL essential information memory element 21, URL extension information
Memory element 22 and form fields Back ground Information memory element 24, and call form data generating means 5 to complete form data
Generate.
Step 119:Global variable " current depth " Jia 1, execution step 102.
Step 120:Process terminates, process ends.
Based on same inventive concept, in the embodiment of the present invention, additionally provide a kind of WEB exploratory testing method, as following reality
Apply described in example.Because the principle of WEB exploratory testing method solve problem is similar to WEB exploratory testing device, therefore WEB explores and surveys
The enforcement of method for testing may refer to the enforcement of WEB exploratory testing device, repeats no more in place of repetition.
Fig. 8 is the flow chart of WEB exploratory testing method in the embodiment of the present invention.As shown in figure 8, in the embodiment of the present invention
WEB exploratory testing method can include:
Step 801, offer detect starting point and max survey depth, after receiving enabled instruction, start and detect;
Step 802, according to detect starting point and max survey depth execution detect scheduling;
Step 803, obtain execution detect scheduling result, the correctness of judged result, and analyze generation next layer wait to visit
Survey content;When finding form information during analysis, form data is completed according to form information and makes number.
When being embodied as, described offer detects starting point and max survey depth, after receiving enabled instruction, starts and visits
Survey, can include:
Receive and be provided with the enabled instruction detecting starting point and max survey depth, initialization global variable maximum probe is deep
Degree, initialization global variable active flag is true, starts and detects.
When being embodied as, described detection starting point can be the URL of the system under test (SUT) page to be tested.
When being embodied as, described WEB exploratory testing method can also include:
Receive halt instruction, setting active flag is false;
After judgement has reached max survey depth or active flag is vacation, stop detecting.
When being embodied as, described WEB exploratory testing method can also include:
After detection terminates, externally provide result of detection Report Forms Service.
When being embodied as, described acquisition execution detects the result of scheduling, the correctness of judged result, can include:
After the result obtaining scheduling performs device execution detection scheduling, correct according to automatic decision rule judgment result
Property.
When being embodied as, described WEB exploratory testing method can also include:
Store the interaction letter of external service unit, scheduling performs device, data analysis set-up and form data generating means
Breath.
When being embodied as, the external service unit of described storage, scheduling performs device, data analysis set-up and form data life
Become the interactive information of device, can include:
Storage detection starting point and max survey depth;
Storage scheduling performs device execution detects the result of scheduling;
Storage form information;
Storage form data makes several results.
When being embodied as, the external service unit of described storage, scheduling performs device, data analysis set-up and form data life
Become the interactive information of device, can also include:
The automatic decision rule of the correctness institute foundation of storage judged result.
When being embodied as, the external service unit of described storage, scheduling performs device, data analysis set-up and form data life
Become the interactive information of device, can also include:
The form field data that storage form data generates during making number;
Described storage form data makes several results, including:Storage form data combines to form field data during making number
The list data splitting being formed afterwards.
When being embodied as, described execution according to detection starting point and max survey depth detects scheduling, can include:
Read and detect starting point and max survey depth, detection data is provided;
Detection data is processed as http protocol form;
The detection data of http protocol form is generated HTTP message and is sent to system under test (SUT), and receive the sound of system under test (SUT)
Answer information.
When being embodied as, described acquisition execution detects the result of scheduling, the correctness of judged result, and analyze generation next
Layer content to be detected;When finding form information during analysis, form data is completed according to form information and makes number, can wrap
Include:
Read execution and detect the response message that the system under test (SUT) of scheduling returns;
The correctness of analysis system under test (SUT) response message;
System under test (SUT) response message is parsed, generates next layer of content to be detected;When discovery list in resolving
During information, form data is completed according to form information and makes number.
When being embodied as, described form data completed according to form information make number, can include:
Read the model data in configuration file, model data is initialized;
Read and do not make several form fields information;
According to model data with do not make several form fields information and complete automatization and make number, generate list form field data letter
Breath;
Field data combined information is generated according to list form field data information.
When being embodied as, it is only necessary to pass through to arrange the starting point of exploratory testing and maximum probe depth for WEB system test
Degree, starts exploratory testing.The corresponding URL of starting point is accessed automatically by http protocol during enforcement, fast by response verification rule
Speed judges the correctness of response message, and the response message of fast resolving system under test (SUT) forms the content to be detected of next depth,
If list in detection process, then parsing form structure is automatically performed single input domain field and makes number, is actively combined as FORM table
Forms data, is automatically performed the submission of list by http protocol, and continues parsing exploration according to returned content, reaches until detecting
Designated depth or stopped by outside.There is provided the implementing result Report Forms Service of exploratory testing by external service, thus improve
The automatization level of WEB test, decreases the dependence to manpower, environment, data etc..
In sum, the embodiment of the present invention overcomes prior art is to ensure that systematically measurability relies in system test early stage
The shortcoming manually dominating Case Design and test execution, provides a kind of efficient, implements simple, can carry out automatization based on WEB
The WEB exploratory testing device and method of exploratory testing, is explored automatically by page analysis, decrease to engineer's case and
The dependence of case execution, improves case execution efficiency;And automatic detection can widen the scope that the page is tested;By form data
Automatization generates, and decreases the dependence that form data is prepared;General execution detects the automatization judgement of scheduling result, reduces
The manpower intervention of result judgement, improves efficiency.
Further, in an embodiment also by form field data Automatic Combined, improve the comprehensive of test;Also logical
Cross the external reporting service of result, decrease the artificial access of collection, improve efficiency.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect
Apply the form of example.And, the present invention can be using in one or more computers wherein including computer usable program code
The upper computer program implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) produces
The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce
A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device
The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy
Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to
Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting
On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or
On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function of specifying in individual square frame or multiple square frame.
Particular embodiments described above, has carried out detailed further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail bright, be should be understood that the specific embodiment that the foregoing is only the present invention, the guarantor being not intended to limit the present invention
Shield scope, all any modification, equivalent substitution and improvement within the spirit and principles in the present invention, done etc., should be included in this
Within the protection domain of invention.
Claims (20)
1. a kind of webpage WEB exploratory testing device is it is characterised in that include:
Externally service unit, detects starting point and max survey depth for providing;After receiving enabled instruction, start scheduling and hold
Luggage is put;
Scheduling performs device, detects starting point and max survey depth for obtaining;Held according to detection starting point and max survey depth
Row detects scheduling;
Data analysis set-up, dispatches, for obtaining, the result that performs device execution detects scheduling, the correctness of judged result, and point
Analysis generates next layer of content to be detected;When finding form information during analysis, call form data generating means;
Form data generating means, make number for completing form data according to form information;
Storage device, for storing external service unit, scheduling performs device, data analysis set-up and form data generating means
Interactive information;
Described storage device includes:
URL essential information memory element, for storage detection starting point and max survey depth;
URL extends information memory cell, detects the result of scheduling for storage scheduling performs device execution;
Form fields Back ground Information memory element, for storing form information;
Form field data combined information memory element, makes several results for storing form data;
Described form data generating means include:
Model data initialization unit, for reading the model data in configuration file, model data is initialized to input domain
Automatization makes counting apparatus;
Form fields Back ground Information reading unit, does not make several form fields information for reading and incoming input domain automatization makes
Counting apparatus;
List form field data signal generating unit, makes the list form field data letter of counting apparatus generation for obtaining input domain automatization
Breath;
Form fields data splitting signal generating unit, for generating field data combined information according to list form field data information;
Described input domain automatization makes counting apparatus for according to model data with do not make several form fields information and complete automatization
Make number, generate list form field data information.
2. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described external service unit includes:
Parameter setting and detection start unit, are provided with, for receiving, the enabled instruction detecting starting point and max survey depth, just
Beginningization global variable max survey depth, initialization global variable active flag is true, calls scheduling performs device.
3. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described external service unit is specifically for carrying
For detecting the uniform resource position mark URL that starting point is the system under test (SUT) page to be tested.
4. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described external service unit also includes:
Stop probe unit, for receiving halt instruction, setting active flag is false;
Described scheduling performs device is additionally operable to:After judgement has reached max survey depth or active flag is vacation, stop visiting
Survey.
5. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described external service unit also includes:
Result of detection Report Forms Service unit, for, after detection terminates, externally providing result of detection Report Forms Service.
6. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described external service unit also includes:
Judgment rule definition unit, for providing automatic decision rule;
Described data analysis set-up specifically for:After the result obtaining scheduling performs device execution detection scheduling, according to automatic
The correctness of judgment rule judged result.
7. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described storage device also includes:
Judgment rule memory element, for the automatic decision rule of the correctness institute foundation of data storage analytical equipment judged result
Then.
8. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described storage device also includes:
List form field data information memory cell, for storing the form field data generating during form data makes number;
Described form field data combined information memory element specifically for:Storage form data is made during counting to individual character hop count
According to the list data splitting being formed after combination.
9. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described scheduling performs device includes:
Detection data reading unit, detects starting point and max survey depth for reading, provides detection data;
Scheduling data generating unit, for being processed as HTML (Hypertext Markup Language) http protocol form by detection data;
Performance element, is sent to system under test (SUT) for the detection data of http protocol form is generated HTTP message, and receives quilt
The response message of examining system.
10. WEB exploratory testing device as claimed in claim 1 is it is characterised in that described data analysis set-up includes:
Response message reading unit, detects, for reading scheduling performs device execution, the response letter that the system under test (SUT) of scheduling returns
Breath;
Response message analytic unit, for analyzing the correctness of system under test (SUT) response message;
Response message resolution unit, for parsing to system under test (SUT) response message, generates next layer of content to be detected;Work as solution
When finding form information during analysis, call form data generating means.
A kind of 11. WEB exploratory testing methods are it is characterised in that include:
There is provided and detect starting point and max survey depth, after receiving enabled instruction, start and detect;
Scheduling is detected according to detection starting point and max survey depth execution;
Obtain the result that execution detects scheduling, the correctness of judged result, and analyze next layer of content to be detected of generation;Work as analysis
During find form information when, form data is completed according to form information and makes number;
Store external service unit, the interactive information of scheduling performs device, data analysis set-up and form data generating means;
The described interaction letter storing external service unit, scheduling performs device, data analysis set-up and form data generating means
Breath, including:
Storage detection starting point and max survey depth;
Storage scheduling performs device execution detects the result of scheduling;
Storage form information;
Storage form data makes several results;
Described form data completed according to form information make number, including:
Read the model data in configuration file, model data is initialized;
Read and do not make several form fields information;
According to model data with do not make several form fields information and complete automatization and make number, generate list form field data information;
Field data combined information is generated according to list form field data information.
12. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that described offer detects starting point and maximum spy
Depth measurement degree, after receiving enabled instruction, starts and detects, including:
Receive and be provided with the enabled instruction detecting starting point and max survey depth, initialize global variable max survey depth, just
Beginningization global variable active flag is true, starts and detects.
13. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that described detection starting point is treated for system under test (SUT)
The URL of the page of test.
14. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that also include:
Receive halt instruction, setting active flag is false;
After judgement has reached max survey depth or active flag is vacation, stop detecting.
15. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that also include:
After detection terminates, externally provide result of detection Report Forms Service.
16. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that described acquisition execution detects the knot of scheduling
Really, the correctness of judged result, including:
After the result obtaining scheduling performs device execution detection scheduling, according to the correctness of automatic decision rule judgment result.
17. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that the external service unit of described storage, scheduling
The interactive information of performs device, data analysis set-up and form data generating means, also includes:
The automatic decision rule of the correctness institute foundation of storage judged result.
18. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that the external service unit of described storage, scheduling
The interactive information of performs device, data analysis set-up and form data generating means, also includes:
The form field data that storage form data generates during making number;
Described storage form data makes several results, including:Storage form data is made during counting to shape after form field data combination
The list data splitting becoming.
19. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that described visit according to detection starting point and maximum
The execution of depth measurement degree detects scheduling, including:
Read and detect starting point and max survey depth, detection data is provided;
Detection data is processed as http protocol form;
The detection data of http protocol form is generated HTTP message and is sent to system under test (SUT), and receive the response letter of system under test (SUT)
Breath.
20. WEB exploratory testing methods as claimed in claim 11 are it is characterised in that described acquisition execution detects the knot of scheduling
Really, the correctness of judged result, and analyze next layer of content to be detected of generation;When finding form information during analysis, root
Complete form data according to form information and make number, including:
Read execution and detect the response message that the system under test (SUT) of scheduling returns;
The correctness of analysis system under test (SUT) response message;
System under test (SUT) response message is parsed, generates next layer of content to be detected;When discovery form information in resolving
When, form data is completed according to form information and makes number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410153210.4A CN103955425B (en) | 2014-04-16 | 2014-04-16 | Webpage (WEB) exploring testing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410153210.4A CN103955425B (en) | 2014-04-16 | 2014-04-16 | Webpage (WEB) exploring testing device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103955425A CN103955425A (en) | 2014-07-30 |
CN103955425B true CN103955425B (en) | 2017-02-15 |
Family
ID=51332700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410153210.4A Active CN103955425B (en) | 2014-04-16 | 2014-04-16 | Webpage (WEB) exploring testing device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103955425B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7282686B2 (en) * | 2017-11-27 | 2023-05-29 | 日本電信電話株式会社 | Abnormal communication detection device, abnormal communication detection method, program |
CN108664392B (en) * | 2018-03-19 | 2019-08-06 | 重庆小雨点小额贷款有限公司 | A kind of application testing method, device, terminal and storage medium |
CN111291284A (en) * | 2018-12-10 | 2020-06-16 | 北京京东金融科技控股有限公司 | Method and device for redirecting multi-level page |
CN110399305B (en) * | 2019-07-31 | 2023-12-08 | 中国工商银行股份有限公司 | BTT module testing method and device |
CN115987844A (en) * | 2022-12-28 | 2023-04-18 | 航天信息股份有限公司 | Process monitoring method, system, electronic device and medium in exploratory test |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242279A (en) * | 2008-03-07 | 2008-08-13 | 北京邮电大学 | Automatic penetration testing system and method for WEB system |
CN102012857A (en) * | 2009-09-08 | 2011-04-13 | 中国工商银行股份有限公司 | Device and method for automatically testing web page |
CN103235757A (en) * | 2013-04-28 | 2013-08-07 | 中国工商银行股份有限公司 | Device and method based on automatic data construction for testing test object in input field |
CN103714149A (en) * | 2013-12-26 | 2014-04-09 | 华中科技大学 | Self-adaptive incremental deep web data source discovery method |
-
2014
- 2014-04-16 CN CN201410153210.4A patent/CN103955425B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242279A (en) * | 2008-03-07 | 2008-08-13 | 北京邮电大学 | Automatic penetration testing system and method for WEB system |
CN102012857A (en) * | 2009-09-08 | 2011-04-13 | 中国工商银行股份有限公司 | Device and method for automatically testing web page |
CN103235757A (en) * | 2013-04-28 | 2013-08-07 | 中国工商银行股份有限公司 | Device and method based on automatic data construction for testing test object in input field |
CN103714149A (en) * | 2013-12-26 | 2014-04-09 | 华中科技大学 | Self-adaptive incremental deep web data source discovery method |
Non-Patent Citations (1)
Title |
---|
"自动填充深度网入口表单";孙翀;《中国优秀硕士学位论文全文数据库 信息科技辑》;20070915(第03期);论文第4-5页第1.2节,第7页第2.2节,第18-20页第三章,提要 * |
Also Published As
Publication number | Publication date |
---|---|
CN103955425A (en) | 2014-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103955425B (en) | Webpage (WEB) exploring testing device and method | |
CN107133174A (en) | Test case code automatically generating device and method | |
CN103377120B (en) | A kind of applied program testing method and device | |
US9417992B2 (en) | Web portal API test report generation | |
CN109302522A (en) | Test method, device and computer system and medium | |
CN111930617B (en) | Automatic test method and device based on data objectification | |
US9824075B1 (en) | System and method for interaction coverage | |
CN108958992A (en) | test method and device | |
CN109992498A (en) | Generation method and system, the computer system of test case | |
US20160210365A1 (en) | Executing a fast crawl over a computer-executable application | |
CN109308254A (en) | A kind of test method, device and test equipment | |
CN113032244A (en) | Interface testing method, device, computer system and computer readable storage medium | |
CN110532185A (en) | Test method, device, electronic equipment and computer readable storage medium | |
WO2021104387A1 (en) | Method for automatically identifying valid data acquisition module and system | |
CN112860556B (en) | Coverage rate statistics method, coverage rate statistics device, computer system and readable storage medium | |
Silva et al. | Characterizing mobile apps from a source and test code viewpoint | |
CN107480048A (en) | Testing tool generation method, device, storage medium and computer equipment | |
CN108809896A (en) | A kind of information calibration method, device and electronic equipment | |
CN111858377B (en) | Quality evaluation method and device for test script, electronic equipment and storage medium | |
CN104750604B (en) | The generation method and device of browser compatibility test cases | |
Silva et al. | A mapping study on mutation testing for mobile applications | |
US20160292067A1 (en) | System and method for keyword based testing of custom components | |
CN110232019A (en) | Page test method and Related product | |
US11681511B2 (en) | Systems and methods for building and deploying machine learning applications | |
CN104407979A (en) | Script detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |