Method, device, medium and equipment for stress testing of teaching servers

By obtaining student identity information from the educational administration system and generating token information, automatic construction and concurrent teaching server stress test data solve the problems of high time cost and low convenience of manual data construction in the existing technology, and achieve efficient and accurate teaching. Server stress testing.

CN112749048BActive Publication Date: 2024-10-11BEIJING KAITUO HONGYE HIGH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110044070.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-13
Publication Date
2024-10-11
Estimated Expiration
2041-01-13

AI Technical Summary

Technical Problem

In the existing technology, the construction of teaching server stress test data requires manual operations, resulting in high time costs and low convenience, and the comparison of test results also requires manual intervention, affecting the accuracy and efficiency of the test.

Method used

By obtaining student identity information from the educational administration system, generating token information, and constructing multiple pieces of stress test data based on this information, it will automatically and concurrently process it to the class registration interface of the teaching server, generate a stress test report, and automatically generate test results without manual labor. Construct data or comparison reports.

Benefits of technology

It improves the convenience of constructing the teaching server stress test data, reduces the time cost, improves the accuracy and efficiency of the test, automates the test process, reduces manual intervention, and improves the comprehensiveness and accuracy of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112749048B_ABST
    Figure CN112749048B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, medium and equipment for stress testing of a teaching server, so as to solve the problem that the time cost of manually constructing stress testing data of a teaching server is high and the convenience is low, including: obtaining student identity information from an educational system; when a student corresponding to the student identity information logs into a teaching server, saving the token information assigned to the student; in response to a stress testing instruction, constructing multiple stress testing data according to the student identity information and the token information; initiating a class request to a class reporting interface of a teaching server according to the multiple stress testing data, so that the teaching server performs class reporting processing on the multiple stress testing data received; generating a stress testing report according to the processing result of the teaching server performing class reporting processing on the multiple stress testing data. Constructing multiple stress testing data based on the student identity information and the token information can improve the convenience of constructing stress testing data of a teaching server and reduce the time cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of server stress testing, and in particular, to a method, device, medium and equipment for teaching server stress testing. Background Art

[0002] The teaching server needs to be able to process class registration for students of different classes and courses. Therefore, before students register for classes, the teaching server needs to be stress tested to determine the class registration processing performance of the teaching server, and then the number of servers that need to be deployed on the teaching server is determined based on the stress test results, thereby ensuring that the teaching server can have good fluency and stability during the student registration process.

[0003] In related scenarios, the student identity information of the teaching server is collected, and stress test data is manually constructed based on the collected student identity information. Furthermore, the teaching server is stress tested based on the manually constructed stress test data. After obtaining the stress test results, the stress test results are manually compared with the class processing performance that the currently deployed number of servers should have, and the number of teaching servers is adjusted accordingly. Summary of the invention

[0004] The purpose of the present disclosure is to provide a method, device, medium and equipment for teaching server stress testing, so as to solve the problem of manually constructing teaching server stress testing data, which has high time cost and low convenience.

[0005] In order to achieve the above-mentioned object, the present disclosure provides, in a first aspect, a method for stress testing a teaching server, comprising:

[0006] Obtain student identity information from the academic affairs system; and

[0007] When a student corresponding to the student identity information logs into the teaching server, saving token information allocated to the student;

[0008] In response to the stress test instruction, construct a plurality of stress test data according to the student identity information and the stored token information, wherein the plurality of stress test data includes stress test data corresponding to different enrollment amounts;

[0009] Initiate a class registration request to the class registration interface of the teaching server according to the multiple stress test data, so that the teaching server performs class registration processing on the received multiple stress test data;

[0010] A stress test report is generated according to the processing result of the teaching server on the multiple stress test data.

[0011] Optionally, obtaining the student identity information from the educational affairs system includes:

[0012] Predicting whether the student is willing to enroll in the target course based on the student's attribute information in the educational affairs system; and,

[0013] Obtaining student identity information of students who are willing to enroll in the target course;

[0014] The step of constructing a plurality of stress test data according to the trainee identity information and the stored token information includes:

[0015] For the target course, class enrollment request data corresponding to a plurality of classes are constructed, wherein the class enrollment request data of each class is different, and the class enrollment request data corresponding to one class is used as one piece of the stress test data.

[0016] Optionally, the stress test instruction includes a stress test level, and before initiating a class registration request to a class registration interface of the teaching server according to the multiple stress test data, the method further includes:

[0017] According to the pressure test level in the pressure test instruction, determine the number of pressure applying machines required for the pressure test level, and the pressure applying machine is used to initiate a class registration request to the teaching server according to the multiple pressure test data;

[0018] According to the number of parallel shift reporting requests that can be provided by the existing pressurizing machines, determining whether the number of the existing pressurizing machines meets the required number of pressurizing machines;

[0019] In the case that the number of the existing pressurizing machines does not meet the required number of pressurizing machines, the number of pressurizing machines is increased so that the number of the existing pressurizing machines meets the required number of pressurizing machines.

[0020] Optionally, the initiating a class registration request to the teaching server according to the multiple stress test data concurrently includes:

[0021] Selecting a preset number of stress test data from the plurality of stress test data, and sending a class registration request to the teaching server according to the preset number of stress test data;

