Method and device for function test of SO service, storage medium and computer device

By transforming and randomly testing SO service request data, the problem of verifying the reliability of SO services in marketing platforms was solved. This enabled comprehensive testing of SO service functions and discovery of potential problems, improving the reliability and testing efficiency of the integrated SO service.

CN117648254BActive Publication Date: 2026-08-25VIPSHOP (GUANGZHOU) SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311636265.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2026-08-25
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

Existing technologies make it difficult to fully verify the reliability of SO services migrated to marketing platforms, especially considering potential conflicts and unreliability issues after the integration of SO services with marketing platform rules.

Method used

By periodically pulling SO service request data and converting it into marketing platform request data, randomly selecting data correspondences for testing, comparing the response data of the target server and the marketing platform server, calculating the proportion to determine the functional test results, and generating an information display page and alarms when the test fails.

Benefits of technology

This enabled thorough verification of the robustness and performance of the SO service within the marketing platform, uncovering potential issues and rule conflicts, and improving the reliability and testing efficiency of the integrated SO service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117648254B_ABST
    Figure CN117648254B_ABST
Patent Text Reader

Abstract

The application provides a function test method and device of SO service, a storage medium and a computer device. The computer device can pull each SO service request data sent to a target server at a regular time, convert each SO service request data into marketing platform request data, and record the data correspondence between each SO service request data and each marketing platform request data. When the function test is performed, a plurality of test relationships can be randomly selected from each data correspondence, the SO service request data in each test relationship is sent to the target server, and the marketing platform request data in each test relationship is sent to a marketing platform server. In this way, various user behaviors and situations in a real situation can be simulated based on strong randomness and diversification of the data, so that the robustness and performance of the SO service integrated in the marketing service can be fully verified, and potential problems and rule conflicts after integration can be found.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a functional testing method, apparatus, storage medium, and computer equipment for SO services. Background Technology

[0002] Order placement (SO) service, also known as merchant order service, refers to recommending or filtering product information displayed on e-commerce platforms based on the logged-in user's preferences, location, and other personalized information. This ensures that the product information displayed on the e-commerce platform better matches the logged-in user's needs. For example, when a logged-in user searches for "shirt" on an e-commerce platform, SO service can filter out sold-out products and return information on available products to the logged-in user.

[0003] In the development and maintenance of e-commerce platform features, SO services and marketing platforms are typically developed in parallel by different teams, and then the SO services are integrated into the marketing platform after development is complete. However, because SO services involve a large number of information filtering, recommendation, and screening rules, and these rules may change with changes in user behavior data, conflicts may exist between different rules involved in the marketing platform. Therefore, it is difficult to fully verify the reliability of the SO services integrated into the marketing platform. Summary of the Invention

[0004] The purpose of this application is to at least address one of the aforementioned technical deficiencies, particularly the technical deficiency in the prior art that makes it difficult to fully verify the reliability of SO services migrated to marketing platforms.

[0005] In a first aspect, embodiments of this application provide a functional testing method for an SO service, the method comprising:

[0006] The system periodically pulls SO service request data sent by the target server, which is used to provide SO services that are not integrated with other services.

[0007] According to the preset format conversion rules, each SO service request data is converted into marketing platform request data, and the data correspondence is recorded; wherein, each data correspondence includes SO service request data and marketing platform request data converted based on the SO service request data;

[0008] In response to a functional test instruction, multiple data correspondences are randomly selected as test relationships;

[0009] For each of the test relationships, the SO service request data included in the test relationship is sent to the target server, and the marketing platform request data included in the test relationship is sent to the marketing platform server. The system also receives first response data returned by the target server and second response data returned by the marketing platform server, respectively. The marketing platform server is used to provide marketing services integrated with the SO services.

[0010] Based on each of the first response data and each of the second response data, the SO service function test results are obtained.

[0011] In one embodiment, obtaining the SO service function test results based on each of the first response data and each of the second response data includes:

[0012] For each test relationship, the first product information returned by the target server is obtained based on the first response data corresponding to the test relationship, and the second product information returned by the marketing platform server is obtained based on the second response data corresponding to the test relationship. The first product information and the second product information are compared to determine whether they are the same, and the comparison result corresponding to the test relationship is obtained.

[0013] Based on the total number of test relationships and the comparison results corresponding to each test relationship, a target percentage is calculated; wherein, the target percentage is the proportion of test relationships with the same first product information and second product information to the total number of test relationships;

[0014] If the proportion of the test relationship is not less than the preset proportion threshold, then the test result of the SO service function is determined to be a successful test; otherwise, the test result of the SO service function is determined to be a failed test.

[0015] In one embodiment, the method further includes:

[0016] If the test result of the SO service function is that the test fails, then a test relationship to be displayed is determined in each of the test relationships; the test relationship to be displayed is a test relationship in which the first product information and the second product information are different.

[0017] An information display page is generated based on the SO service request data corresponding to each of the test relationships to be displayed, the marketing platform request data corresponding to each of the test relationships to be displayed, the first response data corresponding to each of the test relationships to be displayed, and the second response data corresponding to each of the test relationships to be displayed.

[0018] The information display page is shown through the front-end device.

[0019] In one embodiment, the method further includes: if the SO service function test result is that the test fails, then sending a prompt message to the alarm electronic terminal.

[0020] In one embodiment, the method further includes: for each test relationship, storing the first response data corresponding to the test relationship, the second response data corresponding to the test relationship, and the comparison result corresponding to the test relationship in a database.

[0021] In one embodiment, the step of converting each SO service request data into marketing platform request data according to preset format conversion rules includes:

[0022] For each SO service request data, user information, product keyword information, and hit rule identifier are extracted from the SO service request data, and the marketing platform request data is generated based on the format conversion rules, the user information, the product keyword information, and the hit rule identifier.

[0023] Secondly, embodiments of this application provide a functional testing apparatus for an SO service, the apparatus comprising:

[0024] The request retrieval module is used to periodically retrieve the various SO service request data sent by the target server, which is used to provide SO services that are not integrated with other services.

[0025] The request conversion module is used to convert each SO service request data into marketing platform request data according to preset format conversion rules, and record the data correspondence; wherein each data correspondence includes SO service request data and marketing platform request data converted based on the SO service request data;

[0026] The random selection module is used to randomly select multiple data correspondences as test relationships in response to functional test instructions;

[0027] The response data acquisition module is used to send SO service request data included in the test relationship to the target server and marketing platform request data included in the test relationship to the marketing platform server for each test relationship, and to receive first response data returned by the target server and second response data returned by the marketing platform server respectively; wherein, the marketing platform server is used to provide marketing services integrated with the SO services;

[0028] The test result acquisition module is used to obtain the test results of the SO service function based on each of the first response data and each of the second response data.

[0029] In one embodiment, the test result acquisition module includes:

[0030] The product information comparison unit is used to obtain, for each test relationship, first product information returned by the target server based on the first response data corresponding to the test relationship, second product information returned by the marketing platform server based on the second response data corresponding to the test relationship, and compare whether the first product information and the second product information are the same to obtain the comparison result corresponding to the test relationship.

[0031] The percentage calculation unit is used to calculate a target percentage based on the total number of test relationships and the comparison result corresponding to each test relationship; wherein, the target percentage is the proportion of test relationships with the same first product information and second product information to the total number of test relationships;

[0032] The percentage comparison unit is used to determine that the SO service function test result is a pass if the percentage of the test relationship is not less than a preset percentage threshold, otherwise, it determines that the SO service function test result is a fail.

[0033] Thirdly, embodiments of this application provide a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the functional testing method for the SO service described in any of the above embodiments.

[0034] Fourthly, embodiments of this application provide a computer device, which includes: one or more processors, and a memory;

[0035] The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the functional testing method for the SO service described in any of the above embodiments.

[0036] In the SO service functional testing methods, apparatus, storage media, and computer devices provided in some embodiments of this application, the computer device can periodically pull SO service request data sent to the target server to retrieve SO service request data with diverse real user information from the online environment. The computer device can convert each SO service request data into marketing platform request data to obtain request data that meets the service protocol used by the marketing platform, and record the data correspondence between each SO service request data and each marketing platform request data.

