Business testing method, device and system

By parsing the software development toolkit to generate business test templates and interacting with external service components, it solves the problem of uncontrollable third-party platform development and achieves timely business testing and high accuracy of commercial banking products.

CN111221739BActive Publication Date: 2024-09-03CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010026983.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-10
Publication Date
2024-09-03
Estimated Expiration
2040-01-10

AI Technical Summary

Technical Problem

The development and testing process of third-party platforms in the existing technology is uncontrollable, resulting in the inability to fully complete business testing when commercial banking products are launched.

Method used

By parsing the software development toolkit, the business test template is generated, and the business test message is used to interact with external service components, process test data, and implement business testing, avoiding waiting for third-party platform development functions.

Benefits of technology

It realizes the timely completion of business testing without being restricted by third-party platform development, and improves the accuracy and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111221739B
    Figure CN111221739B
Patent Text Reader

Abstract

The present invention discloses a business testing method, device and system, and relates to the field of computer technology. A specific implementation of the method includes: receiving and parsing a software development kit; generating a business test template for the software development kit according to the parsed result; determining test data related to the business test template; generating a business test message for the business test template, the business test message interacts with an external service component, and processes the test data to implement business testing. This implementation can complete business testing based on the software development kit, so that business testing can be completed in a timely manner without being constrained by the development of a third-party platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a service testing method, device and system. Background Art

[0002] When exporting commercial bank products and their software development kits to third-party platforms, a series of business tests need to be completed. These business tests rely on the construction of third-party platform functions, that is, only when the third-party platform completes the development of the predetermined functions according to the software development kit provided by the commercial bank can the business tests be truly carried out.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] Since the development and testing process of the third-party platform is uncontrollable, business testing cannot be fully completed when the product is launched. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a service testing method, device and system, which can complete service testing based on a software development tool kit, so that the service testing can be completed in time without being constrained by third-party platform development.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a service testing method is provided, comprising:

[0007] Receive and parse the software development kit;

[0008] Generate a business test template for the software development kit based on the parsing results;

[0009] Determine the test data related to the business test template;

[0010] Generate business test messages for business test templates, interact with external service components through business test messages, and process test data to implement business testing.

[0011] Preferably,

[0012] The service testing method further includes: storing a plurality of parameter configuration sets, each parameter configuration set including basic information and a plurality of field parameters matching the basic information, wherein the basic information indicates any one or more of a type, a language, and a package name;

[0013] Parse SDK, including:

[0014] Get basic information about the software development kit;

[0015] Searching for a target parameter configuration set that matches the basic information among the stored multiple parameter configuration sets;

[0016] Extract interface fields based on multiple field parameters in the target parameter configuration set.

[0017] Preferably,

[0018] Generating business test templates for the SDK includes:

[0019] Parse the business module information corresponding to the interface field;

[0020] Generate a corresponding business test template for the business module information according to the preset data dictionary and the preset template type.

[0021] Preferably,

[0022] The service testing method further comprises: receiving a service processing flow configured by a user, the service processing flow indicating a plurality of selected service modules;

[0023] Generate corresponding business test templates for business module information, including:

[0024] A corresponding business test template is generated for the business module information corresponding to each selected business module.

[0025] Preferably,

[0026] Generate service test messages for service test templates, including:

[0027] According to the preset data dictionary, the corresponding data items are matched for the business test template;

[0028] Verify whether the test data corresponding to the data item meets the requirements. If yes, assemble the test data into the corresponding data item and assemble the service test message based on the data item;

[0029] Interact with external service components through business test messages and process test data, including:

[0030] Send business test messages to external service components;

[0031] Receive the processing results of the business test message returned by the external service component.

[0032] Preferably,

[0033] The business testing method further comprises:

[0034] Identify common elements required for external service components;

[0035] Assemble common elements into corresponding data items.

[0036] Preferably,

[0037] The business testing method further comprises:

[0038] Obtain the configuration information of the terminal on which the business test template relies;

[0039] Generate business test templates for the SDK, including:

[0040] Generate a business test template that matches the configuration information for the software development kit.

[0041] Preferably,

[0042] The business process flow further indicates the connection relationship between multiple selected business modules;

[0043] Determine the test data related to the business test template, including:

[0044] For each of the multiple selected business modules, execute:

[0045] Determine whether the selected business module belongs to the starting business module in the business processing flow. If so, receive the test data set by the user for the selected business module; otherwise, determine the processing result corresponding to the last selected business module corresponding to the selected business module in the business processing flow as the test data for the selected business module.

[0046] Preferably,

[0047] The business testing method further comprises:

[0048] Receive response messages sent by external service components;

[0049] Extract the processing result from the response message according to the information of the software development kit;

[0050] Record and provide processing results to users;

[0051] Generate a test report based on the recorded processing results.

[0052] According to a second aspect of an embodiment of the present invention, a service testing device is provided, comprising: an interaction module, a template generation module and a testing module, wherein:

[0053] An interaction module, for receiving a software development kit;

[0054] The template generation module is used to parse the software development kit received by the interaction module, and generate a business test template for the software development kit according to the parsing result;

[0055] The test module is used to determine the test data related to the business test template; generate corresponding business test messages for the business test template, interact with external service components through business test messages, and process test data to realize business testing.

[0056] According to a third aspect of an embodiment of the present invention, a service testing system is provided, comprising: the above-mentioned service testing device and a service component.

[0057] One embodiment of the above invention has the following advantages or beneficial effects: by parsing the software development kit, generating a business test template for the software development kit according to the parsing result, and generating a corresponding business test message for the business test template, interacting with the external service component through the business test message, processing the test data, and realizing the business test. Therefore, the solution provided by the embodiment of the present invention can be tested without waiting for the third-party platform to develop functions, so that the business test can be completed in time without being constrained by the development of the third-party platform. In addition, since the business test template is formed based on the software development kit, and the business test message interacts with the external service component during the test, the entire test can truly reflect the business processing scenario. Therefore, the solution provided by the embodiment of the present invention can effectively improve the accuracy of the business test without being constrained by the third-party platform.

[0058] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0060] Figure 1 is a schematic diagram of the main process of a service testing method according to an embodiment of the present invention;