[0022] When the success rate of the teaching server in processing the preset number of stress test data is greater than a preset success rate threshold, all of the multiple stress test data are sent concurrently to the teaching server to initiate a class registration request.

[0023] Optionally, the method further comprises:

[0024] When the teaching server's processing success rate for the preset number of stress test data is less than or equal to the preset success rate threshold, a test run exception reminder message is sent to the management end that sends the stress test instruction to remind the user of the management end to check the stress test data.

[0025] Optionally, the method further comprises: in the process of initiating a class registration request to the teaching server according to the multiple stress test data, monitoring the operation status information of the teaching server;

[0026] The generating of the stress test report according to the processing result of the teaching server on the plurality of stress test data includes:

[0027] Determine the performance index of the teaching server according to the operation status information, wherein the processing result includes the operation status information;

[0028] Comparing each of the performance indicators with the corresponding benchmark performance requirements to determine whether each of the performance indicators meets the corresponding benchmark performance requirements;

[0029] In the case where a performance indicator fails to meet the corresponding benchmark performance requirement, an exception handling suggestion corresponding to the performance indicator is queried based on the dictionary library, and the stress test report includes the exception handling suggestion.

[0030] Optionally, the method further comprises:

[0031] After obtaining the stress test report, the plurality of stress test data and the class data obtained after the teaching server performs class registration processing are cleaned.

[0032] In a second aspect of the present disclosure, a device for stress testing a teaching server is provided, the device comprising:

[0033] An acquisition module is configured to acquire student identity information from the educational affairs system;

[0034] A saving module, configured to save token information allocated to a student when the student corresponding to the student identity information logs into the teaching server;

[0035] A construction module is configured to construct a plurality of stress test data in response to a stress test instruction according to the student identity information and the stored token information, wherein the plurality of stress test data includes stress test data corresponding to different enrollment amounts;

[0036] A request module is configured to initiate a class registration request to a class registration interface of the teaching server according to the multiple stress test data, so that the teaching server performs class registration processing on the received multiple stress test data;

[0037] The generating module is configured to generate a stress test report according to the processing result of the teaching server performing class reporting processing on the plurality of stress test data.

[0038] Optionally, the acquisition module is configured to:

[0039] Predicting whether the student is willing to enroll in the target course based on the student's attribute information in the educational affairs system; and,

[0040] Obtaining student identity information of students who are willing to enroll in the target course;

[0041] The construction module is configured to construct class enrollment request data corresponding to multiple classes for the target course, wherein the class enrollment request data of each class is different, and the class enrollment request data corresponding to one class is used as one piece of stress test data.

[0042] Optionally, the request module is configured to:

[0043] According to the pressure test level in the pressure test instruction, determine the number of pressure applying machines required for the pressure test level, and the pressure applying machine is used to initiate a class registration request to the teaching server according to the multiple pressure test data;

[0044] According to the number of parallel shift reporting requests that can be provided by the existing pressurizing machines, determining whether the number of the existing pressurizing machines meets the required number of pressurizing machines;

[0045] In the case that the number of the existing pressurizing machines does not meet the required number of pressurizing machines, the number of pressurizing machines is increased so that the number of the existing pressurizing machines meets the required number of pressurizing machines.

[0046] Optionally, the request module is configured to:

[0047] Selecting a preset number of stress test data from the plurality of stress test data, and sending a class registration request to the teaching server according to the preset number of stress test data;

[0048] When the success rate of the teaching server in processing the preset number of stress test data is greater than a preset success rate threshold, all of the multiple stress test data are sent concurrently to the teaching server to initiate a class registration request.

[0049] Optionally, the device also includes: a reminder module, configured to send a trial run abnormality reminder message to the management end that sends the stress test instruction when the success rate of the teaching server in processing the preset number of stress test data is less than or equal to the preset success rate threshold, so as to remind the user of the management end to check the stress test data.

[0050] Optionally, the device further comprises: a monitoring module configured to monitor the operation status information of the teaching server during the process of initiating a class registration request to the teaching server according to the multiple stress test data;

[0051] The generation module is configured as follows:

[0052] Determine the performance index of the teaching server according to the operation status information, wherein the processing result includes the operation status information;

[0053] Comparing each of the performance indicators with the corresponding benchmark performance requirements to determine whether each of the performance indicators meets the corresponding benchmark performance requirements;

[0054] In the case where a performance indicator fails to meet the corresponding benchmark performance requirement, an exception handling suggestion corresponding to the performance indicator is queried based on the dictionary library, and the stress test report includes the exception handling suggestion.

[0055] Optionally, the device further comprises:

[0056] The cleaning module is configured to clean the multiple stress test data and the class data obtained after the teaching server performs class registration processing after obtaining the stress test report.

[0057] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method for stress testing a teaching server described in any one of the first aspects are implemented.

[0058] According to a fourth aspect of the present disclosure, there is provided an electronic device, comprising:

[0059] a memory having a computer program stored thereon;

[0060] A processor is used to execute the computer program in the memory to implement the steps of the method for stress testing of a teaching server as described in any one of the first aspects.

[0061] Through the above technical solution, at least the following technical effects can be achieved:

