CN117271367A - Configuration of application system test flow, application system test method and device - Google Patents

Configuration of application system test flow, application system test method and device Download PDF

Info

Publication number
CN117271367A
CN117271367A CN202311423647.0A CN202311423647A CN117271367A CN 117271367 A CN117271367 A CN 117271367A CN 202311423647 A CN202311423647 A CN 202311423647A CN 117271367 A CN117271367 A CN 117271367A
Authority
CN
China
Prior art keywords
test
application system
tested
data
case
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
CN202311423647.0A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311423647.0A priority Critical patent/CN117271367A/en
Publication of CN117271367A publication Critical patent/CN117271367A/en
Pending legal-status Critical Current

Links

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
    • 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
    • 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/3692Test management for test results analysis

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 relates to configuration of an application system test flow, an application system test method, an application system test device, computer equipment, a storage medium and a computer program product, and relates to the technical field of automatic test. The method and the device can improve the case multiplexing rate, the testing efficiency and the testing quality, and are helpful for accumulation of case assets. The method comprises the following steps: determining an execution environment corresponding to a version delivery schedule of an application system to be tested; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the configured functions in the application system to be tested; determining a case body in an existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; and configuring a test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.

Description

Configuration of application system test flow, application system test method and device
Technical Field
The present invention relates to the field of automated testing technologies, and in particular, to configuration of an application system testing process, an application system testing method, an apparatus, a computer device, a storage medium, and a computer program product.
Background
With the development of computer technology and the internet industry, the data processing capability of computers has increased.
With this, automated testing techniques for improving testing speed and efficiency have emerged, replacing the traditional purely manual testing; wherein automated testing may replace manually performed procedures by automated tools or means during test execution.
However, the existing automated test technology only partially solves the problem of efficiency of test case execution, data preparation, network and database connection before test, and exception handling in the test process and manual verification after test still need to consume a great deal of labor cost and difficulty in guaranteeing test quality, so that the existing automated test technology has the problems of lower test efficiency and lower test quality.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a configuration of an application testing flow, an application testing method, an apparatus, a computer device, a computer readable storage medium, and a computer program product.
In a first aspect, the present application provides a method for configuring a test flow of an application system. The method comprises the following steps:
Determining an execution environment corresponding to a version delivery schedule of an application system to be tested;
determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested;
acquiring existing test case templates corresponding to various functions respectively according to the various functions configured in the application system to be tested;
determining a case body in the existing test case template;
determining a test result check point corresponding to the functional check requirement of the application system to be tested;
and configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
In one embodiment, the determining the multiple functions correspondingly configured according to the version delivery standard of the application system to be tested includes:
determining a plurality of functions to be configured of the application system to be tested; respectively obtaining function parameters corresponding to each function to be configured; and correspondingly inputting each functional parameter into a designated field of a parameter module in the application system to be tested.
In one embodiment, the obtaining, according to the various functions configured in the application system to be tested, existing test case templates corresponding to the various functions respectively includes:
Generating function codes respectively corresponding to various functions according to the various functions configured in the application system to be tested; according to the function codes, inquiring the existing test case templates corresponding to the functions in a test case template information base; and acquiring the existing test case templates obtained by query.
In one embodiment, the determining the case body in the existing test case template includes:
performing parameterization processing on fields in the existing test case template to obtain a parameter field set corresponding to the existing test case template; identifying a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function; and determining a case body in the existing test case template according to the target parameter field subset.
In one embodiment, the method further comprises:
under the condition that the test flow of the application system to be tested is finished, extracting the imported test data in the test flow; performing data reduction processing on the test data, and performing integrity verification on the test data subjected to the data reduction processing; and under the condition that the test data subjected to the data reduction processing passes the integrity verification, confirming that the test data is completely recovered.
In one embodiment, the method further comprises:
identifying lost data existing in the data-reduction-processed test data under the condition that the data-reduction-processed test data fails the integrity verification; and generating corresponding data loss prompt information according to the data type and the data quantity of the lost data.
In a second aspect, the present application further provides an application system testing method. The method comprises the following steps:
acquiring a test flow of an application system to be tested according to the application system to be tested selected by a user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment;
triggering the execution of the test flow according to the test instruction of the user or a preset test period;
loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested;
according to the existing test case templates corresponding to various functions and the case main bodies in the existing test case templates, executing test result check points corresponding to the functional check requirements of the application system to be tested to obtain a check result;
And generating a case execution report corresponding to the application system to be tested according to the verification result.
In a third aspect, the present application further provides a configuration device for an application system test procedure. The device comprises:
the environment determining module is used for determining an execution environment corresponding to the version delivery schedule of the application system to be tested;
the function configuration module is used for determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested;
the template acquisition module is used for acquiring the existing test case templates corresponding to the various functions respectively according to the configured functions in the application system to be tested;
a body determination module for determining a case body in the existing test case template;
the verification setting module is used for determining a test result check point corresponding to the functional verification requirement of the application system to be tested;
and the flow configuration module is used for configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
In a fourth aspect, the application system testing device is further provided. The device comprises:
the flow acquisition module is used for acquiring the test flow of the application system to be tested according to the application system to be tested selected by the user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment;
The flow execution module is used for triggering the execution of the test flow according to the test instruction of the user or a preset test period;
the function loading module is used for loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested;
the result verification module is used for executing test result checkpoints corresponding to the functional verification requirements of the application system to be tested according to the existing test case templates and the case main bodies in the existing test case templates respectively corresponding to various functions to obtain a verification result;
and the report generation module is used for generating a case execution report corresponding to the application system to be tested according to the verification result.
In a fifth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
determining an execution environment corresponding to a version delivery schedule of an application system to be tested; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the various functions configured in the application system to be tested; determining a case body in the existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; and configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
In a sixth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a test flow of an application system to be tested according to the application system to be tested selected by a user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment; triggering the execution of the test flow according to the test instruction of the user or a preset test period; loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested; according to the existing test case templates corresponding to various functions and the case main bodies in the existing test case templates, executing test result check points corresponding to the functional check requirements of the application system to be tested to obtain a check result; and generating a case execution report corresponding to the application system to be tested according to the verification result.
In a seventh aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Determining an execution environment corresponding to a version delivery schedule of an application system to be tested; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the various functions configured in the application system to be tested; determining a case body in the existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; and configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
In an eighth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a test flow of an application system to be tested according to the application system to be tested selected by a user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment; triggering the execution of the test flow according to the test instruction of the user or a preset test period; loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested; according to the existing test case templates corresponding to various functions and the case main bodies in the existing test case templates, executing test result check points corresponding to the functional check requirements of the application system to be tested to obtain a check result; and generating a case execution report corresponding to the application system to be tested according to the verification result.
In a ninth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
determining an execution environment corresponding to a version delivery schedule of an application system to be tested; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the various functions configured in the application system to be tested; determining a case body in the existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; and configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
In a tenth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a test flow of an application system to be tested according to the application system to be tested selected by a user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment; triggering the execution of the test flow according to the test instruction of the user or a preset test period; loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested; according to the existing test case templates corresponding to various functions and the case main bodies in the existing test case templates, executing test result check points corresponding to the functional check requirements of the application system to be tested to obtain a check result; and generating a case execution report corresponding to the application system to be tested according to the verification result.
The configuration of the application system test flow, the application system test method, the device, the computer equipment, the storage medium and the computer program product are implemented by determining an execution environment corresponding to the version delivery schedule of the application system to be tested; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the configured functions in the application system to be tested; determining a case body in an existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; and configuring a test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
The beneficial effects are as follows: according to the technical scheme, the test efficiency is quickened through the automatic modes and means of test data preparation, test environment construction, test result automatic verification and the like, the test quality is guaranteed, the software delivery period is shortened, and more intelligent and comprehensive automatic test is realized; in addition, the scheme supports the function of flushing transaction for test cases/rolling data back, and realizes data recovery after test case execution is completed; test data is imported once and reused; thereby the technical effects that can be achieved include: the decoupling of the test cases and the test environment is realized, the cases are automatically executed in the multi-cluster multi-data center, and the workload of data initialization in the test link is reduced, so that the case multiplexing rate, the test efficiency and the test quality are improved, and the accumulation of case assets is facilitated.
Drawings
FIG. 1 is an application environment diagram of a configuration method of an application system test flow in one embodiment;
FIG. 2 is a flow diagram of a configuration method of an application system test flow in one embodiment;
FIG. 3 is a flow diagram of the steps of determining a configuration function in one embodiment;
FIG. 4 is a flow diagram of the steps for obtaining a test case template in one embodiment;
fig. 5 is a flow chart of a step of determining a case principal in one embodiment;
FIG. 6 is a flow chart of a test data recovery procedure in one embodiment;
FIG. 7 is a flow chart of an application system testing method in one embodiment;
FIG. 8 is a flow chart of a configuration method of an application system test flow in an application embodiment;
FIG. 9 is a flow chart of an application system testing method in an application embodiment;
FIG. 10 is a block diagram of a configuration device for application system test flow in one embodiment;
FIG. 11 is a block diagram of an application system testing apparatus in one embodiment;
fig. 12 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, the client information (including, but not limited to, client device information, client personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in this application are information and data authorized by the client or sufficiently authorized by each party, and the collection, use, and processing of the relevant data is required to comply with relevant laws and regulations of relevant countries and regions.
The configuration method of the application system test flow provided by the embodiment of the application system test flow can be applied to an application environment shown in fig. 1. Wherein the terminal 101 communicates with the server 102 via a network. The data storage system may store data that the server 102 needs to process. The data storage system may be integrated on the server 102 or may be located on a cloud or other network server.
Specifically, the configuration method of the application system test flow provided in the embodiment of the present application may be executed by the server 102.
Illustratively, the server 102 determines an execution environment corresponding to a version delivery plan of the application system to be tested; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the configured functions in the application system to be tested; server 102 determines a case body in the existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; the server 102 configures a test flow of the application system under test based on the execution environment, the plurality of functions, the case body, and the test result checkpoints.
In the application environment as shown in fig. 1, the terminal 101 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers. The server 102 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a configuration method of an application system test flow is provided, and the method is applied to the server 102 in fig. 1 for illustration, and includes the following steps:
step S201, determining an execution environment corresponding to the version delivery schedule of the application system to be tested.
Where an execution environment refers to the software and hardware environment that a program or application depends on when running.
Specifically, the server 102 determines an execution environment corresponding to a version delivery schedule of the application system to be tested in response to a configuration instruction of the application system test flow.
Step S202, determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested.
Specifically, the server 102 determines a plurality of functions correspondingly configured according to the version delivery criteria of the application system to be tested.
Step S203, according to the configured functions in the application system to be tested, the existing test case templates corresponding to the functions are obtained.
The existing test case templates may be transaction templates of registered transactions, which refers to a design pattern or standard that is the infrastructure and specification of the transactions.
Specifically, the server 102 queries the existing test case templates corresponding to the various functions in the test case template information base according to the configured various functions in the application system to be tested; and acquiring the existing test case templates obtained by query.
Step S204, determining a case body in the existing test case template.
Wherein, the case subject refers to the object or main content of interest and study in case analysis or study.
Specifically, the server 102 identifies a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function; and obtaining a case main body in the existing test case template according to the target parameter field subset.
Step S205, determining test result check points corresponding to the functional check requirements of the application system to be tested.
The test result check point is an expected result defined when software test or system verification is performed, and is used as a basis for evaluating whether the test result accords with the expected result or not and is used for verifying whether the output of the system or software under various operations, functions or conditions is correct or not.
Specifically, the server 102 determines a test result check point corresponding to the functional check requirement of the application system to be tested.
Step S206, configuring a test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
The test flow refers to a series of activities and steps for guaranteeing the quality of software in the software development process.
Specifically, the server 102 configures a test flow of the application to be tested based on the execution environment, the plurality of functions, the case body, and the test result checkpoints.
In the configuration method of the application system test flow, the execution environment corresponding to the version delivery schedule of the application system to be tested is determined; determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested; acquiring existing test case templates corresponding to various functions respectively according to the configured functions in the application system to be tested; determining a case body in an existing test case template; determining a test result check point corresponding to the functional check requirement of the application system to be tested; and configuring a test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
The beneficial effects are as follows: according to the technical scheme, the test efficiency is quickened through the automatic modes and means of test data preparation, test environment construction, test result automatic verification and the like, the test quality is guaranteed, the software delivery period is shortened, and more intelligent and comprehensive automatic test is realized; in addition, the scheme supports the function of flushing transaction for test cases/rolling data back, and realizes data recovery after test case execution is completed; test data is imported once and reused; thereby the technical effects that can be achieved include: the decoupling of the test cases and the test environment is realized, the cases are automatically executed in the multi-cluster multi-data center, and the workload of data initialization in the test link is reduced, so that the case multiplexing rate, the test efficiency and the test quality are improved, and the accumulation of case assets is facilitated.
In one embodiment, as shown in fig. 3, determining multiple functions configured correspondingly according to the version delivery standard of the application system to be tested specifically includes the following steps:
step S301, determining multiple functions to be configured of the application system to be tested.
Step S302, function parameters corresponding to the functions to be configured are obtained respectively.
Step S303, inputting each function parameter to the designated field of the parameter module in the application system to be tested.
The parameter module refers to a module for storing and managing parameter information related to system configuration, function setting, behavior rules and the like in software development.
Specifically, the server 102 determines a plurality of functions to be configured of the application system to be tested; respectively obtaining function parameters corresponding to each function to be configured; and correspondingly inputting each functional parameter into a designated field of a parameter module in the application system to be tested.
In this embodiment, by determining multiple functions to be configured of the application system to be tested, function parameters corresponding to the functions to be configured are respectively obtained, and the function parameters are correspondingly input to specified fields of a parameter module in the application system to be tested; therefore, the functions of custom input and parameter module combination according to the requirement are realized, and the practicability and flexibility of the scheme are improved.
In one embodiment, as shown in fig. 4, according to various functions configured in an application system to be tested, an existing test case template corresponding to each function is obtained, which specifically includes the following steps:
step S401, according to the configured functions in the application system to be tested, generating function codes corresponding to the functions respectively.
Step S402, according to the function codes, the existing test case templates corresponding to the functions are searched in the test case template information base.
Step S403, obtaining the existing test case templates obtained by the query.
Where function code refers to an identification code used in a computer system or communication protocol to represent different functions or operations, it is used to distinguish and identify different functional requirements so that the system can properly perform the corresponding operations.
Specifically, the server 102 generates function codes corresponding to various functions according to various functions configured in the application system to be tested; according to the function codes, inquiring the existing test case templates corresponding to the functions in the test case template information base; and acquiring the existing test case templates obtained by query.
In this embodiment, function codes corresponding to the functions are generated according to the functions configured in the application system to be tested, and then the existing test case templates corresponding to the functions are queried in the test case template information base according to the function codes; thus, the existing test case templates corresponding to the functions are accurately obtained, and the full utilization of case assets is realized.
In one embodiment, as shown in fig. 5, determining a case body in an existing test case template specifically includes the following steps:
step S501, parameterizing the fields in the existing test case template to obtain a parameter field set corresponding to the existing test case template.
Step S502, identifying a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function.
Step S503, obtaining the case main body in the existing test case template according to the target parameter field subset.
The parameterization process refers to using variable, parameter, configuration and other modes to replace hard-coded constant or fixed value in software development so as to improve maintainability, expandability and reusability of codes.
Specifically, the server 102 performs parameterization processing on the fields in the existing test case template to obtain a parameter field set corresponding to the existing test case template; identifying a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function; and obtaining a case main body in the existing test case template according to the target parameter field subset.
In this embodiment, a target parameter field subset is identified in a parameter field set according to a field to be filled of a corresponding function, and a case main body in an existing test case template is obtained according to the target parameter field subset; thereby improving testability and reusability of the case body and enabling the case body to be easier to modify and expand.
In one embodiment, as shown in fig. 6, the method further comprises the following steps:
step S601, extracting the test data imported in the test flow under the condition that the test flow of the application system to be tested is ended.
Step S602, performing data reduction processing on the test data, and performing integrity verification on the test data subjected to the data reduction processing.
In step S603, in the case that the test data subjected to the data restoration process passes the integrity verification, the complete restoration of the test data is confirmed.
The data restoration process refers to a process of restoring data subjected to a certain process or encryption to an original state.
Specifically, the server 102 extracts the test data imported in the test flow under the condition that the test flow of the application system to be tested is ended; performing data reduction processing on the test data, and performing integrity verification on the test data subjected to the data reduction processing; and under the condition that the test data subjected to the data reduction processing passes the integrity verification, confirming that the test data is completely recovered.
In this embodiment, the data reduction processing is performed on the test data by extracting the test data imported in the test flow, and the integrity verification is performed on the test data subjected to the data reduction processing; therefore, the function of importing and reusing the test data once is realized, and the data multiplexing rate is improved.
In one embodiment, the method further comprises the following steps: identifying lost data in the test data subjected to the data reduction processing under the condition that the test data subjected to the data reduction processing fails to pass the integrity verification; and generating corresponding data loss prompt information according to the data type and the data quantity of the lost data.
Specifically, the server 102 identifies missing data existing in the test data subjected to the data restoration processing in the case where the test data subjected to the data restoration processing fails the integrity verification; and generating corresponding data loss prompt information according to the data type and the data quantity of the lost data.
In this embodiment, by identifying missing data in the test data subjected to the data restoration processing, corresponding data loss prompt information is generated according to the data type and the data amount of the missing data; therefore, automatic early warning of data loss is realized, and the automation degree of the scheme is further increased.
In one embodiment, as shown in fig. 7, the application further provides an application system testing method, which is described by taking the application of the method to the server 102 in fig. 1 as an example, and includes the following steps:
step S701, according to an application system to be tested selected by a user, acquiring a test flow of the application system to be tested; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment.
Step S702, triggering the execution of the test flow according to the test instruction of the user or the preset test period.
In step S703, multiple functions configured corresponding to the version delivery criteria of the application system to be tested are loaded in the execution environment corresponding to the version delivery schedule of the application system to be tested.
Step S704, executing test result check points corresponding to the functional check requirements of the application system to be tested according to the existing test case templates and the case main bodies in the existing test case templates respectively corresponding to the functions to obtain a check result.
Step S705, generating a case execution report corresponding to the application system to be tested according to the verification result.
Specifically, the server 102 obtains a test flow of an application system to be tested according to the application system to be tested selected by a user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment; triggering the execution of a test flow according to a test instruction of a user or a preset test period; loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested; according to the existing test case templates and the case main bodies in the existing test case templates respectively corresponding to various functions, executing test result check points corresponding to the functional check requirements of the application system to be tested to obtain a check result; and generating a case execution report corresponding to the application system to be tested according to the verification result.
In the embodiment, the test efficiency is quickened through the automatic modes and means of test data preparation, test environment establishment, test result automatic verification and the like, the test quality is guaranteed, the software delivery period is shortened, and more intelligent and comprehensive automatic test is realized.
In order to more clearly clarify the configuration method of the application system test flow provided in the embodiment of the present application, the following specifically describes the configuration method of the application system test flow with an application embodiment. In one embodiment, as shown in fig. 8, the application further provides a configuration method of the application system test flow, which specifically includes the following steps:
step one: the tester selects a case default execution environment based on the version delivery schedule.
Step two: preparing actions to support custom SQL (Structured Query Language ) fetches and configure data in case body specified fields; conditions for performing a pre-transaction to complete case execution (e.g., setting an account opening transaction as a preparatory action when a case is to be used for execution); or the front transaction result is configured in the case body (such as the repayment amount of the repayment case comes from the payment amount of the front payment transaction).
Step three: and supporting to automatically acquire a transaction template of the registered transaction according to the transaction code or the function code, and setting a default value.
Step four: the transaction body supports parameterized input, and a tester can parameterize fields in the case template or input a fixed value according to the requirement; if there are 100 fields in the template, the case of the branch needs to input account number and amount, the account 111 can be input to use a fixed value of 200.00 yuan, the output of the front-end action can be parameterized, and the date/time/organization/serial number can use default values.
Step five: the method supports judgment of field values in transaction execution results, can also verify database data through custom SQL, and also supports verification of query results and case return results of other query transactions.
Step six: the method supports custom SQL data restoration and also supports orthographic easy-to-realize data restoration.
The beneficial effects brought by the embodiment are as follows:
1. when the test tasks of a large number of cases of the multi-environment multi-data center are dealt with, the cases are automatically executed in the multi-cluster multi-data center, the case multiplexing rate and the test quality are improved, and the case assets are accumulated.
2. After the test cases are executed, the data rollback is realized through a transaction rollback scheme, the test cases can be repeated by initializing the data once, a large amount of data preparation work such as test data input initialization is saved, and the test efficiency is effectively improved.
In order to more clearly clarify the application system testing method provided in the embodiments of the present application, the application system testing method is specifically described in the following with an application embodiment. In one embodiment, as shown in fig. 9, the application further provides an application system testing method, which specifically includes the following steps:
step one: and providing an operation interface for a developer and a tester to support manual execution.
Step two: and supporting the regression test by executing the test set according to the test instruction of the user or the preset test period.
Step three: and loading and executing a custom check point to check the test result.
Step four: and generating a case execution report according to the checking result.
The beneficial effects brought by the embodiment are as follows:
1. when the test tasks of a large number of cases of the multi-environment multi-data center are dealt with, the test efficiency is effectively improved, the test cost is reduced, and the test quality is ensured.
2. The custom checkpoints may implement an automatic inspection function of the test case execution results.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a configuration of the application system testing process and an application system testing device for realizing the configuration of the application system testing process and the application system testing method. The implementation scheme of the solution provided by the device is similar to the implementation scheme recorded in the method, so the configuration of one or more application system test flows and the specific limitation in the embodiment of the application system test device provided below can be referred to the configuration of the application system test flow and the limitation of the application system test method in the above description, and are not repeated here.
In one embodiment, as shown in fig. 10, a configuration apparatus for an application system test flow is provided, including:
the environment determining module 1001 is configured to determine an execution environment corresponding to a version delivery schedule of an application system to be tested;
a function configuration module 1002, configured to determine a plurality of functions configured correspondingly according to version delivery standards of the application system to be tested;
the template obtaining module 1003 is configured to obtain existing test case templates corresponding to various functions respectively according to the various functions configured in the application system to be tested;
A body determination module 1004 for determining a case body in an existing test case template;
the verification setting module 1005 is configured to determine a test result check point corresponding to a functional verification requirement of the application system to be tested;
the flow configuration module 1006 is configured to configure a test flow of the application system to be tested based on the execution environment, the multiple functions, the case body, and the test result check points.
In one embodiment, the function configuration module 1002 is further configured to determine a plurality of functions to be configured of the application system to be tested; respectively obtaining function parameters corresponding to each function to be configured; and correspondingly inputting each functional parameter into a designated field of a parameter module in the application system to be tested.
In one embodiment, the template obtaining module 1003 is further configured to generate function codes corresponding to various functions respectively according to various functions configured in the application system to be tested; according to the function codes, inquiring the existing test case templates corresponding to the functions in the test case template information base; and acquiring the existing test case templates obtained by query.
In one embodiment, the main body determining module 1004 is further configured to perform parameterization on the fields in the existing test case template to obtain a parameter field set corresponding to the existing test case template; identifying a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function; a case body in the existing test case template is determined based on the subset of target parameter fields.
In one embodiment, the configuration device of the application system test flow further includes a data reduction module, configured to extract the test data imported in the test flow when the test flow of the application system to be tested is ended; performing data reduction processing on the test data, and performing integrity verification on the test data subjected to the data reduction processing; and under the condition that the test data subjected to the data reduction processing passes the integrity verification, confirming that the test data is completely recovered.
In one embodiment, the configuration device of the application system test flow further includes a loss prompting module, configured to identify lost data existing in the test data subjected to the data reduction processing if the test data subjected to the data reduction processing fails to pass the integrity verification; and generating corresponding data loss prompt information according to the data type and the data quantity of the lost data.
In one embodiment, as shown in fig. 11, there is further provided an application system testing apparatus, including:
the flow obtaining module 1101 is configured to obtain a test flow of an application system to be tested according to the application system to be tested selected by the user; the test flow is configured according to the configuration method of the application system test flow described in the foregoing embodiment;
The flow execution module 1102 is configured to trigger execution of a test flow according to a test instruction of a user or a preset test period;
the function loading module 1103 is configured to load multiple functions configured correspondingly according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested;
the result verification module 1104 is configured to execute a test result verification point corresponding to a functional verification requirement of the application system to be tested according to the existing test case template and the case main body in the existing test case template corresponding to each function respectively, so as to obtain a verification result;
the report generating module 1105 is configured to generate a case execution report corresponding to the application system to be tested according to the verification result.
The configuration device of the application system testing flow and each module in the application system testing device can be fully or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 12. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store existing test case template data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, implements a configuration of an application system test flow, application system test method.
It will be appreciated by those skilled in the art that the structure shown in fig. 12 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (17)

1. A method for configuring a test flow of an application system, the method comprising:
determining an execution environment corresponding to a version delivery schedule of an application system to be tested;
determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested;
acquiring existing test case templates corresponding to various functions respectively according to the various functions configured in the application system to be tested;
Determining a case body in the existing test case template;
determining a test result check point corresponding to the functional check requirement of the application system to be tested;
and configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
2. The method of claim 1, wherein the determining the plurality of functions correspondingly configured according to the version delivery criteria of the application system under test comprises:
determining a plurality of functions to be configured of the application system to be tested;
respectively obtaining function parameters corresponding to each function to be configured;
and correspondingly inputting each functional parameter into a designated field of a parameter module in the application system to be tested.
3. The method according to claim 1, wherein the obtaining, according to the various functions configured in the application system to be tested, existing test case templates corresponding to the various functions respectively includes:
generating function codes respectively corresponding to various functions according to the various functions configured in the application system to be tested;
according to the function codes, inquiring the existing test case templates corresponding to the functions in a test case template information base;
And acquiring the existing test case templates obtained by query.
4. The method of claim 1, wherein the determining the case body in the existing test case template comprises:
performing parameterization processing on fields in the existing test case template to obtain a parameter field set corresponding to the existing test case template;
identifying a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function;
and obtaining a case main body in the existing test case template according to the target parameter field subset.
5. The method according to any one of claims 1 to 4, further comprising:
under the condition that the test flow of the application system to be tested is finished, extracting the imported test data in the test flow;
performing data reduction processing on the test data, and performing integrity verification on the test data subjected to the data reduction processing;
and under the condition that the test data subjected to the data reduction processing passes the integrity verification, confirming that the test data is completely recovered.
6. The method of claim 5, wherein the method further comprises:
Identifying lost data existing in the data-reduction-processed test data under the condition that the data-reduction-processed test data fails the integrity verification;
and generating corresponding data loss prompt information according to the data type and the data quantity of the lost data.
7. An application system testing method, the method comprising:
acquiring a test flow of an application system to be tested according to the application system to be tested selected by a user; the test flow is configured according to the configuration method of the application system test flow of any one of claims 1 to 6;
triggering the execution of the test flow according to the test instruction of the user or a preset test period;
loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested;
according to the existing test case templates corresponding to various functions and the case main bodies in the existing test case templates, executing test result check points corresponding to the functional check requirements of the application system to be tested to obtain a check result;
And generating a case execution report corresponding to the application system to be tested according to the verification result.
8. A configuration apparatus for an application system test flow, the apparatus comprising:
the environment determining module is used for determining an execution environment corresponding to the version delivery schedule of the application system to be tested;
the function configuration module is used for determining a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested;
the template acquisition module is used for acquiring the existing test case templates corresponding to the various functions respectively according to the configured functions in the application system to be tested;
a body determination module for determining a case body in the existing test case template;
the verification setting module is used for determining a test result check point corresponding to the functional verification requirement of the application system to be tested;
and the flow configuration module is used for configuring the test flow of the application system to be tested based on the execution environment, the multiple functions, the case main body and the test result check points.
9. The apparatus of claim 8, wherein the function configuration module is further configured to determine a plurality of functions to be configured of the application system to be tested; respectively obtaining function parameters corresponding to each function to be configured; and correspondingly inputting each functional parameter into a designated field of a parameter module in the application system to be tested.
10. The apparatus of claim 8, wherein the template obtaining module is further configured to generate function codes corresponding to respective functions according to the functions configured in the application system to be tested; according to the function codes, inquiring the existing test case templates corresponding to the functions in a test case template information base; and acquiring the existing test case templates obtained by query.
11. The apparatus of claim 8, wherein the body determination module is further configured to perform parameterization on fields in the existing test case template to obtain a set of parameter fields corresponding to the existing test case template; identifying a target parameter field subset from the parameter field set according to the field to be filled of the corresponding function; and determining a case body in the existing test case template according to the target parameter field subset.
12. The apparatus according to any one of claims 8 to 11, further comprising a data reduction module for extracting test data imported in a test flow of the application system under test in case the test flow is over; performing data reduction processing on the test data, and performing integrity verification on the test data subjected to the data reduction processing; and under the condition that the test data subjected to the data reduction processing passes the integrity verification, confirming that the test data is completely recovered.
13. The apparatus of claim 12, further comprising a loss hint module to identify lost data present in the data-reduction-processed test data if the data-reduction-processed test data fails the integrity verification; and generating corresponding data loss prompt information according to the data type and the data quantity of the lost data.
14. An application testing apparatus, the apparatus comprising:
the flow acquisition module is used for acquiring the test flow of the application system to be tested according to the application system to be tested selected by the user; the test flow is configured according to the configuration method of the application system test flow of any one of claims 1 to 6;
the flow execution module is used for triggering the execution of the test flow according to the test instruction of the user or a preset test period;
the function loading module is used for loading a plurality of functions correspondingly configured according to the version delivery standard of the application system to be tested in an execution environment corresponding to the version delivery schedule of the application system to be tested;
the result verification module is used for executing test result checkpoints corresponding to the functional verification requirements of the application system to be tested according to the existing test case templates and the case main bodies in the existing test case templates respectively corresponding to various functions to obtain a verification result;
And the report generation module is used for generating a case execution report corresponding to the application system to be tested according to the verification result.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 or claim 7 when the computer program is executed.
16. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 6 or claim 7.
17. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 6 or claim 7.
CN202311423647.0A 2023-10-30 2023-10-30 Configuration of application system test flow, application system test method and device Pending CN117271367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311423647.0A CN117271367A (en) 2023-10-30 2023-10-30 Configuration of application system test flow, application system test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311423647.0A CN117271367A (en) 2023-10-30 2023-10-30 Configuration of application system test flow, application system test method and device

Publications (1)

Publication Number Publication Date
CN117271367A true CN117271367A (en) 2023-12-22

Family

ID=89216054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311423647.0A Pending CN117271367A (en) 2023-10-30 2023-10-30 Configuration of application system test flow, application system test method and device

Country Status (1)

Country Link
CN (1) CN117271367A (en)

Similar Documents

Publication Publication Date Title
CN104252481A (en) Dynamic check method and device for consistency of main and salve databases
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN105868956A (en) Data processing method and device
CN112948233A (en) Interface testing method, device, terminal equipment and medium
CN112527666A (en) Automatic testing method and device for business process and computer equipment
CN113220597B (en) Test method, test device, electronic equipment and storage medium
CN111221721B (en) Automatic recording and executing method and device for unit test cases
CN111061733A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112948473A (en) Data processing method, device and system of data warehouse and storage medium
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN112651716A (en) Data processing method, device and storage medium
CN117271367A (en) Configuration of application system test flow, application system test method and device
CN116126846A (en) Data quality detection method, device and medium
CN114860608A (en) Scene construction based system automation testing method, device, equipment and medium
CN113254352A (en) Test method, device, equipment and storage medium for test case
CN116795723B (en) Chain unit test processing method and device and computer equipment
CN116010349B (en) Metadata-based data checking method and device, electronic equipment and storage medium
CN112329124A (en) CAE model error checking method and device, computer equipment and storage medium
CN117149820B (en) Borrowing operation detection method, device, equipment and storage medium
CN112948480B (en) Data extraction method, device, electronic equipment and storage medium
CN117591431A (en) Test method, test device, computer equipment and storage medium
CN118278887A (en) Multi-level data processing method, device, computer equipment and storage medium
CN114048975A (en) Performance assessment method, system, equipment and storage medium
CN117591404A (en) Abnormal interface determining method, device and readable storage medium
CN116010264A (en) Code update version tracing method, device, system and computer equipment

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