Movatterモバイル変換


[0]ホーム

URL:


CN107748720A - A kind of method and device of the service parameter of detection function test cases - Google Patents

A kind of method and device of the service parameter of detection function test cases
Download PDF

Info

Publication number
CN107748720A
CN107748720ACN201711190256.3ACN201711190256ACN107748720ACN 107748720 ACN107748720 ACN 107748720ACN 201711190256 ACN201711190256 ACN 201711190256ACN 107748720 ACN107748720 ACN 107748720A
Authority
CN
China
Prior art keywords
functional test
test case
script
service
service parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711190256.3A
Other languages
Chinese (zh)
Inventor
石明睿
罗卫东
杨健
黄石林
扶雄
杨奕华
孙宇千
曾庆谦
王帅
曾佩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China LtdfiledCriticalBank of China Ltd
Priority to CN201711190256.3ApriorityCriticalpatent/CN107748720A/en
Publication of CN107748720ApublicationCriticalpatent/CN107748720A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of method and device of the service parameter of detection function test cases, this method includes:Obtain the class of service belonging to functional test case to be tested;Numbered by script, the functional test case is associated with script file corresponding with the functional test case in the class of service;The script file associated with the functional test case is performed, to obtain the service parameter of the functional test case.It can be seen that, the present invention can obtain the service parameter of functional test case initial stage in test, with this, solve development teams often due to a variety of causes can not provide the very first time, implement so as to lead to not carry out according to plan test cases, the problem of indirect compression verification real-time period.

Description

A kind of method and device of the service parameter of detection function test cases
Technical field
The present invention relates to detection technique field, more particularly to a kind of method of the service parameter of detection function test casesAnd device.
Background technology
Overseas core system functional test implementation process, the last fortnight is often by the conditionalities such as environment, product parameters, testManager can not intuitively take comprehensive parameter and support file, need developing department to assist derived parameter inventory to join for test in the pastExamine, and development teams are often due to a variety of causes can not provide the very first time, so as to lead to not carry out test cases according to planImplement, indirect compression verification real-time period.
Therefore, a kind of scheme for the service parameter for being capable of detection function test cases is needed badly.
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.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existingThere is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only thisSome embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used alsoTo obtain other accompanying drawings according to these accompanying drawings.
A kind of a kind of stream of the method for the service parameter for detection function test cases that Fig. 1 is provided by the embodiment of the present inventionJourney schematic diagram;
A kind of another kind of the method for the service parameter for detection function test cases that Fig. 2 is provided by the embodiment of the present inventionSchematic flow sheet;
A kind of a kind of knot of the device of the service parameter for detection function test cases that Fig. 3 is provided by the embodiment of the present inventionStructure schematic diagram;
A kind of another kind of the device of the service parameter for detection function test cases that Fig. 4 is provided by the embodiment of the present inventionStructural representation.
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.

Claims (10)

CN201711190256.3A2017-11-242017-11-24A kind of method and device of the service parameter of detection function test casesPendingCN107748720A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711190256.3ACN107748720A (en)2017-11-242017-11-24A kind of method and device of the service parameter of detection function test cases

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711190256.3ACN107748720A (en)2017-11-242017-11-24A kind of method and device of the service parameter of detection function test cases

Publications (1)

Publication NumberPublication Date
CN107748720Atrue CN107748720A (en)2018-03-02

Family

ID=61250861

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711190256.3APendingCN107748720A (en)2017-11-242017-11-24A kind of method and device of the service parameter of detection function test cases

Country Status (1)

