Test data construction method, document sending test method, device, equipment and medium

CN115237810BActive Publication Date: 2026-09-04INDUSTRIAL AND COMMERCIAL BANK OF CHINA +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210995143.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-18
Publication Date
2026-09-04
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

[0005]为解决上述问题,即解决发文测试效率过低,测试时长过长的技术问题,本申请提供一种测试数据构造方法、发文测试方法、装置、设备及介质

Benefits of technology

[0049] It is understood that the test data construction method, posting test method, apparatus, device, and medium provided in this application embodiment receive posting configuration information sent by a test terminal. This posting configuration information includes posting information corresponding to several test points. Then, test data for the several test points is constructed based on the posting configuration information, and the test data is sent to the test terminal so that the test terminal can perform posting tests based on the test data. By constructing test data based on the posting configuration information of the test points and performing posting tests based on the test data, the posting test time can be effectively shortened and the posting test efficiency improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237810B_ABST
    Figure CN115237810B_ABST
Patent Text Reader

Abstract

The application provides a test data construction method, a document sending test method, a device, equipment and a medium, which can be used in the field of financial technology or other related fields. The method comprises the following steps: receiving document sending configuration information sent by a test terminal, wherein the document sending configuration information comprises document sending information corresponding to a plurality of test points; constructing test data of the plurality of test points according to the document sending configuration information; and sending the test data to the test terminal, so that the test terminal performs document sending test based on the test data. The application can effectively shorten the document sending test time and improve the document sending test efficiency by constructing test data based on the document sending configuration information of the test points and performing document sending test based on the test data.
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 test data construction method, a document testing method, an apparatus, a device, and a medium. Background Technology

[0002] With the development of information technology, users have gradually become accustomed to browsing and reading articles online, so almost all kinds of website systems have the function of writing and publishing related articles.

[0003] Due to the differences in article publishing accounts, publishing categories, and published content, different articles need to be tested to effectively ensure the security and validity of article publishing. Currently, when verifying test points such as article publishing permissions, front-end display layout, style, and whether it exists in the category list, testers usually construct corresponding test data and execute multiple test cases, resulting in low testing efficiency and excessively long testing time.

[0004] Therefore, providing a solution that can quickly construct test data to improve the efficiency of article publishing tests is an urgent problem to be solved. Summary of the Invention

[0005] To address the aforementioned issues, namely the technical problems of low efficiency and excessively long testing time in document posting tests, this application provides a method for constructing test data, a method for document posting tests, an apparatus, equipment, and a medium.

[0006] To achieve the above objectives, this application provides the following technical solution:

[0007] According to one aspect of this application, a method for constructing test data is provided, comprising:

[0008] Receive the document issuance configuration information sent by the test terminal, wherein the document issuance configuration information includes document issuance information corresponding to several test points;

[0009] The test data for the several test points are constructed based on the document configuration information.

[0010] The test data is sent to the test terminal so that the test terminal can perform a posting test based on the test data.

[0011] In one implementation, constructing test data for the plurality of test points based on the document issuance configuration information includes:

[0012] The test data for the several test points is constructed by calling the corresponding set of interfaces according to the article configuration information; wherein, the set of interfaces is used to call the backend interface to perform relevant article publishing operations according to the corresponding article publishing information.

[0013] In one implementation, before constructing the test data for the plurality of test points based on the document configuration information, the method further includes:

[0014] The aforementioned interface set is encapsulated into a unified server interface;

[0015] The step of constructing test data for the plurality of test points by calling the corresponding set of interfaces according to the posting configuration information includes:

[0016] Based on the document issuance configuration information, the unified service interface is invoked to construct the test data for the several test points.

[0017] In one implementation, constructing test data for the plurality of test points based on the document issuance configuration information includes:

[0018] According to the article posting configuration information, simulate the article posting process and select the article posting test environment and article creation information for the several test points;

[0019] Create articles corresponding to the aforementioned test points based on the article publication test environment and article creation information of the aforementioned test points;

[0020] If the articles corresponding to the aforementioned test points are successfully created, then the test data for the aforementioned test points are obtained based on the articles corresponding to the aforementioned test points.