[0061] Figure 2 is a schematic diagram of the main process of generating a service test template according to an embodiment of the present invention;

[0062] Figure 3 is a schematic diagram of the main process of a service testing method according to another embodiment of the present invention;

[0063] Figure 4 is a schematic diagram of the main process of generating a message for a service test template according to an embodiment of the present invention;

[0064] Figure 5 is a schematic diagram of the main process of interacting with a service component through a message according to an embodiment of the present invention;

[0065] Figure 6is a schematic diagram of the structure of an interactive interface according to an embodiment of the present invention;

[0066] Figure 7 is a schematic diagram of the main process of the service testing method according to an embodiment of the present invention;

[0067] Figure 8 is a schematic diagram of main modules of a service testing device according to an embodiment of the present invention;

[0068] Fig. 9 is a schematic diagram of main devices of a service test system according to an embodiment of the present invention;

[0069] Fig.10 is a schematic diagram of main devices of a service test system according to an embodiment of the present invention;

[0070] Fig.11 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0071] Fig.12 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0072] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0073] At present, promoting commercial banks' financial products to third-party platforms is the top priority for breaking through the C-end (C-end refers to the client of commercial banks' innovation and promotion) in the current Internet environment. With the growing demand for overseas projects (overseas projects refer to products exported by commercial banks to third-party platforms, and the third-party platforms choose appropriate access modes for promotion), a large number of overseas projects rely on the construction of third-party platform functions. In this scenario, for the developed overseas projects, business testing can only be carried out after the third party completes the development of the predetermined functions. However, the development and testing process of the third-party platform is usually not subject to the constraints of commercial banks, which results in the inability to fully complete business testing when the overseas projects / financial products are launched.

[0074] A software development kit (SDK) is generally a collection of development tools used by software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. For example, a commercial bank provides a collection of development tools that can be connected to the commercial bank's transaction system for third-party platform development and use.

[0075] A business test template is a template that can be used for terminals and can simulate clients / plug-ins developed by third parties based on software development kits.

[0076] Test data refers to data that simulates business, such as registered account information, transaction data, etc.

[0077] The external service component refers to the commercial bank open platform, that is, the platform provided by the commercial bank for cooperation with third parties.

[0078] A message is a unit of data exchanged and transmitted in a network, that is, a block of data to be sent by a station at one time. A message contains the complete data information to be sent, and its length is very inconsistent, unlimited and variable.

[0079] Figure 1 This is a service testing method according to an embodiment of the present invention. Figure 1 As shown, the service testing method may include the following steps:

[0080] S101: receiving and parsing a software development kit;

[0081] S102: Generate a business test template for the software development kit according to the parsing result;

[0082] S103: Determine test data related to the service test template;

[0083] S104: Generate a service test message for the service test template, interact with the external service component through the service test message, process the test data, and implement the service test.

[0084] That is, by using the SDK provided to the third party as a blueprint, a business test template is generated, the third party is simulated to determine the test data according to the fields of the generated business test template, a business test message is generated for the business test template, and the test data is processed by interacting with the service component through the business test message; therefore, the solution provided by the embodiment of the present invention can be tested without waiting for the third-party platform to develop functions, so that the business test can be completed in time without being constrained by the development of the third-party platform. In addition, since the business test template is formed based on the software development toolkit, and the business test template interacts with the external service component during the test, so that the entire test can truly reflect the business processing scenario, therefore, the solution provided by the embodiment of the present invention can effectively improve the accuracy of the test without being constrained by the third-party platform.

[0085] In addition, the service testing method provided by the embodiment of the present invention is not coupled with the SDK itself, can be freely expanded, and can also perform stress testing and non-functional testing.

[0086] Compared with the existing method of setting a baffle to simulate the response of the access party after initiating a transaction (which can solve the defects of the SDK itself but cannot discover the defects of the mid- and back-end systems), the solution provided by the embodiment of the present invention is to generate a business test message for the business test template, interact with the external service component through the business test message, and realize flexibly configurable end-to-end testing.

[0087] In one embodiment of the present invention, the service testing method further comprises: storing a plurality of parameter configuration sets, each parameter configuration set comprising basic information and a plurality of field parameters matching the basic information, wherein the basic information indicates any one or more of a type, a language, and a package name; accordingly,

[0088] A specific implementation of parsing a software development kit may include: obtaining basic information of the software development kit; searching for a target parameter configuration set that matches the basic information among multiple stored parameter configuration sets; and extracting interface fields based on multiple field parameters in the target parameter configuration set.

[0089] For the external service component being the open platform of a commercial bank, in order to provide a variety of different products to third parties to complete transactions with the open platform of the commercial bank, commercial banks usually provide two different types of SDKs, namely general SDK and dedicated SDK. Among them, the general SDK is a basic development kit for third-party access, which defines the general services and parameters for third-party access. The dedicated SDK is a software development kit for a specific product released by the open platform, which usually contains all the interfaces of the product service. Therefore, the SDK parsing involved in the embodiment of the present invention includes general SDK parsing and dedicated SDK parsing. The general SDK parsing is generally used to parse and obtain the public interface domain, such as obtaining the general message format and content of a commercial bank by parsing the general SDK; and the service-specific SDK presents two different modes based on the page mode SDK and the interface mode SDK according to the different needs of the third party, but both can be parsed by parsing the service-specific SDK to obtain the interface file with the corresponding function. In addition, the general SDK also includes a series of test parameter configuration information, such as sandbox address, certificate path, public key and private key information, domain name certificate path, connection establishment timeout, reading corresponding timeout, etc. These test parameters can also be stored in a unified test parameter configuration library, that is, each of the above parameter configuration sets stores the configuration parameters corresponding to the SDK.

