A method, apparatus, device, and medium for separating performance test data.

By distinguishing label users and non-label users in the application service cluster, and generating access process data in the test cluster and the non-test cluster, the problem of separation of test data and non-test data in the existing technology is solved, and efficient Data separation and resource conservation.

CN114546859BActive Publication Date: 2024-11-22PINGAN INT SMART CITY TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210168598.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-23
Publication Date
2024-11-22
Estimated Expiration
2042-02-23

AI Technical Summary

Technical Problem

The existing performance testing methods are difficult to effectively separate test data from non-test data during the testing process, resulting in data confusion, affecting user experience, and require a large amount of labor costs to clean up data, resulting in waste of resources.

Method used

By distinguishing label users and non-label users in the application service cluster, providing access module portals, and generating access process data in the test cluster and the non-test cluster respectively, the separation of test data and non-test data is achieved to avoid downtime testing.

Benefits of technology

It realizes efficient separation of test data and non-test data without affecting normal user use, reducing labor costs and resource waste, and improving the accuracy and efficiency of test data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546859B_ABST
    Figure CN114546859B_ABST
Patent Text Reader

Abstract

The present application provides a performance test data separation method, apparatus, device and medium, wherein the implementation of the method includes: obtaining a user device that initiates an access request; if it is determined that the user corresponding to the user device is a tagged user, providing a non-test function module entrance and a test function module entrance to the user device; if it is determined that the user corresponding to the user device is a non-tagged user, providing a non-test function module entrance to the user device; receiving a function access request from the user device, determining the function module that the function access request is used to request access to, and generating access process data in the corresponding cluster. Using the method of the embodiment of the present application, when it is determined that the user is a tagged user and the function access request of the user device is used to access the test function module, access process data is generated in the test cluster, so that when testing, the test data and non-test data can be separated without stopping the test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of R&D management technology, and in particular to a performance test data separation method, device, equipment and medium. Background Art

[0002] With the continuous expansion of computer application fields and the continuous development of market economy construction, software engineering has also developed rapidly. In order to adapt to the growing number of application software users, the importance of performance testing of application software has become increasingly prominent.

[0003] The separation of performance test data is an important part of the performance testing process. At present, when conducting performance testing in the industry, the traditional method of cleaning up the test data after the test is completed to complete the data separation is mainly adopted. It can be seen that the traditional test data separation method has great difficulties in data separation because the test data occupies more environmental resources in the non-test environment, and the test data and non-test data are easily confused. At the same time, during the test process, if abnormal test data is generated, it will cause some normal data to become abnormal data. Such adverse situations will seriously affect the normal user experience of the application software, and a large amount of manpower costs are required to identify and clear the test data to complete the data separation work, resulting in a large waste of resources. Summary of the invention

[0004] The embodiments of the present application provide a performance test data separation method, apparatus, device and medium. By implementing the method of the embodiments of the present application, test data and non-test data can be separated without stopping the machine for testing.

[0005] In a first aspect, an embodiment of the present application provides a performance test data separation method, which is applied to an application service cluster, where the application service cluster is a cluster composed of multiple application servers. The method includes:

[0006] Obtaining a user device that initiates an access request, and determining whether a user corresponding to the user device is a tagged user or a non-tagged user;

[0007] If the user is a label user, a non-test function module entrance and a test function module entrance are provided to the user device, wherein the test function module is deployed in a test cluster in the application service cluster, and the non-test function module is deployed in a non-test cluster in the application service cluster;

[0008] If the user is a non-label user, a non-test function module entry is provided to the user device;

[0009] receiving a function access request from a user device, and determining a function module for which the function access request is requested to access;

[0010] If the function access request is used to request access to a non-test function module, access process data is generated in the non-test cluster;

[0011] If the function access request is used to request access to a test function module, access process data is generated in the test cluster.

[0012] In a second aspect, an embodiment of the present application provides a performance test data separation device, which is applied to an application service cluster, where the application service cluster is a cluster composed of multiple application servers, and the device includes:

[0013] An acquisition unit, configured to acquire a user device that initiates an access request, and determine whether a user corresponding to the user device is a tagged user or a non-tagged user;

[0014] A display unit is used to provide a non-test function module entrance and a test function module entrance to the user device if the user is a tagged user, wherein the test function module is deployed in a test cluster in the application service cluster, and the non-test function module is deployed in a non-test cluster in the application service cluster; if the user is a non-tagged user, provide a non-test function module entrance to the user device;

[0015] A determination unit, configured to receive a function access request from a user device and determine a function module for which the function access request is requested to access;

[0016] The generating unit is used to generate access process data in the non-test cluster if the function access request is used to request access to the non-test function module; and to generate access process data in the test cluster if the function access request is used to request access to the test function module.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and computer execution instructions stored in the memory and executable on the processor, wherein when the computer execution instructions are executed, the electronic device executes part or all of the steps described in any method of the first aspect of the embodiment of the present application.