[0021] In one implementation, after creating articles corresponding to the test points based on the article creation environment and article creation information of the plurality of test points, the method further includes:

[0022] If the creation of an article corresponding to the aforementioned test points fails, the failed article is stored so that the test terminal can obtain the factors that caused the article creation failure based on the failed article.

[0023] In one implementation, the posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

[0024] According to a second aspect of this application, a method for testing document publication is provided, comprising:

[0025] The document issuance configuration information is generated based on several test points, and the document issuance configuration information includes the document issuance information corresponding to the several test points.

[0026] The posting configuration information is sent to the test data construction server so that the test data construction server constructs test data for the plurality of test points based on the posting configuration information.

[0027] Based on the test data, test data for the several test points sent by the server is constructed to conduct document publishing tests.

[0028] In one implementation, before configuring the posting information for several test points, the method further includes:

[0029] After receiving the posting request, we sort out the test points corresponding to the posting request.

[0030] In one implementation, the posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

[0031] In one implementation, the test data for the plurality of test points is obtained by the test data construction server simulating the posting process according to the posting information of the plurality of test points, selecting the posting test environment and article creation information for the plurality of test points, creating the articles corresponding to the plurality of test points according to the posting test environment and article creation information, and obtaining the data based on the articles corresponding to the plurality of test points when the articles corresponding to the plurality of test points are successfully created.

[0032] The method further includes:

[0033] If no test data is received for the test point, and the test data for the test point is stored by the test data construction server when the article creation for the test point fails, then the factors causing the article creation failure for the test point are obtained based on the article for the test point.

[0034] According to a third aspect of this application, a test data construction apparatus is provided, comprising:

[0035] The first receiving module is configured to receive the message configuration information sent by the test terminal, the message configuration information including message information corresponding to several test points;

[0036] The test data construction module is configured to construct test data for the plurality of test points based on the document configuration information.

[0037] The first sending module is configured to send the test data to the test terminal so that the test terminal can perform a document sending test based on the test data.

[0038] According to a fourth aspect of this application, a document testing apparatus is provided, comprising:

[0039] The generation module is configured to generate posting configuration information based on several test points, wherein the posting configuration information includes posting information corresponding to the several test points;

[0040] The second sending module is configured to send the posting configuration information to the test data construction server, so that the test data construction server constructs test data for the plurality of test points according to the posting configuration information.

[0041] The testing module is configured to construct test data sent by the server based on the test data to perform document publishing tests.

[0042] According to a fifth aspect of this application, a test data construction server is provided, comprising: a memory and a processor;

[0043] The memory stores computer-executed instructions;

[0044] The processor executes the computer execution instructions stored in the memory, causing the test data construction server to execute the test data construction method.

[0045] According to a sixth aspect of this application, a test terminal is provided, comprising: a memory and a processor;

[0046] The memory stores computer-executed instructions;

[0047] The processor executes the computer execution instructions stored in the memory, causing the test terminal to execute the article publishing test method.

[0048] According to a seventh aspect of this application, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, which, when executed by a processor, are used to implement the test data construction method or the document publication test method.

[0049] It is understood that the test data construction method, posting test method, apparatus, device, and medium provided in this application embodiment receive posting configuration information sent by a test terminal. This posting configuration information includes posting information corresponding to several test points. Then, test data for the several test points is constructed based on the posting configuration information, and the test data is sent to the test terminal so that the test terminal can perform posting tests based on the test data. By constructing test data based on the posting configuration information of the test points and performing posting tests based on the test data, the posting test time can be effectively shortened and the posting test efficiency improved. Attached Figure Description

[0050] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0051] Figure 1 This is one of the possible scenario diagrams provided for an embodiment of this application;

[0052] Figure 2 A flowchart illustrating a test data construction method provided in an embodiment of this application;

[0053] Figure 3 This is an example diagram of document configuration information in the embodiments of this application;

[0054] Figure 4 A flowchart illustrating a document publication testing method provided in an embodiment of this application;

[0055] Figure 5 This is a schematic diagram of a test data construction device provided in an embodiment of this application;