[0090] Since 90% of SDKs are currently developed in JAVA mode, the embodiment of the present invention takes the JAVA-based SDK parsing as an example to illustrate the specific implementation of the SDK parsing. By completing the metadata configuration (the metadata configuration is data describing SDK-related information, or intermediary data. Provide basic information for subsequent SDK parsing. One metadata configuration corresponds to a parameter configuration set, that is, according to the name of the SDK obtained, the target parameter configuration set matching the name is searched for the SDK, and the interface field is extracted through the field parameters in the target parameter configuration set), the target parameter configuration set can be used to complete the configuration of parameters such as SDK type, language, package name, and field names that affect the internal logic of the system (such as error code, error description, transaction status, transaction code, serial number, etc.), and save them in the database. In addition, the above metadata configuration can also be completed manually. That is to say, by reading the basic information of the SDK stored in the database, and then obtaining the class name, method name, and interface field in the SDK through JAVA reflection, the SDK parsing is completed. For example, the SDK of an account service provides multiple different transactions such as account opening, identity verification, and SMS verification. By obtaining the name of the SDK and obtaining the interface fields of all transactions through package scanning and JAVA reflection, the necessary data / interface fields required for generating a transaction test template can be generated by configuring the field parameters in the target parameter set.

[0091] In one embodiment of the present invention, the specific implementation method of generating a business test template for a software development kit may include: extracting business module information corresponding to an interface field configured with field parameters; generating a corresponding business test template for the business module information according to a preset data dictionary and a preset template type. The business module refers to a collection of operations, parameters, fields, etc. required to complete a business. The data dictionary refers to a bank-wide specification adopted by a commercial bank, which defines the Chinese, English, data item number, data length, and other formats for each noun used within the bank. The preset template type is selected by the user according to his own habits or needs, and may include: xml format, json format, excel format, txt format, HTML format, H5 interface format, etc.

[0092] In one embodiment of the present invention, the above-mentioned business testing method further includes: receiving a business processing flow configured by a user, the business processing flow indicating a plurality of selected business modules; accordingly, the specific implementation method of generating a corresponding business test template for the business module information includes: generating a corresponding business test template for the business module information corresponding to each selected business module. The business processing flow configured by the user can select the connection relationship between various business modules for the user, such as the user connects the account registration business module with the information verification business module through a directed arrow, so that the business processing flow indicates from the registration business to the information verification business. An SDK can usually include many business modules, one or more of which can be developed according to the needs of a third party, and the selected business module refers to the module selected by the user for business processing. The specific selection and configuration process are all implemented by the user according to the needs. Therefore, the solution provided in the embodiment of the present invention can realize the free generation of business test templates in various forms based on the business flow configured by the user.

[0093] Through the above process, the business test content and the formed message format in the SDK are decoupled from the test case. The SDK can be modified without repeated configuration, and only repeated testing is required; therefore, the solution provided by the embodiment of the present invention has strong scalability.

[0094] The entire solution provided by the embodiment of the present invention only requires importing the SDK and filling in basic information such as test parameters to complete the test. The generation of business test templates, message generation, assembly, and sending are all completed automatically, greatly improving the test efficiency, and no manual intervention is required, with strong automation.

[0095] In one embodiment of the present invention, the above-mentioned service testing method further includes: receiving the configuration information of the terminal on which the service test template input by the user relies; accordingly, the specific implementation method of generating the service test template for the software development kit may include: generating a service test template matching the configuration information for the software development kit. This process realizes the terminal adaptation for the service test, and the specific implementation method of obtaining the configuration information may include the adaptation of the operating system installed on the terminal, the terminal parsing, the terminal user usage permission adaptation and the terminal page format adjustment, so as to generate the service test template delivery file suitable for different terminals and different operating systems. The operating system adaptation needs to adapt the test template based on different operating systems (such as Linux operating system, Windows operating system or Apple operating system, etc.); the terminal parsing can be adapted according to different terminals (such as based on PC or based on mobile phone, etc.); the terminal user usage permission adaptation can be adapted by obtaining the terminal camera permission, recording permission, file storage and other permissions; the terminal page format adjustment is adjusted based on different window format sizes, font format sizes, etc. The specific process of the adaptation is to adjust the adaptation information related to the terminal in the service test template according to the configuration information of the terminal obtained.

[0096] In summary, the main process of generating business test template steps can be as follows Figure 2 As shown, the following steps are included:

[0097] S201: SDK analysis;

[0098] The SDK parsing step mainly includes: general SDK parsing, dedicated SDK parsing and test parameter configuration, wherein the general SDK parsing is mainly to parse the public interface / interface domain, and the dedicated SDK parsing is to parse the business-specific interface, field, etc. The parsing process is mainly to configure the corresponding test parameters for the interface field, field, etc., to ensure the integrity of the interface and attribute information such as field information corresponding to different business processing modules. The parsing process has been described in detail above and will not be repeated here.

[0099] S202: template generation;

[0100] In the template generation process of this step, a corresponding business test template is generated for each business processing module. Specifically, the template type selected by the user is the file parsed by the SDK in the above step S201, the template type is matched, and the information contained in each business processing module in the SDK parsed in step S201 is obtained. According to the data dictionary, the information contained in each business processing module in the SDK is parsed for template elements to achieve module element management in the business processing module. The template element management is mainly to meet the requirements of the service component / to be recognized by the service component, and to convert the template elements into expressions that can be recognized by the service component. The business test template corresponding to the matched template type corresponding to each business processing module is delivered. That is, this step includes template type matching, determining the information parsed by the SDK, and template element management to obtain the business test template corresponding to the matched template type. There is no strict order between template type matching and determining the information parsed by the SDK.

[0101] S203: terminal adaptation;

[0102] The step S203 may include: operating system adaptation, terminal analysis (basic information of the terminal such as mobile phone, tablet, PC, etc., to determine the type of the terminal), terminal user permission acquisition (obtaining camera usage permission, photo gallery permission, notepad permission, etc.) and terminal page adjustment (adjusting the displayed page size according to the size of the terminal). There is no strict order among operating system adaptation, terminal analysis, terminal user permission acquisition and terminal page adjustment. Figure 2 Only one implementation is given as an example.

[0103] S204: Process concatenation.

[0104] The existence of this step is mainly determined by whether the user has set up a business processing flow. It determines whether a transaction flow connection is configured. If so, the configured transaction flow connection is parsed and the business test templates before and after the transaction are managed. For example, the data processed by business test template 1 is output to business test template 2, etc. These business test transaction processes can be stored in the transaction process management configuration library for subsequent direct calls.