[0062] By obtaining the student identity information from the academic affairs system; when the student corresponding to the student identity information logs into the teaching server, the token information assigned to the student is saved; in response to the stress test instruction, multiple stress test data are constructed according to the student identity information and token information, and the multiple stress test data include stress test data corresponding to different enrollment quantities; based on the multiple stress test data, a class enrollment request is initiated to the class enrollment interface of the teaching server, so that the teaching server performs class enrollment processing on the multiple stress test data received; and a stress test report is generated according to the processing results of the teaching server performing class enrollment processing on the multiple stress test data. Based on the student identity information and token information, multiple stress test data are constructed, and there is no need to manually construct data, which improves the convenience of constructing the teaching server stress test data, thereby reducing the time cost of stress test data construction, and automatically generates a stress test report according to the stress test results, without the need for manual report comparison, which improves the convenience of testing the teaching server pressure.

[0063] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0065] Figure 1 The present invention is a flowchart of a method for stress testing a teaching server according to an exemplary embodiment.

[0066] Figure 2 According to an exemplary implementation Figure 1 Flowchart of step S11 in FIG.

[0067] Figure 3 The present invention is a flowchart of another method for stress testing a teaching server according to an exemplary embodiment.

[0068] Figure 4 According to an exemplary implementation Figure 1 Flowchart of step S14 in FIG.

[0069] Figure 5 According to an exemplary implementation Figure 1 Flowchart of step S15 in FIG.

[0070] Figure 6 The present invention is a flowchart of another method for stress testing a teaching server according to an exemplary embodiment.

[0071] Figure 7The invention is a block diagram of a device for stress testing a teaching server according to an exemplary embodiment.

[0072] Figure 8 The invention is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0073] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0074] It should be noted that in the present disclosure, the terms "S14", "S21" and the like in the specification, claims and drawings are used to distinguish steps, and do not necessarily mean that the method steps are performed in a specific order or sequential sequence.

[0075] In related scenarios, due to the wide range of businesses associated with teaching courses and class systems, in order to effectively monitor the course and class registration processing performance of the teaching server, the coverage of the stress test data needs to be wide enough. However, manually constructing stress test data cannot simulate the actual registration traffic, and the accuracy of the stress test data is low, resulting in low accuracy of the teaching server stress test. In addition, in order to timely monitor the course and class registration processing performance of the teaching server, the staff needs to constantly update data such as courses, classes, and student information, which is a large workload and low efficiency, resulting in low convenience of teaching server stress testing and high time cost. In addition, after generating the test report, for each round of stress test results, it is necessary to manually compare the reports, which also makes the teaching server stress test less convenient.

[0076] In view of this, the present disclosure provides a method, device, medium and equipment for stress testing of a teaching server to solve the problems existing in the related technology and improve the accuracy and comprehensiveness of stress testing of the teaching server while ensuring the convenience of stress testing of the teaching server.

[0077] Figure 1 is a flowchart of a method for stress testing a teaching server according to an exemplary embodiment, referring to Figure 1 As shown, the method includes the following steps.

[0078] In step S11, the student identity information is obtained from the educational system.

[0079] In step S12, when a student corresponding to the student identity information logs into the teaching server, the token information allocated to the student is saved.

[0080] In step S13, in response to the stress test instruction, multiple stress test data are constructed according to the student identity information and the saved token information.

[0081] Among them, the multiple stress test data include stress test data corresponding to different enrollment quantities.

[0082] In step S14, a class registration request is sent to a class registration interface of a teaching server according to the multiple stress test data, so that the teaching server performs class registration processing on the received multiple stress test data.

[0083] In step S15, a stress test report is generated according to the processing result of the teaching server on the plurality of stress test data.

[0084] During specific implementation, the teaching system records the student identity information of the students who have registered for classes in the school. In step S12, when the student corresponding to the student identity information logs in to the teaching server for the first time through the student registration account, with the user's permission, the token information generated for the student registration account is obtained from the teaching server, and the token information is generated into a TXT file, that is, token information is generated to distinguish different enrollment quantities.

[0085] In step S13, the student identity information is captured from the teaching system, and a student identity TXT file is generated based on the student identity information. The identity TXT file and token information are then added to the shopping cart to simulate the student's action of purchasing a course, and multiple stress test data are constructed for different classes to simulate students purchasing different courses concurrently.

[0086] In step S14, a class registration request can be initiated based on a scheduled stress test task, or based on a user operation triggering a stress test task, thereby initiating a class registration request. Among them, the scheduled stress test task can periodically initiate a class registration request, for example, according to the scheduled stress test task, a class registration request is periodically initiated every other week. For another example, based on the operation of a user with the identity of an administrator on a terminal device, a stress test task of a teaching server is triggered.

[0087] The above technical solution obtains the student identity information from the academic affairs system; when the student corresponding to the student identity information logs into the teaching server, the token information allocated to the student is saved; in response to the stress test instruction, multiple stress test data are constructed according to the student identity information and token information, and the multiple stress test data include stress test data corresponding to different enrollment quantities; based on the multiple stress test data, a class enrollment request is initiated to the class enrollment interface of the teaching server, so that the teaching server performs class enrollment processing on the multiple stress test data received; and a stress test report is generated according to the processing results of the teaching server performing class enrollment processing on the multiple stress test data. Based on the student identity information and token information, multiple stress test data are automatically constructed without manual data construction, which improves the convenience of constructing the teaching server stress test data, thereby reducing the time cost of stress test data construction, and automatically generates a stress test report based on the stress test results, without manual report comparison, which improves the convenience of testing the teaching server pressure.