[0056] Figure 6 This is a schematic diagram of the structure of a document testing device provided in an embodiment of this application;

[0057] Figure 7 This is a schematic diagram of the structure of a test data construction server provided in an embodiment of this application;

[0058] Figure 8 This is a schematic diagram of the structure of a test terminal provided in an embodiment of this invention.

[0059] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0060] Article posting tests typically involve multiple test points, and the verification of each test point almost always involves posting. In related technologies, when testing posting permission management, article display layout within sections, and article detail display on various platform systems, it is unavoidable to use various accounts and verify the posting and display of articles in different styles across various sections. For testers, the challenge is how to quickly construct test data (posting) to facilitate testing.

[0061] The common method for posting articles involves testers switching between different user accounts, selecting different categories, filling in different article attributes, uploading different attachments, and choosing appropriate content to simulate users manually creating and previewing articles for testing. First, to simulate a real-world scenario, testers need to switch between different accounts to post articles; second, the types of articles vary and there are many categories; third, the verification of each test point almost always involves posting articles. Thus, it is clear that the entire posting process is repetitive, but testers need to spend a lot of time and effort in this process, resulting in relatively low testing efficiency.

[0062] In view of the above, this application provides a test data construction method, a posting test method, an apparatus, a device, and a medium to address the aforementioned technical problems. The method involves generating posting configuration information containing posting information for several test points via a test terminal, constructing test data for each test point based on the posting configuration information via a test data construction server, and then performing posting tests via the test terminal using the corresponding test data. This method automates the repetitive posting process, facilitates the verification of test points that actually require testing, saves testing time, and improves testing efficiency.

[0063] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be described in more detail below with reference to the accompanying drawings. In the drawings, the same or similar reference numerals denote the same or similar components or components having the same or similar functions throughout. The described embodiments are some, but not all, embodiments of this application. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0064] Figure 1 This is a schematic diagram illustrating a possible scenario for an embodiment of this application. It should be noted that the test data construction method and article publication testing method disclosed herein can be used in the fintech field. They can also be used in any field other than fintech; the application areas of the test data construction method and article publication testing method disclosed herein are not limited.

[0065] like Figure 1 As shown, the system includes a test terminal 110, a test data construction server 120, and a system under test 130. The test terminal 110, test data construction server 120, and system under test 130 are electrically connected. The test terminal is used to configure document issuance information and perform document issuance tests. The test data construction server is used to receive document issuance configuration information sent by the test terminal and call a unified service interface to generate test data. The system under test includes several backend interfaces that can be called based on the unified service interface. These backend interfaces correspond to specific document issuance processes; for example, the account login interface corresponds to the document issuance process for document issuance permission verification. Based on the set of interfaces or the unified service interface called by the test data construction server, in this embodiment, operations are performed sequentially according to the corresponding document issuance information, calling the corresponding backend interfaces to execute relevant document issuance operations. The test terminal then performs document issuance tests on the test data obtained from the corresponding document issuance operations.

[0066] Among them, the test terminal 110 may include, but is not limited to, computers, smartphones, tablets, e-book readers, Moving Picture Experts Group Audio Layer III (MP3) players, Moving Picture Experts Group Audio Layer IV (MP4) players, portable computers, in-vehicle computers, wearable devices, desktop computers, set-top boxes, smart TVs, etc.

[0067] The test data construction server 120 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0068] Optionally, the number of test terminals 110 or test data construction servers 120 may be more or less, and this application embodiment does not limit this. In some embodiments, the test terminals 110 and test data construction servers 120 may also serve as nodes in a blockchain system, synchronizing test data or document publication test results with other nodes in the blockchain to achieve widespread application of test data or document publication test results.

[0069] The above provides a brief illustration of the scenario of this application. The following section describes its application in... Figure 1 Taking the test data construction server 120 as an example, this application will describe in detail the test data construction method provided in the embodiments.

[0070] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a test data construction method provided in an embodiment of this application, which includes steps S201-S203.

[0071] Step S201: Receive the document configuration information sent by the test terminal. The document configuration information includes document information corresponding to several test points.