[0037] During functional testing, the computer device can randomly select multiple test relationships from various data correspondences, thus enabling functional testing with highly random and diverse user information data. The computer device can send SO service request data from each test relationship to the target server, and marketing platform request data from each test relationship to the marketing platform server. Since the target server provides SO services not integrated with other services, and the marketing platform server provides marketing services integrated with SO services, by comparing the first response data returned by the target server with the second response data returned by the marketing platform server, the computer device can simulate various user behaviors and situations in real-world scenarios based on highly random and diverse data. This allows for the thorough verification of the robustness and performance of the SO services integrated into the marketing services, and the identification of potential problems and rule conflicts after integration. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is an application environment diagram of a functional testing method for an SO service in one embodiment.

[0040] Figure 2 This is one of the flowcharts illustrating a functional testing method for an SO service in one embodiment;

[0041] Figure 3 This is the second flowchart illustrating a functional testing method for an SO service in one embodiment.

[0042] Figure 4 This is a schematic diagram of the structure of a functional testing device for an SO service in one embodiment.

[0043] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0045] In one embodiment, the functional testing method for the SO service provided in this application can be applied to Figure 1 The application environment shown is as follows. In this environment, target server 102 provides SO services that are not integrated with other services, while marketing platform server 104 provides marketing services integrated with SO services. Specifically, during service integration, SO services can be integrated into the marketing platform, allowing them to be combined with other services within the platform to jointly provide marketing services. For example, target server 102 can run the program code corresponding to the SO service independently, while marketing platform server 104 can run the program code corresponding to the marketing service. The program code corresponding to the marketing service includes the program code corresponding to the SO service, or the program code corresponding to the marketing service can call the SO service provided by target server 102 and return product information to the user device based on the response data from target server 102.

[0046] Computer device 106 can be a device with data processing capabilities, including but not limited to servers, laptops, and desktop computers. Computer device 106 can periodically pull SO service request data sent by target server 102 from the online system and perform data cleaning on the pulled SO service request data to obtain the request data for each marketing platform. During the functional testing of the SO service, computer device 106 can send SO service request data to target server 102 and corresponding marketing platform request data to marketing platform server 104, using the same user information to make data requests to both target server 102 and marketing platform server 104 in parallel. By comparing the response data of target server 102 and marketing platform server 104, the service functionality of the SO service integrated in the marketing service can be verified.

[0047] It should be noted that all user information in this article was collected with the user's authorization.

[0048] In one embodiment, this application provides a functional testing method for an SO service, and the following embodiments apply this method to... Figure 1 Let's take computer equipment as an example for explanation. Figure 2 As shown, the functional testing method for the SO service in this application may include the following steps:

[0049] S202: Periodically pull the various SO service request data sent by the target server, which is used to provide SO services that are not integrated with other services.

[0050] In this context, SO service request data refers to the data used to request SO services from the target server. It is understood that the request format of SO service request data can be determined according to the protocol used by the SO service, and this document does not impose specific limitations on it. For ease of description, some embodiments in this document use GRPC (Google Remote Procedure Calls) request data as an example of SO service request data.

[0051] When invoking an SO service provided by a target server, the calling terminal can generate corresponding SO service request data according to the protocol used by the SO service, based on user information and search information, so that the SO service request data carries user information and search information. The calling terminal can send the SO service request data to the target server to obtain response data returned by the target server. In this step, the computer device can use a scheduled task to pull each SO service request data sent by the target server to retrieve SO service request data with diverse real user information from the online system. In one example, after retrieving each SO service request data, the computer device can save each SO service request data in a database.

[0052] S204: According to the preset format conversion rules, each SO service request data is converted into marketing platform request data, and the data correspondence is recorded; wherein, each data correspondence includes SO service request data and marketing platform request data converted based on the SO service request data.