[0088] Optionally, refer to Figure 2 As shown, in step S11, obtaining the student identity information from the educational system includes:

[0089] In step S111, it is predicted whether the student is willing to enroll in the target course based on the student's attribute information in the educational affairs system.

[0090] In step S112, the student identity information of the student who is willing to enroll in the target course is obtained.

[0091] In step S13, multiple stress test data are constructed according to the student identity information and the saved token information, including:

[0092] For the target course, class enrollment request data corresponding to a plurality of classes are constructed, wherein the class enrollment request data of each class is different, and the class enrollment request data corresponding to one class is used as one piece of the stress test data.

[0093] In specific implementation, in step S111, the student's attribute information in the academic affairs system may include the student's age information, the course information registered, and the student's interest information. The student is then scored based on each attribute information, the student's score is comprehensively calculated, and the target course is predicted based on the score.

[0094] In a possible implementation, a user interface can be provided during the student registration process so that students can fill in their interest information. An external interface can also be provided for connecting to the teaching systems of other educational institutions with the user's permission to obtain the student's course registration information at other educational institutions with the user's permission.

[0095] In one possible implementation, multiple enrollment request data for different target courses are constructed based on the class time information of the target course, the student's willingness to enroll in the target course, and the token information. It is understandable that, when the student's attribute information indicates that the student is willing to enroll in multiple target courses, if the class times of multiple target courses overlap, the student's desired target course is determined based on the student's enrolled course information.

[0096] Specifically, the class registration request data is constructed according to the class coding information, the student identity information and the saved token information. The above embodiment is used for explanation. When a TXT file is generated according to the student identity information and the token information, the coding information of different classes is added to each line of the TXT file, so that each line of the TXT file can construct the class registration request data of multiple classes, wherein each class can represent a class flow.

[0097] Furthermore, multiple students who have registered for the class course are obtained according to the class coding information, and then a stress test data corresponding to the class is constructed. In this way, multiple class flows of multiple classes can be obtained, and multiple classes can be simulated to send class registration requests to the teaching server at the same time.

[0098] By adopting the above technical solution, the student's willingness to enroll in the target course can be predicted based on the student's attribute information, which can expand the correlation between stress test data and enrolled students, expand the coverage of stress test data, ensure that the stress test data simulates the real enrollment traffic, and improve the accuracy and comprehensiveness of the teaching server stress test.

[0099] Optionally, the stress test instruction includes a stress test level, referring to Figure 3 As shown, in step S14, before initiating a class registration request based on the multiple stress test data and sending it to the class registration interface of the teaching server, the following steps are included.

[0100] In step S21, the required number of pressurizing machines corresponding to the pressure test level is determined according to the pressure test level in the pressure test instruction.

[0101] Among them, the pressure machine is used to initiate a class registration request to the teaching server based on multiple pressure test data.

[0102] In step S22, based on the number of parallel shift requests that can be initiated by the existing pressurizing machines, it is determined whether the number of existing pressurizing machines meets the required number of pressurizing machines.

[0103] In step S23, when the number of existing pressurizing machines does not meet the required number of pressurizing machines, the number of pressurizing machines is increased so that the number of existing pressurizing machines meets the required number of pressurizing machines.

[0104] In specific implementation, the stress test instruction includes the total number of multiple stress test data, and the stress test level is positively correlated with the total number of multiple stress test data, that is, the greater the total number of multiple stress test data, the higher the stress test level. It is understandable that the ability of each stress machine to initiate parallel shift requests is fixed, for example, the throughput per second and the number of concurrent requests of the stress machine are fixed values. Existing stress machines need to be able to provide a throughput per second and a number of concurrent requests that meet the predicted stress test level.

[0105] For example, when each stress machine can provide the capability of initiating parallel shift requests with a throughput of 200 and a concurrency of 100, and the total number of stress test data is 800, determine whether the throughput per second and concurrency provided by the existing stress machines meet the throughput per second and concurrency of the total number of stress test data of 800.

[0106] In one possible implementation, the predicted stress test level is positively correlated with the number of students corresponding to the target course, that is, the more students corresponding to the target course, the higher the predicted stress test level.

[0107] Accordingly, in step S14, when the number of existing pressurizing machines meets the number requirement of pressurizing machines, a class registration request is sent to the class registration interface of the teaching server according to the multiple pressure test data. For example, when the number of existing pressurizing machines meets the number requirement of pressurizing machines, the communication address of the corresponding pressurizing machine is obtained, and a pressure instruction is sent to the pressurizing machine according to the communication address of the pressurizing machine, so that the pressurizing machine initiates a class registration request to the teaching server.

[0108] By adopting the above technical scheme, the required number of stress applicators for multiple stress test data can be determined according to the predicted stress test level, which can ensure that the stress applicators can provide the corresponding class request pressure, avoid the situation where the class request pressure provided by the stress applicator is inconsistent with the stress test instructions in the stress test task, and ensure the readiness of the teaching server stress test.

[0109] Optionally, refer to Figure 4 As shown, in step S14, the step of initiating a class registration request to the teaching server based on the multiple stress test data concurrently includes the following steps.

[0110] In step S141, a preset number of stress test data are selected from multiple stress test data, and a class registration request is initiated to the teaching server according to the preset number of stress test data.