[0072] In this embodiment, a test point is an information point or node that needs to be tested. For example, each operation point or display content of an article can be a test point. The article information can include the article account, article type, article category, article attributes, or article content, etc.

[0073] Among them, the posting account is used to verify the posting permission, the posting type is used to verify the front-end page display layout and style, the posting category is used to verify whether the post exists in the category list, and the posting attributes or posting content are used to verify the correctness of the content information.

[0074] In one implementation, when a user needs to post an article, they send a posting request to the website system. The website system's test terminal receives this request and first identifies several test points corresponding to the request. For example, the test points may differ for different types of posts. Further, after identifying these test points, testers can configure corresponding posting information for each test point on the test terminal. For instance, testers determine the posting account, type, category, attributes, and content based on the test points they need to test. The test terminal generates posting configuration information based on the posting information configured by the testers for each test point. This posting configuration information includes, for example, [details omitted]. Figure 3 As shown, it is sent to the test data construction server to execute the test data construction process.

[0075] Step S202: Construct test data for the several test points based on the document configuration information.

[0076] In this embodiment, the corresponding test data is constructed by calling a set of interfaces, which specifically includes the following steps: calling the corresponding set of interfaces to construct the test data for the several test points according to the posting configuration information; wherein, the set of interfaces is used to call the backend interface to perform relevant posting operations according to the corresponding posting information.

[0077] In one implementation, the corresponding backend interfaces of the interface set are called sequentially based on the posting information of each test point, and the posting operation corresponding to the posting information is executed sequentially. The test data is obtained based on the posting result (article creation result). In another implementation, the corresponding interface set can be called simultaneously based on the posting information of all test points, and the posting operation can be executed to obtain the test data.

[0078] The interface set can be pre-created. The interface set is used to call the backend interface to complete account login, document type judgment (official / ordinary / regulatory / special), document column selection, attachment upload, image upload, selection of issuing department, document time, document number and other related document issuance operations as needed.

[0079] As is understandable, interfaces include hardware interfaces and software interfaces. The interface between humans and information machines such as computers, or between humans and programs, is called the user interface. The interface between hardware components of information machines such as computers is called a hardware interface, and the interface between software components of information machines such as computers is called a software interface. In this embodiment, the interfaces refer to software interfaces, which are the various functions provided by encapsulated code that can be used directly without interfering with the program's internal source code.

[0080] Furthermore, to facilitate the invocation of the interface set, this embodiment first encapsulates the interface set into a unified service interface, which can be directly invoked. Specifically, before constructing the test data for the several test points based on the document configuration information, the following steps are also included:

[0081] The aforementioned interface set is encapsulated into a unified server interface;

[0082] The step of constructing test data for the several test points by calling the corresponding set of interfaces according to the document issuance configuration information specifically involves: constructing test data for the several test points by calling the unified service interface according to the document issuance configuration information.

[0083] In this embodiment, a unified service interface is used for invocation. This service interface can directly call the interface set according to the configured account and posting information to execute the posting process and obtain test data.

[0084] In one implementation, the step of constructing test data for the plurality of test points based on the document configuration information (step S202) includes the following steps:

[0085] According to the article posting configuration information, simulate the article posting process and select the article posting test environment and article creation information for the several test points;

[0086] Create articles corresponding to the aforementioned test points based on the article publication test environment and article creation information of the aforementioned test points;

[0087] If the articles corresponding to the aforementioned test points are successfully created, then the test data for the aforementioned test points are obtained based on the articles corresponding to the aforementioned test points.

[0088] Understandably, simulating the article posting process means simulating the actual article posting process. Taking the portal system as an example, the portal system currently needs to be tested in two main environments: development environment, testing environment, and pre-production environment. The article creation information is the corresponding content in the article posting information, such as the posting account, posting content and attributes, posting method, etc.

[0089] In one possible implementation, a unified service interface can be called. The interface simulates the article posting process, selects the environment and account to be tested according to the configured article posting information, creates an article in the specified column according to the article posting information, and creates or publishes the article according to the article content and posting method. The successfully created or published article can be used as test data.

