Simulator test method, device, equipment, medium and program product
By inputting outbound call request information on the outbound call simulation platform and using the simulator classification model, the target simulator is quickly identified and configured, and the problem of low efficiency of testing of Chinese and foreign call functions in the existing technology is solved, and efficient simulator configuration and testing is achieved.
Patent Information
- Application Number
- CN202411333716.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, the efficiency of outgoing call function testing is mainly due to the inefficient of users who need to understand the simulator parameters and it is difficult to quickly determine the relevant simulator in multi-simulator scenarios.
By inputting outbound call request information on the outbound call simulation platform, using the simulator classification model, classifying it into the simulator to be configured, and obtaining service response packets from the outbound call simulation platform according to the service identifier to configure it, and obtaining the target simulator for functional testing. . The simulator classification model is based on the historical log training of multiple simulators, and achieves rapid recognition and configuration through text processing and word vector training.
It realizes the rapid identification and configuration of related simulators, improves the efficiency of outgoing call function testing, reduces users' need to understand the simulator parameters, and simplifies the testing process.
Smart Images

Figure CN119299565A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of financial technology and artificial intelligence technology, and more specifically to a testing method, device, equipment, medium and program product of a simulator. Background Art
[0002] With the development of the Internet, the use of outbound call platforms can improve financial services. Outbound call platforms usually use simulators to simulate outbound call scenarios to test outbound call functions and optimize call processes.
[0003] The user needs to input the simulator parameters on the outbound call platform, and can apply for a simulator based on the simulator parameters to complete the outbound call function test. Firstly, it depends on the user's understanding of the simulator parameters. Secondly, an outbound call request may involve requesting multiple simulators, and it is difficult to quickly determine the relevant simulator, which reduces the efficiency of the simulator's outbound call function test. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a simulator testing method, apparatus, device, medium and program product.
[0005] According to the first aspect of the present disclosure, a simulator testing method is provided, comprising: in response to a user inputting an outbound call request information in an outbound call simulation platform, inputting the outbound call request information into a simulator classification model to obtain at least one simulator to be configured, the outbound call request information representing a request for at least one outbound call service, the simulator classification model being trained using simulator logs of multiple simulators in the outbound call simulation platform, the simulator logs including historical outbound call request information of the simulator; extracting a service identifier from the outbound call request information according to the type of at least one simulator to be configured, and obtaining a service response message from the outbound call simulation platform according to the service identifier; configuring at least one simulator to be configured based on the service response message and the service identifier to obtain at least one target simulator; and performing an outbound call function test on at least one target simulator according to the outbound call request information.
[0006] According to an embodiment of the present disclosure, the outbound call request information includes an outbound call request address and an outbound call request message; according to the type of at least one simulator to be configured, extracting the service identifier from the outbound call request information includes: for at least one simulator to be configured belonging to a different type of simulator, parsing the outbound call request address according to the type of the simulator to be configured to obtain the parsed outbound call request address; and extracting the service identifier from the parsed outbound call request address; or for at least one simulator to be configured belonging to the same type of simulator, performing transaction service identification on the outbound call request message according to the type of the simulator to be configured to obtain the service identifier.
[0007] According to an embodiment of the present disclosure, transaction service identification is performed on the outbound call request message according to the type of the simulator to be configured to obtain a service identifier, including: parsing the outbound call request message according to the type of the simulator to be configured to obtain a target outbound call message; transaction service identification is performed on the target outbound call message according to a preset field to obtain a service identifier.
[0008] According to an embodiment of the present disclosure, parsing the outbound call request message according to the type of the simulator to be configured to obtain the target outbound call message includes: determining the message format of the outbound call request message according to the type of the simulator to be configured; parsing the outbound call request message according to the message format to obtain the target outbound call message.
[0009] According to an embodiment of the present disclosure, the simulator classification model is trained based on the following method: extracting historical outbound call request information from the simulator log according to the text format of the simulator log and preset extraction fields; performing text processing on the historical outbound call request information to obtain at least one word vector; inputting at least one word vector into a context prediction model to obtain a target text vector; and using the target text vector to train the simulator classification model.
[0010] According to an embodiment of the present disclosure, the historical outbound call request information includes a historical outbound call request address and a historical outbound call request message;
[0011] Performing text processing on historical outbound call request information to obtain at least one word vector includes: performing text processing on historical outbound call request messages to obtain at least one word vector; using the target text vector to train a simulator classification model includes: using the target text vector, the historical outbound call request address and the simulator label to train the simulator classification model, the simulator label represents the simulator corresponding to the historical outbound call request information.
[0012] According to an embodiment of the present disclosure, text processing is performed on historical outbound call request messages to obtain at least one word vector, including: cleaning the historical outbound call request messages to obtain cleaned messages; segmenting the cleaned messages according to the protocol type of the historical outbound call request address to obtain at least one field; and vectorizing at least one field to obtain at least one word vector.
[0013] The second aspect of the present disclosure provides a testing device for a simulator, including: an input module, which is used to respond to the operation of a user inputting an outbound call request information on an outbound call simulation platform, input the outbound call request information into a simulator classification model, and obtain at least one simulator to be configured, the outbound call request information represents a request for at least one outbound call service, and the simulator classification model is obtained by training with simulator logs of multiple simulators in the outbound call simulation platform, and the simulator log includes historical outbound call request information of the simulator; an extraction module, which is used to extract a service identifier from the outbound call request information according to the type of at least one simulator to be configured, and obtain a service response message from the outbound call simulation platform according to the service identifier; a configuration module, which is used to configure at least one simulator to be configured based on the service response message and the service identifier, and obtain at least one target simulator; an outbound call function testing module, which is used to perform an outbound call function test on at least one target simulator according to the outbound call request information.
[0014] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0015] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0016] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0017] According to an embodiment of the present disclosure, in response to a user inputting an outbound call request information on an outbound call simulation platform, the outbound call request information is input into a simulator classification model, and at least one simulator to be configured can be directly obtained, thereby realizing rapid determination of one or more related simulators. A service identifier is extracted from the outbound call request information, and a service response message is obtained from the outbound call simulation platform based on the service identifier; at least one simulator to be configured is configured based on the service response message to obtain a target simulator, thereby rapidly completing configuration of one or more related simulators. Thus, an outbound call function test is performed on the target simulator based on the outbound call request information, thereby improving the efficiency of the outbound call function test. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0019] Figure 1 The application scenario diagram of the simulator testing method according to the embodiment of the present disclosure is schematically shown;
[0020] Figure 2 A flowchart schematically shows a method for testing a simulator according to an embodiment of the present disclosure;
[0021] Figure 3 A flowchart schematically shows a method for testing a simulator according to another embodiment of the present disclosure;
[0022] Figure 4 A flowchart of a simulator classification model training method according to another embodiment of the present disclosure is schematically shown;
[0023] Figure 5 The structure block diagram of the test device of the simulator according to the embodiment of the present disclosure is schematically shown;
[0024] Figure 6 A block diagram of an electronic device suitable for implementing a simulator testing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0026] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0027] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0028] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0029] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0030] For solutions involving personal information, if it is unavoidable, add the following statement in the instructions:
[0031] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0032] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0033] Usually, the outbound call function test is completed by applying for a simulator based on the simulator parameters entered by the user on the outbound call simulation platform. Firstly, it depends on the user's understanding of the simulator parameters. Secondly, it involves the situation that one outbound call request may request multiple simulators, and it is difficult to quickly determine the relevant simulator, which reduces the efficiency of the outbound call function test.
[0034] In view of this, an embodiment of the present disclosure provides a simulator testing method, comprising: in response to a user inputting an outbound call request information in an outbound call simulation platform, inputting the outbound call request information into a simulator classification model to obtain at least one simulator to be configured, the outbound call request information representing a request for at least one outbound call service, the simulator classification model being trained using simulator logs of multiple simulators in the outbound call simulation platform, the simulator logs including historical outbound call request information of the simulator; according to the type of at least one simulator to be configured, extracting a service identifier from the outbound call request information, and according to the service identifier, obtaining a service response message from the outbound call simulation platform; configuring at least one simulator to be configured based on the service response message and the service identifier to obtain at least one target simulator; and performing an outbound call function test on at least one target simulator according to the outbound call request information.
[0035] Figure 1 The application scenario diagram of the simulator testing method according to the embodiment of the present disclosure is schematically shown.
[0036] like Figure 1 As shown, the application scenario 100 according to this embodiment may include an outbound call simulation platform device 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the outbound call simulation platform device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0037] The user can use the outbound call simulation platform device 101 to interact with the server 103 through the network 102 to receive or send messages, etc.
[0038] Outbound call simulation platform software may be installed on the outbound call simulation platform device 101. The outbound call simulation platform device 101 may be any electronic device having a display screen and supporting web browsing, including but not limited to a tablet computer, a laptop portable computer, a desktop computer, and the like.
[0039] The server 103 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device. For example, the server 103 may be a service end.
[0040] It should be noted that the test method of the simulator provided in the embodiment of the present disclosure can generally be executed by the server 103. Accordingly, the test device of the simulator provided in the embodiment of the present disclosure can generally be set in the server 103. The test method of the simulator provided in the embodiment of the present disclosure can also be executed by a server or a server cluster that is different from the server 103 and can communicate with the outbound call simulation platform device 101 and / or the server 103. Accordingly, the test device of the simulator provided in the embodiment of the present disclosure can also be set in a server or a server cluster that is different from the server 103 and can communicate with the outbound call simulation platform device 101 and / or the server 103.
[0041] It should be understood that Figure 1 The number of outbound call simulation platform devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, any number of outbound call simulation platform devices, networks and servers may be provided.
[0042] Figure 2 The flowchart of the simulator testing method according to the embodiment of the present disclosure is schematically shown.
[0043] like Figure 2 As shown, the simulator testing method of this embodiment includes operations S210 to S240.
[0044] In operation S210, in response to an operation of a user inputting outbound call request information on an outbound call simulation platform, the outbound call request information is input into a simulator classification model to obtain at least one simulator to be configured.
[0045] According to an embodiment of the present disclosure, the outbound call simulation platform may be used to simulate an outbound call scenario, which is beneficial for testing and optimizing the call process.
[0046] According to an embodiment of the present disclosure, the outbound call request information represents a request for at least one outbound call service. When an outbound call request information involves multiple simulators, it is usually to simulate a complex environment or scenario.
[0047] For example, when the outbound call request information represents a request for multiple outbound call services, the outbound call request information may be sent to multiple simulators at the same time, and the test results of each simulator may be comprehensively analyzed.
[0048] For example, when the outbound call request information represents requesting multiple outbound call services, the outbound call request information can be divided according to the request address to obtain the outbound call request sub-information corresponding to each simulator. Each simulator can be used to perform outbound call function testing according to the outbound call request sub-information corresponding to each simulator.
[0049] According to an embodiment of the present disclosure, the outbound call request information may be used as data and instructions for initiating an outbound call. The outbound call request information generally includes all necessary parameters required for initiating an outbound call.
[0050] According to an embodiment of the present disclosure, the simulator classification model is trained using simulator logs of multiple simulators in an outbound call simulation platform, and the simulator logs include historical outbound call request information of the simulators.
[0051] According to an embodiment of the present disclosure, the simulator classification model may be a machine learning model, such as a convolutional model, a support vector machine model, a random forest model, and the like.
[0052] According to an embodiment of the present disclosure, the simulator log may be used to record and monitor the activities, performance, etc. of the simulator.
[0053] According to an embodiment of the present disclosure, before obtaining the outbound call request information input by the user in the outbound call simulation platform, the user's consent or authorization may be obtained. For example, before operation S210, a request for obtaining user information may be issued to the user. When the user agrees or authorizes that the user information may be obtained, the operation S210 is performed.
[0054] In operation S220, according to the type of at least one simulator to be configured, a service identifier is extracted from the outbound call request information, and according to the service identifier, a service response message is obtained from the outbound call simulation platform.
[0055] For example, the type of the simulator to be configured may be divided according to different network protocols, such as the type of http (Hypertext Transfer Protocol), the type of FTP (File Transfer Protocol), the type of SMTP (Simple Mail Transfer Protocol), and the like.
[0056] For example, the types of simulators to be configured may also be divided according to different functions, such as automatic dialing simulator, virtual outbound call simulator, interactive voice response simulator, network simulator, etc.
[0057] For example, the type of simulator to be configured can also be divided according to comprehensive functions, and the comprehensive functions can be those that meet the protocol type, message format and function type. For example, the simulator to be configured can be an automatic dialing simulator of the http protocol, and the message format is the json format. The protocol type must correspond to the type of simulator to be configured, and the expected business response message can be obtained later. It should be noted that the types divided according to comprehensive functions include but are not limited to those that meet the protocol type, message format and function type.
[0058] According to an embodiment of the present disclosure, the service identifier is used to characterize the service of the outbound call request, for example, the service identifier may be a transaction code.
[0059] According to an embodiment of the present disclosure, the test method of the simulator can be executed by the server, the service response message can be a message returned by the server to the client, and the client can be a terminal that sends an outbound call request message. The service response message includes the result or status information of the outbound call request. The type of the service response message can be an http response, an FTP response, an SMTP response, etc.
[0060] In operation S230, at least one simulator to be configured is configured based on the service response message and the service identifier to obtain at least one target simulator.
[0061] According to an embodiment of the present disclosure, at least one simulator to be configured is configured based on a service response message and a service identifier, so that at least one target simulator obtained can complete a link-level test of an outbound call function of a server.
[0062] For example, at least one simulator to be configured is configured based on the service response message, and the target simulator can be used to assist in testing whether the server can correctly respond to the outbound call request of the client.
[0063] For example, at least one simulator to be configured is configured based on the service identifier, and the target simulator can be used to verify the transaction processing logic of the server. If the outbound call request information represents a request for multiple outbound call services, different transaction scenarios can be simulated, and the target simulator can be used to detect the performance of the server under different transaction loads.
[0064] In operation S240, an outbound call function test is performed on at least one target simulator according to the outbound call request information.
[0065] According to the embodiments of the present disclosure, the outbound call function test can be used to simulate the actual operation of the outbound call service. Generally, it includes function test, interface test, performance test, etc. Function test can ensure that the simulator operates normally according to the designed function and verify whether the outbound call operation is correctly executed in the simulation environment. Interface test can be to test the compatibility with the outbound call service interface to ensure that the simulator can correctly process the outbound call request information. Performance test can be the performance of the simulator when processing the outbound call request information.
[0066] According to an embodiment of the present disclosure, in response to a user inputting an outbound call request information on an outbound call simulation platform, the outbound call request information is input into a simulator classification model, and at least one simulator to be configured can be directly obtained, thereby realizing rapid determination of one or more related simulators. A service identifier is extracted from the outbound call request information, and a service response message is obtained from the outbound call simulation platform based on the service identifier; at least one simulator to be configured is configured based on the service response message to obtain a target simulator, thereby rapidly completing configuration of one or more related simulators. Thus, an outbound call function test is performed on the target simulator based on the outbound call request information, thereby improving the efficiency of the outbound call function test.
[0067] According to an embodiment of the present disclosure, based on the type of at least one simulator to be configured, extracting the service identifier from the outbound call request information includes: for at least one simulator to be configured belonging to a different type of simulator, parsing the outbound call request address according to the type of the simulator to be configured to obtain the parsed outbound call request address; and extracting the service identifier from the parsed outbound call request address; or for at least one simulator to be configured belonging to the same type of simulator, performing transaction service identification on the outbound call request message according to the type of the simulator to be configured to obtain the service identifier.
[0068] According to an embodiment of the present disclosure, the outbound call request information includes an outbound call request address and an outbound call request message. The outbound call request address may be an HTTP (Hypertext Transfer Protocol) address, an HTTPS (Hypertext Transfer Protocol Secure) address, an IP (Internet Protocol) address, a SIP (Session Initialization Protocol) address, etc.
[0069] For example, the parsing format of the outbound call request information is intelligently identified, the outbound call request information is parsed according to the parsing format, and the outbound call request address and the outbound call request message are extracted from the parsed outbound call request information according to the text structure of the parsed outbound call request information.
[0070] If there are multiple simulators to be configured, the outbound call request information includes multiple outbound call request addresses, that is, one outbound call request address corresponds to one simulator to be configured. Usually, the outbound call request information includes multiple outbound call request addresses, which may be because the outbound call request corresponds to multiple outbound call service copies, that is, the outbound call request can be sent to multiple different request addresses, and multiple simulators need to be configured.
[0071] On the one hand, if at least one simulator to be configured belongs to a different type of simulator, the outbound call request information includes multiple request addresses, and the outbound call request information can be split according to the type of parsing format to obtain the outbound call request sub-information corresponding to the multiple simulators to be configured. The outbound call request sub-information may include the outbound call request address and outbound call request message of the simulator to be configured.
[0072] The outbound call request sub-information corresponding to each of the multiple simulators to be configured has a problem of different parsing formats. It is necessary to parse the outbound call request sub-information corresponding to each of the multiple simulators to be configured first, and then extract the outbound call request message from the outbound call request sub-information. If the outbound call request message corresponding to each of the multiple simulators to be configured is to be identified for transaction services, it is necessary to first determine the message format of each outbound call request message, and then parse the outbound call request message according to the message format, and perform transaction service identification on the parsed outbound call request message to obtain a service identifier. The process is cumbersome and the processing efficiency is low.
[0073] Therefore, for at least one simulator to be configured that belongs to a different type of simulator, the outbound call request sub-information can be parsed according to the type of the simulator to be configured, and then the parsed outbound call request address can be extracted from the parsed outbound call request sub-information, thereby directly extracting the service identifier from the parsed outbound call request address. The process is simple and the processing efficiency is high.
[0074] On the other hand, if at least one simulator to be configured belongs to the same type of simulator, and the message format of the outbound call request sub-information corresponding to at least one simulator to be configured is the same, then the parsing process is also the same, and the parsed outbound call request message can be directly identified as a transaction service according to the type of the simulator to be configured to obtain a service identifier.
[0075] For example, a single request message includes only one outbound call request message in the outbound call request information, and the outbound call request message may include the outbound call information required by all outbound call request addresses.
[0076] If at least one simulator to be configured is of the same type and the outbound call request information includes only a single request message, transaction service identification is performed on the outbound call request message according to the type of the simulator to be configured to obtain a service identifier, thereby quickly extracting the service identifier required for each simulator to be configured.
[0077] According to an embodiment of the present disclosure, transaction service identification is performed on the outbound call request message according to the type of the simulator to be configured to obtain a service identifier, including: parsing the outbound call request message according to the type of the simulator to be configured to obtain a target outbound call message; transaction service identification is performed on the target outbound call message according to a preset field to obtain a service identifier.
[0078] For example, the type of the simulator to be configured may be an http protocol type, and the outbound call request message may be parsed according to the http protocol type to obtain a target outbound call message.
[0079] According to an embodiment of the present disclosure, the preset field is used to locate the position of the service identifier. The preset field can be adaptively set according to different message formats. The message format can be xml, json, binary, etc. For example, the preset field of the xml message format can be SYS_TX_CODE.
[0080] Figure 3 The flowchart of a simulator testing method according to another embodiment of the present disclosure is schematically shown.
[0081] like Figure 3 As shown, the simulator testing method of this embodiment includes operations S310 to S370.
[0082] In operation S310, in response to an operation of a user inputting outbound call request information on an outbound call simulation platform, the outbound call request information is input into a simulator classification model to obtain at least one simulator to be configured.
[0083] In operation S320, it is determined whether at least one simulator to be configured is of the same type. If so, operation S340 is performed; if not, operation S330 is performed.
[0084] In operation S330, the outbound call request address is parsed according to the type of the simulator to be configured to obtain a parsed outbound call request address; and a service identifier is extracted from the parsed outbound call request address.
[0085] In operation S340, the transaction service is identified for the outbound call request message according to the type of the simulator to be configured, and the service identifier is extracted from the obtained service identifier address.
[0086] In operation S350, a service response message is obtained from the outbound call simulation platform according to the service identifier.
[0087] In operation S360, at least one simulator to be configured is configured based on the service response message and the service identifier to obtain at least one target simulator.
[0088] In operation S370, an outbound call function test is performed on at least one target simulator according to the outbound call request information.
[0089] According to an embodiment of the present disclosure, parsing the outbound call request message according to the type of the simulator to be configured to obtain the target outbound call message includes: determining the message format of the outbound call request message according to the type of the simulator to be configured; parsing the outbound call request message according to the message format to obtain the target outbound call message.
[0090] According to an embodiment of the present disclosure, the types of simulators to be configured are divided according to message formats, and the message format of the outbound call request message is determined according to the types of simulators to be configured.
[0091] According to an embodiment of the present disclosure, the type of simulator to be configured is divided according to comprehensive functions and the comprehensive functions include message formats. According to the type of simulator to be configured, the message format of the outbound call request message is determined.
[0092] For example, the type of simulator to be configured may also be divided according to comprehensive functions, and the comprehensive functions may satisfy the protocol type, message format and function type. The message format of the outbound call request message may be determined according to the type of simulator to be configured.
[0093] According to the embodiments of the present disclosure, for at least one simulator to be configured that belongs to the same type of simulator, the message format of the outbound call request message is quickly determined according to the type of the simulator to be configured; and the outbound call request message is parsed according to the message format to obtain a target outbound call message, and the target outbound call message is identified for transaction service according to preset fields to obtain a service identifier, thereby achieving rapid identification of the service identifier, thereby improving the configuration speed of the simulator to be configured and improving the efficiency of the outbound call function test.
[0094] Different areas of the software industry have different requirements for the types and functions of simulators. Generally speaking, the working process of most simulators is as follows:
[0095] Users apply for a simulator on the outbound call simulation platform based on their needs. The input parameters that need to be specified when applying include: unpacking type, including message decryption and conversion from message content to structured data; transaction identification type, such as based on the outbound call request address or a certain attribute value of the outbound call request message, and message encryption type.
[0096] After obtaining the simulator, a response message of the protocol corresponding to the outbound call request address is sent to the simulator. The response message type needs to be consistent with the application type, otherwise the expected response cannot be obtained after the request is sent. Therefore, the input parameters when applying for the simulator are very important. Users need to understand the types of simulators that the simulation platform needs to support, and understand that they can use them normally only after selecting the correct related parameters. Often these parameters are some professional terms. It is easy for users to choose the wrong parameters when they start to apply for the simulator, resulting in obstructed use or repeated communication with operation and maintenance personnel to apply for the required simulator.
[0097] According to an embodiment of the present disclosure, the simulator classification model is trained based on the following method: extracting historical outbound call request information from the simulator log according to the text format of the simulator log and preset extraction fields; performing text processing on the historical outbound call request information to obtain at least one word vector; inputting at least one word vector into a context prediction model to obtain a target text vector; and using the target text vector to train the simulator classification model.
[0098] According to an embodiment of the present disclosure, since the simulator log is used to record and monitor the activities, performance, etc. of the simulator, the simulator log contains a lot of information, such as operation logs, performance logs, test logs, etc.
[0099] For example, the text format of the simulator log can directly query the log of the recording operation part, and the historical outbound call request information can be extracted from the log of the recording operation part according to the preset extraction field. The preset extraction field can be used to find or locate the request body in the simulator log, for example, the preset extraction field can be "request_body", "payload", etc.
[0100] According to an embodiment of the present disclosure, text processing may include standardizing data, removing invalid characters, word segmentation, vectorization processing, etc. Standardized data may be storing historical outbound call request information in a regular format, such as each historical outbound call request information is stored after arranging the simulator type, historical outbound call request address, and historical outbound call request message in a preset order.
[0101] According to an embodiment of the present disclosure, the context prediction model may be a Word2Vec model, which may be a model for learning vector representations of words through a neural network, wherein the CBOW (Continuous Bag of Words) model is a technique for generating word vectors in Word2Vec.
[0102] For example, by learning word vectors using the Word2Vec model, high-quality target text vectors can be obtained. Therefore, the simulator classification model is trained using the target text vectors, so that the classification accuracy of the trained simulator classification model is higher.
[0103] According to the embodiments of the present disclosure, by training the simulator classification model, when a user applies for a simulator, he or she does not need to pay attention to the internal concepts such as transaction identification and unpacking type defined in the outbound call simulation platform. The user only needs to paste the outbound call request information into the outbound call simulation platform, and the server can predict the simulator type desired by the user by inputting the outbound call request information into the trained simulator classification model.
[0104] According to an embodiment of the present disclosure, performing text processing on historical outbound call request information to obtain at least one word vector includes: performing text processing on historical outbound call request messages to obtain at least one word vector; training a simulator classification model using the target text vector includes: training a simulator classification model using the target text vector, the historical outbound call request address and a simulator label, the simulator label representing the simulator corresponding to the historical outbound call request information.
[0105] According to an embodiment of the present disclosure, the historical outbound call request information includes a historical outbound call request address and a historical outbound call request message. For example, the historical outbound call request address is http: / / 11.22***:***** / 15e / &1, and the historical outbound call request message is information data in json format, such as {"userName":"zh##", "age":25, "gender": "male}, and the simulator type is http type and json message format.
[0106] According to the embodiments of the present disclosure, since the information of the historical outbound call request address is concise and accurate, it is only necessary to perform text processing on the historical outbound call request message to obtain at least one word vector, input the at least one word vector into the context prediction model to obtain the target text vector, and then use the target text vector, the historical outbound call request address and the simulator label to train the simulator classification model, thereby reducing the amount of data processing without affecting the classification accuracy of the trained simulator classification model.
[0107] According to an embodiment of the present disclosure, text processing is performed on historical outbound call request messages to obtain at least one word vector, including: cleaning the historical outbound call request messages to obtain cleaned messages; segmenting the cleaned messages according to the protocol type of the historical outbound call request address to obtain at least one field; and vectorizing at least one field to obtain at least one word vector.
[0108] A single request message is an outbound call request message that includes only one outbound call request message, and the outbound call request message may include the outbound call information required by all outbound call request addresses.
[0109] For example, if the historical outbound call request message is a single request message, the historical outbound call request message can be cleaned to obtain a cleaned message with invalid characters removed; the cleaned message can be segmented according to the protocol type of at least one historical outbound call request address to obtain at least one message field corresponding to the historical outbound call request address; and at least one message field can be vectorized to obtain at least one word vector.
[0110] According to an embodiment of the present disclosure, the historical outbound call request information may include unparsed historical outbound call request messages and parsed historical outbound call request messages. The unparsed historical outbound call request messages and parsed historical outbound call request messages may be used to simultaneously train the simulator classification model.
[0111] Users can directly input the unparsed outbound call request information into the trained simulator classification model, and can also accurately predict the simulator.
[0112] Figure 4 A flowchart of a method for training a simulator classification model according to another embodiment of the present disclosure is schematically shown.
[0113] like Figure 4 As shown, the training method of the simulator classification model of this embodiment includes operations S410 to S460.
[0114] In operation S410, historical outbound call request information is extracted from the simulator log according to the text format of the simulator log and preset extraction fields. The historical outbound call request information includes a historical outbound call request address and a historical outbound call request message.
[0115] In operation S420, the historical outbound call request messages are cleaned to obtain cleaned messages.
[0116] In operation S430, the cleansing message is segmented according to the protocol type of the historical outbound call request address to obtain at least one field.
[0117] In operation S440, at least one field is vectorized to obtain at least one word vector.
[0118] In operation S450, at least one word vector is input into a context prediction model to obtain a target text vector.
[0119] In operation S460, a simulator classification model is trained using the target text vector, the historical outbound call request address, and the simulator label, where the simulator label represents the simulator corresponding to the historical outbound call request information.
[0120] The outbound call simulation platform needs to support services of multiple protocols. The outbound call simulation platform provides simulator functions for multiple protocols and message formats. For users of the outbound call simulation platform, it is necessary to understand the professional terms defined by the outbound call simulation platform and combine them with the application domain knowledge to correctly and smoothly obtain the desired simulator.
[0121] The process of users obtaining simulators is often difficult, and they need to communicate with the technical staff of the outbound call simulation platform many times before they can apply for an accurate simulator. The simulator classification model is trained using simulator logs. When users obtain simulators, they only need to fill in the outbound call request information, and the simulator classification model can be called to predict the simulator type of the outbound call simulation platform that the user expects. This process is transparent and imperceptible to users, greatly improving user efficiency and user experience, allowing the outbound call simulation platform to be freed from manual operation and maintenance and to provide services to the outside world in a fully automated manner.
[0122] Figure 5 The structural block diagram of the testing device of the simulator according to the embodiment of the present disclosure is schematically shown.
[0123] like Figure 5 As shown, the simulator test device 500 of this embodiment includes an input module 510 , an extraction module 520 , a configuration module 530 and an outbound call function test module 540 .
[0124] The input module 510 is used to respond to the user inputting the outbound call request information in the outbound call simulation platform, input the outbound call request information into the simulator classification model, and obtain at least one simulator to be configured. In one embodiment, the input module 510 can be used to perform the operation S210 described above, which will not be repeated here.
[0125] The extraction module 520 is used to extract the service identifier from the outbound call request information according to the type of at least one simulator to be configured, and obtain the service response message from the outbound call simulation platform according to the service identifier. In one embodiment, the extraction module 520 can be used to perform the operation S220 described above, which will not be repeated here.
[0126] The configuration module 530 is used to configure at least one simulator to be configured based on the service response message and the service identifier to obtain at least one target simulator. In one embodiment, the configuration module 530 can be used to perform the operation S230 described above, which will not be described in detail here.
[0127] The outbound call function test module 540 is used to perform an outbound call function test on at least one target simulator according to the outbound call request information. In one embodiment, the outbound call function test module 540 can be used to perform the operation S240 described above, which will not be described in detail here.
[0128] According to an embodiment of the present disclosure, the outbound call request information includes an outbound call request address and an outbound call request message; the extraction module 520 includes a parsing submodule or an identification submodule. The parsing submodule is used for parsing the outbound call request address according to the type of the simulator to be configured for at least one simulator to be configured belonging to a different type, and obtaining the parsed outbound call request address; and extracting the service identifier from the parsed outbound call request address. The identification submodule is used for performing transaction service identification on the outbound call request message according to the type of the simulator to be configured for at least one simulator to be configured belonging to the same type, and obtaining the service identifier.
[0129] According to an embodiment of the present disclosure, the identification submodule includes a parsing unit and an identification unit. The parsing unit is used to parse the outbound call request message according to the type of the simulator to be configured to obtain a target outbound call message. The identification unit is used to identify the transaction service of the target outbound call message according to a preset field to obtain a service identifier.
[0130] According to an embodiment of the present disclosure, the parsing unit includes a determining subunit and a parsing subunit. The determining subunit is used to determine the message format of the outbound call request message according to the type of the simulator to be configured. The parsing subunit is used to parse the outbound call request message according to the message format to obtain the target outbound call message.
[0131] According to an embodiment of the present disclosure, the simulator classification model is trained based on the following method: extracting historical outbound call request information from the simulator log according to the text format of the simulator log and preset extraction fields; performing text processing on the historical outbound call request information to obtain at least one word vector; inputting at least one word vector into a context prediction model to obtain a target text vector; and using the target text vector to train the simulator classification model.
[0132] According to an embodiment of the present disclosure, historical outbound call request information includes a historical outbound call request address and a historical outbound call request message; performing text processing on the historical outbound call request information to obtain at least one word vector includes: performing text processing on the historical outbound call request message to obtain at least one word vector; training a simulator classification model using the target text vector includes: training a simulator classification model using the target text vector, the historical outbound call request address and a simulator label, the simulator label representing the simulator corresponding to the historical outbound call request information.
[0133] According to an embodiment of the present disclosure, text processing is performed on historical outbound call request messages to obtain at least one word vector, including: cleaning the historical outbound call request messages to obtain cleaned messages; segmenting the cleaned messages according to the protocol type of the historical outbound call request address to obtain at least one field; and vectorizing at least one field to obtain at least one word vector.
[0134] According to an embodiment of the present disclosure, any multiple modules among the input module 510, the extraction module 520, the configuration module 530 and the outbound call function test module 540 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the input module 510, the extraction module 520, the configuration module 530 and the outbound call function test module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the input module 510, the extraction module 520, the configuration module 530 and the outbound call function test module 540 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0135] Figure 6 A block diagram of an electronic device suitable for implementing a simulator testing method according to an embodiment of the present disclosure is schematically shown.
[0136] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0137] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0138] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0139] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0140] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.
[0141] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the simulator test method provided by the embodiment of the present disclosure.
[0142] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0143] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0144] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.
[0145] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0146] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. 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.
[0147] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0148] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A simulator testing method, characterized in that: The method comprises: In response to an operation in which a user inputs outbound call request information in an outbound call simulation platform, the outbound call request information is input into a simulator classification model to obtain at least one simulator to be configured, wherein the outbound call request information represents a request for at least one outbound call service, and the simulator classification model is obtained by training using simulator logs of multiple simulators in the outbound call simulation platform, wherein the simulator logs include historical outbound call request information of the simulator; Extracting a service identifier from the outbound call request information according to the type of the at least one simulator to be configured, and acquiring a service response message from the outbound call simulation platform according to the service identifier; Configure the at least one simulator to be configured based on the service response message and the service identifier to obtain at least one target simulator; An outbound call function test is performed on the at least one target simulator according to the outbound call request information.
2. The method according to claim 1, characterized in that The outbound call request information includes an outbound call request address and an outbound call request message; The extracting the service identifier from the outbound call request information according to the type of the at least one simulator to be configured comprises: For the at least one simulator to be configured belonging to a different type of simulator, the outbound call request address is parsed according to the type of the simulator to be configured to obtain a parsed outbound call request address; and the service identifier is extracted from the parsed outbound call request address; or As for the at least one simulator to be configured belonging to the same type of simulator, transaction service identification is performed on the outbound call request message according to the type of the simulator to be configured to obtain the service identifier.
3. The method according to claim 2, characterized in that The performing transaction service identification on the outbound call request message according to the type of the simulator to be configured to obtain the service identifier comprises: Parsing the outbound call request message according to the type of the simulator to be configured to obtain a target outbound call message; The target outbound call message is subjected to transaction service identification according to the preset field to obtain the service identifier.
4. The method according to claim 3, characterized in that The parsing of the outbound call request message according to the type of the simulator to be configured to obtain a target outbound call message includes: Determining the message format of the outbound call request message according to the type of the simulator to be configured; The outbound call request message is parsed according to the message format to obtain the target outbound call message.
5. The method according to claim 1, characterized in that The simulator classification model is trained based on the following method: Extracting the historical outbound call request information from the simulator log according to the text format of the simulator log and the preset extraction field; Performing text processing on the historical outbound call request information to obtain at least one word vector; Inputting the at least one word vector into a context prediction model to obtain a target text vector; The simulator classification model is trained using the target text vector.
6. The method according to claim 5, characterized in that The historical outbound call request information includes a historical outbound call request address and a historical outbound call request message; The performing text processing on the historical outbound call request information to obtain at least one word vector comprises: Performing text processing on the historical outbound call request message to obtain at least one word vector; The using the target text vector to train the simulator classification model comprises: The simulator classification model is trained using the target text vector, the historical outbound call request address and a simulator label, wherein the simulator label represents the simulator corresponding to the historical outbound call request information.
7. The method according to claim 6, characterized in that The text processing of the historical outbound call request message to obtain at least one word vector includes: Cleaning the historical outbound call request message to obtain a cleaned message; Segment the cleaned message according to the protocol type of the historical outbound call request address to obtain at least one field; The at least one field is vectorized to obtain the at least one word vector.
8. A simulator testing device, characterized in that: The device comprises: An input module, for responding to an operation of a user inputting outbound call request information in an outbound call simulation platform, inputting the outbound call request information into a simulator classification model to obtain at least one simulator to be configured, wherein the outbound call request information represents a request for at least one outbound call service, and the simulator classification model is obtained by training using simulator logs of multiple simulators in the outbound call simulation platform, wherein the simulator logs include historical outbound call request information of the simulator; An extraction module, used to extract a service identifier from the outbound call request information according to the type of the at least one simulator to be configured, and obtain a service response message from the outbound call simulation platform according to the service identifier; A configuration module, configured to configure the at least one simulator to be configured based on the service response message and the service identifier to obtain at least one target simulator; The outbound call function testing module is used to perform an outbound call function test on the at least one target simulator according to the outbound call request information.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.