CountryLink
CN (1)CN107748720A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109240913A (en)*2018-08-142019-01-18中国平安人寿保险股份有限公司A kind of webpage function verification method, computer readable storage medium and terminal device
CN111538672A (en)*2020-05-292020-08-14平安普惠企业管理有限公司Test case layered test method, computer device and computer-readable storage medium
CN113268553A (en)*2021-07-212021-08-17国网汇通金财(北京)信息科技有限公司Data auditing method, system, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101378324A (en)*2007-08-312009-03-04华为技术有限公司Method, apparatus and system for processing, replacing combined business and invoking concrete business
US20100218168A1 (en)*2009-02-232010-08-26Gonzales Ii Jesus OrlandoSystem and Method for Generating a Test Environment Script File
CN101908015A (en)*2009-06-042010-12-08中国工商银行股份有限公司Device and method for creating test case based on components
US7971186B1 (en)*2004-06-252011-06-28Apple Inc.Automatic execution flow ordering
CN103345444A (en)*2013-06-282013-10-09中国南方电网有限责任公司Method and device for testing operating system function of power secondary system
CN103699478A (en)*2012-09-272014-04-02中国银联股份有限公司Test case generation system and test case generation method
CN104182335A (en)*2014-05-092014-12-03中国光大银行Software testing method and device
CN104468288A (en)*2015-01-042015-03-25中国联合网络通信集团有限公司Terminal network data testing method and device
CN104516908A (en)*2013-09-292015-04-15华为技术有限公司Database access method and device
CN106980573A (en)*2016-10-262017-07-25阿里巴巴集团控股有限公司A kind of method for building test case request object, apparatus and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7971186B1 (en)*2004-06-252011-06-28Apple Inc.Automatic execution flow ordering
CN101378324A (en)*2007-08-312009-03-04华为技术有限公司Method, apparatus and system for processing, replacing combined business and invoking concrete business
US20100218168A1 (en)*2009-02-232010-08-26Gonzales Ii Jesus OrlandoSystem and Method for Generating a Test Environment Script File
CN101908015A (en)*2009-06-042010-12-08中国工商银行股份有限公司Device and method for creating test case based on components
CN103699478A (en)*2012-09-272014-04-02中国银联股份有限公司Test case generation system and test case generation method
CN103345444A (en)*2013-06-282013-10-09中国南方电网有限责任公司Method and device for testing operating system function of power secondary system
CN104516908A (en)*2013-09-292015-04-15华为技术有限公司Database access method and device
CN104182335A (en)*2014-05-092014-12-03中国光大银行Software testing method and device
CN104468288A (en)*2015-01-042015-03-25中国联合网络通信集团有限公司Terminal network data testing method and device
CN106980573A (en)*2016-10-262017-07-25阿里巴巴集团控股有限公司A kind of method for building test case request object, apparatus and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109240913A (en)*2018-08-142019-01-18中国平安人寿保险股份有限公司A kind of webpage function verification method, computer readable storage medium and terminal device
CN111538672A (en)*2020-05-292020-08-14平安普惠企业管理有限公司Test case layered test method, computer device and computer-readable storage medium
CN113268553A (en)*2021-07-212021-08-17国网汇通金财(北京)信息科技有限公司Data auditing method, system, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
US9053237B2 (en)Test script generation
CN104252481B (en)The dynamic check method and apparatus of master-slave database consistency
CN108959059B (en)Test method and test platform
CN110689223B (en)Robot batch management system based on RPA control
CN109582563A (en)Test method, device, computer equipment and the storage medium of test cases
CN102571403A (en)Realization method and device for general data quality control adapter
CN109828906A (en)UI automated testing method, device, electronic equipment and storage medium
CN105893259A (en)Code detection system, method and device
CN107748720A (en)A kind of method and device of the service parameter of detection function test cases
CN113760297B (en) Strategic class division method, system, computer equipment and medium
CN114116801B (en) Data list verification method and device
CN104346279A (en)Method and device for software testing
CN112184005A (en)Operation task classification method, device, equipment and storage medium
CN106294037A (en)Strike-machine method of testing and device
CN108574718B (en)Cloud host creation method and device
CN112306854B (en)Case testing method and device, electronic equipment and storage medium
CN113434404B (en)Automatic service verification method and device for verifying reliability of disaster recovery system
CN112860780B (en)Data export method and device and terminal equipment
CN110209575A (en)Test document generation method, device, electronic equipment and storage medium
CN110888814B (en)Application program gray level release method and device based on white list
JP5206268B2 (en) Rule creation program, rule creation method and rule creation device
US11995587B2 (en)Method and device for managing project by using data merging
CN117009210A (en)Test method, system, platform, equipment and storage medium
CN112965992B (en)Multi-parameter constraint data retrieval man-machine interaction method and device
CN112463344A (en)Data analysis method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20180302


[8]ページ先頭

©2009-2025 Movatter.jp