[0105] In order to enable the business test template to interact with the service component and be recognized by the service component, it is necessary to generate a message that can be recognized by the service component for the business test template.

[0106] In one embodiment of the present invention, Figure 3 As shown, after determining the test data related to the service test template, the service test service may further include:

[0107] S301: Matching corresponding data items for the business test template according to a preset data dictionary;

[0108] The specific implementation of this step can be, based on the template element information contained in the business test template generated above, combined with the enterprise-level data dictionary (i.e., data dictionary), matching the English fields of the data items, and obtaining the global information of the data items (including the data item number, the Chinese name of the data item, the data item attributes, the field length, and the data item description, etc.); generally speaking, a commercial bank has its own dedicated data dictionary to convert the template element information into a standard format. That is, the data item format conversion in this step is to convert the interface in the business test template into a format that complies with the specification based on the data dictionary (such as converting the English name of the data item into camel case format, etc.).

[0109] S302: Check whether the test data corresponding to the data item meets the requirements. If yes, execute S303; otherwise, execute S304;

[0110] The verification in this step is mainly to verify the data items, and verify the test element information in the business test template according to the basic elements of the data items (such as field attributes, field length, field format, etc.).

[0111] S303: Assemble the test data into corresponding data items, and assemble the service test message based on the data items, and execute S305;

[0112] S304: prompting that there is a problem with the test and ending the current process;

[0113] S305: Sending the service test message to the external service component;

[0114] S306: Receive the processing result of the service test message returned by the external service component.

[0115] In one embodiment of the present invention, the above method further includes: determining common elements required by the external service component; and assembling the common elements into corresponding data items.

[0116] In one embodiment of the present invention, the business processing flow further indicates the connection relationship between multiple selected business modules; accordingly, the specific implementation method of determining the test data related to the business test template includes: for each selected business module among the multiple selected business modules, executing: determining whether the selected business module belongs to the starting business module in the business processing flow, if so, receiving the test data set by the user for the selected business module; otherwise, determining the processing result corresponding to the last selected business module corresponding to the selected business module in the business processing flow as the test data of the selected business module.

[0117] In addition, in one embodiment of the present invention, the above method may further include: message assembly, which consists of two parts: general domain message assembly and message body assembly. Among them, the general domain message assembly mainly assembles the general interface domain to form a general domain message that conforms to the format specified by the commercial bank. For example, the general domain of a commercial bank contains multiple entity identifiers (such as domestic entities, Sino-German entities, Hong Kong entities, etc.), transaction types (such as positive transactions, reversal transactions, etc.), transaction institutions, global event tracking numbers (i.e. transaction serial numbers, which can be composed of machine classification numbers that generate the serial numbers, machine-generated random numbers, and transaction date and time) and other general elements. These contents need to be assembled for the test business template to meet the needs. The message body assembly is based on whether there is a user-configured business processing flow such as transaction flow concatenation in the previous business test template generation step. If so, it is concatenated according to the user-configured transaction flow, thereby assembling into a transaction concatenation message. The transaction concatenation message is mainly based on the transaction processing flow, and the processing result generated by the service component for the message corresponding to the current business test template is used as the data input of the message corresponding to the next business test template corresponding to the current business test template, and the processing result generated by the service component for the message corresponding to the current business test template is entered into the message corresponding to the next business test template corresponding to the current business test template.

[0118] In one embodiment of the present invention, the above-mentioned business testing method may further include: message format conversion. The message format conversion is mainly to enable the message corresponding to the business test template to be recognized by the service component. That is, the message format conversion is responsible for converting the formed message into a message format that complies with the SDK regulations. First, the message format needs to be parsed. For example, the message format specified by the SDK of a commercial bank only supports two formats, xml and json. In this case, the message conversion needs to be implemented through the format conversion service; secondly, some special character formats (such as amount, date and time entered by the user, etc.) need to be converted; finally, a message that complies with the specification is generated for subsequent use.

[0119] In summary, after the above-mentioned service test template generation step, it can be further included to generate a corresponding message for the service test template. Figure 4 As shown, the step of generating a message for a service test template may include:

[0120] S401: data dictionary parsing;

[0121] This step matches the corresponding data for the data items in the business test template through the enterprise-level data dictionary configured by the commercial bank. In order to ensure that the data items comply with the specifications, the data items need to be verified. The verification data items mainly verify the field length, field format, etc. of the data items, thereby completing the conversion of the data item format in the business test template.

[0122] S402: message format conversion;

[0123] The message format conversion is responsible for converting the formed message into a message format that complies with the SDK regulations. This step mainly includes format parsing, format conversion, and special character formatting, so as to finally generate a message corresponding to each business test template. The format parsing is mainly to parse out the format included in the SDK obtained in the previous test template generation step, and the format conversion is to convert the business test template into a message in the parsed format. The conversion process is completed through a preset format converter, which can include an xml format converter, a json format converter, and other format converters. Special character formatting mainly converts special characters such as amount, date, time, etc. into a format that can be recognized by the service component.

[0124] S403: Message assembly.

[0125] The message assembly is to assemble the message generated by the message format conversion in the above step S402, mainly including the general domain message assembly and the message body message assembly, and to determine whether the message is completed by judging whether a transaction process is set. If so, the message is determined to be completed. Otherwise, the pre- and post-transaction report files are assembled. The specific process of the pre- and post-transaction report file assembly is mainly to input the current processing result generated by the service component processing the current message in the transaction process into the next message corresponding to the current message, so as to output the next message to the service component to process the next message. Therefore, the above message assembly realizes the parsing and assembly of the content of the pre-transaction message and the subsequent transaction message to form a test template element based on the test template type. For example, the account opening transaction provided by a commercial bank for a third party is divided into multiple steps such as existing account check, identity verification, customer information entry and bank card opening. By parsing the transaction process, the necessary elements of each transaction service business test message corresponding to the test template format are generated. There is no need to display the non-essential elements within each transaction process (such as the card information required when entering customer information, which can be provided by the card pre-inspection service of the previous transaction).