[0053] In this step, "marketing platform request data" refers to data used to request marketing services from the marketing platform server. It is understood that the request format for marketing platform request data can be determined based on the protocol used by the marketing service, and this document does not specifically limit this. For ease of description, some embodiments in this document use OSP (Open Service Platform) request data as an example of marketing service request data.

[0054] Considering the different protocols used for SO service request data and marketing platform request data, computer equipment can perform data cleaning on the retrieved SO service request data according to preset format conversion rules to obtain the corresponding marketing platform request data and record the data correspondence. It should be noted that for SO service request data, both the SO service request data and the marketing platform data converted from it contain the same user and search information. That is, the SO service request data and marketing platform request data within the same data correspondence have the same user and search information; the difference lies in their request formats.

[0055] In one example, computer equipment can perform data cleaning periodically to reduce repetitive data maintenance work, thereby improving testing efficiency. It is understood that the data cleaning cycle can be determined according to actual circumstances, and this application does not impose specific limitations on it.

[0056] S206: In response to the functional test instruction, randomly select multiple data correspondences as test relationships.

[0057] In this step, the functional test instruction refers to the instruction used to direct the computer device to perform SO service functional tests, and the test relationship refers to the data correspondence used to test the SO service functions. Upon receiving the functional test instruction, the computer device can randomly select multiple data correspondences from various data correspondences as test relationships. This allows each test relationship to include combinations of multiple sets of user information and search information, thereby improving the diversity and authenticity of the test data. Using diverse test relationships to test the SO service functions can improve the comprehensiveness of the test scope and obtain more accurate test results.

[0058] S208: For each of the test relationships, send SO service request data included in the test relationship to the target server and marketing platform request data included in the test relationship to the marketing platform server, and receive first response data returned by the target server and second response data returned by the marketing platform server respectively; wherein, the marketing platform server is used to provide marketing services integrated with the SO services.

[0059] In this step, since the SO service request data and marketing platform request data included in each test relationship have the same user information and search information, the computer device can use the SO service request data included in each test relationship to request the target server, and use the marketing platform request data included in each test relationship to request the marketing platform server. This allows it to request the target server and marketing platform server respectively using the same user information and search information, and obtain first response data returned by the SO service not integrated with other services, and second response data returned by the marketing service integrated with the SO service. It can be understood that the first response data is the target server's response result message for the SO service request data, and the second response data is the target server's response result message for the marketing platform request data.

[0060] For example, when a test relationship includes both SO service request data A and marketing platform request data B, the computer device can send SO service request data A to the target server, causing the target server to respond to SO service request data A and return first response data. Similarly, the computer device can send marketing platform request data B to the marketing platform server, causing the marketing platform server to respond to marketing platform request data B and return second response data.

[0061] S210: Based on each of the first response data and each of the second response data, obtain the SO service function test results.

[0062] In this step, since each first response data and second response data can reflect the response of the SO service provided by the target server and the marketing service provided by the marketing platform server to the same user information and search information, the computer device can compare the functions of the SO service that is not integrated with other services and the SO service integrated in the marketing service, and obtain the SO service function test results.

[0063] In this application, the computer device can periodically pull various SO service request data sent to the target server to retrieve SO service request data with diverse real user information from the online environment. The computer device can convert each SO service request data into marketing platform request data to obtain request data that meets the service protocol used by the marketing platform, and record the data correspondence between each SO service request data and each marketing platform request data.

[0064] During functional testing, the computer device can randomly select multiple test relationships from various data correspondences, thus enabling functional testing with highly random and diverse user information data. The computer device can send SO service request data from each test relationship to the target server, and marketing platform request data from each test relationship to the marketing platform server. Since the target server provides SO services not integrated with other services, and the marketing platform server provides marketing services integrated with SO services, by comparing the first response data returned by the target server with the second response data returned by the marketing platform server, the computer device can simulate various user behaviors and situations in real-world scenarios based on highly random and diverse data. This allows for the thorough verification of the robustness and performance of the SO services integrated into the marketing services, and the identification of potential problems and rule conflicts after integration.

[0065] In one embodiment, obtaining the SO service function test results based on each of the first response data and each of the second response data includes:

[0066] Step A1: For each test relationship, obtain the first product information returned by the target server based on the first response data corresponding to the test relationship, obtain the second product information returned by the marketing platform server based on the second response data corresponding to the test relationship, and compare whether the first product information and the second product information are the same to obtain the comparison result corresponding to the test relationship;

[0067] Step A3: Calculate the target percentage based on the total number of test relationships and the comparison results corresponding to each test relationship; wherein, the target percentage is the proportion of test relationships with the same first product information and second product information to the total number of test relationships;

[0068] Step A5: If the proportion of the test relationship is not less than the preset proportion threshold, then the test result of the SO service function is determined to be a successful test; otherwise, the test result of the SO service function is determined to be a failed test.

[0069] In this embodiment, after sending SO service request data to the target server, the target server can return first response data including product information to the computer device. Similarly, after returning marketing platform request data to the marketing platform server, the marketing platform server can return second response data including product information to the computer device. In this document, the first response data corresponding to each test relationship refers to the response data returned by the target server in response to the SO service request data after sending the test relationship to the target server. The second response data corresponding to each test relationship refers to the response data returned by the marketing platform server in response to the marketing platform request data after sending the test relationship to the target server.

[0070] For each test relationship, the computer device can compare the first product information included in the first response data corresponding to the test relationship with the second product information included in the second response data corresponding to the test relationship to determine whether the first product information and the second product information are the same and obtain the comparison result.

[0071] Based on the comparison results of each test relationship, the computer device can count the proportion of test relationships with the same product information among all test relationships and obtain the target proportion. If the target proportion is less than a preset proportion threshold, the SO service function test result is "test failed." If the target proportion is greater than or equal to the preset proportion threshold, the SO service function test result is "test passed." It can be understood that the specific value of the preset proportion threshold can be determined according to the actual situation; in one example, the preset proportion threshold can be 100%.

[0072] In this embodiment, by statistically analyzing the proportion of test relationships with the same product information to the total number of test relationships, and based on the relationship between the target proportion and the preset proportion threshold, the SO service function test results are automatically generated. This allows for automatic and accurate testing of whether the SO service integrated into the marketing service has the same function as the SO service provided by the target server.

[0073] In one embodiment, the functional testing method for the SO service of this application may further include the step of: for each test relationship, storing the first response data corresponding to the test relationship, the second response data corresponding to the test relationship, and the comparison result corresponding to the test relationship in a database. Thus, in the event of a test failure, technicians can troubleshoot the problem based on the data stored in the database.

[0074] Furthermore, in one example, the computer device may also store the SO service request data corresponding to each test relationship and the marketing platform request data corresponding to each test relationship in a database.

[0075] In one embodiment, the functional testing method for the SO service of this application may further include the following steps:

[0076] Step B1: If the SO service function test result is that the test fails, then determine the test relationship to be displayed in each of the test relationships; the test relationship to be displayed is the test relationship where the first product information and the second product information are different;

[0077] Step B3: Generate an information display page based on the SO service request data corresponding to each of the test relationships to be displayed, the marketing platform request data corresponding to each of the test relationships to be displayed, the first response data corresponding to each of the test relationships to be displayed, and the second response data corresponding to each of the test relationships to be displayed;

[0078] Step B5: Display the information display page via the front-end device.

[0079] In this embodiment, if the SO service function test fails, the computer device can select test relationships with different product information from among the various test relationships as the test relationships to be displayed. The computer device can summarize the test data corresponding to each test relationship to be displayed, and generate an information display page for display on the front-end device based on the SO service request data, marketing platform request data, first response data, and second response data corresponding to each test relationship to be displayed. In this way, technicians can efficiently discover abnormal issues when the test result is a failure.

[0080] In one embodiment, the functional testing method for the SO service of this application may further include the step of: if the SO service functional test result is a test failure, then sending a prompt message to the alarm electronic terminal. In this way, an efficient and real-time alarm mechanism can promptly remind technical personnel of functional abnormalities in the marketing service, thereby reducing production failures and improving the operational stability and reliability of the marketing platform.

