The content of the invention
In order to solve the above technical problems, the embodiments of the invention provide a kind of service parameter of detection function test casesMethod and device, technical scheme are as follows:
A kind of method of the service parameter of detection function test cases, including:
Obtain the class of service belonging to functional test case to be tested;
Numbered by script, the functional test case is corresponding with the functional test case with the class of serviceScript file association;
The script file associated with the functional test case is performed, to obtain the business of functional test case ginsengNumber.
Preferably, numbered by script, by the functional test case and the class of service with the functional testBefore script file association corresponding to case, in addition to:
In the class of service of ftp server, the script file for detection function test cases is stored, and according toThe script file of storage is numbered script coding rule in the ftp server.
Preferably, in addition to:
SQL query statement corresponding with the script file stored is set, use can be inputted in the SQL query statementThe querying condition at family.
Preferably, in addition to:
Inquiry request of the user based on SQL query statement is received, the inquiry bar in the SQL query statement with userPart;
Inquiry request residing for response, the target service parameter for meeting the querying condition is screened from the service parameter,And the target service parameter is returned into the user.
Preferably, the user is returned to, including:
The target service parameter is returned to by the user by SPUFI instruments.
A kind of device of the service parameter of detection function test cases, including:
Acquiring unit, for obtaining the class of service belonging to functional test case to be tested;
Associative cell, for being numbered by script, by the functional test case and the class of service with the work(Can script file association corresponding to test cases;
Execution unit, for performing the script file associated with the functional test case, to obtain the functional testThe service parameter of case.
Preferably, in addition to:
Memory cell, for being numbered by script, by the functional test case and the class of service with the work(Before script file association corresponding to energy test cases, in the class of service of ftp server, store for detection functionThe script file of test cases, and the script file of storage is entered according to the script coding rule in the ftp serverLine number.
Preferably, in addition to:
Setting unit, the corresponding SQL query statement of the script file for setting with storing, the SQL query languageThe querying condition of user can be inputted in sentence.
Preferably, in addition to:
Receiving unit, for receiving inquiry request of the user based on SQL query statement, have in the SQL query statementThe querying condition of user;
Response unit, for responding residing inquiry request, screened from the service parameter and meet the querying conditionTarget service parameter, and the target service parameter is returned into the user.
Preferably, the response unit, is specifically used for:
The target service parameter is returned to by the user by SPUFI instruments.
Technical case provided in an embodiment of the present invention, obtain the class of service belonging to functional test case;Compiled by scriptNumber, by functional test case and script association corresponding with functional test case in the class of service;Execution and functional testThe script of case association, to obtain the service parameter of functional test case.By performing script corresponding with functional test caseFile can obtain service parameter corresponding with functional test case, it is seen then that the present invention can obtain function survey initial stage in testThe service parameter of case is tried, with this, solves development teams often due to a variety of causes can not provide the very first time, so as to causeTest cases implementation can not be carried out according to plan, the problem of indirect compression verification real-time period.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on thisEmbodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not madeExample is applied, belongs to the scope of protection of the invention.
Before the embodiment of the present invention is introduced, first the hosted environment for performing scheme of the invention is configured, in particular it is required thatThe PDS catalogues configuration of hosted environment is completed, and establishes the incidence relation with ftp server.
Wherein, the configuration of PDS catalogues refers to the script catalogue for the effective SQL script files deposited in ftp server, FTPWhat is deposited in server is then effectively SQL script files.
Referring to Fig. 1, Fig. 1 is a kind of one kind of the service parameter of detection function test cases provided in an embodiment of the present inventionImplementation process figure, methods described include:
Step S101, the class of service belonging to functional test case to be tested is obtained.
Wherein, the class of service belonging to different functional test cases is different.
By taking " a month scheduled store " this product as an example, same class of service can be that " N number of moon is periodically depositedThe product of storage ".
Step S102, numbered, will be surveyed in the functional test case and the class of service with the function by scriptTry script association corresponding to case.
The SQL script files stored in FTP are divided according to class of service and stored, the script file in different business classification pointScript that Ju You be not independent is numbered.
According to the class of service of functional test case, it can be numbered by script, by functional test case and ftp serverIn corresponding script file be associated.
Step S103, the script associated with the functional test case is performed, to obtain the industry of the functional test caseBusiness parameter.
By performing script file corresponding with functional test case, business corresponding with functional test case can be obtainedParameter.
Technical case provided in an embodiment of the present invention, obtain the class of service belonging to functional test case;Compiled by scriptNumber, by functional test case and script association corresponding with functional test case in the class of service;Execution and functional testThe script of case association, to obtain the service parameter of functional test case.By performing script corresponding with functional test caseFile can obtain service parameter corresponding with functional test case, it is seen then that the present invention can obtain function survey initial stage in testThe service parameter of case is tried, with this, solves development teams often due to a variety of causes can not provide the very first time, so as to causeTest cases implementation can not be carried out according to plan, the problem of indirect compression verification real-time period.
Referring to Fig. 2, Fig. 2 is a kind of method of the service parameter of detection function test cases provided in an embodiment of the present inventionAnother implementation process figure, methods described include:
Step S201, in the class of service of ftp server, the script file for detection function test cases is stored,And the script of storage is numbered according to the script coding rule in the ftp server.
In the embodiment of the present invention, storage can be with the service parameter of detection function test cases in ftp server in advanceScript file, wherein, script file corresponding to different functional test cases is different.
By taking " a month scheduled store " this product as an example, same class of service can be that " N number of moon is periodically depositedThe product of storage ".
The script file stored in FTP can be generated by script generation module, and specifically, SQL script generation modules are divided intoALL_SQL, Multi_SQL two parts function, ALL_SQL support automatic batch to generate full version SQL scripts, i.e., compiled according to scriptNumber order establishes script complete or collected works;Multi_SQL functions support automatic batch generation selection sort script, in the TXT of generation scriptAfter file, the FTP being locally configured is automatically credited by instrument.
Step S202, setting and the corresponding SQL query statement of the script file stored, in the SQL query statementThe querying condition of user can be inputted.
Because script file is SQL script files, so, when the implementing result to script file is inquired about, needSQL statement is wanted to be inquired about.Can be with input inquiry condition in SQL statement.
Step S203, the class of service belonging to functional test case to be tested is obtained.
Step S204, numbered, will be surveyed in the functional test case and the class of service with the function by scriptTry script association corresponding to case.
The SQL script files stored in FTP are divided according to class of service and stored, the script file in different business classification pointScript that Ju You be not independent is numbered.
According to the class of service of functional test case, it can be numbered by script, by functional test case and ftp serverIn corresponding script file be associated.
Step S205, the script associated with the functional test case is performed, to obtain the industry of the functional test caseBusiness parameter.
Step S206, inquiry request of the user based on SQL query statement is received, there is user in the SQL query statementQuerying condition.
Querying condition based on user, the inquiry of user can be divided into accurate inquiry and fuzzy query, wherein, accurate inquiryQuerying condition be better than fuzzy query querying condition.
Step S207, inquiry request residing for response, the target for meeting the querying condition is screened from the service parameterService parameter, the target service parameter is returned to by the user by SPUFI instruments.
Technical case provided in an embodiment of the present invention, obtain the class of service belonging to functional test case;Compiled by scriptNumber, by functional test case and script association corresponding with functional test case in the class of service;Execution and functional testThe script of case association, to obtain the service parameter of functional test case.By performing script corresponding with functional test caseFile can obtain service parameter corresponding with functional test case, it is seen then that the present invention can obtain function survey initial stage in testThe service parameter of case is tried, with this, solves development teams often due to a variety of causes can not provide the very first time, so as to causeTest cases implementation can not be carried out according to plan, the problem of indirect compression verification real-time period.
Referring to Fig. 3, Fig. 3 is a kind of service parameter device of detection function test cases provided in an embodiment of the present inventionA kind of structural representation, method in embodiment corresponding to the course of work reference picture 1 of each unit in the apparatus structure schematic diagramImplementation procedure, the device includes:
Acquiring unit 310, for obtaining the class of service belonging to functional test case to be tested;
Associative cell 320, for being numbered by script, by the functional test case with the class of service with it is describedScript file corresponding to functional test case associates;
Execution unit 330, for performing the script file associated with the functional test case, surveyed with obtaining the functionTry the service parameter of case.
Technical case provided in an embodiment of the present invention, obtain the class of service belonging to functional test case;Compiled by scriptNumber, by functional test case and script association corresponding with functional test case in the class of service;Execution and functional testThe script of case association, to obtain the service parameter of functional test case.By performing script corresponding with functional test caseFile can obtain service parameter corresponding with functional test case, it is seen then that the present invention can obtain function survey initial stage in testThe service parameter of case is tried, with this, solves development teams often due to a variety of causes can not provide the very first time, so as to causeTest cases implementation can not be carried out according to plan, the problem of indirect compression verification real-time period.
Referring to Fig. 4, Fig. 4 is a kind of service parameter device of detection function test cases provided in an embodiment of the present inventionA kind of structural representation, method in embodiment corresponding to the course of work reference picture 2 of each unit in the apparatus structure schematic diagramImplementation procedure, the device includes:
Memory cell 410, for being numbered by script, by the functional test case with the class of service with it is describedBefore script file association corresponding to functional test case, in the class of service of ftp server, store for detecting work(The script file of energy test cases, and the script file according to the script coding rule in the ftp server to storageIt is numbered.
Setting unit 420, the corresponding SQL query statement of the script file for setting with storing, the SQL queryThe querying condition of user can be inputted in sentence.
Acquiring unit 430, for obtaining the class of service belonging to functional test case to be tested.
Associative cell 440, for being numbered by script, by the functional test case with the class of service with it is describedScript file corresponding to functional test case associates.
Execution unit 450, for performing the script file associated with the functional test case, surveyed with obtaining the functionTry the service parameter of case.
Receiving unit 460, for receiving inquiry request of the user based on SQL query statement, have in the SQL query statementThere is the querying condition of user.
Response unit 470, for responding residing inquiry request, screened from the service parameter and meet the querying conditionTarget service parameter, and the target service parameter is returned to by the user by SPUFI instruments.
Technical case provided in an embodiment of the present invention, obtain the class of service belonging to functional test case;Compiled by scriptNumber, by functional test case and script association corresponding with functional test case in the class of service;Execution and functional testThe script of case association, to obtain the service parameter of functional test case.By performing script corresponding with functional test caseFile can obtain service parameter corresponding with functional test case, it is seen then that the present invention can obtain function survey initial stage in testThe service parameter of case is tried, with this, solves development teams often due to a variety of causes can not provide the very first time, so as to causeTest cases implementation can not be carried out according to plan, the problem of indirect compression verification real-time period.
Term " first ", " second ", " the 3rd " " in description and claims of this specification and above-mentioned accompanying drawingThe (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manageThe data that solution so uses can exchange in the appropriate case, so as to embodiments of the invention described herein for example can with exceptOrder beyond those for illustrating or describing herein is implemented.In addition, term " comprising " and " having " and theirs is anyDeformation, it is intended that cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, productionProduct or equipment are not necessarily limited to those steps clearly listed or unit, but may include not list clearly or for thisThe intrinsic other steps of a little process, method, product or equipment or unit.
For device or system embodiment, because it essentially corresponds to embodiment of the method, so related part referring toThe part explanation of embodiment of the method.Device or system embodiment described above is only schematical, wherein describedThe unit illustrated as separating component can be or may not be physically separate, and the part shown as unit can be withIt is or may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.CanTo select some or all of module therein to realize the purpose of this embodiment scheme according to the actual needs.This area is commonTechnical staff is without creative efforts, you can to understand and implement.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method, do not havingHave more than in the spirit and scope of the present invention, can realize in other way.Current embodiment is a kind of exemplaryExample, should not be taken as limiting, given particular content should in no way limit the purpose of the present invention.For example, the unit orThe division of subelement, only a kind of division of logic function, can there are other dividing mode, such as multiple lists when actually realizingFirst or multiple subelements combine.In addition, multiple units can with or component can combine or be desirably integrated into another and beSystem, or some features can be ignored, or not perform.
In addition, the schematic diagram of described system, apparatus and method and different embodiments, without departing from the scope of the present inventionIt is interior, it can combine or integrate with other systems, module, techniques or methods.Another, shown or discussed mutual couplingClose or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be withIt is electrical, mechanical or other forms.
Described above is only the embodiment of the present invention, it is noted that for the ordinary skill people of the artFor member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also shouldIt is considered as protection scope of the present invention.