CN113791982A - Test scheme generation method and system - Google Patents

Test scheme generation method and system Download PDF

Info

Publication number
CN113791982A
CN113791982A CN202111098003.XA CN202111098003A CN113791982A CN 113791982 A CN113791982 A CN 113791982A CN 202111098003 A CN202111098003 A CN 202111098003A CN 113791982 A CN113791982 A CN 113791982A
Authority
CN
China
Prior art keywords
test
requirement
information
scheme
library model
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
CN202111098003.XA
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202111098003.XA priority Critical patent/CN113791982A/en
Publication of CN113791982A publication Critical patent/CN113791982A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a test scheme generation method and a test scheme generation system, wherein an obtained test requirement is input into a pre-established asset library model to obtain a test information set, the asset library model is constructed by all asset elements according to a preset construction sequence, the test information set is used for representing that an information set extracted from the asset library model corresponds to the test requirement, and the test information set is output in a preset template mode to obtain a test scheme corresponding to the test requirement and is displayed. By the scheme, a test scheme does not need to be formulated through experience of testers, dependence on experience of the testers is reduced, the test requirements are input into the asset library model through a relatively perfect asset library model, the test information set corresponding to the test requirements is automatically extracted according to a preset retrieval mode and is output in a templated mode, the templated test scheme is obtained, accuracy, comprehensiveness and integrity of the test scheme are guaranteed, and efficiency of obtaining the test scheme is improved.

Description