[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a communication device, the communication device executes part or all of the steps described in any method of the first aspect of the embodiment of the present application.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product can be a software installation package.

[0020] It can be seen that in the embodiment of the present application, the user device that initiates the access request is obtained, and it is determined whether the user corresponding to the user device is a tagged user or a non-tagged user; if the user is a tagged user, a non-test function module entry and a test function module entry are provided to the user device, wherein the test function module is deployed in the test cluster in the application service cluster, and the non-test function module is deployed in the non-test cluster in the application service cluster; if the user is a non-tagged user, a non-test function module entry is provided to the user device; a function access request of the user device is received, and it is determined that the function access request is used to request access to the function module; if the function access request is used to request access to the non-test function module, access process data is generated in the non-test cluster; if the function access request is used to request access to the test function module, access process data is generated in the test cluster. Using the method of the embodiment of the present application, when it is determined that the user is a tagged user and the function access request of the user device is used to access the test function module, access process data is generated in the test cluster, so that when testing, the test data and non-test data can be separated without stopping the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1A It is a structural deployment diagram of an application service cluster;

[0023] Figure 1B It is another structural deployment diagram of an application service cluster;

[0024] Figure 1C It is a flow chart of a performance test data separation method provided in an embodiment of the present application;

[0025] Figure 1D is an example schematic diagram of a performance test data separation method provided in an embodiment of the present application;

[0026] Figure 1E It is a deployment diagram of an application service cluster based on performance test data separation applied in an embodiment of the present application;

[0027] Figure 2A is an example schematic diagram of a performance test data separation method provided in an embodiment of the present application;

[0028] Figure 2B is an example schematic diagram of a performance test data separation method provided in an embodiment of the present application;

[0029] Figure 3 is a structural diagram of a performance test data separation device provided in an embodiment of the present application;

[0030] Figure 4 It is a schematic diagram of the server structure of the hardware operating environment of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps is not limited to the listed steps, but optionally includes steps that are not listed, or optionally includes other steps inherent to these processes, methods, products or devices.

[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0034] The application scenarios involved in the embodiments of the present application are introduced below with reference to the accompanying drawings.

[0035] Figure 1A It is a structural deployment diagram of an application service cluster. Figure 1A As shown, the application service cluster is connected to the test user equipment, wherein,

[0036] Test user equipment refers to a terminal device used by a user designated as a test user. A test user refers to a role whose purpose is to complete a test on a test function in the application software corresponding to the application service cluster;

[0037] The application service cluster includes one or more test servers. The test server is specifically used to test user devices to complete tests for test functions. The test server is not an actual running server.

[0038] During the performance test of the above-mentioned application service cluster, the test user device completes the test on the test server in the application service cluster. After the test is completed, the subsequent process is usually to obtain the test data generated by the test server, determine the test results of the test function based on the test data, and configure the load environment of the actual application service cluster that actually runs the application software based on the test results, so as to obtain an actual application service cluster that is different from the application service cluster and is used by non-test users to actually use the application software. Therefore, the operating load environment of the test user is different from that of the non-test user, and because the test user is tested on the test server instead of in the real operating load environment, the test results obtained by this traditional testing method during performance testing are not applicable to the real operating load environment. Obviously, using the above-mentioned application service cluster for performance testing will result in inaccurate test results.

[0039] Figure 1B This is another structural deployment diagram of an application service cluster. Figure 1B As shown, the first end of the application service cluster is connected to the user device, and the second end is connected to the tester device, wherein,

[0040] User device refers to the terminal device used by the user in the application software corresponding to the application service cluster. The user refers to the role whose purpose is to use the non-testing functions in the application software;

[0041] Tester equipment refers to the terminal equipment used by the tester corresponding to the application software. Tester refers to the role whose purpose is to complete the test for the test functions in the application software according to the requirements of the test script. The tester can be the developer or backend manager of the application software. The test script represents the steps and purpose of the test.

[0042] The application service cluster is used to receive access request messages from user devices and tester devices, and provide a running load environment for user devices to use non-test functions and for tester devices to complete tests on test functions.

[0043] In the process of performance testing of the above application service cluster, since the testers are familiar with the test steps, purpose and other contents represented in the test script, the performance testing process will be highly efficient. However, performance testing is not only about test efficiency, but also about authenticity and objectivity. That is to say, in a real test scenario, there may be uncontrollable objective situations such as users being unable to complete the test progress, users running non-test functions or other operations during the test, etc. Therefore, if developers or backend managers are used as testers to perform performance testing on the test functions, there will be defects such as unreality and objectivity in the test process. In addition, during the performance testing process, the test data and normal data will be confused, which will not only lead to a large manpower cost in separating the test data later, but also may cause the test data to affect the normal data and thus affect the normal use of the application software by the user.

[0044] To sum up, traditional testing methods may cause the performance testing process to be unrealistic, or the testing process to be unauthentic and objective, which may lead to inaccurate test results. There is also the problem of confusion between test data and normal data, which may affect users' normal use of the application software.

[0045] Based on this, the embodiment of the present application provides a performance test data separation method, which is applied to an application service cluster. The application service cluster is a cluster composed of multiple application servers. Figure 1C , Figure 1C is a flow chart of a performance test data separation method provided in an embodiment of the present application, such as Figure 1C As shown, the method comprises the following steps:

[0046] 101: Obtain a user device that initiates an access request, and determine whether a user corresponding to the user device is a tagged user or a non-tagged user.

[0047] Among them, user devices include smart phones, tablet computers, desktop computers and other electronic devices.

[0048] Among them, the labeled user refers to a user who is tagged with a preset label, and the preset label can be a Test label or other labels. The labeled user is a real user in the application software. The real user completes the test on the test function module of the application software, so there is no need for the tester to construct a virtual user for testing in the application software separately, thereby avoiding the creation of additional redundant account data in the application software, which leads to a decrease in the response performance of the application software and affects the user experience of non-tagged users. In a specific implementation, labeling the user to obtain the labeled user can be to extract some user accounts whose login tokens Token have not expired in the application software, obtain the UserId of these user accounts, and label these user accounts with the Test label in the user database form according to the UserId, thereby obtaining the labeled user.

[0049] If the user is a tagged user, step 102 is executed; if the user is a non-tagged user, step 103 is executed.

[0050] 102: If the user is a tagged user, a non-test function module entry and a test function module entry are provided to the user device, wherein the test function module is deployed in a test cluster in the application service cluster, and the non-test function module is deployed in a non-test cluster in the application service cluster.

[0051] Wherein, a non-test function module entry and a test function module entry are provided to the user equipment, indicating that the non-test function module and the test function module are opened to the user equipment, so that the user equipment can access the non-test function module and the test function module.

[0052] Among them, if the user is a tagged user, an entrance to the test function module is provided to the user device. In a specific implementation, visibility conditions can be set for the test function module for each user, so that the test function module is only visible to the user device corresponding to the tagged user, and invisible to the user device corresponding to the non-tagged user.

[0053] Exemplarily, setting visibility conditions for the test function module for each user is to configure visibility parameters for each user, and the visibility parameters include on and off. When the visibility parameter corresponding to the user is on, the user can access the entrance of the test function module, and when the visibility parameter corresponding to the user is off, the user cannot access the entrance of the test function module. Thus, when the user corresponding to the user device is a tagged user, since the visibility parameter of the user is on, the entrance of the test function module is provided to the user device corresponding to the user, that is, the entrance of the test function module is visible to the user device, so that the user can access the test function module; conversely, when the user corresponding to the user device is a non-tagged user, since the visibility parameter of the user is off, the entrance of the test function module is not provided to the user device corresponding to the user, that is, the entrance of the test function module is not visible to the user device, so that the user cannot access the test function module.

[0054] The test cluster is a cluster composed of one or more servers for completing a test function module; the non-test cluster is a cluster composed of one or more servers for completing a non-test function module.

[0055] If the user is a label user, a non-test function module entrance and a test function module entrance are provided to the user equipment, so that the label user can access both the test function module and the non-test function module.

[0056] The test function module refers to the function module that the tester wants to test on the tagged user and does not want to be accessed by the non-tagged user; the non-test function module refers to the function module that can be accessed by the tagged user and the non-tagged user. Both the test function module and the non-test function module are located in the application software corresponding to the application service cluster.

[0057] 103: If the user is a non-label user, provide a non-test function module entry to the user device.

[0058] Among them, if the user is a non-label user, a non-test function module entrance is provided to the user device. The purpose is to enable the non-label user to access only the non-test function module. While ensuring that the non-label user can use the non-test function module in the application software normally, it can also prevent the non-label user from accessing the test function module and causing the business status of the application software to be abnormal.

[0059] See also Figure 1D , Figure 1D is an example schematic diagram of a performance test data separation method provided in an embodiment of the present application, such as Figure 1DAs shown, since the test cluster and non-test cluster in the application service cluster provide both the test function module entrance and the non-test function module entrance to the user device of the label user, the label user can access both the test function module and the non-test function module; while for the non-label user, since only the non-test cluster in the application service cluster provides the non-test function module entrance to the user device of the non-label user, the user device of the non-label user cannot access the test function module and can only access the non-test function module. Thus, when the label user is testing the test function module of the application software, the non-label user can still normally access the non-test function module of the application software, so that the normal use of the application software is not affected during the test period.

[0060] For example, suppose a target APP originally contains function modules A and B, and the tester wants to add function module C to the target APP and perform performance testing on it. In this case, function module C is a test function module, and function modules A and B are non-test function modules. The user device of the tagged user can access function modules A, B, and C in the target APP, while the non-tagged user can only access function modules A and B in the target APP.

[0061] Since the function access request of the user equipment corresponding to the non-label user can only access the non-test function module, after executing step 103, the process proceeds to execute step 105.

[0062] 104: Receive a function access request from a user device, and determine a function module that the function access request is used to request access to.

[0063] The function access request refers to a request sent by a user device to access a certain function module of the application software.

[0064] If the function module requested for access in the function access request is a non-test function module, step 105 is executed; if the function module requested for access in the function access request is a test function module, step 106 is executed.

[0065] 105: If the function access request is used to request access to a non-test function module, access process data is generated in the non-test cluster.

[0066] When the function access request is used to request access to a non-test function module, the access process data refers to non-test data.

[0067] 106: If the function access request is used to request access to a test function module, access process data is generated in the test cluster.

[0068] When the function access request is used to request access to a test function module, the access process data refers to data.

[0069] Among them, if the function access request is used to request access to a non-test function module, access process data is generated in the non-test cluster, and if the function access request is used to request access to a test function module, access process data is generated in the test cluster. The purpose is to store the access process data generated in the process of accessing the non-test function module and the test function module in different clusters respectively, thereby realizing the separation of non-test data and test data, and then avoiding the adverse situation that test data and non-test data are confused and non-test data causes non-label users to be unable to use the application software normally.

[0070] Exemplarily, the tester wants to test whether the target APP can complete the target activity, where the target APP can be a shopping APP and the target activity is a flash sale activity for the target product. Therefore, the test function module can be the flash sale activity page of the target product, and the non-test function module can be the order page of a normal product. The target activity is set in the test function module, and Test tag processing is performed on some users of the target APP to obtain tagged users. Only tagged users can access the test function module, while non-tagged users cannot. The first server obtains the user device that initiates the access request, and determines that the user corresponding to the user device has a Test tag, that is, the user is a tagged user, then the first server provides the user device with the order page entrance of the normal product and the target product's flash sale activity page entrance, so that the tagged user can see the normal product order page and the target product's flash sale activity page on the user device, the first server receives the function access request of the user device and determines that the function access request is used to request access to the target product's flash sale activity page, then generates the access process data generated when the tagged user accesses the target product's flash sale activity page for testing in the test cluster; conversely, if the first server determines that the function access request is used to request access to the normal product's order page, then generates the access process data generated when the tagged user accesses the normal product's order page in the non-test cluster. Among them, after completing the test for the test function module, the test data generated during the test process can be deleted. In a specific implementation, the data located in the test cluster can be directly retrieved and deleted. Since the test function module entrance is only provided to the user device of the tagged user and will not be provided to the user device of the non-tagged user, the target APP can still operate normally during the test process, and the non-tagged user can use the target APP normally. Among them, after the test is completed, the tagged user can also be de-tagged, that is, the Test tag of the tagged user is removed, so that the tagged user is restored to a non-tagged user who can only access non-test function modules. So far, after the test is completed, by deleting the test data generated during the test and removing the Test tag of the tagged user, the running environment of the application software is restored to the initial environment before the test.

[0071] As another example, after completing the test for the test function module, the system processing capacity of the application service cluster can also be calculated based on the test data changes counted by the application service cluster. If the test purpose of the tester for the target APP test also includes testing the maximum processing volume per unit time of the test function module, in a specific implementation, the configuration parameters of each server in the multiple servers in the application service cluster can be uniformly configured, and one of the servers can be designated as the target server for testing. The target server records the operation behavior of the tagged user during the test of the test function module by the tagged user, such as recording the order time of the tagged user, and then calculates the maximum processing volume of the target server per unit time based on the order time of the tagged user, and then calculates the maximum processing volume of the application service cluster per unit time based on the number of servers in the application service cluster. For example, an application service cluster has n servers, and the maximum processing capacity of the target server in unit time is obtained to be 100 requests / second, then the maximum processing capacity of the application service cluster in unit time is 100*n requests / second; in another specific implementation, if multiple servers in the application service cluster are specified as a test cluster, that is, test data will be generated in multiple servers in the test cluster during the test process, assuming that the application service cluster has n servers and the test cluster has m servers, and the maximum processing capacity of the test cluster in unit time is obtained to be 100 requests / second, then in this specific implementation, the maximum processing capacity of the application service cluster in unit time is 100*n / m (requests*seconds).

[0072] The devices involved in the embodiments of the present application are introduced below in conjunction with the accompanying drawings.

[0073] See also Figure 1E , Figure 1E It is a deployment diagram of an application service cluster based on performance test data separation applied in an embodiment of the present application. The application service cluster is connected to a user device, and the application service cluster includes a determination module, a test cluster, and a test function module, wherein the function of each module can be implemented by a separate server, or the functions of multiple modules can be implemented by one server. Multiple servers that implement the functions of different modules communicate with each other. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0074] The user equipment refers to a role that aims to use the test function module in the application software corresponding to the application service cluster, and after sending an access request message to the application service cluster, sends a function access request for accessing the test function module to the application service cluster.

