CN103955425A - Webpage (WEB) exploring testing device and method - Google Patents

Webpage (WEB) exploring testing device and method Download PDF

Info

Publication number
CN103955425A
CN103955425A CN201410153210.4A CN201410153210A CN103955425A CN 103955425 A CN103955425 A CN 103955425A CN 201410153210 A CN201410153210 A CN 201410153210A CN 103955425 A CN103955425 A CN 103955425A
Authority
CN
China
Prior art keywords
data
information
web
unit
depth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410153210.4A
Other languages
Chinese (zh)
Other versions
CN103955425B (en
Inventor
张家宇
金雄伟
方凯
李冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201410153210.4A priority Critical patent/CN103955425B/en
Publication of CN103955425A publication Critical patent/CN103955425A/en
Application granted granted Critical
Publication of CN103955425B publication Critical patent/CN103955425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (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

Webpage WEB exploratory testing device and method
Technical field
The present invention relates to computer software testing technical field, relate in particular to WEB(webpage) exploratory testing device and method.
Background technology
In the R&D process of software systems, the system development scale based on WEB is more and more huger, and quantity is more and more, and the resources such as link redirect between the page, form information, picture load more and more.The content measurements such as list, link redirect, resource loading are extremely important in the system testing stage, if existing problems, probably derive the bottleneck for system testing, therefore ensure that the functions such as list, connection redirect, resource loading are normally significant for test early stage in system testing.In order to ensure the measurability of system testing environment, at present in the system testing early stage of numerous items, tester is by carrying out by hand trafficability characteristic case, the measurability of check system at system testing environment.
The system testing of numerous items at present in earlier stage, for ensureing the measurability of system testing environment, generally adopts manual testing's technology.Prior art needs through the following steps in test process: first, and tester's system for writing and compiling trafficability characteristic case; Secondly, tester is according to the manual test operation of carrying out of trafficability characteristic case; Finally, if find bottleneck problem, require developer preferentially to revise, deeply launch again test for the page and the module that do not affect test.
Prepare from the case of existing manual test technology, prior art relies on artificial design trafficability characteristic case, Case Design inefficiency; From the test execution of prior art, prior art relies on manually carries out test execution according to existing trafficability characteristic case, and execution efficiency is low; From the test popularity of prior art, prior art is only carried out test execution for trafficability characteristic case, cannot accomplish automatic exploration, and test specification is narrower; From the MTD of prior art, prior art to FORM(in VB programming, Form is to liking window or dialog box, the part of its composition application program user interface) test of list, because the combined situation between input domain is various, manual mode is difficult to cover all combined situation, and MTD is more shallow; Dependence from prior art to system and environment, if test environment system change occurs or researches and develops new system, prior art relies on artificial redesign case, and manual execution again, adaptability is very poor.
Summary of the invention
The embodiment of the present invention provides a kind of WEB exploratory testing device, and in order to carry out simple robotization exploratory testing efficiently based on WEB, this WEB exploratory testing device comprises:
Externally service unit, surveys starting point and the maximum probe degree of depth for providing; Receiving after enabled instruction, starting scheduled for executing device;
Scheduled for executing device, surveys starting point and the maximum probe degree of depth for obtaining; Carry out detection scheduling according to surveying starting point and the maximum probe degree of depth;
Data analysis set-up, carries out for obtaining scheduled for executing device the result of surveying scheduling, the correctness of judged result, and analyze the lower one deck content to be detected of generation; In the time finding form information in analytic process, call list forms data generating apparatus;
Form data generating apparatus, makes number for completing form data according to form information.
In an embodiment, described external service unit comprises:
Parameter arranges and surveys start unit, is provided with for receiving the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, calls scheduled for executing device.
In an embodiment, described external service unit is the URL(Uniform Resoure Locator of the system under test (SUT) page to be tested specifically for detection starting point is provided, URL(uniform resource locator)).
In an embodiment, described external service unit also comprises:
Stop probe unit, for receiving halt instruction, startup is set and is masked as vacation;
Described scheduled for executing device also for: reached the maximum probe degree of depth or startup is masked as after vacation in judgement, stopped surveying.
In an embodiment, described external service unit also comprises:
Result of detection Report Forms Service unit, after finishing in detection, externally provides result of detection Report Forms Service.
In an embodiment, described external service unit also comprises:
Judgment rule definition unit, for providing automatic decision rule;
Described data analysis set-up specifically for: obtaining scheduled for executing device carry out survey scheduling result after, according to the correctness of automatic decision rule judgment result.
In an embodiment, described WEB exploratory testing device also comprises:
Memory storage, for storing the interactive information of external service unit, scheduled for executing device, data analysis set-up and form data generating apparatus.
In an embodiment, described memory storage comprises:
URL essential information storage unit, for storage detection starting point and the maximum probe degree of depth;
URL extend information storage unit, carries out the result of surveying scheduling for memory scheduling actuating unit;
Form fields Back ground Information storage unit, for storing form information;
Form fields data combined information storage unit, makes several results for storage list forms data.
In an embodiment, described memory storage also comprises:
Judgment rule storage unit, for storing the automatic decision rule of correctness institute foundation of data analysis set-up judged result.
In an embodiment, described memory storage also comprises:
List individual character segment data information memory cell, makes for storage list forms data the individual character segment data that several processes generate;
Described form fields data combined information storage unit is made in several processes the list data splitting forming after the combination of individual character segment data specifically for: storage list forms data.
In an embodiment, described scheduled for executing device comprises:
Detection data reading unit, surveys starting point and the maximum probe degree of depth for reading, and detection data is provided;
Data dispatching generation unit, for being treated to detection data HTTP(Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) protocol form;
Performance element, sends to system under test (SUT) for the detection data of http protocol form is generated to HTTP message, and receives the response message of system under test (SUT).
In an embodiment, described data analysis set-up comprises:
Response message reading unit, the response message of returning for reading the system under test (SUT) of scheduled for executing device execution detection scheduling;
Response message analytic unit, for analyzing the correctness of system under test (SUT) response message;
Response message resolution unit, for system under test (SUT) response message is resolved, generates lower one deck content to be detected; In the time finding form information in resolving, call list forms data generating apparatus.
In an embodiment, described form data generating apparatus comprises:
Model data initialization unit, for reading the model data of configuration file, is initialized to input domain robotization by model data and makes counting apparatus;
Form fields Back ground Information reading unit, makes counting apparatus for reading not make several form fields information and import input domain robotization into;
List individual character segment data generation unit, makes for obtaining input domain robotization the list individual character segment data information that counting apparatus generates;
Form fields data splitting generation unit, for according to list individual character segment data Information generation field data combined information;
Described input domain robotization is made counting apparatus for according to model data with do not make several form fields information and complete robotization and make number, generates list individual character segment data information.
The embodiment of the present invention also provides a kind of WEB exploratory testing method, and in order to carry out simple robotization exploratory testing efficiently based on WEB, this WEB exploratory testing method comprises:
Provide and survey starting point and the maximum probe degree of depth, receiving after enabled instruction, start and survey;
Carry out detection scheduling according to surveying starting point and the maximum probe degree of depth;
Obtain and carry out the result of surveying scheduling, the correctness of judged result, and analyze the lower one deck content to be detected of generation; In the time finding form information in analytic process, complete form data according to form information and make number.
In an embodiment, described in provide and survey starting point and the maximum probe degree of depth, receiving after enabled instruction, start and survey, comprising:
Reception is provided with the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, starts and surveys.
In an embodiment, described detection starting point is the URL of the system under test (SUT) page to be tested.
In an embodiment, described WEB exploratory testing method also comprises:
Receive halt instruction, startup is set and is masked as vacation;
Reach the maximum probe degree of depth or startup is masked as after vacation in judgement, stopped surveying.
In an embodiment, described WEB exploratory testing method also comprises:
After detection finishes, externally provide result of detection Report Forms Service.
In an embodiment, described in obtain carry out survey scheduling result, the correctness of judged result, comprising:
Obtaining after the result of scheduled for executing device execution detection scheduling, according to the correctness of automatic decision rule judgment result.
In an embodiment, described WEB exploratory testing method also comprises:
Store the interactive information of external service unit, scheduled for executing device, data analysis set-up and form data generating apparatus.
In an embodiment, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, comprising:
Storage detection starting point and the maximum probe degree of depth;
Memory scheduling actuating unit is carried out the result of surveying scheduling;
Storage form information;
Storage list forms data is made several results.
In an embodiment, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, also comprises:
The automatic decision rule of the correctness institute foundation of storage judged result.
In an embodiment, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, also comprises:
Storage list forms data is made the individual character segment data generating in several processes;
Described storage list forms data is made several results, comprising: storage list forms data is made in several processes the list data splitting forming after the combination of individual character segment data.
In an embodiment, described according to surveying starting point and maximum probe degree of depth execution detection scheduling, comprising:
Read and survey starting point and the maximum probe degree of depth, detection data is provided;
Detection data is treated to http protocol form;
The detection data of http protocol form is generated to HTTP message and send to system under test (SUT), and receive the response message of system under test (SUT).
In an embodiment, described in obtain and carry out the result of surveying scheduling, the correctness of judged result, and analyze and generate lower one deck content to be detected; In the time finding form information in analytic process, complete form data according to form information and make number, comprising:
Read and carry out the response message returned of system under test (SUT) of surveying scheduling;
Analyze the correctness of system under test (SUT) response message;
System under test (SUT) response message is resolved, generate lower one deck content to be detected; In the time finding form information in resolving, complete form data according to form information and make number.
In an embodiment, describedly complete form data according to form information and make number, comprising:
Read the model data in configuration file, by model data initialization;
Read several form fields information of not making;
According to model data with do not make several form fields information and complete robotization and make number, generate list individual character segment data information;
According to list individual character segment data Information generation field data combined information.
The embodiment of the present invention overcomes prior art and manually dominates the shortcoming of Case Design and test execution for ensureing systematically measurability dependence early stage in system testing, provide a kind of efficient, implement simple, can carry out based on WEB the WEB exploratory testing device and method of robotization exploratory testing, automatically explore by page analysis, reduce the dependence to artificial cases of design and case execution, improved case execution efficiency; And automatic detection can be widened the scope of page test; Generate by form data robotization, reduced the dependence that form data is prepared; The automatization judgement of scheduling result is surveyed in general execution, has reduced the manpower intervention that result is judged, has improved efficiency.
Further, in an embodiment also by form fields data Automatic Combined, improved the comprehensive of test; Also, by the external reporting service of result, reduce the artificial access of collection, improved efficiency.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.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 external service unit in the embodiment of the present invention;
Fig. 3 is the structural representation of memory storage in the embodiment of the present invention;
Fig. 4 is the structural representation of scheduled for executing 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 apparatus in the embodiment of the present invention;
Fig. 7 is the process flow diagram that in the embodiment of the present invention, WEB exploratory testing device carries out an instantiation of robotization exploratory testing;
Fig. 8 is the process flow diagram of WEB exploratory testing method in the embodiment of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing, the embodiment of the present invention is described in further details.At this, schematic description and description of the present invention is used for explaining the present invention, but not as a limitation of the invention.
In order to solve prior art in WEB system testing in earlier stage, the problems such as Case Design efficiency is lower, execution efficiency low, test specification is narrower, MTD is lower, adaptability is poor, the embodiment of the present invention provides a kind of WEB exploratory testing device, realizes the automatic exploratory testing of WEB.
Fig. 1 is the structural representation of WEB exploratory testing device in the embodiment of the present invention.As shown in Figure 1, in the embodiment of the present invention, WEB exploratory testing device can comprise:
Externally service unit 1, surveys starting point and the maximum probe degree of depth for providing; Receiving after enabled instruction, starting scheduled for executing device 3;
Scheduled for executing device 3, surveys starting point and the maximum probe degree of depth for obtaining; Carry out detection scheduling according to surveying starting point and the maximum probe degree of depth;
Data analysis set-up 4, carries out for obtaining scheduled for executing device 3 result of surveying scheduling, the correctness of judged result, and analyze the lower one deck content to be detected of generation; In the time finding form information in analytic process, call list forms data generating apparatus 5;
Form data generating apparatus 5, makes number for completing form data according to form information.
When concrete enforcement, surveying starting point can be system under test (SUT) page starting point to be tested, is generally the URL of this page.The maximum probe degree of depth can be the depth capacity of successively surveying downwards by surveying starting point.
When concrete enforcement, externally service unit can receive and be provided with the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, calls scheduled for executing device.Externally service unit can also receive halt instruction, arranges to start to be masked as vacation; Follow-up scheduled for executing device can reach the maximum probe degree of depth or startup is masked as after vacation in judgement, stops surveying.Externally service unit can also, after detection finishes, externally provide result of detection Report Forms Service.Externally service unit can also provide automatic decision rule; Follow-up data analytical equipment can obtain after the result of scheduled for executing device execution detection scheduling, according to the correctness of automatic decision rule judgment result.
As shown in Figure 1, in the embodiment of the present invention, WEB exploratory testing device can also comprise:
Memory storage 2, for storing the interactive information of external service unit 1, scheduled for executing device 3, data analysis set-up 4 and form data generating apparatus 5.
When concrete enforcement, memory storage can storage detection starting point and the maximum probe degree of depth; Memory scheduling actuating unit is carried out the result of surveying scheduling; Storage form information; Storage list forms data is made several results.Memory storage can also be stored the automatic decision rule of the correctness institute foundation of data analysis set-up judged result.Memory storage can also storage list forms data be made the individual character segment data generating in several processes; It can be that form data is made in several processes the list data splitting forming after the combination of individual character segment data that the form data of storage is made several results.
When concrete enforcement, scheduled for executing device can read surveys starting point and the maximum probe degree of depth, and detection data is provided; Detection data is treated to http protocol form; The detection data of http protocol form is generated to HTTP message and send to system under test (SUT), and receive the response message of system under test (SUT).Wherein response message is by after http protocol access services device, the response message that server returns.
When concrete enforcement, data analysis set-up can read scheduled for executing device and carry out the response message that the system under test (SUT) of detection scheduling returns; Analyze the correctness of system under test (SUT) response message; System under test (SUT) response message is resolved, generate lower one deck content to be detected; In the time finding form information in resolving, call list forms data generating apparatus.
When concrete enforcement, form data generating apparatus can read the model data in configuration file, model data is initialized to input domain robotization and makes counting apparatus; Read not make several form fields information and import input domain robotization into and make counting apparatus; Obtain input domain robotization and make the list individual character segment data information that counting apparatus generates; According to list individual character segment data Information generation field data combined information; Input domain robotization is wherein made counting apparatus for according to model data with do not make several form fields information and complete robotization and make number, generates list individual character segment data information.
Lift WEB exploratory testing device in an example explanation embodiment of the present invention below and carry out the detailed process of surveying.
Still illustrate with Fig. 1 structure in this example, when enforcement, external service unit 1 receives outside detection starting point, the maximum probe degree of depth and enabled instruction of importing into, and detection starting point, the maximum probe degree of depth are stored to memory storage 2, starts scheduled for executing device 3; Scheduled for executing device 3 is mutual with memory storage 2, obtains and surveys after starting point and investigation depth, carries out and surveys scheduling (initiatively accessing system under test (SUT) server in http protocol mode); Data analysis set-up 4 obtains scheduled for executing device 3 and accesses returning results of tested server, according to the correctness of server response message automatic decision response, and analyze the lower one deck content to be detected of generation, judged result and lower one deck content to be detected are stored in to memory storage 2; In the time finding form information in data analysis set-up 4 resolvings, call list forms data generating apparatus 5 completes form data and makes number (form data generating apparatus 5 is mutual with memory storage 2, obtain form structure information, by form structure information import into input domain robotization make counting apparatus complete individual character segment data generate, generated data is stored in to memory storage 2, and is stored in memory storage 2 to forming list data splitting after the combination of individual character segment data); Externally service unit 1 receives after outside END instruction of importing into, arranges to start to be masked as " vacation "; Start scheduled for executing device 3 and judge and reach depth capacity or startup is masked as after " vacation ", stop detected event; Externally service unit 1 externally provides Report Forms Service.
Specifically, externally service unit 1, is responsible for externally providing and surveys the setting of starting point, the maximum probe degree of depth and accept startup, halt instruction function; Receive after enabled instruction, detection starting point is stored in to memory storage 2, initialization global variable " the maximum probe degree of depth ", it is "True" that initialization global variable " starts mark ", scheduled for executing device 3 starts robotization detection from surveying starting point; Receive after halt instruction, it is " vacation " that global variable " startup mark " is set, and when scheduled for executing device 3 is carried out, judges that " starting mark " is that vacation stops surveying; Externally provide test result automatic decision rule to arrange, automatic decision rale store is in memory storage 2, and data analysis set-up 4 is received after the response message of system under test (SUT), retrieves automatic decision rule, completes the judgement of response results.
Memory storage 2, is responsible for detection origin information, automatic decision Rule Information that the external service unit 1 of storage provides; Provide URL Back ground Information, URL extend information to inquire about to external service unit 1; Provide URL Back ground Information, URL extend information, form fields data combined information to read to scheduled for executing device 3; URL Back ground Information, URL extend information and form fields Back ground Information that storage data analysis set-up 4 generates; Provide form fields Back ground Information to read to form data generating apparatus 5, and storage list forms data generating apparatus 5 the URL extend information, form fields data message and the form fields data combined information that generate.
Scheduled for executing device 3, is responsible for the content to be detected in read storage device 2, automatically complete information splicing and access system under test (SUT) by http protocol and complete test, and calling data analytical equipment 4 is processed the response message of system under test (SUT); Scheduled for executing device 3 is kernel scheduling devices of whole robotization exploratory testing operation.
Data analysis set-up 4, the responsible response message that receives system under test (SUT), the automatic decision Rule Information in read storage device 2 completes the judgement whether response message is correct, and response results and judged result are stored in to memory storage 2; Resolution response information, obtains link information in response message, resource information, form structure information etc. and is stored in memory storage 2, and the robotization that call list forms data generating apparatus 5 completes form data generates.
Form data generating apparatus 5, the model data of counting apparatus is made in responsible initialization input domain robotization, and the form fields Back ground Information in read storage device 2 offers input domain robotization and makes counting apparatus.Input domain robotization is made counting apparatus and is completed the data generation of form fields, and form fields is made to several results and return to form data generating apparatus 5.The form fields data of generation are stored in memory storage 2 by form data generating apparatus 5, and his-and-hers watches individual character segment data combines, and finally forms form fields data splitting and be stored in memory storage 2.
Fig. 2 is the structural representation of external service unit 1 in the embodiment of the present invention.As shown in Figure 2, externally service unit 1 can comprise:
Parameter arranges and surveys start unit 11, is provided with for receiving the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, calls scheduled for executing device.For example can receive outer setting and survey the enabled instruction of starting point A, maximum probe depth B, detection starting point A is stored to the URL essential information storage unit 21 of memory storage 2, initialization global variable maximum probe degree of depth TB is B, it is "True" that initialization global variable starts mark TS, calls scheduled for executing device 3 and starts robotization probing test.
As shown in Figure 2, externally service unit 1 can also comprise: stop probe unit 12, for receiving halt instruction, it is " vacation " that startup mark TS is set, and in the time that scheduled for executing device 3 is carried out, runs into startup mark and is judged as " vacation ", stops surveying.
As shown in Figure 2, externally service unit 1 can also comprise: result of detection Report Forms Service unit 13, after finishing in robotization exploratory testing, externally provides result of detection Report Forms Service.Can from the URL essential information storage unit 21 of memory storage 2 and URL extend information storage unit 22, obtain result of detection, form result of detection form.
As shown in Figure 2, externally service unit 1 can also comprise: judgment rule definition unit 14, for receiving automatic judgment rule definition information, and is stored in the judgment rule storage unit 23 of memory storage 2.The correctness of the follow-up response message analytic unit 32 automatic analysis and judgment response messages for data analysis set-up 3 of this information.
Fig. 3 is the structural representation of memory storage 2 in the embodiment of the present invention.As shown in Figure 3, memory storage 2 can comprise: URL essential information storage unit 21, for storage detection starting point and the maximum probe degree of depth; URL extend information storage unit 22, carries out the result of surveying scheduling for memory scheduling actuating unit; Form fields Back ground Information storage unit 24, for storing form information; Form fields data combined information storage unit 26, makes several results for storage list forms data.
As shown in Figure 3, memory storage 2 can also comprise judgment rule storage unit 23, for storing the automatic decision rule of correctness institute foundation of data analysis set-up judged result.Memory storage 2 can also comprise list individual character segment data information memory cell 25, makes for storage list forms data the individual character segment data that several processes generate; Form fields data combined information storage unit 26 specifically can be made in several processes the list data splitting forming after the combination of individual character segment data for storage list forms data.
Memory storage 2 for example comprises following several stage with the interactive relation of other devices:
Externally service unit 1 receives detection starting point and is stored in memory storage 21; Externally service unit 2 receives judgment rule and is stored in judgment rule storage unit 23.
Scheduled for executing device 3 is accessed URL essential information storage unit 21, URL extend information storage unit 22 and form fields data combined information storage unit 26, obtain call address and related data information, for automatically generating access system under test (SUT) ground HTTP message, and use this message automatically to test system under test (SUT).
Data analysis set-up 4 receives after the response message of system under test (SUT), access judgment rule storage unit 23, obtain the highest judgment rule of relatively current response message priority, whether the judgment rule automatic decision response message that use gets is correct, and judged result, response message are stored in to URL essential information storage unit 21 and URL extend information storage unit 22.Data analysis set-up 4 resolution response information, are stored in URL essential information storage unit 21 and form fields Back ground Information storage unit 24 by resource information, link information, form informations such as the pictures after resolving.
Form data generating apparatus 5 reads list Back ground Information from form fields Back ground Information storage unit 24, input domain robotization is made counting apparatus and is read the list Back ground Information that form data generating apparatus 5 reads in, the data that complete individual character section generate, and will generate form fields data information memory in list individual character segment data information memory cell 25; Form data generating apparatus 5 again correlation form field Back ground Information storage unit 24 generates form fields data combined information with list individual character segment data information memory cell 25 and is stored in form fields data combined information storage unit 26, and the corresponding relation of data splitting and URL is stored in to URL extend information storage unit 22.
Introduce for example respectively each storage unit in memory storage 2 below.
URL essential information storage unit 21, specifically can be for storing URL information to be detected, this information can comprise URL sequence number, URL address, the degree of depth, execute flag, return code, type, method of calling, preorder URL, and the form of its data storage is as shown in the example of table one:
Table one
Wherein, the major key that URL sequence number is this storage unit; URL is for surveying address; The degree of depth is the degree of depth of this detection address with respect to this detection starting point; Whether execute flag is used for indicating whether this detection address carries out, carry out abnormal; Return code is the return code of system under test (SUT) feedback after surveying; Type is used for indicating that this detection address is resource or the lists such as the page, picture, processes slightly different (referring to detection data reading unit 31, performance element 33 and response message analytic unit 42) for generation and the return message of different type subsequent probe messages; Method of calling shows to survey the protocol method that system under test (SUT) uses, the page and the resource access of generally surveying system under test (SUT) use GET mode, survey the list use-pattern of system under test (SUT) and determine (referring to performance element 33) according to the analysis result of upper page, preorder URL is the preorder of current detection address, if while there is multiple front sequence address, use " || " interval.
URL extend information storage unit 22, specifically can be for storing URL extend information to be detected, this information can comprise URL sequence number, data combination sequence number, response message, execute flag, return code, analysis mark, and the form of its data storage is 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 storage unit 21; Data combination sequence number external key is associated with the data combination sequence number field of form fields data combined information storage unit 26, is that the page is to be sky if this field is surveyed address; Response message has recorded the response message of surveying this address system under test (SUT), and return code is the return code of system under test (SUT); Resolve after the information such as detection address that generates next degree of depth when return message data analysis set-up 4, analysis mark is set to and analyzes.
Judgment rule storage unit 23, specifically can be for storing the automatic decision rule of external service unit 1, and whether this information is follow-up normal for data analysis set-up 3 automatic decision system under test (SUT) response messages.This information at least comprises the scope of application, normal abnormality mark, regular expression, and 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 Extremely bad
Wherein, the automatic decision scope that the scope of application is judgment rule, data analysis set-up 3 is in the time obtaining judgment rule, and its priority of obtaining is: preferentially obtain and survey judgment rule corresponding to address; Secondly (type of surveying address is list, obtains the judgment rule that " all lists " is corresponding, to obtain the judgment rule of " all lists " or " all pages " according to the type of surveying address; The type of surveying address is " page ", obtains the judgment rule that " all pages " is corresponding); Finally, obtain the judgment rule that scope is " all ".
In deterministic process, the rule of obtaining if current can have been judged the correctness of system under test (SUT) response message, and judgement finishes; If still cannot judge, continue to obtain the rule that priority is lower and judge, until can judge the correctness of response message or finish without the rule meeting the demands, now default response information is correct.If response message is matching judgment rule normally, judged result is " normally " or " extremely " mark.Regular expression is concrete judgment rule, and data analysis set-up 3 gets after this expression formula, first compiles this expression formula, then by compiling result match responding information, can correctly mate, and illustrates that this judgment rule can normally judge the correctness of response message.
Form fields Back ground Information storage unit 24, the FORM form structure information after specifically can resolving for storage data analysis set-up, this information can comprise URL sequence number, field name, type, parameter, and the form of its data storage is as shown in the example of table four:
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 is resolved response message, if in resolving, match FORM form information, first the information such as action, method corresponding FORM list is stored in to URL Back ground Information storage unit 21, again field structure information concrete in FORM list is stored to form fields Back ground Information storage unit 24, form fields Back ground Information storage unit 24 is read by form data generating apparatus 5 in subsequent treatment, and the robotization that realizes field data generates; If match page link or resource in resolving, by page link or resource information is stored to URL Back ground Information storage unit 21.
List individual character segment data information memory cell 25, the field data combined information that specifically can generate for storage list forms data generating apparatus, this information at least comprises URL sequence number, field name, data value, and the form of its data storage is as shown in the example of table five:
Table five
Data combination sequence number Field name Data value
URL10003001 suggestion 1234567890123456789012345678901
URL10003001 gender male
URL10003002 suggestion Measuring Try Fan Body
URL10003002 gender female
URL10003003 suggestion □イエガグゴ
URL10003003 gender male
URL10003004 suggestion abcde
URL10003004 gender Non-option
Fig. 4 is the structural representation of scheduled for executing device 3 in the embodiment of the present invention, and as shown in Figure 4, scheduled for executing device 3 can comprise: detection data reading unit 31, survey starting point and the maximum probe degree of depth for reading, and detection data is provided; Data dispatching generation unit 32, for being treated to detection data HTML (Hypertext Markup Language) http protocol form; Performance element 33, sends to system under test (SUT) for the detection data of http protocol form is generated to HTTP message, and receives 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 HTTP message by data dispatching generation unit 32, and performance element 33 sends HTTP message to system under test (SUT).Concrete:
Whether the current degree of depth that can judge detection data reading unit 31 can continue to survey, if can continue to survey, from memory storage 2, obtains a not executive logging, imports record into data dispatching generation unit 32; If can not follow-uply survey, finish detected event.Wherein: when untreated record obtains, first read a untreated record in URL essential information storage unit 21, if this record type is resource or connection, directly import the URL of this record correspondence into data dispatching generation unit 32; If this record type is list, associated URL extend information storage unit 22, form fields data combined information storage unit 26 are obtained link address and form data, taking link address and form data as group, import data dispatching generation unit 32 into by prescription formula.
Data dispatching generation unit 32 can receive the data of importing into of detection data reading unit 31, and scheduling parameter is treated to the receptible form of http protocol.Currently available technology can well be supported the processing of scheduling parameter, the for example bag of the urllib based on python language, the code of processing parameter is: data=urlencode (param), in concrete application process, parameter p aram imports into as dictionary, the param of for example certain list is dictionary: " suggestion ": ” Measuring Try Fan Body "; " gender ", " female ".
Performance element 33 can receiving scheduling data generating unit 32 param parameter after treatment, according to method of calling difference, uses different modes to generate HTTP message and sends to system under test (SUT), and receive the response of system under test (SUT).Currently available technology can well be supported the scheduled for executing of HTTP message, and for example bag of the urllib2 based on python, if method of calling is " GET ", with system under test (SUT) interaction code is: response=urlopen (url, data); If method of calling is " POST ", with system under test (SUT) interaction code be: response=urlopen (url+ " "+data).
Fig. 5 is the structural representation of data analysis set-up 4 in the embodiment of the present invention, and as shown in Figure 5, data analysis set-up 4 can comprise: response message reading unit 41, the response message of returning for reading the system under test (SUT) of scheduled for executing device execution detection scheduling; Response message analytic unit 42, for analyzing the correctness of system under test (SUT) response message; Response message resolution unit 43, for system under test (SUT) response message is resolved, generates lower one deck content to be detected; In the time finding form information in resolving, call list forms data generating apparatus.
For example, response message reading unit 41 obtains return code and the response message of system under test (SUT) from the variable response of performance element 33, and imports response message analytic unit 42 into, imports response message into response message resolution unit 43; Whether response message analytic unit 42 is analyzed return code normal, checks the correctness of corresponding information, and analysis result is stored in to URL essential information storage unit 21, URL extend information storage unit 22; Response message resolution unit 43 receives the response message that response message reading unit 41 imports into, and the information such as the resource that comprises in response message, page link, FORM list that parse are stored in URL essential information storage unit 21, URL extend information storage unit 22 and form fields Back ground Information storage unit 24.Wherein:
Response message reading unit 41, is responsible for reading return code and the response message of system under test (SUT), imports return code and response message into response message analytic unit 42, imports response message into response message resolution unit 43.Return code and response message read the correlation technique that can adopt prior art, under python language environment, the code attribute of addressable performance element 33 variable response obtains return code, the read method of access variable response is obtained response message.
Response message analytic unit 42, is responsible for receiving return code and the response message that response message reading unit 41 imports into, and the correctness of replying of automatic decision system under test (SUT).In the time that return code is not 200, system under test (SUT) is replied extremely, and return code and abnormal information are stored in to URL essential information storage unit 21, URL extend information storage unit 22; In the time that return code is 200, further judge that whether response message is correct.The determination methods of response message correctness is: obtain judgment rule (reference logic judgment rule storage unit 23 correspondences of obtaining of judgment rule are introduced); (compiling can be used prior art to compiling judgment rule, for example re module in python grammer.Use re.compile method to realize compiling); Use judgment rule match responding information (using re.match mode to realize coupling), if can normally mate, provide judged result.And execution result, return code, response message are stored in to URL essential information storage unit 21, URL extend information storage unit 22.
Response message resolution unit 43, be responsible for receiving the response message that response message reading unit 41 imports into, resolve by canonical, parse resource, page link, FORM form information wherein, and this information is stored in to URL essential information storage unit 21, URL extend information storage unit 22, form fields Back ground Information storage unit 24.The investigation depth of storing information when storage is that current investigation depth adds 1, i.e. next Layer Detection content of current detection content.For example, resources-type information can by expression formula (background|src) s*=s*'.+. (jpg|gif|js|css) ' mate, in example, expression formula only with a few class resources of jpg, gif, js and css for example, in actual match process, resource add-in is not limited to several classes in example, can be by adjusting the more eurypalynous support of regular expression increase.Page link and FORM form information analysis mode and resource analysis mode roughly the same, all use regular expression mode to resolve.If parse form data in response message, form fields structural information is stored in to individual character segment base plinth information memory cell 24, and call list forms data generating apparatus 5 completes form data generation.
Fig. 6 is the structural representation of form data generating apparatus 5 in the embodiment of the present invention, as shown in Figure 6, form data generating apparatus 5 can comprise: model data initialization unit 51, for reading the model data of configuration file, is initialized to input domain robotization by model data and makes counting apparatus; Form fields Back ground Information reading unit 52, makes counting apparatus for reading not make several form fields information and import input domain robotization into; List individual character segment data generation unit 53, makes for obtaining input domain robotization the list individual character segment data information that counting apparatus generates; Form fields data splitting generation unit 54, for according to list individual character segment data Information generation field data combined information.Wherein, input domain robotization is made counting apparatus for according to model data with do not make several form fields information and complete robotization and make number, generates list individual character segment data information.
For example, when device starts, read the model data in configuration file, model data is initialized to input domain robotization and makes counting apparatus.Form fields Back ground Information reading unit 52 reads and in form fields Back ground Information storage unit 24, does not make several form fields information, imported into input domain robotization and made counting apparatus, input domain robotization make counting apparatus complete robotization make number after import information into list individual character segment data generation unit 53, list individual character segment data generation unit 53 by form fields data information memory to list individual character segment data information memory cell 25, and call form fields data splitting generation unit 54 field information is combined, form fields data splitting generation unit 54 reads the individual character segment data information in list individual character segment data information memory cell 25, after combination, form field data combined information, be stored to form fields data combined information storage unit 26, and add field data combination number and the mapping relations of surveying address to URL extend information storage unit 22, so that subsequent association is obtained form fields data splitting.Wherein:
Model data initialization unit 51 specifically can be for reading key element component information and the universal class component information in configuration file, and this information initializing to input domain robotization is made to counting apparatus.
Form fields Back ground Information reading unit 52, specifically can be for having read several form fields information of making, and import this information into input domain robotization and make counting apparatus, input domain robotization is made counting apparatus and is automatically completed field and make number, and will make several results and import list individual character segment data generation unit 53 into.
List individual character segment data generation unit 53, specifically can make the field data that counting apparatus generates for receiving input domain robotization, and generated data is stored in to list individual character segment data information memory cell 25, call form fields data splitting generation unit 54 and generate form fields data combined information.
Form fields data splitting generation unit 54, specifically can be for receiving the URL sequence number of importing into, read all fields corresponding to URL sequence number and field data information, by cartesian product mode combined field information, and combined result is stored in to form fields data combined information storage unit 26.
Fig. 7 is the process flow diagram that in the embodiment of the present invention, WEB exploratory testing device carries out an instantiation of robotization exploratory testing, and as shown in Figure 7, in this example, concrete steps can comprise:
Step 101: parameter setting and startup probe unit 11 receive the outside maximum probe degree of depth of importing into, survey starting point and enabled instruction, global variable " the maximum probe degree of depth " is set for importing value into, it is 0 that global variable " the current degree of depth " is set, global variable " start mark " is set for "True", that calls that model data initialization unit 51 completes that input domain robotization makes counting apparatus will count member and the initialization of universal class member.Start scheduled for executing device 5 and start robotization exploratory testing.
Step 102: detection data reading unit 31 judges that whether global variable " is opened mark " is true, if true, performs step 103; Otherwise, execution step 120.
Step 103: detection data reading unit 31 judges whether to be provided with global variable " the maximum probe degree of depth ", arranges if exist, and performs step 104; Otherwise, execution step 105.
Step 104: detection data reading unit 31 judges whether the current degree of depth is greater than " the maximum probe degree of depth ", if be greater than, performs step 120; Otherwise, execution step 105.
Step 105: detection data reading unit 31 is accessed URL essential information storage unit 21, checks whether the current degree of depth exists detection record, if exist, performs step 106; Otherwise execution step 120.
Step 106: detection data reading unit 31 is accessed URL essential information storage unit 21, checks that whether the current degree of depth exists the record of not surveying, if exist, performs step 107; Otherwise execution step 119.
Step 107: detection data reading unit 31 reads URL essential information storage unit 21, URL extend information storage unit and form fields data combined information storage unit and obtains an information to be detected, and information is passed to data dispatching generation unit 32.Execution step 108.
Step 108: data dispatching generation unit 32 receives the information that detection data reading unit 31 imports into, is treated to the receivable form of HTTP by parameter, and calls performance element 33.Execution step 109.
Step 109: URL address, call method, parameter that performance element 33 receiving scheduling data generating unit 32 are imported into, access in a different manner system under test (SUT) according to the difference of call method, obtain system under test (SUT) response.Carry out 110.
Step 110: response message reading unit 41 reads system under test (SUT) return code and the response message that performance element 33 obtains, imports return code and response message into response message analytic unit 42, imports response message into response message resolution unit 43.Execution step 111.
Step 111: response message analytic unit 42 receives after return code and response message, judges that whether return code is 200, if so, performs step 113; Otherwise, execution step 112.
Step 112: information such as execute exception situation, return codes is stored in URL essential information storage unit 21 and URL extend information storage unit 22 by response message analytic unit 42.Execution step 106.
Step 113: response message analytic unit 42 is accessed judgment rule storage unit 23 and obtained the decision rule that priority is the highest, if got, performs step 114; Otherwise, execution step 112.
Step 114: response message analytic unit 42 compiles decision rule, execution step 115.
Step 115: the decision rule match responding information that response message analytic unit 42 uses after compiling, if can mate, performs step 116; Otherwise execution step 113 continues to obtain the decision rule of lower priority.
Step 116: response message analytic unit 42 is judged correct if to response message, perform step 117; Otherwise, execution step 112;
Step 117: response message analytic unit 42 is revised current detection content executing state for " executed ", the response message that response message is system under test (SUT), return code is 200.Execution step 118.
Step 118: response message resolution unit 43 receives the response message that response message reading unit 41 imports into, the information such as resource, page link, list that parse by regular expression are stored in URL essential information storage unit 21, URL extend information storage unit 22 and form fields Back ground Information storage unit 24, and call list forms data generating apparatus 5 completes the generation of form data.
Step 119: global variable " the current degree of depth " adds 1, execution step 102.
Step 120: processing finishes, process ends.
Based on same inventive concept, in the embodiment of the present invention, also provide a kind of WEB exploratory testing method, as described in the following examples.Because the principle that WEB exploratory testing method is dealt with problems is similar to WEB exploratory testing device, therefore the enforcement of WEB exploratory testing method can be referring to the enforcement of WEB exploratory testing device, repeats part and repeat no more.
Fig. 8 is the process flow diagram 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 comprise:
Step 801, provide and survey starting point and the maximum probe degree of depth, receiving after enabled instruction, start and survey;
Step 802, carry out and survey scheduling according to surveying starting point and the maximum probe degree of depth;
Step 803, obtain and carry out the result of surveying scheduling, the correctness of judged result, and analyze and generate lower one deck content to be detected; In the time finding form information in analytic process, complete form data according to form information and make number.
When concrete enforcement, described in provide and survey starting point and the maximum probe degree of depth, receiving after enabled instruction, start and survey, can comprise:
Reception is provided with the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, starts and surveys.
When concrete enforcement, described detection starting point can be the URL of the system under test (SUT) page to be tested.
When concrete enforcement, described WEB exploratory testing method can also comprise:
Receive halt instruction, startup is set and is masked as vacation;
Reach the maximum probe degree of depth or startup is masked as after vacation in judgement, stopped surveying.
When concrete enforcement, described WEB exploratory testing method can also comprise:
After detection finishes, externally provide result of detection Report Forms Service.
When concrete enforcement, described in obtain and carry out the result of surveying scheduling, the correctness of judged result, can comprise:
Obtaining after the result of scheduled for executing device execution detection scheduling, according to the correctness of automatic decision rule judgment result.
When concrete enforcement, described WEB exploratory testing method can also comprise:
Store the interactive information of external service unit, scheduled for executing device, data analysis set-up and form data generating apparatus.
When concrete enforcement, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, can comprise:
Storage detection starting point and the maximum probe degree of depth;
Memory scheduling actuating unit is carried out the result of surveying scheduling;
Storage form information;
Storage list forms data is made several results.
When concrete enforcement, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, can also comprise:
The automatic decision rule of the correctness institute foundation of storage judged result.
When concrete enforcement, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, can also comprise:
Storage list forms data is made the individual character segment data generating in several processes;
Described storage list forms data is made several results, comprising: storage list forms data is made in several processes the list data splitting forming after the combination of individual character segment data.
When concrete enforcement, described according to surveying starting point and maximum probe degree of depth execution detection scheduling, can comprise:
Read and survey starting point and the maximum probe degree of depth, detection data is provided;
Detection data is treated to http protocol form;
The detection data of http protocol form is generated to HTTP message and send to system under test (SUT), and receive the response message of system under test (SUT).
When concrete enforcement, described in obtain and carry out the result of surveying scheduling, the correctness of judged result, and analyze and generate lower one deck content to be detected; In the time finding form information in analytic process, complete form data according to form information and make number, can comprise:
Read and carry out the response message returned of system under test (SUT) of surveying scheduling;
Analyze the correctness of system under test (SUT) response message;
System under test (SUT) response message is resolved, generate lower one deck content to be detected; In the time finding form information in resolving, complete form data according to form information and make number.
When concrete enforcement, describedly complete form data according to form information and make number, can comprise:
Read the model data in configuration file, by model data initialization;
Read several form fields information of not making;
According to model data with do not make several form fields information and complete robotization and make number, generate list individual character segment data information;
According to list individual character segment data Information generation field data combined information.
When concrete enforcement, for WEB system testing, only need starting point and the maximum probe degree of depth by exploratory testing is set, start exploratory testing.When enforcement, automatically access URL corresponding to starting point by http protocol, judge fast the correctness of response message by replying verification rule, and the response message of fast resolving system under test (SUT) forms the content to be detected of next degree of depth, list if in detection process, resolution table single structure automatically completes single input domain field and makes number, active set is combined into FORM form data, automatically complete the submission of list by http protocol, and continue to resolve according to returned content and explore, reach designated depth or stopped by outside until survey.The execution result Report Forms Service of exploratory testing is provided by external service, thereby has improved the automatization level of WEB test, reduced the dependence to manpower, environment, data etc.
In sum, the embodiment of the present invention overcomes prior art and manually dominates the shortcoming of Case Design and test execution for ensureing systematically measurability dependence early stage in system testing, provide a kind of efficient, implement simple, can carry out based on WEB the WEB exploratory testing device and method of robotization exploratory testing, automatically explore by page analysis, reduced the dependence to artificial cases of design and case execution, improved case execution efficiency; And automatic detection can be widened the scope of page test; Generate by form data robotization, reduced the dependence that form data is prepared; The automatization judgement of scheduling result is surveyed in general execution, has reduced the manpower intervention that result is judged, has improved efficiency.
Further, in an embodiment also by form fields data Automatic Combined, improved the comprehensive of test; Also, by the external reporting service of result, reduce the artificial access of collection, improved efficiency.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computing machine or other programmable data processing device produces the device for realizing the function of specifying at flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame on computing machine or other programmable devices.
Above-described specific embodiment; object of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only specific embodiments of the invention; the protection domain being not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (26)

1. a webpage WEB exploratory testing device, is characterized in that, comprising:
Externally service unit, surveys starting point and the maximum probe degree of depth for providing; Receiving after enabled instruction, starting scheduled for executing device;
Scheduled for executing device, surveys starting point and the maximum probe degree of depth for obtaining; Carry out detection scheduling according to surveying starting point and the maximum probe degree of depth;
Data analysis set-up, carries out for obtaining scheduled for executing device the result of surveying scheduling, the correctness of judged result, and analyze the lower one deck content to be detected of generation; In the time finding form information in analytic process, call list forms data generating apparatus;
Form data generating apparatus, makes number for completing form data according to form information.
2. WEB exploratory testing device as claimed in claim 1, is characterized in that, described external service unit comprises:
Parameter arranges and surveys start unit, is provided with for receiving the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, calls scheduled for executing device.
3. WEB exploratory testing device as claimed in claim 1, is characterized in that, described external service unit is the uniform resource position mark URL of the system under test (SUT) page to be tested specifically for detection starting point is provided.
4. WEB exploratory testing device as claimed in claim 1, is characterized in that, described external service unit also comprises:
Stop probe unit, for receiving halt instruction, startup is set and is masked as vacation;
Described scheduled for executing device also for: reached the maximum probe degree of depth or startup is masked as after vacation in judgement, stopped surveying.
5. WEB exploratory testing device as claimed in claim 1, is characterized in that, described external service unit also comprises:
Result of detection Report Forms Service unit, after finishing in detection, externally provides result of detection Report Forms Service.
6. WEB exploratory testing device as claimed in claim 1, is characterized in that, described external service unit also comprises:
Judgment rule definition unit, for providing automatic decision rule;
Described data analysis set-up specifically for: obtaining scheduled for executing device carry out survey scheduling result after, according to the correctness of automatic decision rule judgment result.
7. WEB exploratory testing device as claimed in claim 1, is characterized in that, also comprises:
Memory storage, for storing the interactive information of external service unit, scheduled for executing device, data analysis set-up and form data generating apparatus.
8. WEB exploratory testing device as claimed in claim 7, is characterized in that, described memory storage comprises:
URL essential information storage unit, for storage detection starting point and the maximum probe degree of depth;
URL extend information storage unit, carries out the result of surveying scheduling for memory scheduling actuating unit;
Form fields Back ground Information storage unit, for storing form information;
Form fields data combined information storage unit, makes several results for storage list forms data.
9. WEB exploratory testing device as claimed in claim 8, is characterized in that, described memory storage also comprises:
Judgment rule storage unit, for storing the automatic decision rule of correctness institute foundation of data analysis set-up judged result.
10. WEB exploratory testing device as claimed in claim 8, is characterized in that, described memory storage also comprises:
List individual character segment data information memory cell, makes for storage list forms data the individual character segment data that several processes generate;
Described form fields data combined information storage unit is made in several processes the list data splitting forming after the combination of individual character segment data specifically for: storage list forms data.
11. WEB exploratory testing devices as claimed in claim 1, is characterized in that, described scheduled for executing device comprises:
Detection data reading unit, surveys starting point and the maximum probe degree of depth for reading, and detection data is provided;
Data dispatching generation unit, for being treated to detection data HTML (Hypertext Markup Language) http protocol form;
Performance element, sends to system under test (SUT) for the detection data of http protocol form is generated to HTTP message, and receives the response message of system under test (SUT).
12. WEB exploratory testing devices as claimed in claim 1, is characterized in that, described data analysis set-up comprises:
Response message reading unit, the response message of returning for reading the system under test (SUT) of scheduled for executing device execution detection scheduling;
Response message analytic unit, for analyzing the correctness of system under test (SUT) response message;
Response message resolution unit, for system under test (SUT) response message is resolved, generates lower one deck content to be detected; In the time finding form information in resolving, call list forms data generating apparatus.
13. WEB exploratory testing devices as claimed in claim 1, is characterized in that, described form data generating apparatus comprises:
Model data initialization unit, for reading the model data of configuration file, is initialized to input domain robotization by model data and makes counting apparatus;
Form fields Back ground Information reading unit, makes counting apparatus for reading not make several form fields information and import input domain robotization into;
List individual character segment data generation unit, makes for obtaining input domain robotization the list individual character segment data information that counting apparatus generates;
Form fields data splitting generation unit, for according to list individual character segment data Information generation field data combined information;
Described input domain robotization is made counting apparatus for according to model data with do not make several form fields information and complete robotization and make number, generates list individual character segment data information.
14. 1 kinds of WEB exploratory testing methods, is characterized in that, comprising:
Provide and survey starting point and the maximum probe degree of depth, receiving after enabled instruction, start and survey;
Carry out detection scheduling according to surveying starting point and the maximum probe degree of depth;
Obtain and carry out the result of surveying scheduling, the correctness of judged result, and analyze the lower one deck content to be detected of generation; In the time finding form information in analytic process, complete form data according to form information and make number.
15. WEB exploratory testing methods as claimed in claim 14, is characterized in that, described in provide and survey starting point and the maximum probe degree of depth, receiving after enabled instruction, start and survey, comprising:
Reception is provided with the enabled instruction of surveying starting point and the maximum probe degree of depth, the initialization global variable maximum probe degree of depth, and the startup of initialization global variable is masked as true, starts and surveys.
16. WEB exploratory testing methods as claimed in claim 14, is characterized in that, described detection starting point is the URL of the system under test (SUT) page to be tested.
17. WEB exploratory testing methods as claimed in claim 14, is characterized in that, also comprise:
Receive halt instruction, startup is set and is masked as vacation;
Reach the maximum probe degree of depth or startup is masked as after vacation in judgement, stopped surveying.
18. WEB exploratory testing methods as claimed in claim 14, is characterized in that, also comprise:
After detection finishes, externally provide result of detection Report Forms Service.
19. WEB exploratory testing methods as claimed in claim 14, is characterized in that, described in obtain carry out survey scheduling result, the correctness of judged result, comprising:
Obtaining after the result of scheduled for executing device execution detection scheduling, according to the correctness of automatic decision rule judgment result.
20. WEB exploratory testing methods as claimed in claim 14, is characterized in that, also comprise:
Store the interactive information of external service unit, scheduled for executing device, data analysis set-up and form data generating apparatus.
21. WEB exploratory testing methods as claimed in claim 20, is characterized in that, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, comprising:
Storage detection starting point and the maximum probe degree of depth;
Memory scheduling actuating unit is carried out the result of surveying scheduling;
Storage form information;
Storage list forms data is made several results.
22. WEB exploratory testing methods as claimed in claim 21, is characterized in that, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, also comprises:
The automatic decision rule of the correctness institute foundation of storage judged result.
23. WEB exploratory testing methods as claimed in claim 21, is characterized in that, the interactive information of the external service unit of described storage, scheduled for executing device, data analysis set-up and form data generating apparatus, also comprises:
Storage list forms data is made the individual character segment data generating in several processes;
Described storage list forms data is made several results, comprising: storage list forms data is made in several processes the list data splitting forming after the combination of individual character segment data.
24. WEB exploratory testing methods as claimed in claim 14, is characterized in that, described according to surveying starting point and maximum probe degree of depth execution detection scheduling, comprising:
Read and survey starting point and the maximum probe degree of depth, detection data is provided;
Detection data is treated to http protocol form;
The detection data of http protocol form is generated to HTTP message and send to system under test (SUT), and receive the response message of system under test (SUT).
25. WEB exploratory testing methods as claimed in claim 14, is characterized in that, described in obtain and carry out the result of surveying scheduling, the correctness of judged result, and analyze and generate lower one deck content to be detected; In the time finding form information in analytic process, complete form data according to form information and make number, comprising:
Read and carry out the response message returned of system under test (SUT) of surveying scheduling;
Analyze the correctness of system under test (SUT) response message;
System under test (SUT) response message is resolved, generate lower one deck content to be detected; In the time finding form information in resolving, complete form data according to form information and make number.
WEB exploratory testing method described in 26. claims 14, is characterized in that, describedly completes form data according to form information and makes number, comprising:
Read the model data in configuration file, by model data initialization;
Read several form fields information of not making;
According to model data with do not make several form fields information and complete robotization and make number, generate list individual character segment data information;
According to list individual character segment data Information generation field data combined information.
CN201410153210.4A 2014-04-16 2014-04-16 Webpage (WEB) exploring testing device and method Active CN103955425B (en)

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 true CN103955425A (en) 2014-07-30
CN103955425B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664392A (en) * 2018-03-19 2018-10-16 重庆小雨点小额贷款有限公司 A kind of application testing method, device, terminal and storage medium
CN110399305A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The test method and device of BTT module
CN111291284A (en) * 2018-12-10 2020-06-16 北京京东金融科技控股有限公司 Method and device for redirecting multi-level page
CN111357242A (en) * 2017-11-27 2020-06-30 日本电信电话株式会社 Abnormal communication detection device, abnormal communication detection method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242279B (en) * 2008-03-07 2010-06-16 北京邮电大学 Automatic penetration testing system and method for WEB system
CN102012857B (en) * 2009-09-08 2012-10-10 中国工商银行股份有限公司 Device and method for automatically testing web page
CN103235757B (en) * 2013-04-28 2016-01-06 中国工商银行股份有限公司 Several apparatus and method that input domain tested object is tested are made based on robotization
CN103714149B (en) * 2013-12-26 2017-04-19 华中科技大学 Self-adaptive incremental deep web data source discovery method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111357242A (en) * 2017-11-27 2020-06-30 日本电信电话株式会社 Abnormal communication detection device, abnormal communication detection method, and program
CN111357242B (en) * 2017-11-27 2022-02-01 日本电信电话株式会社 Abnormal communication detection device and method, computer readable recording medium
CN108664392A (en) * 2018-03-19 2018-10-16 重庆小雨点小额贷款有限公司 A kind of application testing method, device, terminal and storage medium
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
CN110399305A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The test method and device of BTT module
CN110399305B (en) * 2019-07-31 2023-12-08 中国工商银行股份有限公司 BTT module testing method and device

Also Published As

Publication number Publication date
CN103955425B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN109992498B (en) Test case generation method and system and computer system
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
CN105302710A (en) Method and apparatus for determining test case in need of regression testing
CN107133174A (en) Test case code automatically generating device and method
CN108958992A (en) test method and device
CN110532185B (en) Test method, test device, electronic equipment and computer readable storage medium
CN109308254A (en) A kind of test method, device and test equipment
CN113032244B (en) Interface test method, device, computer system and computer readable storage medium
CN110955600A (en) Interface test method and device
CN114579452A (en) Interface influence detection method and related equipment
Yan et al. iTest: testing software with mobile crowdsourcing
CN103955425A (en) Webpage (WEB) exploring testing device and method
US20160162539A1 (en) Computer executable method of generating analysis data and apparatus performing the same and storage medium for the same
WO2023284505A1 (en) Method and apparatus for code-scanning payment
CN112860556A (en) Coverage rate statistical method, coverage rate statistical device, computer system and readable storage medium
CN113535567B (en) Software testing method, device, equipment and medium
WO2021104387A1 (en) Method for automatically identifying valid data acquisition module and system
US20160292067A1 (en) System and method for keyword based testing of custom components
CN116112746B (en) Online education live video compression method and system
CN116483888A (en) Program evaluation method and device, electronic equipment and computer readable storage medium
US9959196B2 (en) Unification of descriptive programming and object repository
US10339032B2 (en) System for monitoring and reporting performance and correctness issues across design, compile and runtime
CN104407979A (en) Script detection method and device
CN110968500A (en) Test case execution method and device
CN113032256A (en) Automatic test method, device, computer system and readable storage medium

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