Test scheme generation method and system
Technical Field
The present application relates to the field of software testing technologies, and in particular, to a method and a system for generating a test scheme.
Background
The test scheme is the main basis of the software test process. The traditional test scheme generation modes comprise two modes, wherein one mode is that the experience of a tester and the professional technical ability are taken as main functions, and a test strategy is formulated by delineating a test range through manual analysis on the test requirements of a software product; the other method is based on the idea of generating a test scheme by a system, and is mainly generated by comparing a new test scheme with an old test scheme and mainly aims at inheritance of a test case.
The traditional test scheme is mainly formulated by the experience of a tester, has high dependence on the individual competence level of the tester, and often needs a large amount of preparation time but is difficult to obtain a complete and reliable test scheme.
The existing test scheme mainly realizes the generation of the test scheme by comparing and supplementing difference sets, lacks systematic construction and full application of system assets, focuses on the generation of a test range and a test case, and has limitation in coverage content. In addition, the granularity of the test scheme generated in the prior art is coarse, and complete inheritance of the assets cannot be realized when the scheme is generated.
Thus, existing ways of generating test solutions have low limitations and low integrity.
Disclosure of Invention
In view of this, the present application discloses a method and a system for generating a test scheme, which are intended to ensure the accuracy, comprehensiveness and integrity of the test scheme and improve the efficiency of obtaining the test scheme.
In order to achieve the purpose, the technical scheme is as follows:
the first aspect of the present application discloses a test scheme generation method, which includes:
acquiring a test requirement, wherein the test requirement is obtained by inputting a corresponding requirement statement by a user;
inputting the test requirements into a pre-established asset library model to obtain a test information set; the asset library model is constructed by all asset elements according to a preset construction sequence; the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement;
and outputting the test information set in a preset template form to obtain and display a test scheme corresponding to the test requirement.
Preferably, the inputting the test requirement into a pre-established asset library model to obtain a test information set includes:
and inputting the test requirements to a pre-established asset library model for retrieval through a preset retrieval sequence, and extracting a test information set corresponding to the test requirements from the asset library model.
Preferably, the test information set includes service category information, branch information, associated system information, and data type information, and the outputting the test information set in a preset template form to obtain and display a test scheme corresponding to the test requirement includes:
acquiring name content in the test requirement, and generating a test scheme name based on the name content;
and outputting the test scheme name, the service type information, the branch information, the associated system information and the data type information in a preset template form to obtain and display the test scheme corresponding to the test requirement.
Preferably, the method further comprises the following steps:
judging the data type information;
and if the data type information is preset sensitive type information, executing the operation of applying for sensitive data.
Preferably, after the test information set is output in the form of a preset template to obtain and display the test scheme corresponding to the test requirement, the method further includes:
and taking the test scheme as an update asset, and updating the asset library model through the update asset.
A second aspect of the present application discloses a test scenario generation system, which includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a test requirement, and the test requirement is obtained by inputting a corresponding requirement statement by a user;
the input unit is used for inputting the test requirements to a pre-established asset library model to obtain a test information set; the asset library model is constructed by all asset elements according to a preset construction sequence; the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement;
and the output unit is used for outputting the test information set in a preset template form to obtain and display the test scheme corresponding to the test requirement.
Preferably, the input unit is specifically configured to:
and inputting the test requirements to a pre-established asset library model for retrieval through a preset retrieval sequence, and extracting a test information set corresponding to the test requirements from the asset library model.
Preferably, the output unit includes:
the acquisition module is used for acquiring name contents in the test requirements and generating test scheme names based on the name contents;
and the output module is used for outputting the test scheme name, the service type information, the branch information, the associated system information and the data type information in a preset template form to obtain and display the test scheme corresponding to the test requirement.
Preferably, the method further comprises the following steps:
the judging module is used for judging the data type information;
and the execution module is used for executing the operation of applying for the sensitive data if the data type information is preset sensitive type information.
Preferably, the method further comprises the following steps:
and the updating unit is used for taking the test scheme as an updated asset and updating the asset library model through the updated asset.
According to the technical scheme, the test requirement is obtained by inputting a corresponding requirement statement by a user, the test requirement is input into a pre-established asset library model to obtain a test information set, the asset library model is constructed by all asset elements according to a preset construction sequence, the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement, the test information set is output in a preset template mode, and the test scheme corresponding to the test requirement is obtained and displayed. By the scheme, a test scheme does not need to be formulated through experience of testers, dependence on experience of the testers is reduced, the test requirements are input into the asset library model through a relatively perfect asset library model, the test information set corresponding to the test requirements is automatically extracted according to a preset retrieval mode and is output in a templated mode, the templated test scheme is obtained, accuracy, comprehensiveness and integrity of the test scheme are guaranteed, and efficiency of obtaining the test scheme is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a test scenario generation method disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of a process for constructing an asset library model disclosed in an embodiment of the present application;
FIG. 3 is a schematic diagram of a process of inputting a test requirement into an asset library model for retrieval and extracting a test information set corresponding to the test requirement, according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a test scenario corresponding to a test requirement obtained in a preset template form, disclosed in an embodiment of the present application;
FIG. 5 is a diagram of an operating mechanism of a test scenario generation system disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a test scenario generation system disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As can be seen by the background, the existing ways of generating test solutions have low limitations and low integrity.
In order to solve the above problems, an embodiment of the present application discloses a method and a system for generating a test scheme, which do not need to make a test scheme through experience of a tester, reduce dependence on experience of the tester, input a test requirement into an asset library model through a relatively perfect asset library model, automatically extract a test information set corresponding to the test requirement according to a preset retrieval mode, and output the test information set in a templated form to obtain a templated test scheme, thereby ensuring accuracy, comprehensiveness and integrity of the test scheme and improving efficiency of obtaining the test scheme. The specific implementation is illustrated by the following examples.
Referring to fig. 1, a schematic flow chart of a test scenario generation method disclosed in an embodiment of the present application is shown, where the test scenario generation method mainly includes the following steps:
s101: and acquiring a test requirement, wherein the test requirement is obtained by inputting a corresponding requirement statement by a user.
The test requirement is a requirement that a user needs to test a software product, a software project and the like.
In the testing activity, the requirement statement of the testing requirement comprises testing time, required number of people, testing environment, required skill in the testing, corresponding background knowledge, risks possibly encountered in the testing and the like, and the software testing can be determined only after the testing requirement is obtained.
S102: inputting a test requirement into a pre-established asset library model to obtain a test information set; the asset library model is constructed by all asset elements according to a preset construction sequence; the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement.
In S102, the test requirements are input into a pre-established asset library model for retrieval according to a preset retrieval sequence, and a test information set corresponding to the test requirements is extracted from the asset library model.
The preset retrieval sequence is a top-down sequence, the test requirements are input into the asset library model for retrieval through the top-down retrieval sequence, and the retrieval is carried out step by step to the view element level.
The view element level is the minimum view factor and cannot be broken down into finer grained views. The view, which is a material asset, may also contain a chart, multiple levels, associated with other file views. The element level is the minimum unit.
The process of building an asset library model is described below in conjunction with FIG. 2:
in FIG. 2, the asset library model includes view element BV1E1, view element BV1E2, view element BVnEn, view element TV1E1, view element TV1E2, view element TVnEn, view element DV1E1, view element DV1E2, view element DVnEn, view element CV1E1, view element CV1E2 and view element CVnEn, business view BV1, business view BVn, technology view TV1, technology view TVn, data view DV1, data view DVn, configuration view CV1, configuration view CVn, business view cluster BV-Group, technology view cluster TV-Group, data view cluster DV-Group, configuration view cluster CV-Group, system level view cluster SV-Group, field level view cluster FV-Group, and the like.
And constructing an asset library model through a bottom-up clustering sequence, wherein the asset library model comprises a system level view cluster SV-Group, a field level view cluster FV-Group and the like. The asset library model building is that the view related to assets of various systems (such as payment systems, external connection channel systems and the like) is made while developing research and development and test work in each project of system building and optimization from the beginning of building each view factor, asset elements are accumulated from the bottom layer, the building is gradually accumulated upwards, and finally the whole asset library model is formed.
The data stored in the asset library model is collectively referred to as a view, which may be a file, a matrix, a mind map, an architecture map, etc., and each view is an efficiently utilized resource that may be used as input for generating a test scenario, referred to as a view factor.
The process of inputting the test requirements to the pre-established asset library model for retrieval and extracting the test information set corresponding to the test requirements from the asset library model by presetting a retrieval sequence can be referred to as shown in fig. 3.
In fig. 3, the preset retrieval sequence is a top-down retrieval sequence, and a test information set corresponding to the test requirement is extracted from the asset library model, where the test information set is an information set hit by the test requirement.
The preset retrieval sequence is a retrieval sequence extracted from top to bottom, a test requirement is extracted from the asset library model, and the extraction process relates to a field level view cluster FV-Group, a system level view cluster SV-Group, a service scene, a transaction branch, data, an environment, a configuration document, a service scene 1, a service scene n, a transaction branch 1, a transaction branch n, a test class data set, a bottom laying class data set, an environment configuration document, a desensitization rule document, a process case 1, a process case 2, a process case n, a transaction case 1, a transaction case 2, a transaction case n, test data 1, test data 2, test data n, an execution strategy, a data use rule, a parameter configuration document and the like.
The method comprises the following steps that a domain level view cluster FV-Group, a system level view cluster SV-Group, a service scene, a transaction branch, data, an environment, a configuration document, a service scene n, a transaction branch 1, a test class data set, an environment configuration document, a process case 1, a process case n, a transaction case 2, test data 1, test data 2, an execution strategy and a data use rule are all data which are hit after test requirements are input into an asset library model for retrieval, and the hit data are a test information set.
The test information set comprises service type information (A1.. An), program branch information (B1.. Bn), associated system information (C1.. Cn), data type information (D1.. Dn), test cases/scripts, configuration documents related to the test requirement, and the like, and forms a test information set corresponding to the test requirement based on the information.
The service type information, the program branch information, the associated system information and the data type information are attribute items, and are defined and determined according to the specific characteristics of the system.
The service type information comprises exchange service, bill service, inquiry service, account checking service and the like.
Program branch information is categorized according to the specific programming of the system code, such as query branches, billing branches, etc.
The related system information includes channel end systems such as an upstream related palmtop bank and a super counter of the payment system, a downstream related outconnection channel system and the like.
Data type information such as byte, short, int, long, etc.
S103: and outputting the test information set in a preset template form to obtain a test scheme corresponding to the test requirement and displaying the test scheme.
In S103, name content in the test requirement is obtained, a test scheme name is generated based on the name content, and the test scheme name, the service type information, the branch information, the associated system information, and the data type information are output in a preset template form, so as to obtain and display a test scheme corresponding to the test requirement.
The main data information extracted from the test information set is output in the form of a test scheme document, the test range (service flow, program branch information, scene coverage, exception analysis and the like) is output in the form of a test scheme document, the test strategy execution related files in the configuration library are merged into the test scheme document format for output, and the use case, the script, the configuration file and the like are output in the form of an attachment.
The configuration file is a computer file, and can configure parameters and initial settings for some computer programs. I.e. files that configure different objects differently.
Specifically, a mode of outputting the test scheme name, the service type information, the branch information, the associated system information, and the data type information in a preset template form is shown as a 1-A8.
A1: a document identifier is automatically generated in a set format as a document unique token.
A2: and automatically generating a test scheme name according to the project name and the set content.
The project name is used as a part of the driving requirement for generating the test scheme, and is obtained for an external input item (test requirement).
A3: a test scope summary is formed according to the normalized requirements.
The method comprises the following steps that an asset library model is used as an existing visual retrievable system, test requirements are input into the asset library model, and the visual retrievable system is automatically sorted to form a test range summary which is a section of characters. Test scope overview as part of the test protocol, at the very beginning of the document, the purpose of which is to briefly and generally present the overall scope of the test.
A4: a transaction scenario E (A1B 1.. AnBn) is formed according to the extracted data traffic type information and the program branch information, which is specifically shown in table 1.
Figure BDA0003269678100000081
TABLE 1
The service category information includes A1, A2, An, etc., the program branch information includes B1, B2, Bn, etc., and the grouped transaction scenario E includes A1B1, A2B1, AnB1, A1B2, A2B2, AnB2, A1Bn, A2Bn, AnBn, etc. < A1B1>, < A2B2>, < A2Bn >, and < AnBn > etc. are labeled as highlight overlays.
The mark mode of the key coverage item can be distinguished by < > number, or can be distinguished by marking with other colors, and the mark mode of the specific key coverage item is not specifically limited in the application.
A5: a transaction scenario F (C1D 1.. CnDn) is assembled according to the extracted data-associated system information and the data type, as shown in table 2.
Figure BDA0003269678100000082
TABLE 2
The associated system information comprises C1 and C2 … Cn, and the data class information comprises D1, D2 … Dn, < C1D1>, < C2D2> and < CnD1> which are marked as key coverage items.
A6: and outputting the specific test range in the form of a table or a matrix chart. Specifically, the results are shown in Table 3.
Figure BDA0003269678100000083
Figure BDA0003269678100000091
TABLE 3
The transaction scenario E comprises A1B1 and A2B2 … AnBn, and the transaction scenario F comprises C1D1 and C2D2 … CnDn. [ A1B1C1D1], [ A2B12C2D2] and [ AnBnCnD1] are primary focus overlay items, { A1B1C2D2} and { A2B2C2D1} are secondary focus overlay items.
Matrix diagrams are methods for finding pairs of factors from the events of a multi-dimensional problem, arranging the factors into a matrix diagram, and then analyzing the problem according to the matrix diagram to determine key points. It is a method for comprehensively thinking and exploring problems through multiple factors. The method is characterized in that the factor groups accepted from the problem item are respectively arranged in rows and columns, and the relevance or the relevance degree of the rows and the columns is measured.
The marking mode of the first-level important coverage item may be distinguished by [ ] number, or may be distinguished by marking in other colors, and the specific marking mode of the first-level important coverage item is not specifically limited in this application.
The marking mode of the second-level key coverage item may be distinguished by a { } number, or may be marked by other colors, and the specific marking mode of the second-level key coverage item is not specifically limited in this application.
A7: and judging the data type information, and if the data type information is preset sensitive type information, executing the operation of applying for sensitive data.
According to the extracted data type information, if the data relates to sensitive information such as personal information (such as name, certificate number, address, telephone, account number, password, mailbox and the like), equipment keys (such as a main key KEK of equipment, a working key PIK/MAK), certificate key information (such as two magnetism and three magnetism) and the like, the type of the applied data needs to be listed.
In the scheme, the personal information related to the test scheme generation is authorized by the user in advance, and the data processing meets the requirements of relevant laws and regulations.
A8: and if the test requirements relate to the test library cases and the scripts, outputting the test requirements in an accessory mode.
Template form output is performed through A1-A8 to obtain a test scheme, which can be referred to as shown in FIG. 4.
In fig. 4, the test schemes include a XXX project test scheme, a test scheme document identifier, a template version number, a test range summary, specific test items, and a common XXX scene, where XXX is a key coverage item, a transaction scene E, a transaction scene F, and in summary, XXX, sensitive data, whether to apply for the sensitive data, a type and a use time of the sensitive data, a type of the sensitive data includes identification data, special data, and the like, the use time is 1-3 months, and a desensitization script is an attachment 1, an approval process, and a case: attachment 2, script: an attachment 3.
Wherein, each "XXX" is a content which can automatically generate and correspond to the test requirement after being output according to a preset template form.
Transaction scenario E includes A1B1, A2B2 … AnBn, etc.; the transaction scenario F includes C1D1, C2D2 … CnDn, etc.; the project test scheme is a project name generated through test requirements; [ A1B1C1D1], [ A2B12C2D2] and [ AnBnCnD1] are primary focus coverage items; { A1B1C2D2} and { A2B2C2D1} are secondary focus coverage terms; the overlay items comprise a primary emphasis overlay and a secondary emphasis overlay, and the overlay items further comprise A1B1CnDn, A2B2CnDn, AnBnCn and the like.
The asset library is used as an existing visual retrievable system, requirements are input according to input specifications, the system is automatically sorted, a test range summary is formed and is a section of characters, the test range summary is used as a part of a test scheme and is positioned at the beginning of a document, and the purpose of the summary is to briefly and generally introduce the whole range of the test.
Optionally, after the test information set is output in a preset template form to obtain and display a test scheme corresponding to the test requirement, the test scheme is used as an updated asset, and the asset library model is updated through the updated asset.
Continuous cyclic training of the entire asset model can continue on the basis of A1-A8.
A model training loop (asset library establishment → test requirement input → test scheme generation → test process execution → asset library refreshing) can be formed, and when a new test requirement is input, the model training loop is triggered to run for a week under the drive of the test requirement to complete one training, so that the increasing perfection of the organization-level asset library is facilitated, and the model training loop is effectively applied to the generation of the test scheme, as shown in fig. 5, and fig. 5 is an operation mechanism diagram of the whole test scheme generation system.
In FIG. 5, domain level asset library F, system level asset library S1, system level asset library S2, test requirement input I1, test requirement input I2, test plan P1, test plan P2, clustering factor V1, clustering factor V2, clustering factor Vn, test process output O1, and test process output O2.
In fig. 5, new test requirements (test requirement input I1, test requirement input I2) are used as input items, a test scenario generation system is input, layer-by-layer search is performed, test scenarios (test scenario P1, test scenario P2) are generated, after the test scenarios are used in the test process, adjustment is performed in combination with practical experience, test process outputs (test process output O1, test process output O2) are generated, output products (test scenarios) are used as test assets (updated assets), and the test assets are accumulated and updated to an asset library, so that an asset utilization cycle is formed.
The idea for generating the test scheme based on the test assets, which is set forth in the application, fully applies the assets to the test execution process, weakens the dependence of the test quality on people to the greatest extent, and effectively improves the generation speed and quality of the test scheme.
In the embodiment of the application, the testing scheme does not need to be formulated through the experience of the testing personnel, the dependence on the experience of the testing personnel is reduced, the testing requirement is input into the asset library model through a relatively perfect asset library model, the testing information set corresponding to the testing requirement is automatically extracted according to a preset retrieval mode and is output in a templated mode, the templated testing scheme is obtained, the accuracy, the comprehensiveness and the integrity of the testing scheme are ensured, and the efficiency of obtaining the testing scheme is improved.
Based on the test scheme generation method disclosed in fig. 1 in the foregoing embodiment, the embodiment of the present application further discloses a test scheme generation system, and as shown in fig. 6, the test scheme generation system includes an obtaining unit 601, an input unit 602, and an output unit 603.
The obtaining unit 601 is configured to obtain a test requirement, where the test requirement is obtained by inputting a corresponding requirement statement by a user.
An input unit 602, configured to input a test requirement to a pre-established asset library model to obtain a test information set; the asset library model is constructed by all asset elements according to a preset construction sequence; the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement.
And the output unit 603 is configured to output the test information set in a preset template form, obtain a test scheme corresponding to the test requirement, and display the test scheme.
Further, the input unit 602 is specifically configured to input the test requirements to a pre-established asset library model for retrieval according to a preset retrieval sequence, and extract a test information set corresponding to the test requirements from the asset library model.
Further, the output unit 603 includes an acquisition module and an output module.
And the acquisition module is used for acquiring the name content in the test requirement and generating the test scheme name based on the name content.
And the output module is used for outputting the test scheme name, the service type information, the branch information, the associated system information and the data type information in a preset template form to obtain and display the test scheme corresponding to the test requirement.
Furthermore, the device also comprises a judging unit and an executing unit.
And the judging unit is used for judging the data type information.
And the execution unit is used for executing the operation of applying for the sensitive data if the data type information is preset sensitive type information.
Furthermore, the device also comprises an updating unit.
And the updating unit is used for taking the test scheme as an updated asset and updating the asset library model through the updated asset.
In the embodiment of the application, the testing scheme does not need to be formulated through the experience of the testing personnel, the dependence on the experience of the testing personnel is reduced, the testing requirement is input into the asset library model through a relatively perfect asset library model, the testing information set corresponding to the testing requirement is automatically extracted according to a preset retrieval mode and is output in a templated mode, the templated testing scheme is obtained, the accuracy, the comprehensiveness and the integrity of the testing scheme are ensured, and the efficiency of obtaining the testing scheme is improved.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system-class embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The steps in the method of the embodiments of the present application may be sequentially adjusted, combined, and deleted according to actual needs.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for generating a test scenario, the method comprising:
acquiring a test requirement, wherein the test requirement is obtained by inputting a corresponding requirement statement by a user;
inputting the test requirements into a pre-established asset library model to obtain a test information set; the asset library model is constructed by all asset elements according to a preset construction sequence; the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement;
and outputting the test information set in a preset template form to obtain and display a test scheme corresponding to the test requirement.
2. The method of claim 1, wherein inputting the test requirements into a pre-established asset library model to obtain a set of test information comprises:
and inputting the test requirements to a pre-established asset library model for retrieval through a preset retrieval sequence, and extracting a test information set corresponding to the test requirements from the asset library model.
3. The method according to claim 1, wherein the test information set includes service category information, branch information, associated system information, and data type information, and the outputting the test information set in a preset template form to obtain and display a test scheme corresponding to the test requirement includes:
acquiring name content in the test requirement, and generating a test scheme name based on the name content;
and outputting the test scheme name, the service type information, the branch information, the associated system information and the data type information in a preset template form to obtain and display the test scheme corresponding to the test requirement.
4. The method of claim 3, further comprising:
judging the data type information;
and if the data type information is preset sensitive type information, executing the operation of applying for sensitive data.
5. The method according to claim 1, wherein after the test information set is output in a preset template form to obtain and display the test solution corresponding to the test requirement, the method further comprises:
and taking the test scheme as an update asset, and updating the asset library model through the update asset.
6. A test scenario generation system, the system comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a test requirement, and the test requirement is obtained by inputting a corresponding requirement statement by a user;
the input unit is used for inputting the test requirements to a pre-established asset library model to obtain a test information set; the asset library model is constructed by all asset elements according to a preset construction sequence; the test information set is used for representing that the information set extracted from the asset library model corresponds to the test requirement;
and the output unit is used for outputting the test information set in a preset template form to obtain and display the test scheme corresponding to the test requirement.
7. The system of claim 6, wherein the input unit is specifically configured to:
and inputting the test requirements to a pre-established asset library model for retrieval through a preset retrieval sequence, and extracting a test information set corresponding to the test requirements from the asset library model.
8. The system of claim 6, wherein the output unit comprises:
the acquisition module is used for acquiring name contents in the test requirements and generating test scheme names based on the name contents;
and the output module is used for outputting the test scheme name, the service type information, the branch information, the associated system information and the data type information in a preset template form to obtain and display the test scheme corresponding to the test requirement.
9. The system of claim 8, further comprising:
a determination unit configured to determine the data type information;
and the execution unit is used for executing the operation of applying for the sensitive data if the data type information is preset sensitive type information.
10. The system of claim 6, further comprising:
and the updating unit is used for taking the test scheme as an updated asset and updating the asset library model through the updated asset.
CN202111098003.XA 2021-09-18 2021-09-18 Test scheme generation method and system Pending CN113791982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111098003.XA CN113791982A (en) 2021-09-18 2021-09-18 Test scheme generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111098003.XA CN113791982A (en) 2021-09-18 2021-09-18 Test scheme generation method and system