[0075] The determination module is used to determine whether the user corresponding to the user equipment is a tagged user after the application service cluster receives the access request message sent by the user equipment, and to display the test function module to the user equipment if the user is a tagged user.

[0076] The test cluster is used to provide a test function module entry to the user device when the user is a tagged user, and to generate access process data when the function access request of the user device is used to request access to the test function module.

[0077] The test function module is used to interact with the user equipment for data so as to complete the test after the application service cluster receives a function access request for accessing the test function module sent by the user equipment.

[0078] like Figure 1E As shown, the user uses the user device to send an access request to the application service cluster. After the application service cluster receives the access request sent by the user device, it instructs the determination module to determine whether the user corresponding to the user device is a tagged user. If the determination module determines that the user is a tagged user, the test cluster provides the user device with a test function module entrance, otherwise the test function module entrance is not provided. After the user obtains the test function module on the user device, the user uses the user device to send a function access request for accessing the test function module to the application service cluster. The user device interacts with the test function module for data to complete the test, wherein access process data is generated in the test cluster while testing the test function module.

[0079] It can be seen that in the embodiment of the present application, the user device that initiates the access request is obtained, and it is determined whether the user corresponding to the user device is a tagged user or a non-tagged user; if the user is a tagged user, a non-test function module entry and a test function module entry are provided to the user device, wherein the test function module is deployed in the test cluster in the application service cluster, and the non-test function module is deployed in the non-test cluster in the application service cluster; if the user is a non-tagged user, a non-test function module entry is provided to the user device; a function access request of the user device is received, and it is determined that the function access request is used to request access to the function module; if the function access request is used to request access to the non-test function module, access process data is generated in the non-test cluster; if the function access request is used to request access to the test function module, access process data is generated in the test cluster. Using the method of the embodiment of the present application, when it is determined that the user is a tagged user and the function access request of the user device is used to access the test function module, access process data is generated in the test cluster, so that when testing, the test data and non-test data can be separated without stopping the test.

[0080] In a possible example, the above method also includes: obtaining access process data generated in the test cluster, and determining whether the data volume of the access process data is greater than a first preset threshold; if the data volume of the access process data is greater than the first preset threshold, obtaining a new application server from the application service cluster and adding it to the test cluster; obtaining a new non-test cluster, and determining whether the performance parameters of the new non-test cluster are better than a second preset threshold, and if so, determining that the test function module has performance stability.

[0081] The access process data generated in the test cluster is obtained, and it is determined whether the data volume of the access process data is greater than a first preset threshold. In a specific implementation, the access process data can be obtained by calling the server cache data in the test cluster that responds to the function access request, and then the data volume of the access process data is compared with the first preset threshold. The first preset threshold can be 500MB, 1GB or other data volume.

[0082] Among them, obtaining a new non-test cluster and determining whether the performance parameters of the new non-test cluster are better than the second preset threshold value, in a specific implementation, the performance parameters of the non-test cluster can be determined by obtaining the access process data generated in the non-test cluster, for example, the maximum load, maximum processing volume or other performance parameters of the non-test cluster are determined according to the access process data generated in the non-test cluster to determine the performance parameters of the non-test cluster, and then the performance parameters are compared with the second preset threshold value. The second preset threshold value can be a value in the range of 0 to 1, 0 to 100%, or other numerical ranges.

[0083] It can be seen that in the embodiment of the present application, when it is determined that the amount of access process data generated in the test cluster is greater than the first preset threshold, a new server is obtained from the application service cluster and added to the test cluster, and when it is determined that the performance parameters of the new non-test cluster obtained are better than the second preset threshold, it is determined that the test function module has performance stability. After adding some application service clusters in the application service cluster to the test cluster, when the new non-test cluster still has high performance parameters and can operate normally, it is determined that the test function module has performance stability, and it can also prove that the test cluster and the non-test cluster will not affect each other's operating performance when allocating servers to each other, thereby ensuring that the access process data generated by the test cluster and the non-test cluster are separated from each other in the data space, and the test cluster and the non-test cluster do not interfere with or affect each other in terms of operating response.

[0084] In a possible example, the above method also includes: obtaining multiple access process data generated for multiple user devices in the test cluster; determining the amount of access process data that satisfies a first preset rule among the multiple access process data, and the first preset rule is used to characterize the rules that may be followed when the test function module is associated with a non-test function module; if the amount of access process data that satisfies the first preset rule is greater than a third preset threshold, it is determined that the test function module is available.

[0085] For example, the tester wants to test whether the target APP can complete the target activity and the target APP is a shopping APP. The target activity includes two steps: ordering goods and settling goods. Among them, ordering goods is a test function module, and settling goods is a non-test function module. The rule that should be followed when associating ordering goods with settling goods is to complete the ordering steps first and then the settling steps. Therefore, the first preset rule is: order goods first, then settle goods. Furthermore, the access process data that meets the first preset rule can be the billing details data generated by settling goods after ordering goods.

[0086] The third preset threshold may be 500MB, 1GB or other data amounts.

[0087] It can be seen that in the embodiment of the present application, when it is determined that among the multiple access process data generated for multiple user devices in the test cluster, the amount of access process data that satisfies the first preset rule is greater than the third preset threshold, it is determined that the test function module is available, and thus it is considered that the test function module and the non-test function module can be operated in association, that is, the test function module and the non-test function module can be used in combination, and then it is determined that the test function module is available.

[0088] In a possible example, the method further includes: setting a first user pool and a second user pool, and for the first user pool, setting its corresponding visibility parameter to a first parameter, used to characterize that the non-test function module entry and the test function module entry are visible to the corresponding user devices in the first user pool; for the second user pool, setting its corresponding visibility parameter to a second parameter, used to characterize that the non-test function module entry is visible to the corresponding user devices in the second user pool, and the test function module entry is invisible to the user devices corresponding to the user devices in the second user pool. If the user is a tagged user, providing the non-test function module entry and the test function module entry to the user device includes: classifying the tagged user into the first user pool; if the user is a non-tagged user, providing the non-test function module entry to the user device includes: classifying the non-tagged user into the second user pool.

[0089] The purpose of setting the first user pool and the second user pool is to make the entrance of the test function module visible only to the user equipment corresponding to the tagged user and invisible to the user equipment corresponding to the non-tagged user.

[0090] Among them, the first parameter and the second parameter, in a specific implementation, may be that the first parameter is on and the second parameter is off.

[0091] For example, see Figure 2A , Figure 2A is an example schematic diagram of a performance test data separation method provided in an embodiment of the present application, such as Figure 2A As shown, there are 4 user devices 1-4, among which the user corresponding to user device 1-2 is a tagged user, and the user corresponding to user device 3-4 is a non-tagged user. Therefore, user device 1-2 is divided into the first user pool, and user device 3-4 is divided into the second user pool. Since the non-test function module entrance and the test function module entrance are visible to the corresponding user devices in the first user pool, user device 1 and user device 2 located in the first user pool can access the non-test function module and the test function module. At the same time, since only the non-test function module entrance is visible to the corresponding user devices in the second user pool, user device 3 and user device 4 located in the second user pool can only access the non-test function module but cannot access the test function module. At this point, it is realized that the test function module entrance is only visible to the user device corresponding to the tagged user, ensuring that the user device corresponding to the non-tagged user cannot access the test function module.

[0092] It can be seen that in the embodiment of the present application, by setting the first user pool and the second user pool, the corresponding visibility parameter for the first user pool is set to the first parameter, and the corresponding visibility parameter for the second user pool is set to the second parameter, and the tagged users are divided into the first user pool and the non-tagged users are divided into the second user pool. Therefore, the non-test function module entrance and the test function module entrance are visible to the user device of the tagged user. At the same time, only the non-test function module entrance is visible to the user device of the non-tagged user, and the test function module entrance is invisible to the user device of the non-tagged user, thereby preventing the non-tagged user from accessing the test function module, and further avoiding the occurrence of data anomalies, data confusion and other adverse situations that affect the normal business operation of the application software.

[0093] In one possible example, in the case where the function access request is used to request access to a non-test function module, the above method also includes: obtaining a test requirement for the test function module, the test requirement including testing the availability of the test function module, and / or testing the performance impact of the test function module on the application service cluster; if the test requirement for the test function module includes testing the availability of the test function module, prompting the user to access the test function module; if the test requirement for the test function module includes testing the performance impact of the test function module on the application service cluster, directing the user's access request to the test function module at a first preset time.

[0094] Among them, the availability of the test function module refers to whether the test function module can be used normally, that is, whether the interface corresponding to the test function module is available and whether the label users can be directed to the test cluster; the performance impact of the test function module on the application service cluster can refer to the maximum load, maximum processing volume or response speed that the test function module may generate.

[0095] The first preset time may be a test time corresponding to the test requirement. For example, when the test requirement is to test the maximum load of the test function module at a target time point, the first preset time is the target time point.

[0096] Exemplarily, the performance impact of the test function module on the application service cluster refers to the maximum load of the test function module within a preset time. Therefore, if the test requirement is to test the availability of the test function module, it is only necessary to prompt the tagged user to access the test function module to assist in completing the test. In a specific implementation, a pop-up window prompt or other form can be used to prompt the user to access the test function module; if the test requirement is to test the maximum load of the test function module within a preset time, it is necessary to force the tagged user to be guided to the test function module within the first preset time to assist in completing the test of the maximum load of the test function module within the preset time.

[0097] It can be seen that in the embodiment of the present application, when the function access request of the tagged user is used to request access to a non-test function module, the test requirements of the test function module are obtained, and when the test requirements of the test function module include testing the availability of the test function module, the user is prompted to access the test function module; and when the test requirements of the test function module include testing the performance impact of the test function module on the application service cluster, the user's access request is directed to the test function module at a first preset time. Therefore, when the tagged user does not access the test function module for testing, the tagged user can be guided to cooperate in completing the test for the test function module, avoiding unexpected situations that affect the test, such as the tagged user forgetting to test, not testing at the test time corresponding to the test requirements, etc., thereby reducing unexpected situations during the test process and thus improving the test efficiency and ensuring the accuracy of the test results.

[0098] In a possible example, the above-mentioned application service cluster also includes a test database and a non-test database. If the function access request is used to request access to a non-test function module, then after generating the access process data in the non-test cluster, the above-mentioned method also includes: storing the access process data in the non-test database; if the function access request is used to request access to a test function module, then after generating the access process data in the test cluster, the above-mentioned method also includes: storing the access process data in the test database.

[0099] The non-test database, in addition to storing the access process data generated in the non-test cluster, can also store the data required by the labeled users and non-labeled users in the process of accessing the non-test function modules.

[0100] Exemplarily, based on the above example embodiment, if the non-test function module is the order page for normal goods, the access process data generated in the non-test cluster may be the order information generated after placing an order for normal goods; and the data required by the tagged user and the non-tagged user to access the non-test function module may be the product details information of the normal goods.

[0101] Among them, the test database, in addition to storing the access process data generated in the test cluster, can also store the data required by the label user to access the test function module.

[0102] Exemplarily, based on the above example embodiment, if the test function module is the flash sale page of the target product, the access process data generated in the test cluster may be the order information generated after the flash sale of the target product; and the data required by the tag user in the process of accessing the test function module may be the product details information of the target product.

[0103] Among them, the access process data generated in the test cluster is stored in the test database, and the access process data generated in the non-test cluster is stored in the non-test database. The purpose is to achieve the separation of test cluster data and non-test cluster data by storing the access process data generated in the test cluster and the non-test cluster in independent and different databases, thereby avoiding the situation where the access process data generated by the labeled user in the process of accessing the test function module has an adverse impact on the normal use of the application software by the non-label user.

[0104] Among them, there is no communication connection between the test database and the non-test database. In the specific implementation, it can be realized by configuring the corresponding relationship between the database and the cluster server, specifically, the test database is configured correspondingly with the test cluster, and the non-test database is configured correspondingly with the non-test cluster in the application service cluster except the test cluster, so that the test cluster can only interact with the test database, and the non-test cluster can only interact with the non-test database; it can also be realized by configuring the domain name of the test database as the shielded domain name of the server in the non-test cluster in the application service cluster except the test cluster, so that the server in the non-test cluster cannot interact with the test database.

[0105] For example, see Figure 2B , Figure 2B is an example schematic diagram of a performance test data separation method provided in an embodiment of the present application, such as Figure 2B As shown, in a specific implementation, the test database and the non-test database exist separately and there is no communication connection between them. The application service cluster is composed of a test cluster and a non-test cluster. After configuring the corresponding relationship between the database and the cluster server, the server in the test cluster can interact with the test database and the non-test database, while the server in the non-test cluster can only interact with the non-test database. Therefore, when the function access request of the user device of the label user is used to request access to the test function module, the access traffic, access process data or data to be retrieved generated by the function access request can only interact with the test database. If the label user completes the test or stops the test and accesses the non-test function module, since the server in the test cluster can interact with the non-test database, the user device of the label user can normally retrieve the non-test data from the non-test database and access the non-test function module. Moreover, due to the separation of the test database and the non-test database, the test data generated by the label user in the process of completing the test for the test function module will not affect the non-test database, so it can ensure the normal and smooth use of the application software by the non-label user.

[0106] It can be seen that in the embodiment of the present application, the application service cluster also includes a test database and a non-test database. When the function access request is used to request access to a non-test function module, after the access process data is generated in the non-test cluster, the access process data is stored in the non-test database; and when the function access request is used to request access to a test function module, after the access process data is generated in the test cluster, the access process data is stored in the test database. By storing the access process data generated in the test cluster and the non-test cluster in independent and different databases, the separation of the test cluster data and the non-test cluster data is achieved, thereby avoiding the situation where the access process data generated by the labeled user in the process of accessing the test function module has an adverse effect on the normal use of the application software by the non-label user, and ensuring the normal and smooth use of the application software by the non-label user by the non-label user by improving the running stability of the application software.

[0107] In a possible example, the application service cluster also includes a test database and a non-test database, and the method also includes: receiving multiple function access requests from a user device within a second preset time, and determining an access path based on the multiple function access requests; determining the proportion of requests for access to the test function module in the access path; if the proportion of requests for access to the test function module is greater than a first preset proportion, storing the access process data generated in the access path in the test database; if the proportion of requests for access to the test function module is less than or equal to the first preset proportion, storing the access process data generated in the access path for requests for access to the test function module in the test database, and storing the access process data generated in the access path for requests for access to the non-test function module in the non-test database.

[0108] The second preset time may be 1 hour, 2 hours or other time, or may be the time from the start of the test to the completion of the test.

[0109] The first preset ratio may be 60%, 80% or other ratios.

[0110] It can be seen that in the embodiment of the present application, the application service cluster also includes a test database and a non-test database. After determining the access path according to multiple function access requests of the user device within the second preset time, if it is determined that the proportion of requests to access the test function module in the access path is greater than the first preset proportion, the access process data generated in the access path is stored in the test database; if it is determined that the proportion of requests to access the test function module in the access path is less than or equal to the first preset proportion, the access process data generated by the requests to access the test function module in the access path is stored in the test database and the access process data generated by accessing the non-test function module is stored in the non-test database. Thus, when the proportion of requests to access the test function module in the access path is large, both the test data and the non-test data are stored in the test database, so as to facilitate the subsequent deletion of all relevant data of the tag user in the test process after the test is completed; and when the proportion of requests to access the test function module in the access path is small, the test data and the non-test data are stored in the test database and the non-test database, respectively, so as to complete the separation of the test data and the non-test data.

[0111] With the above Figure 1C For details on the embodiments shown in the drawings, please refer to Figure 3 , Figure 3 is a structural diagram of a performance test data separation device provided in an embodiment of the present application, such as Figure 3 As shown:

[0112] A performance test data separation device is applied to an application service cluster, where the application service cluster is a cluster composed of multiple application servers. The device comprises:

[0113] 301: an acquiring unit, configured to acquire a user device that initiates an access request, and determine whether a user corresponding to the user device is a tagged user or a non-tagged user;

[0114] 302: a display unit, configured to provide a non-test function module entry and a test function module entry to a user device if the user is a tagged user, wherein the test function module is deployed in a test cluster in the application service cluster, and the non-test function module is deployed in a non-test cluster in the application service cluster; if the user is a non-tagged user, provide a non-test function module entry to the user device;

[0115] 303: A determining unit, configured to receive a function access request from a user device, and determine a function module that the function access request is used to request access to;

[0116] 304: A generating unit, configured to generate access process data in a non-test cluster if the function access request is for requesting access to a non-test function module; and to generate access process data in a test cluster if the function access request is for requesting access to a test function module.

[0117] It can be seen that in the device provided by the embodiment of the present application, the acquisition unit is used to acquire the user device that initiates the access request and determine whether the user corresponding to the user device is a label user or a non-label user; the display unit is used to provide the user device with a non-test function module entrance and a test function module entrance if the user is a label user, wherein the test function module is deployed in the test cluster in the application service cluster, and the non-test function module is deployed in the non-test cluster in the application service cluster; if the user is a non-label user, the non-test function module entrance is provided to the user device; the determination unit is used to receive the function access request of the user device and determine the function module that the function access request is used to request access to; the generation unit is used to generate access process data in the non-test cluster if the function access request is used to request access to the non-test function module; if the function access request is used to request access to the test function module, the access process data is generated in the test cluster. Using the device of the embodiment of the present application, when it is determined that the user is a label user and the function access request of the user device is used to access the test function module, the access process data is generated in the test cluster, so that when testing, the test data and the non-test data can be separated without stopping the test.

[0118] Specifically, the embodiment of the present application can divide the performance test data separation device into functional units according to the above method example. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0119] With the above Figure 1C The embodiment shown is consistent with the embodiment shown, the embodiment of the present application provides an electronic device, see Figure 4 , Figure 4 is a schematic diagram of a server structure of a hardware operating environment of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device includes a processor, a memory, and computer execution instructions stored in the memory and executable on the processor. When the computer execution instructions are executed, the electronic device executes instructions including the steps of any performance test data separation method.

[0120] Among them, the processor is CPU (Central Processing Unit).

[0121] Among them, the memory, optionally, the memory can be a high-speed RAM memory, or a stable memory, such as a disk memory.

[0122] Those skilled in the art will understand that Figure 4 The structure of the server shown in the figure does not constitute a limitation thereof, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0123] like Figure 4 As shown, the memory may include an operating system, a network communication module, and computer execution instructions of the performance test data separation method. The operating system is used to manage and control server hardware and software resources and support the operation of computer execution instructions. The network communication module is used to realize communication between components inside the memory, as well as communication with other hardware and software inside the server. Communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), etc.

[0124] exist Figure 4 In the server shown, the processor is used to execute computer-executable instructions for personnel management stored in the memory to implement the following steps: obtaining a user device that initiates an access request, and determining whether the user corresponding to the user device is a tagged user or a non-tagged user; if the user is a tagged user, providing a non-test function module entry and a test function module entry to the user device, wherein the test function module is deployed in a test cluster in an application service cluster, and the non-test function module is deployed in a non-test cluster in an application service cluster; if the user is a non-tagged user, providing a non-test function module entry to the user device; receiving a function access request from the user device, and determining the function module that the function access request is used to request access to; if the function access request is used to request access to a non-test function module, generating access process data in the non-test cluster; if the function access request is used to request access to a test function module, generating access process data in the test cluster.

[0125] The specific implementation of the server involved in this application can be found in the various embodiments of the above-mentioned performance test data separation method, which will not be described in detail here.

[0126] The embodiment of the present application provides a computer-readable storage medium, in which a computer instruction is stored. When the computer instruction is executed on a communication device, the communication device performs the following steps: obtaining a user device that initiates an access request, determining whether the user corresponding to the user device is a tagged user or a non-tagged user; if the user is a tagged user, providing a non-test function module entrance and a test function module entrance to the user device, wherein the test function module is deployed in a test cluster in an application service cluster, and the non-test function module is deployed in a non-test cluster in an application service cluster; if the user is a non-tagged user, providing a non-test function module entrance to the user device; receiving a function access request from the user device, determining the function module that the function access request is used to request access to; if the function access request is used to request access to a non-test function module, generating access process data in the non-test cluster; if the function access request is used to request access to a test function module, generating access process data in the test cluster. The above-mentioned computer includes an electronic device.

[0127] Among them, electronic terminal devices include mobile phones, tablet computers, personal digital assistants, wearable devices, etc.

[0128] Among them, the computer-readable storage medium can be an internal storage unit of the electronic device described in the above embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium can also be an external storage device of the above electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the computer-readable storage medium can also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store computer-executable instructions and other computer-executable instructions and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0129] The specific implementation of the computer-readable storage medium involved in the present application can be found in the various embodiments of the above-mentioned performance test data separation method, which will not be described in detail here.

[0130] An embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program can be operated to enable a computer to perform part or all of the steps of any performance test data separation method recorded in the above method embodiments. The computer program product can be a software installation package.

[0131] It should be noted that, for the sake of simplicity, the embodiments of any of the aforementioned performance test data separation methods are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present application.

[0132] The above is a detailed introduction to the embodiments of the present application. This article uses specific examples to illustrate the principle and implementation method of a performance test data separation method of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, based on the idea of ​​a performance test data separation method of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0133] The present application is described with reference to the flowchart and / or block diagram of the method, hardware product and computer program product of the embodiment of the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, and the combination of the flow chart and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and / or one box or multiple boxes of the block chart.

[0134] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes of the flowchart and / or one or more blocks of the block diagram. The memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0135] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude multiple situations. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0136] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the method embodiments of any of the above-mentioned performance test data separation methods can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a disk or an optical disk, etc.

[0137] Obviously, those skilled in the art can make various changes and modifications to the performance test data separation method provided by the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A performance test data separation method, characterized in that: Applied to an application service cluster, the application service cluster includes multiple application servers and also includes a test database and a non-test database, the method includes: Obtaining a user device that initiates an access request, and determining whether a user corresponding to the user device is a tagged user or a non-tagged user; If the user is the labeled user, providing a non-test function module entry and a test function module entry to the user device, wherein the test function module is deployed in a test cluster in the application service cluster, and the non-test function module is deployed in a non-test cluster in the application service cluster; If the user is the non-label user, providing the non-test function module entrance to the user equipment; receiving a function access request from the user equipment, and determining a function module for which the function access request is used to request access; If the function access request is for requesting access to the non-test function module, generating access process data in the non-test cluster; If the function access request is for requesting access to the test function module, generating access process data in the test cluster; Acquire multiple access process data generated for multiple user devices in the test cluster; Determine the amount of access process data satisfying a first preset rule among the plurality of access process data, wherein the first preset rule is used to represent a rule that should be followed when the test function module is associated with the non-test function module; If the amount of access process data satisfying the first preset rule is greater than a third preset threshold, determining that the test function module is available; receiving a plurality of function access requests from the user equipment within a second preset time, and determining an access path according to the plurality of function access requests; Determine the proportion of requests to access the test function module in the access path; If the proportion of the requests to access the test function module is greater than a first preset proportion, storing the access process data generated in the access path into the test database; If the proportion of requests to access the test function module is less than or equal to the first preset proportion, the access process data generated by the request to access the test function module in the access path is stored in the test database, and the access process data generated by the request to access the non-test function module in the access path is stored in the non-test database.

2. The method according to claim 1, characterized in that: The method further comprises: Acquire access process data generated in the test cluster, and determine whether the data volume of the access process data is greater than a first preset threshold; If the amount of the access process data is greater than a first preset threshold, obtaining a new application server from the application service cluster and adding it to the test cluster; A new non-test cluster is obtained, and it is determined whether a performance parameter of the new non-test cluster is better than a second preset threshold. If so, it is determined that the test function module has performance stability.

3. The method according to claim 1, characterized in that: The method further includes: setting a first user pool and a second user pool, and for the first user pool, setting its corresponding visibility parameter to a first parameter, which is used to indicate that the non-test function module entry and the test function module entry are visible to corresponding user devices in the first user pool; for the second user pool, setting its corresponding visibility parameter to a second parameter, which is used to indicate that the non-test function module entry is visible to corresponding user devices in the second user pool, and the test function module entry is invisible to user devices corresponding to user devices in the second user pool, and if the user is the labeled user, providing the non-test function module entry and the test function module entry to the user device, including: Classifying the labeled users into the first user pool; If the user is the non-label user, providing the non-test function module entrance to the user equipment includes: The non-labeled users are divided into the second user pool.

4. The method according to claim 1, characterized in that: In the case where the function access request is used to request access to the non-test function module, the method further includes: Acquire a test requirement of the test function module, wherein the test requirement includes testing the availability of the test function module and / or testing the performance impact of the test function module on the application service cluster; If the test requirement of the test function module includes testing the availability of the test function module, prompting the user to access the test function module; If the test requirement of the test function module includes testing the performance impact of the test function module on the application service cluster, then at a first preset time, the user's access request is directed to the test function module.

5. The method according to any one of claims 1 to 4, characterized in that: The application service cluster also includes a test database and a non-test database. If the function access request is for requesting access to the non-test function module, then after generating access process data in the non-test cluster, the method further includes: storing the access process data in the non-test database; If the function access request is used to request access to the test function module, then after generating access process data in the test cluster, the method further includes: storing the access process data in the test database.

6. A performance test data separation device, characterized in that: Applied to an application service cluster, used to execute the performance test data separation method according to any one of claims 1 to 5, the application service cluster includes multiple application servers and also includes a test database and a non-test database, the device includes: An acquiring unit, configured to acquire a user device that initiates an access request, and determine whether a user corresponding to the user device is a tagged user or a non-tagged user; A display unit, configured to provide a non-test function module entrance and a test function module entrance to the user device if the user is the labeled user, wherein the test function module is deployed in a test cluster in the application service cluster, and the non-test function module is deployed in a non-test cluster in the application service cluster; and to provide the non-test function module entrance to the user device if the user is the non-labeled user; a determining unit, configured to receive a function access request from the user equipment and determine a function module for which the function access request is requested to access; A generating unit is used to generate access process data in the non-test cluster if the function access request is used to request access to the non-test function module; and to generate access process data in the test cluster if the function access request is used to request access to the test function module.

7. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and computer-executable instructions stored in the memory and executable on the processor. When the computer-executable instructions are executed, the electronic device executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the communication device, the communication device executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Report generation method and device based on performance test, equipment and computer medium

    CN107832226A

  • Automatic testing method and device and storage medium

    CN110287095A

  • System and method for implementing an automated regression testing module

    US20210109848A1