[0090] In one implementation, after an article is successfully created or published, the unified service interface can also verify it and save a screenshot. In subsequent testing, testers can use the created or published article to perform scenario verification as needed, thus assisting in testing.

[0091] In one implementation, to further improve testing efficiency, after creating articles corresponding to the test points based on the article creation environment and article creation information of the plurality of test points, the following steps are also included:

[0092] If the creation of an article corresponding to the aforementioned test points fails, the failed article is stored so that the test terminal can obtain the factors that caused the article creation failure based on the failed article.

[0093] In this embodiment, considering the issue of article creation failure, articles that fail to be created are not used as test data to ensure the smooth progress of test data. Furthermore, by analyzing articles that fail to be created, the factors causing the failure are identified and the articles are recreated to improve test efficiency.

[0094] Step S203: Send the test data to the test terminal so that the test terminal can perform a document sending test based on the test data.

[0095] Compared to related technologies that directly use a test terminal to switch between different user accounts, select different sections, fill in different article attributes, upload different attachments, and select article content to simulate user article creation and preview for testing, resulting in a complex testing process, this embodiment obtains article posting configuration information constructed from several test points and uniformly constructs test data based on this information. This enables automated testing of different test points, shortens testing time, and improves testing efficiency. Furthermore, the article posting configuration information, configured according to the test points, simulates normal article posting, effectively ensuring correctness. Multiple article posting information can be configured simultaneously, executing multiple posting requirements sequentially or simultaneously.

[0096] Please refer to Figure 4 , Figure 4 This is a flowchart illustrating another article publishing test method provided in an embodiment of this application, applied to a test terminal. The method includes steps S401-S403.

[0097] Step S401: Generate posting configuration information based on several test points, wherein the posting configuration information includes posting information corresponding to the several test points;

[0098] Step S402: Send the posting configuration information to the test data construction server so that the test data construction server can construct test data for the plurality of test points according to the posting configuration information;

[0099] Step S403: Construct test data for the several test points sent by the server based on the test data and perform document sending test.

[0100] In one implementation, before configuring the posting information for several test points, the following steps are also included: after receiving the posting request, sorting out the several test points corresponding to the posting request.

[0101] In one implementation, the posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

[0102] In one implementation, the test data for the plurality of test points is obtained by the test data construction server simulating the posting process according to the posting information of the plurality of test points, selecting the posting test environment and article creation information for the plurality of test points, creating the articles corresponding to the plurality of test points according to the posting test environment and article creation information, and obtaining the data based on the articles corresponding to the plurality of test points when the articles corresponding to the plurality of test points are successfully created.

[0103] The method further includes the following steps:

[0104] If test data corresponding to the aforementioned test points is not received, the factors causing the failure to create the article are obtained based on the articles that failed to be created. The articles that failed to be created are stored by the test data construction server when the articles corresponding to the aforementioned test points failed to be created.

[0105] It should be noted that the above-mentioned publication testing method provided in this application is based on the same principle as the test data construction method in the above embodiments and can achieve the same technical effect. Therefore, the parts that are the same as those in the test data construction method embodiments and their beneficial effects will not be described in detail here.

[0106] Please refer to Figure 5 , Figure 5 A test data construction apparatus provided in the embodiments of this application, such as Figure 5 As shown, the device includes:

[0107] The first receiving module 51 is configured to receive the message configuration information sent by the test terminal, the message configuration information including message information corresponding to several test points;

[0108] The test data construction module 52 is configured to construct test data for the plurality of test points based on the document configuration information.

[0109] The first sending module 53 is configured to send the test data to the test terminal so that the test terminal can perform a document sending test based on the test data.

[0110] In one embodiment, the test data construction module 52 is specifically configured to construct test data for the plurality of test points by calling the corresponding interface set according to the posting configuration information; wherein, the interface set is used to call the backend interface to perform relevant posting operations according to the corresponding posting information.

[0111] In one embodiment, the device further includes:

[0112] An encapsulation module is configured to encapsulate the interface set into a unified server interface;