Publications (1)

Publication Number Publication Date
CN113791982A true CN113791982A (en) 2021-12-14

Family

ID=78878955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111098003.XA Pending CN113791982A (en) 2021-09-18 2021-09-18 Test scheme generation method and system

Country Status (1)

Country Link
CN (1) CN113791982A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6332211B1 (en) * 1998-12-28 2001-12-18 International Business Machines Corporation System and method for developing test cases using a test object library
US20090178021A1 (en) * 2007-12-28 2009-07-09 Federal Home Loan Mortgage Corporation (Freddie Mac) Systems and Methods for Modeling and Generating Test Requirements for Software Applications
CN102087506A (en) * 2009-12-04 2011-06-08 中国石油天然气股份有限公司 Crude oil pipeline transportation technological process simulation and automated test scheme programming system as well as automatic generating method thereof
CN103488482A (en) * 2013-09-16 2014-01-01 深圳市龙视传媒有限公司 Method and device for generating test cases
CN112579465A (en) * 2020-12-25 2021-03-30 中国农业银行股份有限公司 Test case execution method and device, storage medium and equipment
CN113342692A (en) * 2021-07-05 2021-09-03 卫宁健康科技集团股份有限公司 Test case automatic generation method and device, electronic equipment and storage medium
US20210286803A1 (en) * 2020-03-16 2021-09-16 Pricewaterhousecoopers Llp Immutable and decentralized storage of computer models

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6332211B1 (en) * 1998-12-28 2001-12-18 International Business Machines Corporation System and method for developing test cases using a test object library
US20090178021A1 (en) * 2007-12-28 2009-07-09 Federal Home Loan Mortgage Corporation (Freddie Mac) Systems and Methods for Modeling and Generating Test Requirements for Software Applications
CN102087506A (en) * 2009-12-04 2011-06-08 中国石油天然气股份有限公司 Crude oil pipeline transportation technological process simulation and automated test scheme programming system as well as automatic generating method thereof
CN103488482A (en) * 2013-09-16 2014-01-01 深圳市龙视传媒有限公司 Method and device for generating test cases
US20210286803A1 (en) * 2020-03-16 2021-09-16 Pricewaterhousecoopers Llp Immutable and decentralized storage of computer models
CN112579465A (en) * 2020-12-25 2021-03-30 中国农业银行股份有限公司 Test case execution method and device, storage medium and equipment
CN113342692A (en) * 2021-07-05 2021-09-03 卫宁健康科技集团股份有限公司 Test case automatic generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
He et al. A database linking Chinese patents to China’s census firms
CN108089843B (en) Intelligent bank enterprise-level demand management system
Kuhlmann et al. Role mining-revealing business roles for security administration using data mining technology
TWI549006B (en) Contextual gravitation of datasets and data services
TW498201B (en) System and method for generating year 2000 test cases
US20120150820A1 (en) System and method for testing data at a data warehouse
CN110795524B (en) Main data mapping processing method and device, computer equipment and storage medium
US20120166319A1 (en) Method and system for language-independent search within scanned documents
CN110991157A (en) Engineering quality evaluation system design method based on electronic file credible technology
CN101493834A (en) Method for generating evidence for keeping account by random service system document
CN115049471A (en) Bill processing method, device, equipment and storage medium
CN105824791A (en) Reference format checking method
CN116757808A (en) Automatic bidding document generation method and system based on big data
CN109658126A (en) Data processing method, device, equipment and storage medium based on product promotion
CN112308727A (en) Insurance claim settlement service processing method and device
CN116541372A (en) Data asset management method and system
CN115576950A (en) Report generation method based on JSON configuration file
WO2012131056A2 (en) Finding a data item of a plurality of data items stored in a digital data storage
US7873607B1 (en) Model driven consolidator of database information
JP2020135538A (en) Plant equipment information management system
Goasdoué et al. An Evaluation Framework For Data Quality Tools.
CN113791982A (en) Test scheme generation method and system
CN109947797A (en) A kind of data detecting device and method
CN116228402A (en) Financial credit investigation feature warehouse technical support system
Mc Cabe et al. System testing aided by structured analysis: A practical experience

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination