Interactive service testing method, device, computer equipment and storage medium
By obtaining and updating the sub-interactive services in the interactive service, the testing efficiency of the interactive service is improved, the problem of low testing efficiency in the existing technology is solved, and the object data is quickly obtained for testing the interactive service.
Patent Information
- Application Number
- CN202211483873.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-11-24
AI Technical Summary
In the existing technology, the testing efficiency of interactive services is low, and it is necessary to request the use permission of a third-party open data acquisition service, resulting in a cumbersome testing process and the inability to immediately test interactive services.
By obtaining the sub-interactive service to be replaced and the preset sub-interactive service in the business scenario, update processing is performed to obtain the updated interactive service, and the object data is obtained through the updated interactive service to perform test processing of the interactive service.
It improves the testing efficiency of interactive services, can quickly obtain object data of business scenarios, and simplifies the testing process.
Smart Images

Figure CN115811481B
Abstract
Description
Technical Field
[0001] The present application relates to the field of test processing technology, and in particular to an interactive service testing method, apparatus, computer equipment and storage medium, wherein the storage medium is a computer-readable storage medium. Background Art
[0002] With the development of businesses such as financial services, it is currently necessary to obtain user data through data acquisition services provided by third parties in order to implement interactive services corresponding to business scenarios. Among them, the data acquisition services provided by third parties require the third parties to open relevant usage permissions before they can be used.
[0003] However, after developing the interactive service corresponding to the business scenario, if the interactive service corresponding to the business scenario needs to be tested, it is necessary to request the third party to obtain the permission to use the open data service. In this way, the interactive service cannot be tested immediately.
[0004] In summary, there is currently a problem of low testing efficiency for interactive services. Summary of the invention
[0005] The embodiments of the present application provide an interactive service testing method, apparatus, computer equipment, and storage medium, which can improve the testing efficiency of interactive services.
[0006] An interactive service testing method, comprising:
[0007] Obtain the sub-interaction service to be replaced in the interaction service corresponding to the business scenario, and obtain the preset sub-interaction service corresponding to the business scenario;
[0008] According to the preset sub-interactive service and the sub-interactive service to be replaced, the interactive service is updated to obtain an updated interactive service;
[0009] Obtain object data corresponding to the business scenario through the preset sub-interaction service in the updated interaction service;
[0010] According to the object data, the interactive services corresponding to the business scenarios are tested and processed.
[0011] Accordingly, an embodiment of the present application provides an interactive service testing device, including:
[0012] The first acquisition unit may be used to acquire the sub-interaction service to be replaced in the interaction service corresponding to the business scenario, and acquire the preset sub-interaction service corresponding to the business scenario;
[0013] An updating unit, which may be used to update the interactive service according to the preset sub-interactive service and the sub-interactive service to be replaced, to obtain an updated interactive service;
[0014] The second acquisition unit may be used to acquire object data corresponding to the business scenario through a preset sub-interaction service in the updated interaction service;
[0015] The test unit can be used to test the interactive services corresponding to the business scenarios based on the object data.
[0016] In some embodiments, the test unit can be specifically used to filter the sub-interaction services through the data in the updated interactive service, filter the object feature data in the object data, and obtain the object feature data corresponding to the business scenario; based on the object feature data, test the interactive service corresponding to the business scenario.
[0017] In some embodiments, the test unit can be specifically used to obtain scenario feature data of the business scenario; through the data screening sub-interaction service in the updated interactive service, the object feature data is screened in the object data according to the scenario feature data to obtain the object feature data corresponding to the business scenario.
[0018] In some embodiments, the second acquisition unit may be specifically used to acquire a test data set for an interactive service, where the test data set includes test data of at least one data type; and extract object data corresponding to a business scenario from the test data according to the data type.
[0019] In some embodiments, the second acquisition unit may be specifically configured to acquire a data acquisition request for object data; and acquire object data corresponding to the business scenario according to the data acquisition request through a preset sub-interaction service in the updated interaction service.
[0020] In some embodiments, the updating unit may be specifically configured to replace the sub-interaction service to be replaced according to a preset sub-interaction service to obtain a replaced sub-interaction service; and update the interaction service according to the replaced sub-interaction service to obtain an updated interaction service.
[0021] In some embodiments, the updating unit can be specifically used to obtain a first service address of a preset sub-interaction service and a second service address of the sub-interaction service to be replaced; replace the second service address according to the first service address to obtain the replaced sub-interaction service.
[0022] In addition, an embodiment of the present application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any interactive service testing method provided in the embodiment of the present application.
[0023] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any interactive service testing method provided in the embodiment of the present application.
[0024] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which implements any interactive service testing method provided in the embodiment of the present application when the computer program is executed by a processor.
[0025] The embodiment of the present application can obtain the sub-interaction service to be replaced in the interactive service corresponding to the business scenario, and obtain the preset sub-interaction service corresponding to the business scenario; update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced to obtain the updated interactive service; obtain the object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service; test the interactive service corresponding to the business scenario according to the object data. Since the embodiment of the present application can update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced, the object data corresponding to the business scenario can be quickly obtained based on the preset sub-interaction service in the updated interactive service, thereby improving the testing efficiency of the interactive service. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 It is a scenario diagram of the interactive service testing method provided in an embodiment of the present application;
[0028] Figure 2 1 is a flowchart of an interactive service testing method provided in an embodiment of the present application;
[0029] Figure 3 FIG2 is a flow chart of the interactive service testing method provided in an embodiment of the present application;
[0030] Figure 4 is a structural diagram of an interactive service testing device provided in an embodiment of the present application;
[0031] Figure 5 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0033] The embodiment of the present application provides an interactive service testing method, apparatus, computer equipment and computer readable storage medium. The interactive service testing apparatus can be integrated in a computer equipment, which can be a server or a terminal.
[0034] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0035] For example, see Figure 1 Taking the interactive service testing device integrated in a computer device as an example, the computer device can obtain the sub-interactive service to be replaced in the interactive service corresponding to the business scenario, and obtain the preset sub-interactive service corresponding to the business scenario; update the interactive service according to the preset sub-interactive service and the sub-interactive service to be replaced to obtain the updated interactive service; obtain the object data corresponding to the business scenario through the preset sub-interactive service in the updated interactive service; and test the interactive service corresponding to the business scenario according to the object data.
[0036] Among them, the business scenario is, for example, a bank's loan business scenario, and another example is a bank's deposit scenario, etc. The business scenario is specifically implemented through a business interaction service. The business interaction service can be a service constructed by at least one business sub-interaction service. Among them, the preset sub-interaction service and the to-be-replaced sub-interaction service belong to the business sub-interaction service. Among them, the business sub-interaction service can specifically be an interface, and the business sub-interaction service can also specifically be an application with an interactive function.
[0037] The object data may refer to data used to test the interactive service corresponding to the business scenario. Specifically, the object data may refer to object data of a test object, and the test object may be a user.
[0038] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0039] This embodiment will be described from the perspective of an interactive service testing device, which can be specifically integrated in a computer device, which can be a server or a terminal. The terminal can include a tablet computer, a laptop computer, a personal computer (PC), a wearable device, a virtual reality device, or other smart devices that can acquire data.
[0040] like Figure 2 As shown, the specific process of the interactive service testing method is as follows: Step S201 to Step S204:
[0041] S201: Acquire a sub-interaction service to be replaced in an interaction service corresponding to a business scenario, and acquire a preset sub-interaction service corresponding to the business scenario.
[0042] In some application embodiments, the sub-interaction service to be replaced may have a corresponding service identifier. Based on this, the method for obtaining the sub-interaction service to be replaced in the interaction service corresponding to the business scenario may be: obtaining the sub-interaction service to be replaced in the interaction service corresponding to the business scenario based on the service identifier.
[0043] In some application embodiments, a method for obtaining a sub-interaction service to be replaced in an interactive service corresponding to a business scenario may be: obtaining a business scenario test page, the business scenario test page including at least one sub-interaction service of the interactive service, the replacement sub-interaction service belonging to the sub-interaction service; in response to a selection operation on the sub-interaction service, filtering out the sub-interaction service to be replaced in the interactive service corresponding to the business scenario from the sub-interaction services.
[0044] In some application embodiments, the preset sub-interaction service may have a corresponding candidate service identifier, based on which the preset sub-interaction service corresponding to the business scenario may be acquired based on the candidate service identifier.
[0045] In some application embodiments, a method for obtaining a preset sub-interaction service corresponding to a business scenario may be: obtaining a business scenario test page, the business scenario test page including at least one sub-interaction service of the interaction service, the preset sub-interaction service belonging to the sub-interaction service; in response to a determination operation on the sub-interaction service, filtering out the preset sub-interaction service corresponding to the business scenario from the sub-interaction services.
[0046] S202: Update the interactive service according to the preset sub-interactive service and the sub-interactive service to be replaced to obtain an updated interactive service.
[0047] In some application embodiments, the interactive service is updated according to a preset sub-interaction service and a sub-interaction service to be replaced, and the method for obtaining the updated interactive service can be: replacing the sub-interaction service to be replaced according to the preset sub-interaction service to obtain the replaced sub-interaction service; updating the interactive service according to the replaced sub-interaction service to obtain the updated interactive service.
[0048] In some application embodiments, a sub-interaction service to be replaced is replaced according to a preset sub-interaction service, and a method for obtaining the replaced sub-interaction service can be: a data packet of the preset sub-interaction service is replaced with a data packet of the sub-interaction service to be replaced, to obtain the replaced sub-interaction service.
[0049] The data packet of the preset sub-interactive service may include the running program of the preset sub-interactive service. The data packet of the sub-interactive service to be replaced may include the running program of the sub-interactive service to be replaced.
[0050] In one example, a sub-interaction service to be replaced is replaced according to a preset sub-interaction service, and a method for obtaining the replaced sub-interaction service may be: obtaining a first service address of the preset sub-interaction service, and obtaining a second service address of the sub-interaction service to be replaced; replacing the second service address according to the first service address to obtain the replaced sub-interaction service.
[0051] In some application embodiments, the interactive service is updated according to the replaced sub-interactive service, and the updated interactive service is obtained as follows: the computer device updates the interactive service in response to a confirmation instruction for the replaced sub-interactive service to obtain the updated interactive service.
[0052] S203: Obtain object data corresponding to the business scenario through the preset sub-interaction service in the updated interaction service.
[0053] In some application embodiments, the method for obtaining object data corresponding to a business scenario through a preset sub-interaction service in an updated interactive service may be: obtaining a test data set for the interactive service, the test data set including test data of at least one data type; and extracting object data corresponding to the business scenario from the test data based on the data type.
[0054] The data type may refer to the type of test data, and specifically, the data type may include an object data type and a device data type.
[0055] The object data type may refer to the type of object data for the test data, and the device data type may refer to the type of device data for the test data.
[0056] In one example, the test data set may be stored in a database, which may be a cloud database or a local database. The interactive service identifier of the interactive service may be associated with the test data set. Based on this, the method for obtaining the test data set for the interactive service may be: according to the association relationship between the interactive service identifier of the interactive service and the test data set, the test data set for the interactive service is obtained.
[0057] In some application embodiments, the method for obtaining object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service can be: obtaining a data acquisition request for the object data; and obtaining the object data corresponding to the business scenario according to the data acquisition request through the preset sub-interaction service in the updated interactive service.
[0058] In one example, the method of obtaining the data acquisition request for the object data may be: in response to a trigger operation for the data acquisition request, obtaining the data acquisition request for the object data, wherein the trigger operation may be a voice operation, an input operation, and so on.
[0059] In one example, the method of obtaining object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service according to the data acquisition request can be: obtaining a test data set for the interactive service through the preset sub-interaction service in the updated interactive service according to the data acquisition request, the test data set including test data of at least one data type; extracting object data corresponding to the business scenario from the test data according to the data type. The details of "obtaining a test data set for the interactive service" and "extracting object data corresponding to the business scenario from the test data according to the data type" can be found in the above, and will not be repeated here.
[0060] S204: Test the interactive service corresponding to the business scenario according to the object data.
[0061] In some application embodiments, the method for testing and processing the interactive service corresponding to the business scenario based on the object data can be: filtering the sub-interactive service through the data in the updated interactive service, filtering and processing the object feature data in the object data, and obtaining the object feature data corresponding to the business scenario; and testing and processing the interactive service corresponding to the business scenario based on the object feature data.
[0062] The data screening sub-service is an interactive service in the updated interactive service. The data screening sub-service can be used to screen object feature data in object data to obtain object feature data corresponding to the business scenario.
[0063] Among them, the object data may include multiple object feature data of the object. For example, the object feature data may be user portrait data. Different business scenarios have different user portrait data. Based on this, in one example, the object feature data is filtered and processed in the object data through the data filtering sub-interaction service in the updated interactive service. The method for obtaining the object feature data corresponding to the business scenario may be: obtaining the scene feature data of the business scenario; and filtering and processing the object feature data in the object data according to the scene feature data through the data filtering sub-interaction service in the updated interactive service to obtain the object feature data corresponding to the business scenario.
[0064] The scenario characteristic data may be data characterizing characteristics of a business scenario, for example, the scenario characteristic data may be a scenario identifier.
[0065] Based on the above, the embodiments of the present application are further described below. It should be noted that the computer device is used as a server as an example for description, and the server is deployed as a sub-interaction service in the interaction service, such as a preset sub-interaction service, a data screening sub-interaction service, and a test sub-interaction service.
[0066] The embodiment of the present application obtains the to-be-replaced sub-interaction service in the interactive service corresponding to the business scenario, and obtains the preset sub-interaction service corresponding to the business scenario. The interactive service is updated according to the preset sub-interaction service and the to-be-replaced sub-interaction service to obtain an updated interactive service.
[0067] The sub-interaction service to be replaced may be a service currently being used by the interactive service. For example, the sub-interaction service to be replaced is a data acquisition service of a third party.
[0068] Among them, the preset sub-interaction service can be a customized interaction service, and the preset sub-interaction service can also be called a basic data test stub service in the embodiment of the present application. The basic data test stub service can provide a Webservice protocol interface; the Http protocol interface can also be encapsulated in the basic data test stub service; the basic data test stub service can also perform specific processing on the received test data, such as encrypting the test data, adding a timestamp to the test data, and mapping and returning according to the request, etc.
[0069] Among them, the application process of the basic data test stub service is achieved by using Axis2, the next generation of Apache Axis. The SOAP engine of Axis2 can be easily inserted into the implementation of Web service standards and protocols such as WS-Security, WS-ReliableMessaging, etc.
[0070] Web service is a platform-independent, low-coupled, self-contained, programmable Web-based application that can use the open XML (a subset of the standard generalized markup language) standard to describe, publish, discover, coordinate and configure these applications for the development of distributed interactive applications. The embodiment of the present application can generate the corresponding java class from the wsdl file provided by the Web service through Axis2, so that the interface provided by the Web service can be called just like a local class. In the java class, the net provided by JDK is used, and no other jar packages, HttpURLConnection, Http interface request, etc. are required to obtain test data.
[0071] Based on the above, if Figure 3 As shown, the process of obtaining object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service in the embodiment of the present application can be specifically as follows: the preset sub-interaction service obtains a test data set for the interactive service through the Http protocol, and the test data set includes test data of at least one data type; then, the preset sub-interaction service extracts the object data corresponding to the business scenario from the test data according to the data type.
[0072] Next, the preset sub-interaction service is sent to the data screening sub-interaction service through the Webservice protocol. The data screening sub-service may also be referred to as a data layer in the embodiment of the present application.
[0073] Based on the above, according to the object data, the method for testing the interactive service corresponding to the business scenario can be: through the data screening sub-interaction service in the updated interactive service, the object feature data is screened in the object data to obtain the object feature data corresponding to the business scenario; then, the data screening sub-interaction service sends the object feature data to the test sub-interaction service through the Http protocol; through the test sub-interaction service, the interactive service corresponding to the business scenario is tested according to the object feature data.
[0074] Among them, the specific method of testing and processing the interactive service corresponding to the business scenario according to the object characteristic data through the test sub-interaction service can be: obtaining the template data of the business scenario through the test sub-interaction service; matching the template data and the object characteristic data through the test sub-interaction service to test and process the interactive service corresponding to the business scenario.
[0075] The template data may be pre-set data used to match the object feature data.
[0076] Among them, when the template data and the object feature data are the same, this situation can be called the template data and the object feature data match; correspondingly, when the template data and the object feature data are different, this situation can be called the template data and the object feature data do not match.
[0077] When the similarity between the template data and the object feature data is greater than a preset similarity threshold, the template data and the object feature data are said to match; correspondingly, when the similarity between the template data and the object feature data is less than or equal to the preset similarity threshold, the template data and the object feature data are said to mismatch.
[0078] Among them, a similarity function such as Gaussian kernel similarity, cosine similarity function, etc. can be used to calculate the similarity between the template data and the object feature data.
[0079] Among them, when the template data and the object characteristic data match, it indicates that the test of the interactive service corresponding to the business scenario has passed; when the template data and the object characteristic data do not match, it indicates that the test of the interactive service corresponding to the business scenario has failed.
[0080] After the basic data test stub service introduces the adapted Web service technology, the embodiment of the present application can support more object feature data of the test business scenario, and the basic data test stub service can interact through the Webservice protocol.
[0081] The embodiments of the present application can support the data requirements of unit testing in the development phase, realize the data foundation of user portraits, reduce the communication costs and time costs across departments and platforms, and improve the efficiency of system interaction on the business side; at the same time, the interactions between departments within the bank are complex and highly dependent, which can ensure the normal operation of the front-end business system.
[0082] The embodiment of the present application can obtain the sub-interaction service to be replaced in the interactive service corresponding to the business scenario, and obtain the preset sub-interaction service corresponding to the business scenario; update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced to obtain the updated interactive service; obtain the object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service; test the interactive service corresponding to the business scenario according to the object data. Since the embodiment of the present application can update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced, the object data corresponding to the business scenario can be quickly obtained based on the preset sub-interaction service in the updated interactive service, thereby improving the testing efficiency of the interactive service.
[0083] In order to better implement the above method, an embodiment of the present application also provides an interactive service testing device, which can be integrated into a computer device, such as a server or a terminal, and the terminal may include a tablet computer, a laptop computer and / or a personal computer.
[0084] For example, Figure 4 As shown, the interactive service testing device may include a first acquisition unit 301, an updating unit 302, a second acquisition unit 303 and a testing unit 304, as follows:
[0085] (1) a first acquisition unit;
[0086] The first acquisition unit may be configured to acquire a sub-interaction service to be replaced in an interaction service corresponding to a business scenario, and acquire a preset sub-interaction service corresponding to a business scenario.
[0087] (2) Update unit;
[0088] The updating unit may be used to update the interactive service according to the preset sub-interactive service and the sub-interactive service to be replaced to obtain an updated interactive service.
[0089] In some application embodiments, the updating unit can be used to replace the sub-interaction service to be replaced according to a preset sub-interaction service to obtain a replaced sub-interaction service; and update the interaction service according to the replaced sub-interaction service to obtain an updated interaction service.
[0090] In some application embodiments, the update unit can be used to obtain a first service address of a preset sub-interaction service and a second service address of the sub-interaction service to be replaced; the second service address is replaced according to the first service address to obtain the replaced sub-interaction service.
[0091] (3) a second acquisition unit;
[0092] The second acquisition unit may be configured to acquire object data corresponding to the business scenario through a preset sub-interaction service in the updated interaction service.
[0093] In some application embodiments, the second acquisition unit can be used to acquire a test data set for an interactive service, where the test data set includes test data of at least one data type; based on the data type, object data corresponding to the business scenario is extracted from the test data.
[0094] In some application embodiments, the second acquisition unit can be used to obtain a data acquisition request for object data; and obtain the object data corresponding to the business scenario according to the data acquisition request through a preset sub-interaction service in the updated interaction service.
[0095] (4) Test unit;
[0096] The test unit can be used to test the interactive services corresponding to the business scenarios based on the object data.
[0097] In some application embodiments, the test unit can be used to filter the sub-interaction services through the data in the updated interactive service, filter the object feature data in the object data, and obtain the object feature data corresponding to the business scenario; and test the interactive service corresponding to the business scenario based on the object feature data.
[0098] In some application embodiments, the test unit can be used to obtain scenario feature data of the business scenario; by updating the data screening sub-interaction service in the interactive service, the object feature data is screened and processed in the object data according to the scenario feature data to obtain the object feature data corresponding to the business scenario.
[0099] As can be seen from the above, the first acquisition unit of the embodiment of the present application can acquire the sub-interaction service to be replaced in the interactive service corresponding to the business scenario, and acquire the preset sub-interaction service corresponding to the business scenario; the update unit can be used to update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced, and obtain the updated interactive service; the second acquisition unit can be used to acquire the object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service; the test unit can be used to test the interactive service corresponding to the business scenario according to the object data. Since the embodiment of the present application can update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced, the object data corresponding to the business scenario can be quickly acquired based on the preset sub-interaction service in the updated interactive service, thereby improving the testing efficiency of the interactive service.
[0100] The present application also provides a computer device, such as Figure 5 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0101] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 5 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0102] The processor 401 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the computer device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and computer programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0103] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0104] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0105] The computer device may further include an input unit 404, which may be used to receive input digital or character information communications and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0106] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 will run the computer programs stored in the memory 402, thereby realizing various functions, as follows:
[0107] Obtain the sub-interaction service to be replaced in the interactive service corresponding to the business scenario, and obtain the preset sub-interaction service corresponding to the business scenario; update the interactive service according to the preset sub-interaction service and the sub-interaction service to be replaced to obtain the updated interactive service; obtain the object data corresponding to the business scenario through the preset sub-interaction service in the updated interactive service; test the interactive service corresponding to the business scenario according to the object data.
[0108] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0109] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0110] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute any interactive service testing method provided in the embodiment of the present application.
[0111] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0112] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0113] Since the instructions stored in the computer-readable storage medium can execute the steps in any interactive service testing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any interactive service testing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0114] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementations provided in the above embodiments.
[0115] The above is a detailed introduction to an interactive service testing method, device, computer equipment and computer-readable storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An interactive service testing method, characterized in that: include: Acquire a sub-interaction service to be replaced in the interaction service corresponding to the business scenario, and acquire a preset sub-interaction service corresponding to the business scenario; According to the preset sub-interaction service and the to-be-replaced sub-interaction service, the interaction service is updated to obtain an updated interaction service; Acquire object data corresponding to the business scenario through a preset sub-interaction service in the updated interaction service; Acquire scenario feature data of the business scenario; By using the data screening sub-interaction service in the updated interaction service, according to the scenario feature data, the object feature data is screened in the object data to obtain the object feature data corresponding to the business scenario; The interactive service corresponding to the business scenario is tested according to the object characteristic data.
2. The interactive service testing method according to claim 1, characterized in that: The acquiring the object data corresponding to the business scenario through the preset sub-interaction service in the updated interaction service includes: Acquire a test data set for the interactive service, wherein the test data set includes test data of at least one data type; According to the data type, object data corresponding to the business scenario is extracted from the test data.
3. The interactive service testing method according to claim 1, characterized in that: The acquiring the object data corresponding to the business scenario through the preset sub-interaction service in the updated interaction service includes: Obtaining a data acquisition request for the object data; The object data corresponding to the business scenario is acquired according to the data acquisition request through the preset sub-interaction service in the updated interaction service.
4. The interactive service testing method according to claim 1, characterized in that: The updating process of the interactive service according to the preset sub-interactive service and the to-be-replaced sub-interactive service to obtain an updated interactive service includes: Performing a replacement process on the to-be-replaced sub-interaction service according to the preset sub-interaction service to obtain a replaced sub-interaction service; The interactive service is updated according to the replaced sub-interactive service to obtain an updated interactive service.
5. The interactive service testing method according to claim 4, characterized in that: The replacing the to-be-replaced sub-interaction service according to the preset sub-interaction service to obtain the replaced sub-interaction service includes: Acquire a first service address of the preset sub-interaction service, and acquire a second service address of the sub-interaction service to be replaced; The second service address is replaced according to the first service address to obtain a replaced sub-interaction service.
6. An interactive service testing device, characterized in that: include: A first acquisition unit, configured to acquire a sub-interaction service to be replaced in an interaction service corresponding to a business scenario, and to acquire a preset sub-interaction service corresponding to the business scenario; an updating unit, configured to update the interactive service according to the preset sub-interactive service and the sub-interactive service to be replaced, to obtain an updated interactive service; A second acquisition unit, configured to acquire object data corresponding to the business scenario through a preset sub-interaction service in the updated interaction service; A testing unit, used to obtain scenario feature data of the business scenario; By filtering the sub-interactive service through the data in the updated interactive service, the object characteristic data is filtered and processed in the object data according to the scenario characteristic data to obtain the object characteristic data corresponding to the business scenario; and the interactive service corresponding to the business scenario is tested and processed according to the object characteristic data.
7. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the interactive service testing method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the interactive service testing method according to any one of claims 1 to 5.