[0111] In step S142, when the success rate of the teaching server in processing a preset number of stress test data is greater than a preset success rate threshold, all the multiple stress test data are sent to the teaching server concurrently to initiate a class registration request.

[0112] In the specific implementation, the above example is used to illustrate that when the file format of multiple stress test data is TXT file format, one stress test data is selected every preset interval line, and when the number of selected stress test data reaches the preset number, a class registration request is initiated to the teaching server based on the selected stress test data. It can be understood that the total number of multiple stress test data is greater than the number of selected preset number of stress test data.

[0113] For example, when the total number of stress test data is 800 and the file format is TXT file format, one stress test data is selected every 50 lines. When the number of selected stress test data reaches a preset number of 10, a trial run registration request is initiated to the teaching server based on the selected 10 stress test data. The trial run lasts for 2 minutes.

[0114] Furthermore, if the trial run time reaches 2 minutes, the teaching server's processing success rate for 10 preset numbers of stress test data will be calculated, and when the teaching server's processing success rate for the preset number of stress test data is greater than the preset success rate threshold of 99.5%, all 800 stress test data will be sent concurrently to the teaching server to initiate a standard class registration request, which will last for a standard period of 10 minutes.

[0115] In one embodiment, when a report request is periodically initiated every week in a scheduled stress test task, the total number of multiple stress test data is determined, and test run stress test data is selected from the multiple stress test data according to a preset number preset by the management end.

[0116] In another embodiment, when a stress test task of a teaching server is triggered based on the operation of a user with an administrator's identity on a terminal device, the total number of multiple stress test data and a dialog box for setting a preset number can be displayed to the user for the stress test task, so that the user can set the value of the preset number and set the duration of the continuous test run.

[0117] By adopting the above technical solution, the teaching server can be stress tested with a small concurrency, and when there is no abnormality in the stress test data, all multiple stress test data can be sent concurrently to the teaching server to initiate a class registration request, which can improve the accuracy of the teaching server stress test.

[0118] Optionally, the method further comprises:

[0119] When the teaching server's processing success rate for a preset amount of stress test data is less than or equal to a preset success rate threshold, a test run exception reminder message is sent to the management end that sent the stress test instruction to remind the user of the management end to check the stress test data.

[0120] In specific implementation, when the success rate of the teaching server in processing a preset amount of stress test data is less than or equal to a preset success rate threshold, the stress test task for the teaching server is suspended, and a test run abnormality reminder message is sent to the management end that sent the stress test instruction.

[0121] For example, using the above example, when the teaching server's processing success rate for 10 preset number of stress test data is less than or equal to the preset success rate threshold of 99.5%, a test run abnormality reminder message is sent to the management end that sends the stress test instruction to remind the user of the management end to check the stress test data. The abnormal reminder can be sent to the management end that sends the stress test instruction via, for example, email, DingTalk, etc.

[0122] In one implementation, the abnormality reminder message may include the processing success rate of the stress test of each stress test data by the teaching server. For example, following the above-mentioned embodiment, 10 stress test data are selected for trial run, and the abnormality reminder message includes that the processing success rate of 9 stress test data by the teaching server is 100%, while the processing success rate of another stress test data is 50%. Then, the staff of the management end can check and verify the validity of the stress test data based on the processing success rate of each stress test data, and remove the stress test data if it is determined that the stress test data causes the trial run abnormality.

[0123] By adopting the above technical solution, the teaching server can be stress tested with a small concurrency, and if the stress test data with a small concurrency is abnormal, the stress test data can be eliminated to avoid affecting the stability of the stress test of the teaching server.

[0124] Optionally, the method further includes: in the process of concurrently initiating a class registration request to the teaching server according to the multiple stress test data, monitoring the running status information of the teaching server.

[0125] In one embodiment, reference Figure 5 As shown, in step S15, generating a stress test report according to the processing result of the teaching server on the plurality of stress test data includes the following steps:

[0126] In step S151, the performance index of the teaching server is determined according to the operation status information, and the processing result includes the operation status information.

[0127] In step S152, each performance indicator is compared with the corresponding benchmark performance requirement to determine whether each performance indicator meets the corresponding benchmark performance requirement.

[0128] In step S153, when there is a performance indicator that does not meet the corresponding benchmark performance requirement, the abnormality handling suggestion corresponding to the performance indicator is queried based on the dictionary library. The stress test report includes the abnormality handling suggestion.

[0129] In the specific implementation, the hardware status and software status of the teaching server are monitored, and the running status information of the teaching server is displayed to the management end, where the running status information includes the hardware status and the software status. For example, during the continuous trial run time and the continuous standard time, the running status information of the teaching server is continuously monitored, and the running status information of the teaching server is displayed based on Granfana and Tingyun hyperlinks.

[0130] In one embodiment, when there is a performance indicator that does not meet the corresponding benchmark performance requirements, an abnormal stress test report is generated, for example, when the success rate of concurrent processing of multiple stress test data by the teaching server is lower than 95%, or the response time of the teaching server exceeds 5%-10% of the benchmark response time threshold, or the system throughput of the teaching server exceeds 5%-10% of the throughput threshold, an abnormal stress test report is generated. And for each performance indicator, the abnormal processing suggestion corresponding to the performance indicator is queried based on the dictionary library.