[0113] The test data construction module is specifically configured to construct test data for the several test points by calling the unified service interface based on the document issuance configuration information.

[0114] In one embodiment, the test data construction module 52 includes:

[0115] The selection unit is configured to select the posting test environment and article creation information for the plurality of test points according to the posting configuration information and to simulate the posting process.

[0116] A creation unit is configured to create articles corresponding to the test points based on the article publication test environment and article creation information of the test points.

[0117] The acquisition unit is configured to acquire the test data of the test points based on the articles corresponding to the test points if the articles corresponding to the test points are successfully created.

[0118] In one embodiment, the device further includes:

[0119] The storage module is configured to store the failed articles when the creation of articles corresponding to the plurality of test points fails, so that the test terminal can obtain the factors that caused the failure to create the articles based on the failed articles.

[0120] In one implementation, the posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

[0121] It should be noted that the apparatus provided in this application can implement all the method steps implemented by the test data construction server in the above method embodiment, and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.

[0122] Please refer to Figure 6 , Figure 6 An article testing device provided in this application embodiment, such as Figure 6 As shown, it includes:

[0123] The generation module 61 is configured to generate posting configuration information based on several test points, wherein the posting configuration information includes posting information corresponding to the several test points.

[0124] The second sending module 62 is configured to send the document sending configuration information to the test data construction server, so that the test data construction server constructs test data for the plurality of test points according to the document sending configuration information.

[0125] The test module 63 is configured to construct test data sent by the server based on the test data to perform document sending test.

[0126] In one embodiment, the device further includes:

[0127] The test point sorting module is configured to sort out several test points corresponding to the posting request after receiving the posting request.

[0128] In one implementation, the posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

[0129] In one implementation, the test data for the plurality of test points is obtained by the test data construction server simulating the posting process according to the posting information of the plurality of test points, selecting the posting test environment and article creation information for the plurality of test points, creating the articles corresponding to the plurality of test points according to the posting test environment and article creation information, and obtaining the data based on the articles corresponding to the plurality of test points when the articles corresponding to the plurality of test points are successfully created.

[0130] The device further includes:

[0131] The acquisition module is configured to, when no test data corresponding to the test point is received (the test data corresponding to the test point is stored by the test data construction server when the article creation of the article corresponding to the test point fails), acquire the factors that caused the article creation failure of the test point based on the article corresponding to the test point.

[0132] It should be noted that the device provided in this application can implement all the method steps implemented by the test terminal in the above method embodiment and achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.

[0133] This application also provides a test data construction server, such as... Figure 7 As shown, it includes: a memory 71 and a processor 72;

[0134] The memory 71 stores computer-executed instructions;

[0135] The processor 72 executes the computer execution instructions stored in the memory 71, causing the test data construction server to execute the test data construction method.

[0136] It should be noted that the test data construction server provided in this application can implement all the method steps implemented by the test data construction server in the above method embodiment, and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.

[0137] This application also provides a test terminal, such as... Figure 8 As shown, it includes: a memory 81 and a processor 82;

[0138] The memory 81 stores computer-executed instructions;

[0139] The processor 82 executes the computer execution instructions stored in the memory 81, causing the test terminal to execute the article publishing test method.

[0140] It should be noted that the test terminal provided in this application can implement all the method steps implemented by the test terminal in the above method embodiment and achieve the same technical effect. Therefore, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail here.

[0141] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the test data construction method or the document publication test method.

[0142] It should be noted that the computer-readable storage medium provided in this application can implement all the method steps implemented by the server in the above method embodiments and achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiments will not be described in detail here.

[0143] This application also provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to execute the test data construction method or the document testing method.

[0144] This application also provides a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory to execute the test data construction method or the document testing method.

[0145] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0146] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.

[0147] Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0148] In the description of the embodiments of this application, the term "and / or" merely indicates a relationship describing the associated objects, meaning that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the term "at least one" indicates any combination of at least two of a plurality of options, for example, including at least one of A, B, and C, which can represent any one or more elements selected from a set including communication between A, B, and C. Furthermore, the term "multiple" means two or more, unless otherwise precisely specified.