[0126] In addition, when testers fill in test data / generate business test templates using different templates, the SDK parameters are parsed to assemble the general domain and message domain, and the message format conversion, message field verification and format processing are completed according to the SDK specifications, completely shielding the testers from understanding the technical details of the SDK, thereby shifting the focus to business test elements, and testers do not need to do any technical processing.

[0127] In summary, combined with the above business test template generation steps and message generation steps, business test templates and business messages can be automatically generated according to the transaction interface and interface fields provided by the SDK, and business test templates and business messages support different formats such as XML, H5, HTML, and JSON. Template modification can be automatically completed in the SDK without manual intervention. In addition, according to the defined fields in the transaction interface provided by the SDK, the data dictionary in the row can be automatically matched to generate a message format that meets the specifications, and the fields filled in by the business personnel are combined to automatically generate information such as serial numbers, and generate the final message to interact with external service components.

[0128] In the process of business testing, in addition to business test template generation and message generation, the step of interacting with service components through messages is also the key to completing business testing. The step of interacting with service components through messages mainly sends and receives the messages generated by the above message generation step according to the parameters set by the customer.

[0129] The specific process of the interaction with the service component through the message is as follows Figure 5 As shown, the following steps may be included:

[0130] S501: parameter analysis;

[0131] The parameter parsing in this step mainly involves some parameters required for sending and receiving messages contained in the data items in the message. The parameter parsing in this step mainly parses the message sending mode from two dimensions, namely, sending parameter parsing and transaction process parameter parsing. The sending parameters mainly include the frequency, interval time, working cycle and other parameters of sending messages, which are mainly used to test the non-functional characteristics of the backend service. For example, a commercial bank provides online consumption services to third parties. The actual consumption scenario peaks at 12:00-15:00 and 18:00-21:00, and the highest TPS is 200. At this time, after the business personnel investigate and learn about the actual business scenario, they set the test parameters to 12:00-15:00 and 18:00-21:00 to automatically initiate the test, and perform stress testing on the backend service (service component) based on the highest 200 TPS that appears every 10 minutes. The transaction process parameter parsing is responsible for parsing the transaction process set by the user, automatically assigning values ​​to specific fields of subsequent transactions based on the return message of the previous transaction, or completing the acquisition of specific fields through user breakpoints. For example, the account opening transaction provided by a commercial bank for a third party is divided into three steps: binding card pre-check, customer information entry and SMS verification. Among them, customer information entry requires the card information returned by the binding card pre-check step, and SMS verification requires the SMS verification code entered by the user. These two parts of information can be automatically obtained through the parameter parsing step, or filled in by the tester at the breakpoint. Therefore, this step also includes judging whether the transaction process is included. If so, judging whether it contains the need for user interruption. If so, obtaining the interruption instruction issued by the user and obtaining the data entered by the user during the interruption; otherwise, parsing the previous transaction response (the previous transaction response is the processing result generated by the service component for the previous message corresponding to the current transaction message in the transaction process); if the transaction process is not included, directly obtaining the parameters filled in by the tester.

[0132] S502: message sending;

[0133] This step mainly sends the message generated by the above message generation step to the service component according to the parameters parsed from the parameters. This step specifically includes four steps: establishing a connection, message encryption, TOKEN acquisition, and message sending. The connection establishment is mainly based on the configuration in the SDK to complete the establishment of a connection with the commercial bank gateway and initialize the parameters; message encryption uses the public key provided by the commercial bank to encrypt the sent message; TOKEN acquisition completes the first access to the commercial bank gateway and obtains the TOKEN. When the TOEKN expires, it automatically tries to re-acquire it; finally, according to the agreement in the SDK, complete the message sending, such as HTTP request.

[0134] S503: Message reception.

[0135] This step mainly includes receiving the response message sent by the external service component; extracting the processing result from the response message according to the information of the software development kit; recording and providing the processing result to the user; and generating a test report according to the recorded processing result.

[0136] The specific implementation process may also include: receiving the response message from the commercial bank gateway, automatically extracting technical information such as error code and error message according to the configuration in the SDK; automatically completing the disassembly of the response message, composing business elements by matching with the commercial bank data dictionary, returning it to the user interaction module and recording it in the cache or database. For a round of completed testing, a test report is generated based on the test records in the cache or database and delivered to the interactive interface that interacts with the user.

[0137] In addition, in one embodiment of the present invention, the above service testing method may further include: providing an interactive interface for the user, such as Figure 6 As shown, the interactive interface provided for the user can be composed of a user interface 601, a template library 602, and a message display 603. It mainly provides the user with a test wizard, a template library, and a message display. Therefore, the interactive interface is responsible for interacting with the user on the one hand, and for delivering messages generated by the service component and data generated by the interaction between the message and the service component to the user on the other hand. Thirdly, it is responsible for storing the parameters set by the user, the business test template generated by the business test template generation step, and the final test results.

[0138] It is worth noting that the above-mentioned test wizard may include receiving user login information, SDK import, receiving transaction process configuration and receiving test parameter configuration. Among them, the received user login information may include initializing user configuration, receiving user template selection and receiving user login information; the transaction process configuration may receive the transaction process configured by the user and perform corresponding message mapping according to the transaction process configured by the user. Receiving the test parameter configuration may specifically be receiving the parameters entered / filled in by the user, and may also receive the processing results / processing data generated by the service component for the previous business test template, and may also receive the message generated by the above-mentioned message generation step. In other words, the user interface is divided according to the life cycle of a user test, including user login service, SDK import service, transaction process configuration service and test parameter setting service. Among them, the user login service includes user login, initializing user configuration (saving user information, generating user parameters) and template selection. It can be displayed in HTML or H5 pages according to different terminals and complete the initial interaction with the user. The SDK import service provides testers with an interface for importing SDK toolkits, which can realize single SDK package import or batch SDK package import. After completing the SDK import, it is delivered to the template generation module to complete the SDK parsing and display it in the interactive interface. For tests that require transaction process configuration, after completing the SDK import and parsing, the tester can configure the transaction process, select the transaction that needs to be set up for process testing, complete the connection of the input and output interfaces, and then complete the transaction process configuration, which is delivered to the template generation module for subsequent processing. Subsequently, the user sets the test parameters and completes the setting of basic parameters such as the test cycle, test frequency, and test interval. The parameters are divided into two categories: global parameters and transaction parameters, with the entire SDK and a single transaction as the impact domain respectively. Finally, with the help of the business test message entry service, the tester completes the filling of the test elements and starts the test after handing it over to the message sending and receiving module.