[0131] It is understandable that the dictionary library pre-stores the stress test data corresponding to each performance indicator exception and the processing suggestions for the operation status information of the teaching server. For example, in the case of frequent fullGC exceptions, the exception processing suggestion may be to optimize the memory usage of the teaching server and release the memory in time to reduce the performance impact of fullGC on the teaching server.

[0132] As another example, when the response time of the teaching server exceeds 5%-10% of the benchmark response time threshold, it is determined that the teaching server resources have reached an extreme value, and the exception handling suggestion may be to increase the number of teaching servers.

[0133] In another embodiment, when all performance indicators meet the corresponding benchmark performance requirements, a regular stress test report is generated. For example, the regular stress test report may include the start time and end time of the teaching server stress test task, the script name and version used in the stress test task, and the concurrent number of class registration requests for the stress test task, and display the stress test report to the user based on a hyperlink.

[0134] By adopting the above technical solution, the management end can promptly know the processing results of the teaching server for the stress test according to the stress test report, and in the event of abnormal performance indicators, timely adjust the stress test data or teaching server according to the exception handling suggestions, thereby ensuring the progress of the teaching server stress test task.

[0135] In one possible implementation, the processing result may also include feedback information indicating whether the processing of each class registration request by the teaching server is successful, and accordingly, the stress test report includes the success rate of the class registration request. For example, in the case where the class registration request includes 100 stress test data, if the success rate of the class registration request by the teaching server is 96%, that is, the teaching server successfully processes 96 stress test data in the class registration request and fails to process 4 stress test data in the class registration request, then the stress test report includes the request success rate.

[0136] Optionally, the method further comprises:

[0137] After obtaining the stress test report, multiple stress test data and class data obtained after the teaching server processes the class report are cleaned.

[0138] In one implementation, after obtaining the stress test report, a timing task is started, and when the timing duration in the timing task is reached, the multiple stress test data corresponding to the stress test report and the class data obtained after the teaching server performs class registration processing are cleaned. With this technical solution, data cleaning can be automatically performed based on the timing task, avoiding the impact of excessive stress test data on the performance of the teaching server.

[0139] In another embodiment, when a cleaning instruction is received from the management end in response to a stress test report, the multiple stress test data corresponding to the stress test task identifier and the class data obtained after the teaching server performs class reporting processing are cleaned according to the stress test task identifier in the cleaning instruction. With this technical solution, data cleaning can be performed based on the cleaning instruction, avoiding automatic cleaning of stress test data, resulting in the management end failing to analyze the stress test data in a timely manner, and causing repeated stress test tasks.

[0140] The following is an example of a method for stress testing a teaching server. Figure 6 As shown, the method for stress testing of a teaching server includes:

[0141] The management end initiates the teaching server stress test task, and the task scheduling center configures the teaching server stress test task through the task management module, and then configures the number of stress applicators. After the number of stress applicators is configured, it is determined whether the number of existing stress applicators meets the stress applicator quantity requirement.

[0142] Furthermore, when the number of existing pressurizing machines does not meet the required number of pressurizing machines, the step of configuring the number of pressurizing machines is executed; when the number of existing pressurizing machines meets the required number of pressurizing machines, the step of constructing multiple pressure test data is executed.

[0143] Furthermore, the student identity information of the teaching system is obtained to generate an identity TXT file, and with the user's permission, the token information is obtained to generate a token TXT file. The token information is used to distinguish different enrollment amounts, thereby completing the TXT file addition, and constructing the class data based on the token information to obtain multiple stress test data.

[0144] Further, the stress test script is executed, and a trial run registration request is initiated to the teaching server concurrently. By way of example, the above embodiment is used for explanation, and one stress test data is selected every 50 lines. When the number of selected stress test data reaches a preset number of 10, a trial run registration request is concurrently initiated to the teaching server based on the selected 10 stress test data, and the trial run lasts for 2 minutes.

[0145] Furthermore, after the trial run continues for a certain period of time, determine whether the processing success rate meets the preset success rate. If the processing success rate does not meet the preset success rate, execute the step of feeding back the trial run abnormality information to the management end through DingTalk or email; if the processing success rate meets the preset success rate, execute the step of sending all multiple stress test data concurrently to the teaching server to initiate a standard class registration request.

[0146] By way of example, the above embodiment is used for explanation. When the teaching server's processing success rate of a preset number of stress test data is less than or equal to the preset success rate threshold of 99.5%, the information including the processing success rate is less than or equal to the preset success rate threshold of 99.5% is sent to the management end via DingTalk or email; when the teaching server's processing success rate of a preset number of stress test data is greater than the preset success rate threshold of 99.5%, all 800 stress test data are sent concurrently to the teaching server to initiate a standard class registration request, which lasts for a standard period of 10 minutes.

[0147] Furthermore, based on all the multiple stress test data, the stress test task is performed for a standard period of time, and then it is determined whether the performance indicators of the teaching server meet the performance deviation. For example, it is determined whether the system throughput of the teaching server exceeds 5%-10% of the throughput threshold, or whether the concurrent processing success rate of the teaching server for multiple stress test data is less than 95%, or whether the response time of the teaching server exceeds 5%-10% of the benchmark response time threshold.