[0081] The alarm electronic terminal can be pre-bound and can be, but is not limited to, smartphones, smart tablets, wearable electronic devices, IoT devices, desktop computers, and laptops. Alarm messages can be sent via SMS or application push notifications; this document does not specify a particular method. In one example, a computer device can send alarm messages to the alarm electronic terminal via WeChat push notifications, enabling technicians to promptly and efficiently detect functional abnormalities.

[0082] In one embodiment, converting each SO service request data into marketing platform request data according to preset format conversion rules includes:

[0083] For each SO service request data, user information, product keyword information, and hit rule identifier are extracted from the SO service request data, and the marketing platform request data is generated based on the format conversion rules, the user information, the product keyword information, and the hit rule identifier.

[0084] Among them, the hit rule identifier refers to the rule identifier of the recommendation rule that the user has matched. Specifically, each SO service request data can include product keyword information, user information, and hit rule identifier. The computer device can convert the request fields in the SO service request data into the request fields in the marketing platform request data according to preset format conversion rules, and obtain the corresponding marketing platform data.

[0085] In one embodiment, such as Figure 3 As shown, the functional testing method for the SO service provided in this application may include the following steps:

[0086] S302: Periodically pull the SO service request data sent by the target server;

[0087] S304: Store the retrieved SO service request data in the database;

[0088] S306: Clean the data of each SO service request according to the preset format conversion rules, so as to convert each SO service request data into marketing platform request data;

[0089] S308: Store the request data from each marketing platform in the database respectively;

[0090] S310: In response to the functional test command, randomly select multiple SO service request data and multiple marketing platform request data as test data; wherein, each SO service request data corresponds one-to-one with each marketing platform request data, and the corresponding SO service request data and marketing platform request data include the same user information and recommendation information;

[0091] S312: Send the SO service request data selected in S310 to the target server respectively, and receive the first response data returned by the target server.

[0092] S314: Send the request data of each marketing platform selected in S310 to the marketing platform server respectively, and receive the second response data returned by the marketing platform server;

[0093] S316: Store each first response data and each second response data in the database;

[0094] S318: Compare each first response data and each second response data, and obtain each comparison result; for a detailed explanation of this step, please refer to the above embodiments, which will not be repeated here;

[0095] S320: Save all comparison results in the database;

[0096] S322: Summarize the results of each comparison and determine the SO service function test results; for details of this step, please refer to the above embodiments, which will not be repeated here.

[0097] S324: Generate an information display page and display it through the front-end device; for a detailed explanation of this step, please refer to the above embodiments, and it will not be repeated here;

[0098] S326: If the SO service function test result is that the test fails, an alarm mechanism will be triggered to issue an alarm.

[0099] In this embodiment, the request service of GRPC related to SO service rules is transformed into the input parameters of OSP service request of marketing platform. Multiple groups of users and policies are randomly selected to make parallel requests to two servers, and the final comparison results are saved in the database. Finally, the SO service migration is judged to meet the expectations by whether the percentage of consistent comparison requests reaches 100%.

[0100] The following describes the functional testing apparatus for SO services provided in the embodiments of this application. The functional testing apparatus for SO services described below can be referred to in correspondence with the functional testing method for SO services described above.

[0101] In one embodiment, this application provides a functional testing apparatus 400 for an SO service. For example... Figure 4 As shown, the device 400 includes:

[0102] The request retrieval module 410 is used to periodically retrieve various SO service request data sent by the target server, which is used to provide SO services that are not integrated with other services.

[0103] The request conversion module 420 is used to convert each SO service request data into marketing platform request data according to a preset format conversion rule, and record the data correspondence; wherein each data correspondence includes SO service request data and marketing platform request data converted based on the SO service request data;

[0104] The random selection module 430 is used to randomly select multiple data correspondences as test relationships in response to functional test instructions;

[0105] The response data acquisition module 440 is used to send SO service request data included in the test relationship to the target server and marketing platform request data included in the test relationship to the marketing platform server for each test relationship, and to receive first response data returned by the target server and second response data returned by the marketing platform server respectively; wherein, the marketing platform server is used to provide marketing services integrated with the SO services;