[0139] The above template library can receive user-defined templates / template models and import the templates / template models into the template library for storage. The template library stores all test templates that users can choose, such as HTML, EXCEL, H5 and other different template forms, and provides template import function. The template import service provides an interface for adding new templates. Users can customize a certain template or import new templates. Once the template customization is completed, it becomes part of the user's parameters and allows testers to select it each time they use it.

[0140] The above-mentioned message display may include test result display, test data prediction and test data export, wherein the test result display may include the response result of the service component, the formation of a test report for the response result, the generation of a test report and others. Test data export may include report download of test results, report printing of test results and format conversion of test results. That is to say, the message display mainly receives test data from the service component and performs multi-dimensional processing and display. The message display is also divided according to the life cycle of a test. First, the test result display directly displays the result of the test on the interface. When the tester believes that the test is valid, he can choose to generate a test report or create a report. Subsequently, with the help of test data prediction, the execution of the transaction under different test parameters (different time, different number of concurrency, etc.) can be predicted to reduce the number of tests and analyze the impact on production. Finally, test data export provides report download, report printing and conversion services of various different forms of documents. A formatted test report can be issued to the tester.

[0141] In addition, through the above-mentioned user interaction interface, the embodiment of the present invention provides a variety of test modes, and supports flexible adjustment of parameters such as the frequency, time, number of concurrency, response time, etc. of transaction transmission. At the same time, the test can be adjusted by the tester according to the actual production scenario, and various types of tests such as white box testing, black box testing, functional testing, non-functional testing, etc. can be performed, and these tests can be performed according to the user's configuration. Therefore, users or business personnel can choose familiar presentation forms such as H5, EXCEL, web pages, etc. to test on a variety of different terminals, and only need to fill in the fields, test parameters, etc., which reduces the use threshold of the business testing method provided by the embodiment of the present invention.

[0142] It is worth mentioning that for process-based transactions, you can drag and combine modules visually. Automatically connect the input and output of transactions to simulate real scenarios and real processes. For example, the multiple steps of opening a bank account can be dragged and combined visually. Automatically connect the input and output of transactions to simulate real scenarios and real processes.

[0143] Based on the above steps, it can be seen that the specific application scenario of the service test implemented by the embodiment of the present invention can be as follows: Figure 7As shown, the user imports the SDK through the terminal (mobile phone, tablet, PC, etc.), and configures the test parameters such as field attributes, transaction sending frequency, time, concurrency, response time, etc. through the user interaction interface. If there is a transaction process, the transaction process is constructed through graphical dragging, combination, etc. to simulate the transaction connection of the real scene. And according to the template format selected by the user, a business test template of the corresponding format is generated, and the user enters the test data for the business test template, generates a business test message, and interacts with the commercial bank-related service components through the commercial bank gateway to conduct business testing, and the test results are fed back to the terminal used by the user in various forms. That is, the tester completes the selection of business test template format / type, message filling and other functions through the user interaction interface, and displays the test results after completing the test; the template generation module is responsible for parsing the SDK, generating the template format selected by the tester and delivering the template; the message generation module is mainly responsible for the tester to complete the test elements according to the test template, complete the message assembly and format conversion and deliver it to the message sending module; and the message sending and receiving module is mainly responsible for completing message sending and message parsing, extracting the business elements in the response message and delivering them to the user interaction module.

[0144] It is worth noting that for the first test, various test parameters must be configured. After the configuration results are saved, you only need to fill in the test data and modify the test parameters next time. If the existing SDK changes, or a new SDK needs to be tested, you only need to re-import it. The business test message will be sent to the gateway of the commercial bank in the manner specified by the SDK, and users do not need to worry about the back-end processing logic. It fully simulates the real business scenario after the commercial bank's partners (third parties) access.

[0145] It is worth noting that the parameterized configuration of the solution provided in the embodiment of the present invention can simulate various scenarios in production to perform stress testing and non-functional testing, solving the problem that existing non-functional testing cannot cover end-to-end.

[0146] In addition, in the above-mentioned business testing method, the above-mentioned business testing method is applied to the terminal / server, and the external service component can be a commercial bank back-end service component, which interacts with the terminal / server through the bank gateway to complete the business test. When the above-mentioned business testing method is applied to the server, the interactive interface for interacting with the user is displayed through the terminal (that is, the server receives the configuration parameters sent by the user through the terminal, the uploaded SDK, etc.).

[0147] like Figure 8 As shown, an embodiment of the present invention provides a service testing device 800, which includes: an interaction module 801, a template generation module 802 and a testing module 803, wherein:

[0148] Interaction module 801, used for receiving a software development kit;

[0149] The template generation module 802 is used to parse the software development kit received by the interaction module 801, and generate a business test template for the software development kit according to the parsing result;

[0150] The test module 803 is used to determine the test data related to the business test template generated by the template generation module 802; generate corresponding business test messages for the business test template, interact with external service components through business test messages, and process test data to implement business testing.

[0151] In one embodiment of the present invention, the service testing device 800 further includes: a storage module (not shown in the figure).

[0152] A storage module, used to store a plurality of parameter configuration sets, each of which includes basic information and a plurality of field parameters matching the basic information, wherein the basic information indicates any one or more of a type, a language, and a package name;

[0153] The template generation module 802 is further used to obtain the name and interface fields of the software development toolkit; search for a target parameter configuration set that matches the name and the interface fields in the stored multiple parameter configuration sets; and configure the interface fields using multiple field parameters in the target parameter configuration set.

[0154] In one embodiment of the present invention, the template generation module 802 is further used to extract the business module information corresponding to the interface field configured with field parameters; and generate a corresponding business test template for the business module information according to a preset first data dictionary and a preset template type.

[0155] In one embodiment of the present invention, the interaction module 801 is further configured to receive a business process flow configured by a user, wherein the business process flow indicates a plurality of selected business modules;

[0156] The template generating module 802 is further used to generate a corresponding service test template for the service module information corresponding to each selected service module.