[0148] Furthermore, when all performance indicators meet the corresponding benchmark performance requirements, a stress test report is generated, including: the response time of the teaching server, system throughput, whether the processing success rate exceeds the deviation threshold, and the regular stress test report: the start time and end time of the teaching server stress test task, as well as the script name and version used in the stress test task, and the concurrent number of class requests for the stress test task. And in the case that there are performance indicators that do not meet the corresponding benchmark performance requirements, the exception handling suggestions corresponding to the performance indicators are queried based on the dictionary library, and the exception handling suggestions are presented in the stress test report. The stress test report is sent by email to the terminals of the project leader, developer, tester, and the management end that initiated the stress test task.

[0149] Based on the same inventive concept, the present disclosure also provides a device 600 for stress testing a teaching server, which is used to execute the steps of the method for stress testing a teaching server provided in the above method embodiment. The device 600 can implement the method for stress testing a teaching server in the form of software, hardware, or a combination of both. Figure 7 is a block diagram of a device 600 for stress testing a teaching server according to an exemplary embodiment. Figure 7 As shown, the device 600 includes: an acquisition module 610, a storage module 620, a construction module 630, a request module 640 and a generation module 650.

[0150] The acquisition module 610 is configured to obtain the student identity information from the education system;

[0151] A saving module 620 is configured to save the token information allocated to the student when the student corresponding to the student identity information logs into the teaching server;

[0152] The construction module 630 is configured to construct a plurality of stress test data in response to the stress test instruction according to the student identity information and the stored token information, wherein the plurality of stress test data includes stress test data corresponding to different enrollment amounts;

[0153] The request module 640 is configured to initiate a class registration request to the class registration interface of the teaching server according to the multiple stress test data, so that the teaching server performs class registration processing on the received multiple stress test data;

[0154] The generating module 650 is configured to generate a stress test report according to the processing result of the teaching server performing class reporting processing on the plurality of stress test data.

[0155] The above-mentioned device constructs multiple stress test data based on the student identity information and token information. There is no need to manually construct data, which improves the convenience of constructing stress test data for the teaching server, thereby reducing the time cost of stress test data construction. In addition, there is no need for manual report comparison. The test report is automatically generated according to the processing results, which improves the convenience of testing the pressure of the teaching server.

[0156] Optionally, the acquisition module 610 is configured to:

[0157] Predicting whether the student is willing to enroll in the target course based on the student's attribute information in the educational affairs system; and,

[0158] Obtaining student identity information of students who are willing to enroll in the target course;

[0159] The construction module 630 is configured to construct class enrollment request data corresponding to multiple classes for the target course, wherein the class enrollment request data of each class is different, and the class enrollment request data corresponding to one class is used as one piece of the stress test data.

[0160] Optionally, the request module 640 is configured to:

[0161] According to the pressure test level in the pressure test instruction, determine the number of pressure applying machines required for the pressure test level, and the pressure applying machine is used to initiate a class registration request to the teaching server according to the multiple pressure test data;

[0162] According to the number of parallel shift reporting requests that can be provided by the existing pressurizing machines, determining whether the number of the existing pressurizing machines meets the required number of pressurizing machines;

[0163] In the case that the number of the existing pressurizing machines does not meet the required number of pressurizing machines, the number of pressurizing machines is increased so that the number of the existing pressurizing machines meets the required number of pressurizing machines.

[0164] Optionally, the request module 640 is configured to:

[0165] Selecting a preset number of stress test data from the plurality of stress test data, and sending a class registration request to the teaching server according to the preset number of stress test data;

[0166] When the success rate of the teaching server in processing the preset number of stress test data is greater than a preset success rate threshold, all of the multiple stress test data are sent concurrently to the teaching server to initiate a class registration request.

[0167] Optionally, the device 600 also includes: a reminder module, configured to send a trial run abnormality reminder message to the management end that sends the stress test instruction when the success rate of the teaching server in processing the preset number of stress test data is less than or equal to the preset success rate threshold, so as to remind the user of the management end to check the stress test data.

[0168] Optionally, the device 600 further includes: a monitoring module configured to monitor the operation status information of the teaching server during the process of initiating a class registration request to the teaching server according to the multiple stress test data;

[0169] The generating module 650 is configured to:

[0170] Determine the performance index of the teaching server according to the operation status information, wherein the processing result includes the operation status information;

[0171] Comparing each of the performance indicators with the corresponding benchmark performance requirements to determine whether each of the performance indicators meets the corresponding benchmark performance requirements;

[0172] In the case where a performance indicator fails to meet the corresponding benchmark performance requirement, an exception handling suggestion corresponding to the performance indicator is queried based on the dictionary library, and the stress test report includes the exception handling suggestion.

[0173] Optionally, the device 600 further includes:

[0174] The cleaning module is configured to clean the multiple stress test data and the class data obtained after the teaching server performs class registration processing after obtaining the stress test report.

[0175] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0176] In addition, it is worth noting that for the convenience and simplicity of description, the embodiments described in the specification are all preferred embodiments, and the parts involved are not necessarily necessary for the present invention. For example, the construction module 630 and the generation module 650 can be independent devices or the same device in specific implementation, and the present disclosure does not limit this.

[0177] The embodiment of the present disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods for stress testing a teaching server.

[0178] The present disclosure also provides an electronic device, including:

[0179] a memory having a computer program stored thereon;

[0180] A processor is used to execute the computer program in the memory to implement any step of the method for stress testing a teaching server.

[0181] Figure 8 is a block diagram of an electronic device 700 according to an exemplary embodiment. The electronic device can be configured as a device for teaching server stress testing, such as Figure 8 As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.

[0182] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned method for teaching server stress testing. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.

[0183] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned method for stress testing a teaching server.

[0184] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned method for stress testing of a teaching server are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions may be executed by the processor 701 of the electronic device 700 to complete the above-mentioned method for stress testing of a teaching server.

[0185] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0186] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0187] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for stress testing a teaching server, It is characterized in that include: Obtain student identity information from the educational system; and, When a student corresponding to the student identity information logs into the teaching server, saving token information allocated to the student; In response to the stress test instruction, a plurality of stress test data are constructed according to the student identity information and the stored token information, wherein the plurality of stress test data include stress test data corresponding to different enrollment quantities, wherein for any target course, enrollment request data corresponding to a plurality of classes are constructed, wherein the enrollment request data of each class is different, and the enrollment request data corresponding to one class is used as one stress test data; Initiate a class registration request to the class registration interface of the teaching server according to the multiple stress test data, so that the teaching server performs class registration processing on the received multiple stress test data; Generate a stress test report according to the processing result of the teaching server on the plurality of stress test data; The step of concurrently initiating a class registration request to the teaching server according to the plurality of stress test data includes: Selecting one piece of stress test data at every preset interval from the plurality of stress test data to select a preset number of stress test data, and sending a class registration request to the teaching server according to the preset number of stress test data; When the success rate of the teaching server in processing the preset number of stress test data is greater than a preset success rate threshold, all of the multiple stress test data are sent to the teaching server in parallel to initiate a class registration request; When the teaching server's processing success rate for the preset number of stress test data is less than or equal to the preset success rate threshold, a test run exception reminder message is sent to the management end that sends the stress test instruction to remind the user of the management end to check the stress test data.

2. The method according to claim 1, It is characterized in that The obtaining of the student identity information from the educational affairs system includes: Predicting whether the student is willing to enroll in the target course based on the student's attribute information in the educational affairs system; and, The student identity information of the student who is willing to enroll in the target course is obtained.

3. The method according to claim 2, It is characterized in that The stress test instruction includes a stress test level, and before the class registration request is sent to the class registration interface of the teaching server according to the multiple stress test data, the method further includes: According to the pressure test level in the pressure test instruction, determine the number of pressure applying machines required for the pressure test level, and the pressure applying machine is used to initiate a class registration request to the teaching server according to the multiple pressure test data; According to the number of parallel shift reporting requests that can be provided by the existing pressurizing machines, determining whether the number of the existing pressurizing machines meets the required number of pressurizing machines; In the case that the number of the existing pressurizing machines does not meet the required number of pressurizing machines, the number of pressurizing machines is increased so that the number of the existing pressurizing machines meets the required number of pressurizing machines.

4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: in the process of concurrently initiating a class registration request to the teaching server according to the plurality of stress test data, monitoring the operation status information of the teaching server; The generating of the stress test report according to the processing result of the teaching server on the plurality of stress test data includes: Determine the performance index of the teaching server according to the operation status information, wherein the processing result includes the operation status information; Comparing each of the performance indicators with the corresponding benchmark performance requirements to determine whether each of the performance indicators meets the corresponding benchmark performance requirements; In the case where a performance indicator fails to meet the corresponding benchmark performance requirement, an exception handling suggestion corresponding to the performance indicator is queried based on the dictionary library, and the stress test report includes the exception handling suggestion.

5. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: After obtaining the stress test report, the plurality of stress test data and the class data obtained after the teaching server performs class registration processing are cleaned.

6. A device for stress testing of teaching servers, It is characterized in that The device comprises: An acquisition module is configured to acquire student identity information from the educational affairs system; A saving module, configured to save token information allocated to a student when the student corresponding to the student identity information logs into the teaching server; A construction module is configured to construct, in response to a stress test instruction, a plurality of stress test data according to the student identity information and the stored token information, wherein the plurality of stress test data include stress test data corresponding to different enrollment quantities, wherein for any target course, enrollment request data corresponding to a plurality of classes are constructed, wherein the enrollment request data of each class is different, and the enrollment request data corresponding to one class is used as one stress test data; A request module is configured to initiate a class registration request to a class registration interface of the teaching server according to the multiple stress test data, so that the teaching server performs class registration processing on the received multiple stress test data; A generating module configured to generate a stress test report according to the processing result of the teaching server on the plurality of stress test data; Wherein, the request module is configured as follows: Selecting one piece of stress test data at every preset interval from the plurality of stress test data to select a preset number of stress test data, and sending a class registration request to the teaching server according to the preset number of stress test data; When the success rate of the teaching server in processing the preset number of stress test data is greater than a preset success rate threshold, all of the multiple stress test data are sent to the teaching server in parallel to initiate a class registration request; When the teaching server's processing success rate for the preset number of stress test data is less than or equal to the preset success rate threshold, a test run exception reminder message is sent to the management end that sends the stress test instruction to remind the user of the management end to check the stress test data.

7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.

8. An electronic device, It is characterized in that include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.