[0106] The test result acquisition module 450 is used to obtain the SO service function test results based on each of the first response data and each of the second response data.

[0107] In one embodiment, the test result acquisition module 450 of this application includes:

[0108] The product information comparison unit is used to obtain, for each test relationship, first product information returned by the target server based on the first response data corresponding to the test relationship, second product information returned by the marketing platform server based on the second response data corresponding to the test relationship, and compare whether the first product information and the second product information are the same to obtain the comparison result corresponding to the test relationship.

[0109] The percentage calculation unit is used to calculate a target percentage based on the total number of test relationships and the comparison result corresponding to each test relationship; wherein, the target percentage is the proportion of test relationships with the same first product information and second product information to the total number of test relationships;

[0110] The percentage comparison unit is used to determine that the SO service function test result is a pass if the percentage of the test relationship is not less than a preset percentage threshold, otherwise, it determines that the SO service function test result is a fail.

[0111] In one embodiment, the functional testing apparatus 400 for the SO service of this application further includes:

[0112] The module for determining test relationships to be displayed is used to determine test relationships to be displayed from among the various test relationships if the test result of the SO service function is that the test fails; the test relationships to be displayed are test relationships where the first product information and the second product information are different.

[0113] The page generation module is used to generate an information display page based on the SO service request data corresponding to each of the test relationships to be displayed, the marketing platform request data corresponding to each of the test relationships to be displayed, the first response data corresponding to each of the test relationships to be displayed, and the second response data corresponding to each of the test relationships to be displayed.

[0114] The display module is used to display the information display page through a front-end device.

[0115] In one embodiment, the functional testing apparatus 400 for the SO service of this application further includes:

[0116] The information sending module is used to send a prompt message to the alarm electronic terminal if the test result of the SO service function is that the test fails.

[0117] In one embodiment, the functional testing apparatus 400 for the SO service of this application further includes:

[0118] The storage module is used to store the first response data, the second response data, and the comparison result corresponding to each test relationship in the database for each test relationship.

[0119] In one embodiment, the request conversion module 420 of this application includes:

[0120] The conversion unit is used to extract user information, product keyword information and hit rule identifier from each SO service request data, and generate the marketing platform request data based on the format conversion rules, the user information, the product keyword information and the hit rule identifier.

[0121] In one embodiment, this application also provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform steps of a functional testing method for an SO service as described in any embodiment.

[0122] In one embodiment, this application also provides a computer device storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform steps of a functional testing method for an SO service as described in any embodiment.

[0123] Indicatively, Figure 5 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. In one example, the computer device can be a server. (Refer to...) Figure 5 The computer device 900 includes a processing component 902, which further includes one or more processors, and memory resources represented by memory 901 for storing instructions, such as application programs, that can be executed by the processing component 902. The application programs stored in memory 901 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 902 is configured to execute instructions to perform the steps of the functional testing method for the SO service described in any of the above embodiments.

[0124] The computer device 900 may also include a power supply component 903 configured to perform power management of the computer device 900, a wired or wireless network interface 904 configured to connect the computer device 900 to a network, and an input / output (I / O) interface 905. The computer device 900 may operate on an operating system stored in memory 901, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.

[0125] Those skilled in the art will understand that the internal structure of the computer device shown in this application is merely a block diagram of a portion of the structure related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0126] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. In this document, "a," "an," "the," "the," and "its" may also include plural forms unless the context clearly indicates otherwise. "Multiple" refers to at least two, such as 2, 3, 5, or 8, etc. "And / or" includes any and all combinations of the related listed items.