[0157] In one embodiment of the present invention, the service testing device further comprises: the testing module 803 comprises a message generating submodule and a message sending and receiving submodule (not shown in the figure), wherein:

[0158] The message generation submodule is used to match the corresponding data items for the business test template according to the preset data dictionary; verify whether the test data corresponding to the data item meets the requirements, and if so, assemble the test data into the corresponding data item, and assemble the business test message based on the data item;

[0159] The message sending and receiving submodule is used to send the business test message to the external service component; and receive the processing result of the business test message returned by the external service component.

[0160] In one embodiment of the present invention, the message generation submodule is further used to determine the common elements required by the external service component; and assemble the common elements into corresponding data items.

[0161] In one embodiment of the present invention, the interaction module 801 is further used to obtain configuration information of the terminal on which the service test template relies;

[0162] The template generation module 802 is further used to generate a service test template matching the configuration information for the software development toolkit.

[0163] In one embodiment of the present invention, the message generation submodule is further used to execute, for each selected business module among multiple selected business modules: determine whether the selected business module belongs to the starting business module in the business processing flow, and if so, receive the test data set by the user for the selected business module through the interaction module 801; otherwise, determine the processing result corresponding to the last selected business module corresponding to the selected business module in the business processing flow as the test data of the selected business module.

[0164] In one embodiment of the present invention, the message sending and receiving submodule is further used to receive a response message sent by an external service component; extract processing results from the response message according to the information of the software development tool kit; record and provide the processing results to the user; and generate a test report based on the recorded processing results.

[0165] like Fig. 9 As shown, an embodiment of the present invention provides a service testing system 900 , which includes: the above-mentioned service testing device 901 and a service component 902 .

[0166] The business testing system provided in the embodiment of the present invention can be applied to realize the transaction business testing of the interaction between the commercial bank and the third party. The overall architecture of the business testing system 1000 for realizing the transaction business testing of the interaction between the commercial bank and the third party is as follows: Fig.10 As shown. Fig.10As can be seen in FIG. 1 , the business test system 1000 includes: a business test device 1001, a bank gateway 1002, and a commercial bank backend service component 1003, wherein:

[0167] The service testing device 1001 includes: an interaction module 10011, a template generation module 10012, a message generation module 10013 and a message sending and receiving module 10014, wherein:

[0168] Interaction module 10011, used to provide an interaction interface for the user and interact with the user through the interaction interface;

[0169] The interaction module 10011 is further used to receive the template type / template format, test parameters, etc. input by the user, and store them through the template library;

[0170] The interaction module 10011 is further used to provide a message display service to display the received test results;

[0171] The template generation module 10012 is used to provide SDK parsing services, template generation services, terminal adaptation services, transaction process connection services, and test parameter storage services, and assemble the test parameters input by the user received by the interaction module 10011 into the parsed business process module;

[0172] The SDK parsing service is used to perform the above Figure 2 Step S201 is given; the template generation service is used to perform the above Figure 2 Step S202 is given; the terminal adaptation service is used to perform the above Figure 2 Step S203 is given; the transaction process connection service is used to execute the above Figure 2 Step S204 is given; the test parameter storage service is used to store the test parameters input by the user received from the interaction module 10011;

[0173] The message generation module 10013 is used to provide data dictionary parsing services, message assembly services, message format conversion services and message cache to convert the business test template generated by the template generation module 10012 into a message, wherein:

[0174] The data dictionary parsing service is used to perform the above Figure 4 Step S401 is given; the message assembly service is used to perform the above Figure 4 Step S403 is given; the message format conversion service is used to perform the above Figure 4 Step S402 is given; the message cache is used to cache the message generated by the message format conversion service;

[0175] The message generation module 10013 may obtain the message format of the SDK from the template library, so that the message generation module 10013 generates a message in the message format;

[0176] The message sending and receiving module 10014 is used to provide parameter parsing services, message sending services and message receiving services, and send the test result message generated by the service component of the commercial bank backend received to the interactive module 10011, so as to display the service through the message in the interactive module 10011, wherein,

[0177] The parameter parsing service is used to perform the above Figure 5 Step S501 is given; the message sending service is used to execute the above Figure 5 Step S502 is given; the message receiving service is used to perform the above Figure 5 Step S503 is given.

[0178] That is: the interaction module is mainly responsible for interaction with users, providing an interface for testers to complete functions such as template selection and message filling, and displaying the test results after the test is completed; the template generation module is responsible for parsing the SDK, generating the template format selected by the tester and delivering the template; the message generation module is mainly responsible for completing the message assembly and format conversion after the tester fills in the test elements according to the test template and delivering it to the message sending and receiving module 10014; and the message sending and receiving module 10014 is mainly responsible for completing message sending and message parsing, extracting the business elements in the response message and delivering it to the user interaction module for display.

[0179] Among them, the message generation module 10013 and the message sending and receiving module 10014 can be encapsulated into the above-mentioned test module.

[0180] Fig.11 An exemplary system architecture 1100 is shown to which the service testing method or service testing device according to the embodiment of the present invention can be applied.

[0181] like Fig.11 As shown, the system architecture 1100 may include terminal devices 1101, 1102, 1103, a network 1104, and a server 1105. The network 1104 may be provided with a gateway to provide a medium for a communication link between the terminal devices 1101, 1102, 1103 and the server 1105. The network 1104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0182] Users can use terminal devices 1101, 1102, 1103 to interact with server 1105 through network 1104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1101, 1102, 1103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0183] The terminal devices 1101 , 1102 , and 1103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0184] The server 1105 may be a server that provides various services, such as a background management server (only an example) that provides support for the service test messages sent by the user using the terminal devices 1101, 1102, and 1103. The background management server may analyze and process the received service test messages and other data, and feed back the processing results (such as the processing result message - only an example) to the terminal device.

[0185] It should be noted that the service testing method provided in the embodiment of the present invention is generally executed by the terminal devices 1101 , 1102 , and 1103 , and accordingly, the service testing device is generally arranged in the terminal devices 1101 , 1102 , and 1103 .