[0149] In the description of the embodiments of this application, the terms "first," "second," "third," "fourth," etc. (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for constructing test data, characterized in that, include: Receive the document issuance configuration information sent by the test terminal, wherein the document issuance configuration information includes document issuance information corresponding to several test points; The set of interfaces is encapsulated into a unified server interface; wherein, the set of interfaces is used to call the backend interface to perform relevant article publishing operations based on the corresponding article publishing information; According to the article posting configuration information, simulate the article posting process and select the article posting test environment and article creation information for the several test points; Based on the article publishing test environment and article creation information of the aforementioned test points, the unified server interface is invoked to create articles corresponding to the aforementioned test points; If the articles corresponding to the aforementioned test points are successfully created, then the test data for the aforementioned test points are obtained based on the articles corresponding to the aforementioned test points. The test data is sent to the test terminal so that the test terminal can perform a posting test based on the test data.

2. The method according to claim 1, characterized in that, After creating articles for the corresponding test points based on the article creation environment and article creation information of the aforementioned test points, the process also includes: If the creation of an article corresponding to the aforementioned test points fails, the failed article is stored so that the test terminal can obtain the factors that caused the article creation failure based on the failed article.

3. The method according to claim 1, characterized in that, The posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

4. A method for testing article publication, characterized in that, include: The document issuance configuration information is generated based on several test points, and the document issuance configuration information includes the document issuance information corresponding to the several test points. The article posting configuration information is sent to the test data construction server, so that the test data construction server encapsulates the interface set into a unified server interface; the article posting process is simulated according to the article posting configuration information to select the article posting test environment and article creation information for the several test points; according to the article posting test environment and article creation information of the several test points, the unified server interface is called to create the articles corresponding to the several test points; if the articles corresponding to the several test points are successfully created, the test data for the several test points constructed according to the article corresponding to the several test points is obtained; wherein, the interface set is used to call the backend interface to perform relevant article posting operations according to the corresponding article posting information. Based on the test data, test data for the several test points sent by the server is constructed to conduct document publishing tests.

5. The method according to claim 4, characterized in that, Before configuring posting information for several test points, the following is also included: After receiving the posting request, we sort out the test points corresponding to the posting request.

6. The method according to claim 4, characterized in that, The posting information includes at least one of the following: posting account, posting type, posting category, posting attribute, or posting content.

7. The method according to claim 4, characterized in that, The method further includes: If test data corresponding to the aforementioned test points is not received, the factors causing the failure to create the article are obtained based on the articles that failed to be created. The articles that failed to be created are stored by the test data construction server when the articles corresponding to the aforementioned test points failed to be created.

8. A test data construction apparatus, characterized in that, The test data construction apparatus is used to implement the test data construction method according to any one of claims 1-3, the apparatus comprising: The first receiving module is configured to receive the message configuration information sent by the test terminal, the message configuration information including message information corresponding to several test points; The test data construction module is configured to construct test data for the plurality of test points based on the document configuration information. The first sending module is configured to send the test data to the test terminal so that the test terminal can perform a document sending test based on the test data.

9. A document issuance testing device, characterized in that, The posting test device is used to implement the posting test method according to any one of claims 4-7, and the device includes: The generation module is configured to generate posting configuration information based on several test points, wherein the posting configuration information includes posting information corresponding to the several test points; The second sending module is configured to send the posting configuration information to the test data construction server, so that the test data construction server constructs test data for the plurality of test points according to the posting configuration information. The testing module is configured to construct test data sent by the server based on the test data to perform document publishing tests.

10. A test data construction server, characterized in that, include: Memory and processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions stored in the memory, causing the test data construction server to perform the test data construction method according to any one of claims 1-3.

11. A test terminal, characterized in that, include: Memory and processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions stored in the memory, causing the test terminal to perform the document publication test method according to any one of claims 4-7.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the test data construction method as described in any one of claims 1-3, or the document publication test method as described in any one of claims 4-7.

Citation Information

Patent Citations

  • Test data construction method and device, computer readable medium and electronic equipment

    CN114138679A