[0127] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0128] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A functional testing method for an SO service, characterized in that, The method includes: The system periodically pulls SO service request data sent by the target server, which is used to provide SO services that are not integrated with other services. According to the preset format conversion rules, each SO service request data is converted into marketing platform request data, and the data correspondence is recorded; wherein, each data correspondence includes SO service request data and marketing platform request data converted based on the SO service request data; In response to a functional test instruction, multiple data correspondences are randomly selected as test relationships; For each of the test relationships, the SO service request data included in the test relationship is sent to the target server, and the marketing platform request data included in the test relationship is sent to the marketing platform server. The system also receives first response data returned by the target server and second response data returned by the marketing platform server, respectively. The marketing platform server is used to provide marketing services integrated with the SO services. Based on each of the first response data and each of the second response data, the SO service function test results are obtained, including: For each test relationship, the first product information returned by the target server is obtained based on the first response data corresponding to the test relationship, and the second product information returned by the marketing platform server is obtained based on the second response data corresponding to the test relationship. The first product information and the second product information are compared to determine whether they are the same, and the comparison result corresponding to the test relationship is obtained. Based on the total number of test relationships and the comparison results corresponding to each test relationship, a target percentage is calculated; wherein, the target percentage is the proportion of test relationships with the same first product information and second product information to the total number of test relationships; If the target percentage is not less than the preset percentage threshold, the SO service function test result is determined to be a pass; otherwise, the SO service function test result is determined to be a fail.

2. The method according to claim 1, characterized in that, The method further includes: If the test result of the SO service function is that the test fails, then a test relationship to be displayed is determined in each of the test relationships; the test relationship to be displayed is a test relationship in which the first product information and the second product information are different. An information display page is generated based on the SO service request data corresponding to each of the test relationships to be displayed, the marketing platform request data corresponding to each of the test relationships to be displayed, the first response data corresponding to each of the test relationships to be displayed, and the second response data corresponding to each of the test relationships to be displayed. The information display page is shown through the front-end device.

3. The method according to claim 1, characterized in that, The method further includes: If the SO service function test result is that the test fails, a prompt message will be sent to the alarm electronic terminal.

4. The method according to claim 1, characterized in that, The method further includes: For each test relationship, the first response data, the second response data, and the comparison result corresponding to the test relationship are stored in the database.

5. The method according to any one of claims 1 to 4, characterized in that, The step of converting each SO service request data into marketing platform request data according to preset format conversion rules includes: For each SO service request data, user information, product keyword information, and hit rule identifier are extracted from the SO service request data, and the marketing platform request data is generated based on the format conversion rules, the user information, the product keyword information, and the hit rule identifier.

6. A functional testing device for SO services, characterized in that, The device includes: The request retrieval module is used to periodically retrieve the various SO service request data sent by the target server, which is used to provide SO services that are not integrated with other services. The request conversion module is used to convert each SO service request data into marketing platform request data according to preset format conversion rules, and record the data correspondence; wherein each data correspondence includes SO service request data and marketing platform request data converted based on the SO service request data; The random selection module is used to randomly select multiple data correspondences as test relationships in response to functional test instructions; The response data acquisition module is used to send SO service request data included in the test relationship to the target server and marketing platform request data included in the test relationship to the marketing platform server for each test relationship, and to receive first response data returned by the target server and second response data returned by the marketing platform server respectively; wherein, the marketing platform server is used to provide marketing services integrated with the SO services; The test result acquisition module is used to obtain the test results of the SO service function based on each of the first response data and each of the second response data; The test result acquisition module includes: The product information comparison unit is used to obtain, for each test relationship, first product information returned by the target server based on the first response data corresponding to the test relationship, second product information returned by the marketing platform server based on the second response data corresponding to the test relationship, and compare whether the first product information and the second product information are the same to obtain the comparison result corresponding to the test relationship. The percentage calculation unit is used to calculate a target percentage based on the total number of test relationships and the comparison result corresponding to each test relationship; wherein, the target percentage is the proportion of test relationships with the same first product information and second product information to the total number of test relationships; The percentage comparison unit is used to determine that the SO service function test result is a pass if the target percentage is not less than a preset percentage threshold, otherwise, it determines that the SO service function test result is a fail.

7. A storage medium, characterized in that, The storage medium stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the functional testing method for the SO service as described in any one of claims 1 to 5.

8. A computer device, characterized in that, include: One or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the functional testing method for the SO service as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data routing control method and device, data analysis processing method and device, equipment and medium

    CN113489788A

  • Service system test method, system, equipment and medium

    CN116974948A