[0186] It should be understood that Fig.11 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0187] Reference below Fig.12 , which shows a schematic diagram of the structure of a computer system 1200 of a terminal device suitable for implementing an embodiment of the present invention. Fig.12 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0188] like Fig.12 As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage part 1208 into a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the system 1200 are also stored. The CPU 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0189] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0190] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the central processing unit (CPU) 1201, the above-mentioned functions defined in the system of the present invention are executed.

[0191] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0192] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0193] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an interaction module, a template generation module and a test module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, a module unit may also be described as a "module for receiving a software development kit".

[0194] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving and parsing a software development kit; generating a business test template for the software development kit based on the parsed result; determining test data related to the business test template; generating a business test message for the business test template, interacting with an external service component through the business test message, and processing the test data to implement business testing.

[0195] According to the technical solution of the embodiment of the present invention, by parsing the software development kit, a business test template is generated for the software development kit according to the parsed result, a business test message is generated for the business test template, and the business test data is processed by interacting with the external service component through the business test message to implement the business test. Therefore, the solution provided by the embodiment of the present invention can be tested without waiting for the third-party platform to develop functions, so that the business test can be completed in time without being constrained by the development of the third-party platform. In addition, since the business test template is formed based on the software development kit, and the business test template interacts with the external service component during the test, so that the entire test can truly reflect the business processing scenario, therefore, the solution provided by the embodiment of the present invention can effectively improve the accuracy of the test without being constrained by the third-party platform.

[0196] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A business testing method, It is characterized in that include: Receive and parse the software development kit; Generate a service test template for the software development kit according to the parsing result, wherein the service test template refers to a template that can be used for a terminal and can simulate a client / plug-in developed by a third party based on the software development kit; Determine test data related to the service test template, wherein the test data refers to data of a simulated service and is input by a user; Generate a business test message for the business test template, interact with an external service component through the business test message, process the test data, and implement business testing, wherein the external service component is a platform provided by a commercial bank for cooperation with a third party; The analysis software development kit includes: general SDK analysis, dedicated SDK analysis and test parameter configuration, wherein the general SDK analysis is to analyze the public interface / interface domain, and the dedicated SDK analysis is to analyze the service-specific interface and field, and configure the corresponding test parameters for the fields and fields of the interface; The generating of a business test template for the software development kit includes: parsing the information included in each business processing module in the SDK into template elements, managing the module elements in the business processing module, and converting the template elements into an expression that can be recognized by the service component, wherein each business processing module corresponds to a business test template.

2. The service testing method according to claim 1, It is characterized in that Further comprising: storing a plurality of parameter configuration sets, each of the parameter configuration sets comprising basic information and a plurality of field parameters matching the basic information, wherein the basic information indicates any one or more of a type, a language, and a package name; The analysis software development kit includes: Get basic information about the software development kit; Searching for a target parameter configuration set matching the basic information among the plurality of stored parameter configuration sets; Based on the multiple field parameters in the target parameter configuration set, interface fields are extracted.

3. The service testing method according to claim 2, It is characterized in that Generating a business test template for the software development kit includes: Parse the business module information corresponding to the interface field; According to a preset data dictionary and a preset template type, a corresponding business test template is generated for the business module information.

4. The service testing method according to claim 2 or 3, It is characterized in that Further comprising: receiving a business process flow configured by a user, the business process flow indicating a plurality of selected business modules; Generate a corresponding business test template for the business module information, including: A corresponding business test template is generated for the business module information corresponding to each selected business module.

5. The service testing method according to claim 4, It is characterized in that Generating a service test message for the service test template includes: According to a preset data dictionary, matching corresponding data items for the business test template; Verify whether the test data corresponding to the data item meets the requirements, and if so, assemble the test data into the corresponding data item, and assemble a service test message based on the data item; Interacting with the external service component through the service test message and processing the test data includes: Sending the service test message to an external service component; Receive a processing result of the service test message returned by the external service component.

6. The service testing method according to claim 5, It is characterized in that Further including: Determining the common elements required by the external service components; Assemble the common elements into corresponding data items.

7. The service testing method according to any one of claims 1 to 3, 5, and 6, It is characterized in that Further comprising: obtaining configuration information of the terminal on which the service test template relies; Generate a business test template for the software development kit, including: A service test template matching the configuration information is generated for the software development kit.

8. According to the service testing method of claim 4, It is characterized in that The business processing flow further indicates the connection relationship between the multiple selected business modules; The determining of the test data related to the service test template includes: For each of the selected business modules, executing: Determine whether the selected business module belongs to the starting business module in the business processing flow. If so, receive the test data set by the user for the selected business module; otherwise, determine the processing result corresponding to the last selected business module corresponding to the selected business module in the business processing flow as the test data for the selected business module.

9. The service testing method according to any one of claims 1 to 3, 5, 6, and 8, It is characterized in that Further including: Receiving a response message sent by the external service component; Extracting a processing result from the response message according to the information of the software development kit; Record and provide the processing results to the user; A test report is generated based on the recorded processing results.

10. A service testing device, It is characterized in that include: Interaction module, template generation module and test module, among which, The interaction module is used to receive a software development kit; The template generation module is used to parse the software development kit received by the interaction module, and generate a service test template for the software development kit according to the parsing result, wherein the service test template refers to a client / plug-in that can be used for a terminal and can simulate a client / plug-in developed by a third party based on the software development kit; The test module is used to determine the test data related to the business test template; generate a corresponding business test message for the business test template, interact with the external service component through the business test message, and process the test data to implement business testing, wherein the test data refers to data of simulated business, the external service component is a platform provided by the commercial bank for cooperation with a third party, and the test data comes from user input; The template generation module is further used for general SDK parsing, special SDK parsing and test parameter configuration, wherein the general SDK parsing is to parse the public interface / interface domain, and the special SDK parsing is to parse the business-specific interface and field, and configure corresponding test parameters for the fields and fields of the parsed interface; the information included in each business processing module in the SDK is parsed for template elements, the module elements in the business processing module are managed, and the template elements are converted into expressions that can be recognized by the service component, wherein each business processing module corresponds to a business test template.

11. A business testing system, It is characterized in that include: The business testing device and service component as described in claim 10.

12. A business testing electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

13. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.