WO2021056918A1 - Method and apparatus for testing configuration program code of server, and medium - Google Patents

Method and apparatus for testing configuration program code of server, and medium Download PDF

Info

Publication number
WO2021056918A1
WO2021056918A1 PCT/CN2019/130090 CN2019130090W WO2021056918A1 WO 2021056918 A1 WO2021056918 A1 WO 2021056918A1 CN 2019130090 W CN2019130090 W CN 2019130090W WO 2021056918 A1 WO2021056918 A1 WO 2021056918A1
Authority
WO
WIPO (PCT)
Prior art keywords
login
web application
concurrent
concurrent logins
program code
Prior art date
Application number
PCT/CN2019/130090
Other languages
French (fr)
Chinese (zh)
Inventor
曾菊香
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021056918A1 publication Critical patent/WO2021056918A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present invention relates to the field of program testing, and in particular to a testing method, device and computer readable storage medium for server configuration program code.
  • the server can generally access the internal operating parameters of the server and various sensor data and logs through a web application to obtain the operating status of the server. And generally, the more web applications are logged in, the more operating conditions can be obtained. But at the same time, logging in too many web applications will cause the performance of the server to be damaged. Therefore, it is necessary to limit the number of concurrent logins in web applications, that is, if the number of currently logged-in web applications reaches the limited number of concurrent logins, there will be new web applications. When logging in, you will not be able to log in successfully.
  • the logged-in web application has not been operated for a long time, it will be automatically logged out after the preset user timeout period is reached; when a web application is logged out or automatically logged out after a timeout, the new web application can be successfully logged in.
  • the program code used to limit the number of concurrent logins and the user timeout period is set incorrectly, the actual target number of concurrent logins and the target user timeout period will not correspond to the preset values, which will affect the performance of the server .
  • the method of testing whether the program code (ie the configuration program code) used to limit the number of concurrent logins and the user timeout period is correct and effective is obtained by the tester’s manual test: the tester uses multiple computers from multiple computers. The browser manually logs in the web application to the target server. When the web application fails to log in successfully, the target concurrent login number is determined. By judging whether the target concurrent login number is consistent with the preset concurrent login number, the setting used to limit concurrency is determined Whether the program code for the number of logins is correct; then after waiting for the preset user timeout period, manually log in to the web application again, and determine whether the program code set to limit the user timeout period is correct by judging whether the login can be successful.
  • the program code ie the configuration program code
  • This purely manual testing method has a complicated operation process and slow operation speed, and the time interval for logging in to the web application is large by manually logging in to the web application, which may lead to test errors during the test process, and manual operations are also prone to hand errors, etc. Circumstances further lead to incorrect test results.
  • the test device and the computer-readable storage medium for configuring the program code have the above-mentioned beneficial effects.
  • the present invention provides a method for testing the configuration program code of a server, which includes:
  • the test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period.
  • the method further includes:
  • the login interface is called by the login command again, if successful login of the web application is not detected again after a second preset number of times, it is determined that the preset user timeout period is invalid Set up.
  • the present invention also provides a testing device for the configuration program code of the server, which includes:
  • the first login module is used to call the login interface of the web application with the login command from the first time point;
  • the determining module is configured to update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
  • the second login module is configured to use the login command to call the login interface again after the target number of concurrent logins is determined, until the successful login of the web application is detected again, and record the current moment as the second time point;
  • a calculation module configured to calculate a target user timeout time according to the difference between the first time point and the second time point
  • the judging module is used to determine whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period to obtain a test result.
  • the present invention also provides a testing device for the configuration program code of the server, which includes:
  • Memory used to store computer programs
  • the processor is used to implement the steps of any one of the above-mentioned methods for testing the configuration program code of the server when the computer program is executed.
  • the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the configuration program code of any server mentioned above is The steps of the test method.
  • the present invention provides a method for testing the configuration program code of a server.
  • the login interface of the web application is called from the first time point by using the login command; and the current number of concurrent logins is updated when the login of the web application is successful.
  • the target number of concurrent logins is determined according to the current number of concurrent logins; after the target number of concurrent logins is determined, the login interface is called again with the login command until the successful login of the web application is detected again, and the current moment is recorded as the second time point ; Then calculate the target user timeout time according to the difference between the first time point and the second time point; by judging whether the preset number of concurrent logins and the preset user timeout time correspond to the same corresponding to the target number of concurrent logins and the target user timeout time, we get Result of the test.
  • this method does not require testers to manually log in to the web application, and the operation method is simpler and requires less time, so the convenience of logging in to the web application is improved; the convenient login method will also shorten the time interval for logging in to the web application and reduce the test error , And can relatively avoid errors caused by manual operation, so it can improve the accuracy of test results.
  • the present invention also provides a testing device and computer readable storage medium for the configuration program code of the server, both of which have the above beneficial effects.
  • FIG. 1 is a flowchart of a method for testing configuration program code of a server according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of a testing device for server configuration program code provided by an embodiment of the present invention
  • Fig. 3 is a structural diagram of another device for testing configuration program code of a server provided by an embodiment of the present invention.
  • the core of the embodiments of the present invention is to provide a method for testing the configuration program code of the server, which can improve the convenience and accuracy of whether the configuration program code of the test server is correct and effective; another core of the present invention is to provide a configuration of the server
  • the test device of the program code and the computer-readable storage medium both have the above-mentioned beneficial effects.
  • FIG. 1 is a flowchart of a method for testing the configuration program code of a server according to an embodiment of the present invention. As shown in Figure 1, a method for testing the configuration program code of a server includes:
  • S20 The current number of concurrent logins is updated when the web application login is successful, and when it is detected that the login interface fails to be called, the target number of concurrent logins is determined according to the current number of concurrent logins.
  • the first time point is recorded, and the continuous timing is started. At the same time, it starts to count the current number of web applications that have successfully logged in, that is, set the current number of concurrent logins, and update the current number of concurrent logins every time the web application logs in successfully.
  • the login command can be specifically a curl command.
  • the curl command When using the curl command to log in to a web application, if the login interface of the called web application matches and the call can be successful, it means that the web application can be logged in; if the login interface of the called web application is called If it does not match, you cannot successfully log in to the web application.
  • the login interface of the web application fails to be called, that is, when the login fails, it means that the current number of concurrent logins has reached the number of concurrent logins that the server can actually log in to the web application. Therefore, the corresponding number is determined according to the updated current number of concurrent logins. The target number of concurrent logins.
  • the operation of invoking the login interface of the web application may be performed according to the first preset time period, or the invoking operation may be performed randomly, which is not limited in this embodiment.
  • S40 Calculate the timeout period of the target user according to the difference between the first time point and the second time point.
  • the login command is used to call the login interface of the web application again, that is, after the target number of concurrent logins is obtained, the web application continues to try to log in until the successful login of the web application is detected again. , Record the current moment as the second time point.
  • the difference between the first time point and the second time point represents the length of time that a certain web application is automatically logged out without being operated, and the length of time is the target user's timeout period.
  • the rules for logging in to the web application again can be the same as the rules for logging in to the web application in the previous cycle.
  • the calling operation is preferably performed according to the second preset time period, and the second preset time period is greater than the first preset time period.
  • the second preset time period is preferably set to 1s.
  • test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period.
  • the preset concurrent login number and target concurrent login Whether the number is the same, and whether the preset user timeout period and the target user timeout period are the same. If they are the same, it means that the configuration program code in the current server is set correctly and effectively, and the expected web login effect can be achieved according to the current configuration program code; if they are not the same, it means that the configuration program code in the current server is set incorrectly, and you need to check the corresponding The configuration program code is adjusted.
  • the embodiment of the present invention provides a method for testing the configuration program code of a server.
  • the login interface of the web application is invoked by using the login command from the first time point; and the current number of concurrent logins is updated when the web application login is successful.
  • the target number of concurrent logins is determined according to the current number of concurrent logins; after the target number of concurrent logins is determined, the login interface is called again with the login command until the successful login of the web application is detected again, and the current moment is recorded as the second Time point; then the target user timeout time is calculated according to the difference between the first time point and the second time point; by judging whether the preset number of concurrent logins and the preset user timeout time are the same as the target number of concurrent logins and the target user timeout time , Get the test result.
  • this method does not require testers to manually log in to the web application, and the operation method is simpler and requires less time, so the convenience of logging in to the web application is improved; the convenient login method will also shorten the time interval for logging in to the web application and reduce the test error , And can relatively avoid errors caused by manual operation, so it can improve the accuracy of test results.
  • this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, in the process of using the login command to call the login interface again, it further includes:
  • the counter is set, and when the login interface of the web application is called again with the login command, each time the login command is called to log in to the web application but the login is not successful, the counter is increased by 1 until the web login can be successfully logged in. application.
  • the count of the counter indicates the number of attempts to log in to the web application using the login command.
  • this embodiment further records the number of logins to the web application using the login command, so that the number of attempts to log in to the web application can be checked in the subsequent operation process, so that the tester can obtain more running information.
  • this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, after the login command is used to call the login interface of the web application from the first time point, it further includes :
  • this embodiment further sets the first preset number of times, and determines whether there is a case where the failure to call the login interface has not been detected after the login interface of the web application is called by the login command to reach the first preset number of times. If so, It means that the preset number of concurrent logins does not work, that is, the preset number of concurrent logins is an invalid setting.
  • the login interface is called by the login command again, if successful login of the web application is not detected again after the second preset number of times, it is determined that the preset user timeout period is an invalid setting.
  • the second preset number of times is set first, and in the process of using the login command to call the login interface of the web application, if after the second preset number of attempts to log in, the successful login to the web application is not detected. , That is, there is no web application that has been logged in due to the preset user timeout period and automatically log out, resulting in the subsequent failure to log in to the new web application again, which means that the preset preset user timeout period does not work, that is, The preset user timeout period is an invalid setting.
  • the determined target number of concurrent logins and the preset number of concurrent logins may have three situations:
  • the first is that the target number of concurrent logins is equal to the preset number of concurrent logins, indicating that the program code set to limit the number of concurrent logins is correct and valid;
  • the second is that the target number of concurrent logins is less than the preset number of concurrent logins, which means that the program code set to limit the number of concurrent logins is incorrect;
  • the third is that the target number of concurrent logins is greater than the preset number of concurrent logins, indicating that the program code set to limit the number of concurrent logins is incorrect or invalid.
  • the first is that the target user's timeout period is the same as the preset user's timeout period, which means that the program code set to limit the user's timeout period is correct and valid;
  • the second is that the target user timeout time is less than the preset user timeout time, which means that the program code set to limit the user timeout time is incorrect;
  • the third is that the target user timeout time is greater than the preset user timeout time, which means that the program code set to limit the user timeout time is incorrect or invalid.
  • this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment,
  • the login interface fails to call, that is, when the web application is not successfully logged in, a corresponding prompt message is issued to prompt the test Personnel cannot currently log in to the web application.
  • the prompt information can be issued by emitting a prompt sound.
  • the prompt sound can be a buzzer or a preset voice message, such as " The current user has reached the maximum number"; or it can also display the preset content on the operation interface as a prompt message.
  • the display content can be images, text or animation, and the text can also be "the current user has reached the maximum number", etc., which can be specific Set according to actual needs.
  • MaxNum1 Set the first preset number of times MaxNum1, which means that the curl command MaxNum1 will be called cyclically, and MaxNum1 must be greater than the preset number of concurrent user logins;
  • the curl command is as follows:
  • the curl command is as follows:
  • the login is not successful, it means that there is no web application that is automatically logged out because the preset user timeout time is reached in the currently logged-in web application, and it prompts "the current user has reached the maximum number", and continue to use the curl command to call the web application login interface;
  • the login is successful, it means that there are web applications that are automatically logged out because the target user timeout time is reached in the currently logged-in web applications, so the second time point endtime is recorded, and the loop is out of the loop;
  • the test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the target number of concurrent logins and the target user timeout period.
  • the preset number of concurrent logins running on a web server is 20 web applications, and the preset user timeout time is set to 5 minutes. If the configuration program code of the web server is correct, use the curl command
  • the first 20 login requests can succeed.
  • the 21st web application logs in the login fails and you receive a prompt "The current user has reached the maximum number"; the web applications that continue to log in will fail until After 5 minutes, the first 20 web applications are automatically logged out due to the preset user timeout period. At this time, the 21st and subsequent web applications can successfully log in again.
  • the number of web applications that can be logged in is less than 20 or the number of web applications that can be logged in circularly reaches the first preset number of times, it means that the configuration program code of the web server is incorrect; in addition, if it is within 5 minutes during the operation Within this, you can log in to the web application again or log in to the web application repeatedly for the second preset number of times, which indicates that the configuration program code of the web server is incorrect.
  • the method for testing the configuration program code of the server is to use a login command to call the login interface of the web application, and update the current concurrent login number when the web application login is successful, and when it is detected that the login interface fails to be called, Determine the target number of concurrent logins according to the current number of concurrent logins; then, after determining the target number of concurrent logins, use the login command to call the login interface again until the successful login of the web application is detected again, and the current moment is recorded as the second time point; The difference between the first time point and the second time point calculates the target user timeout time; then by judging whether the preset number of concurrent logins and the preset user timeout time correspond to the target number of concurrent logins and the target user timeout time, the test result is obtained ; It does not require testers to manually log in to the web application, the operation method is simpler and requires less time, thus improving the convenience of logging in to the web application; the convenient login method will also make the interval time for logging in to the web application shorter and reduce
  • the embodiment of the method for testing the configuration program code of the server provided by the present invention is described in detail above.
  • the present invention also provides a testing device and computer-readable configuration program code of the server corresponding to the method.
  • Storage medium Since the embodiments of the device and computer-readable storage medium part correspond to the embodiments of the method part, for the embodiments of the device and computer-readable storage medium part, please refer to the description of the embodiments of the method part, which will not be repeated here. .
  • FIG. 2 is a structural diagram of a testing device for server configuration program code provided by an embodiment of the present invention. As shown in FIG. 2, a testing device for server configuration program code includes:
  • the first login module 21 is used to call the login interface of the web application by using the login command from the first time point;
  • the determining module 22 is used to update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
  • the second login module 23 is configured to use the login command to call the login interface again after the target number of concurrent logins is determined, until the successful login of the web application is detected again, and record the current moment as the second time point;
  • the calculation module 24 is configured to calculate the timeout period of the target user according to the difference between the first time point and the second time point;
  • the determining module 25 is used to determine whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period to obtain a test result.
  • the testing device for the configuration program code of the server provided by the embodiment of the present invention has the beneficial effects of the above-mentioned testing method for the configuration program code of the server.
  • FIG. 3 is a structural diagram of another device for testing configuration program code of a server according to an embodiment of the present invention.
  • a device for testing configuration program code of a server includes:
  • the memory 31 is used to store computer programs
  • the processor 32 is used to implement the steps of the method for testing the configuration program code of the server when executing the computer program.
  • the testing device for the configuration program code of the server provided by the embodiment of the present invention has the beneficial effects of the above-mentioned testing method for the configuration program code of the server.
  • the present invention also provides a computer-readable storage medium with a computer program stored on the computer-readable storage medium.
  • the computer program is executed by a processor, the steps of the method for testing the configuration program code of the server are implemented.
  • the computer-readable storage medium provided by the embodiment of the present invention has the beneficial effects of the above-mentioned method for testing the configuration program code of the server.

Abstract

Disclosed are a method and apparatus for testing a configuration program code of a server, and a storage medium. The method comprises: calling a login interface of a web application by using a login command from a first time point (S10); updating the current number of concurrent logins when the web application successfully logs in, and determining the target number of concurrent logins according to the current number of concurrent logins when it is detected that the login interface is unsuccessfully called (S20); after the target number of concurrent logins is determined, calling the login interface again by using the login command until it is detected that the web application successfully logs in again, and recording the current moment as a second time point (S30); calculating a target user timeout time according to the difference between the first time point and the second time point (S40); and obtaining a test result by means of determining whether the pre-set number of concurrent logins and a pre-set user timeout time are correspondingly the same as the target number of concurrent logins and the target user timeout time (S50). According to the method, the convenience and accuracy of testing whether a configuration program code of a server is correct and effective can be improved.

Description

一种服务器的配置程序代码的测试方法、装置及介质Method, device and medium for testing configuration program code of server
本申请要求于2019年09月29日提交中国专利局、申请号为201910935624.5、发明名称为“一种服务器的配置程序代码的测试方法、装置及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 29, 2019, the application number is 201910935624.5, and the invention title is "A test method, device and medium for the configuration program code of a server", and its entire content Incorporated in this application by reference.
技术领域Technical field
本发明涉及程序测试领域,特别涉及一种服务器的配置程序代码的测试方法、装置及计算机可读存储介质。The present invention relates to the field of program testing, and in particular to a testing method, device and computer readable storage medium for server configuration program code.
背景技术Background technique
服务器作为整个网络系统和计算平台的核心,一般可以通过web应用访问服务器内部运行参数及各个传感器数据及日志,以获取服务器的运行情况。并且一般登录的web应用的数量越多,能获取到的运行情况越多。但是与此同时,登录过多的web应用将导致服务器的性能受损,因此需要限制web应用并发登录数量,即如果当前登录的web应用的数量达到限制的并发登录数量,再有新的web应用登录时,将无法登录成功。并且已经登录的web应用如果长时间没有操作,在达到预设的用户超时时间后,会被自动登出;当有web应用退出或者超时自动登出之后,才能将新的web应用登录成功。在实际操作中,若设置的用于限制并发登录数量以及用户超时时间的程序代码有误,则将导致实际的目标并发登录数量和目标用户超时时间与预设值不对应,将影响服务器的性能。As the core of the entire network system and computing platform, the server can generally access the internal operating parameters of the server and various sensor data and logs through a web application to obtain the operating status of the server. And generally, the more web applications are logged in, the more operating conditions can be obtained. But at the same time, logging in too many web applications will cause the performance of the server to be damaged. Therefore, it is necessary to limit the number of concurrent logins in web applications, that is, if the number of currently logged-in web applications reaches the limited number of concurrent logins, there will be new web applications. When logging in, you will not be able to log in successfully. And if the logged-in web application has not been operated for a long time, it will be automatically logged out after the preset user timeout period is reached; when a web application is logged out or automatically logged out after a timeout, the new web application can be successfully logged in. In actual operation, if the program code used to limit the number of concurrent logins and the user timeout period is set incorrectly, the actual target number of concurrent logins and the target user timeout period will not correspond to the preset values, which will affect the performance of the server .
现有技术中,测试用于限制并发登录数量和用户超时时间的程序代码(即配置程序代码)是否正确有效的方法都是通过测试人员手动测试得出的:测试人员利用多台电脑的多个浏览器手动向目标服务器登录web应用,当web应用不能登录成功时,则确定出目标并发登录数量,通过判断该目标并发登录数量是否与预设并发登录数量一致,来确定设置的用于限制并发登录数量的程序代码是否正确;然后在等待预设用户超时时间之后,再 次手动登录web应用,通过判断是否可以成功登录来确定设置的用于限制用户超时时间的程序代码是否正确。这种纯手工测试的方式,操作过程复杂且操作速度慢,且通过手动登录web应用的方式使得登录web应用的时间间隔大,导致测试过程中可能存在测试误差,手动操作还容易出现手误等情况,进一步导致测试结果不正确。In the prior art, the method of testing whether the program code (ie the configuration program code) used to limit the number of concurrent logins and the user timeout period is correct and effective is obtained by the tester’s manual test: the tester uses multiple computers from multiple computers. The browser manually logs in the web application to the target server. When the web application fails to log in successfully, the target concurrent login number is determined. By judging whether the target concurrent login number is consistent with the preset concurrent login number, the setting used to limit concurrency is determined Whether the program code for the number of logins is correct; then after waiting for the preset user timeout period, manually log in to the web application again, and determine whether the program code set to limit the user timeout period is correct by judging whether the login can be successful. This purely manual testing method has a complicated operation process and slow operation speed, and the time interval for logging in to the web application is large by manually logging in to the web application, which may lead to test errors during the test process, and manual operations are also prone to hand errors, etc. Circumstances further lead to incorrect test results.
因此,如何提高测试服务器的配置程序代码是否正确有效的便捷性和准确性,是本领域技术人员目前需要解决的技术问题。Therefore, how to improve the convenience and accuracy of whether the configuration program code of the test server is correct and effective is a technical problem that needs to be solved by those skilled in the art.
发明内容Summary of the invention
有鉴于此,本发明的目的在于提供一种服务器的配置程序代码的测试方法,能够提高测试服务器的配置程序代码是否正确有效的便捷性和准确性;本发明的另一目的是提供一种服务器的配置程序代码的测试装置及计算机可读存储介质,均具有上述有益效果。In view of this, the object of the present invention is to provide a method for testing the configuration program code of the server, which can improve the convenience and accuracy of testing whether the configuration program code of the server is correct and effective; another object of the present invention is to provide a server The test device and the computer-readable storage medium for configuring the program code have the above-mentioned beneficial effects.
为解决上述技术问题,本发明提供一种服务器的配置程序代码的测试方法,包括:In order to solve the above technical problems, the present invention provides a method for testing the configuration program code of a server, which includes:
从第一时间点开始利用登录命令调用web应用的登录接口;From the first point in time, use the login command to call the login interface of the web application;
在所述web应用登录成功时更新当前并发登录数量,在检测到调用所述登录接口失败时,根据所述当前并发登录数量确定出目标并发登录数量;Update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
在确定出所述目标并发登录数量后,再次利用所述登录命令调用所述登录接口,直至再次检测到所述web应用登录成功,记录当前时刻为第二时间点;After determining the target number of concurrent logins, use the login command to call the login interface again until the successful login of the web application is detected again, and the current moment is recorded as the second time point;
根据所述第一时间点和所述第二时间点的差值计算出目标用户超时时间;Calculating the target user timeout time according to the difference between the first time point and the second time point;
通过判断预设并发登录数量和预设用户超时时间是否与所述目标并发登录数量和所述目标用户超时时间对应相同,得出测试结果。The test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period.
优选地,在所述再次利用所述登录命令调用所述登录接口的过程中,进一步包括:Preferably, in the process of using the login command to call the login interface again, it further includes:
记录利用所述登录命令调用所述登录接口的次数。Record the number of times the login interface is invoked using the login command.
优选地,在所述从第一时间点开始利用登录命令调用web应用的登录 接口之后,进一步包括:Preferably, after said calling the login interface of the web application with the login command from the first time point, the method further includes:
若在第一预设次数之后未检测到调用所述登录接口失败的情况,确定出所述预设并发登录数量为无效设置。If no failure to call the login interface is detected after the first preset number of times, it is determined that the preset number of concurrent logins is an invalid setting.
优选地,在所述再次利用所述登录命令调用所述登录接口之后,若在第二预设次数之后没有再次检测到所述web应用登录成功,则确定出所述预设用户超时时间为无效设置。Preferably, after the login interface is called by the login command again, if successful login of the web application is not detected again after a second preset number of times, it is determined that the preset user timeout period is invalid Set up.
优选地,在所述再次利用所述登录命令调用所述登录接口的过程中,进一步包括:Preferably, in the process of using the login command to call the login interface again, it further includes:
在调用所述登录接口失败时,发出对应的提示信息。When the login interface fails to be called, a corresponding prompt message is issued.
为解决上述技术问题,本发明还提供一种服务器的配置程序代码的测试装置,包括:In order to solve the above technical problems, the present invention also provides a testing device for the configuration program code of the server, which includes:
第一登录模块,用于从第一时间点开始利用登录命令调用web应用的登录接口;The first login module is used to call the login interface of the web application with the login command from the first time point;
确定模块,用于在所述web应用登录成功时更新当前并发登录数量,在检测到调用所述登录接口失败时,根据所述当前并发登录数量确定出目标并发登录数量;The determining module is configured to update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
第二登录模块,用于在确定出所述目标并发登录数量后,再次利用所述登录命令调用所述登录接口,直至再次检测到所述web应用登录成功,记录当前时刻为第二时间点;The second login module is configured to use the login command to call the login interface again after the target number of concurrent logins is determined, until the successful login of the web application is detected again, and record the current moment as the second time point;
计算模块,用于根据所述第一时间点和所述第二时间点的差值计算出目标用户超时时间;A calculation module, configured to calculate a target user timeout time according to the difference between the first time point and the second time point;
判定模块,用于通过判断预设并发登录数量和预设用户超时时间是否与所述目标并发登录数量和所述目标用户超时时间对应相同,得出测试结果。The judging module is used to determine whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period to obtain a test result.
为解决上述技术问题,本发明还提供一种服务器的配置程序代码的测试装置,包括:In order to solve the above technical problems, the present invention also provides a testing device for the configuration program code of the server, which includes:
存储器,用于存储计算机程序;Memory, used to store computer programs;
处理器,用于执行所述计算机程序时实现上述任一种服务器的配置程序代码的测试方法的步骤。The processor is used to implement the steps of any one of the above-mentioned methods for testing the configuration program code of the server when the computer program is executed.
为解决上述技术问题,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种服务器的配置程序代码的测试方法的步骤。In order to solve the above technical problems, the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the configuration program code of any server mentioned above is The steps of the test method.
本发明提供的一种服务器的配置程序代码的测试方法,通过从第一时间点开始利用登录命令调用web应用的登录接口;并在web应用登录成功时更新当前并发登录数量,在检测到调用登录接口失败时,根据当前并发登录数量确定出目标并发登录数量;在确定出目标并发登录数量后,再次利用登录命令调用登录接口,直至再次检测到web应用登录成功,记录当前时刻为第二时间点;然后根据第一时间点和第二时间点的差值计算出目标用户超时时间;通过判断预设并发登录数量和预设用户超时时间是否与目标并发登录数量和目标用户超时时间对应相同,得出测试结果。因此本方法不需要测试人员手动登录web应用,操作方式更加简便且所需的时间少,因此提高了登录web应用的便捷性;登录方式便捷也将使得登录web应用的间隔时间短,降低测试误差,并且能够相对避免人工操作导致的差错,因此能够提高测试结果的准确性。The present invention provides a method for testing the configuration program code of a server. The login interface of the web application is called from the first time point by using the login command; and the current number of concurrent logins is updated when the login of the web application is successful. When the interface fails, the target number of concurrent logins is determined according to the current number of concurrent logins; after the target number of concurrent logins is determined, the login interface is called again with the login command until the successful login of the web application is detected again, and the current moment is recorded as the second time point ; Then calculate the target user timeout time according to the difference between the first time point and the second time point; by judging whether the preset number of concurrent logins and the preset user timeout time correspond to the same corresponding to the target number of concurrent logins and the target user timeout time, we get Result of the test. Therefore, this method does not require testers to manually log in to the web application, and the operation method is simpler and requires less time, so the convenience of logging in to the web application is improved; the convenient login method will also shorten the time interval for logging in to the web application and reduce the test error , And can relatively avoid errors caused by manual operation, so it can improve the accuracy of test results.
为解决上述技术问题,本发明还提供了一种服务器的配置程序代码的测试装置及计算机可读存储介质,均具有上述有益效果。In order to solve the above technical problems, the present invention also provides a testing device and computer readable storage medium for the configuration program code of the server, both of which have the above beneficial effects.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions of the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are merely For some of the embodiments of the present invention, for those of ordinary skill in the art, other drawings may be obtained based on the provided drawings without creative work.
图1为本发明实施例提供的一种服务器的配置程序代码的测试方法的流程图;FIG. 1 is a flowchart of a method for testing configuration program code of a server according to an embodiment of the present invention;
图2为本发明实施例提供的一种服务器的配置程序代码的测试装置的结构图;2 is a structural diagram of a testing device for server configuration program code provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种服务器的配置程序代码的测试装置 的结构图。Fig. 3 is a structural diagram of another device for testing configuration program code of a server provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本发明实施例的核心是提供一种服务器的配置程序代码的测试方法,能够提高测试服务器的配置程序代码是否正确有效的便捷性和准确性;本发明的另一核心是提供一种服务器的配置程序代码的测试装置及计算机可读存储介质,均具有上述有益效果。The core of the embodiments of the present invention is to provide a method for testing the configuration program code of the server, which can improve the convenience and accuracy of whether the configuration program code of the test server is correct and effective; another core of the present invention is to provide a configuration of the server The test device of the program code and the computer-readable storage medium both have the above-mentioned beneficial effects.
为了使本领域技术人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图1为本发明实施例提供的一种服务器的配置程序代码的测试方法的流程图。如图1所示,一种服务器的配置程序代码的测试方法包括:FIG. 1 is a flowchart of a method for testing the configuration program code of a server according to an embodiment of the present invention. As shown in Figure 1, a method for testing the configuration program code of a server includes:
S10:从第一时间点开始利用登录命令调用web应用的登录接口;S10: Use the login command to call the login interface of the web application from the first time point;
S20:在web应用登录成功时更新当前并发登录数量,在检测到调用登录接口失败时,根据当前并发登录数量确定出目标并发登录数量。S20: The current number of concurrent logins is updated when the web application login is successful, and when it is detected that the login interface fails to be called, the target number of concurrent logins is determined according to the current number of concurrent logins.
本实施例中,在开始利用登录命令调用web应用的登录接口时,记录第一时间点,并开始持续计时。同时,开始计数当前已经登录成功的web应用的数量,即设置当前并发登录数量,并在每次web应用登录成功时,更新该当前并发登录数量。In this embodiment, when starting to call the login interface of the web application with the login command, the first time point is recorded, and the continuous timing is started. At the same time, it starts to count the current number of web applications that have successfully logged in, that is, set the current number of concurrent logins, and update the current number of concurrent logins every time the web application logs in successfully.
具体的,登录命令可以具体为curl命令,在利用curl命令登录web应用时,若调用的web应用的登录接口相匹配且能够调用成功,表示能够登录该web应用;若调用的web应用的登录接口不匹配,则不能成功登录该web应用。并且,当检测到调用web应用的登录接口失败时,即登录失败时,则表示当前并发登录数量已经达到该服务器实际能够登录web应用的 并发登录数量,因此根据更新的当前并发登录数量确定出对应的目标并发登录数量。Specifically, the login command can be specifically a curl command. When using the curl command to log in to a web application, if the login interface of the called web application matches and the call can be successful, it means that the web application can be logged in; if the login interface of the called web application is called If it does not match, you cannot successfully log in to the web application. Moreover, when it is detected that the login interface of the web application fails to be called, that is, when the login fails, it means that the current number of concurrent logins has reached the number of concurrent logins that the server can actually log in to the web application. Therefore, the corresponding number is determined according to the updated current number of concurrent logins. The target number of concurrent logins.
具体的,本实施例可以是按照第一预设时间周期执行调用web应用的登录接口的操作,也可以随机进行调用操作,本实施例对此不做限定。Specifically, in this embodiment, the operation of invoking the login interface of the web application may be performed according to the first preset time period, or the invoking operation may be performed randomly, which is not limited in this embodiment.
可以理解的是,由于web应用有用户超时时间,为了避免在测试目标并发登录数量的过程中,有web应用由于达到预设用户超时时间而自动登出,导致可以持续登录新的web应用的情况,在实际操作中,需要尽量快速地登录web应用,以提高得出目标并发登录数量的准确性。It is understandable that because the web application has a user timeout period, in order to avoid the process of testing the target number of concurrent logins, some web applications automatically log out due to the preset user timeout period, resulting in continuous login to new web applications. In actual operation, it is necessary to log in to the web application as quickly as possible to improve the accuracy of the target number of concurrent logins.
S30:在确定出目标并发登录数量后,再次利用登录命令调用登录接口,直至再次检测到web应用登录成功,记录当前时刻为第二时间点;S30: After determining the target number of concurrent logins, use the login command to call the login interface again until the successful login of the web application is detected again, and the current moment is recorded as the second time point;
S40:根据第一时间点和第二时间点的差值计算出目标用户超时时间。S40: Calculate the timeout period of the target user according to the difference between the first time point and the second time point.
具体的,在确定出目标并发登录数量之后,再次利用登录命令调用web应用的登录接口,也就是说,在得出目标并发登录数量之后,继续尝试登录web应用,直至再次检测到web应用登录成功,记录当前时刻为第二时间点。Specifically, after the target number of concurrent logins is determined, the login command is used to call the login interface of the web application again, that is, after the target number of concurrent logins is obtained, the web application continues to try to log in until the successful login of the web application is detected again. , Record the current moment as the second time point.
可以理解的是,第一时间点和第二时间点的差值,即表示某个web应用未被操作导致被自动登出的时间长度,该时间长度即目标用户超时时间。It is understandable that the difference between the first time point and the second time point represents the length of time that a certain web application is automatically logged out without being operated, and the length of time is the target user's timeout period.
需要说明的是,再次登录web应用的规则可以与上一周期中登录web应用的规则相同,作为优选的实施方式,为了相对减少在测试目标用户超时时间的过程中,尝试登录web应用的次数,本实施例优选地按照第二预设时间周期执行调用操作,且第二预设时间周期大于第一预设时间周期。在本实施例中,优选地设置第二预设时间周期为1s。It should be noted that the rules for logging in to the web application again can be the same as the rules for logging in to the web application in the previous cycle. As a preferred implementation, in order to relatively reduce the number of attempts to log in to the web application during the process of testing the target user’s timeout period, In this embodiment, the calling operation is preferably performed according to the second preset time period, and the second preset time period is greater than the first preset time period. In this embodiment, the second preset time period is preferably set to 1s.
S50:通过判断预设并发登录数量和预设用户超时时间是否与目标并发登录数量和目标用户超时时间对应相同,得出测试结果。S50: The test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period.
在本步骤中,根据测出的目标并发登录数量和目标用户超时时间,以及预先设置的配置程序代码中的预设并发登录数量和预设用户超时时间,判断预设并发登录数量与目标并发登录数量是否相同,以及预设用户超时时间和目标用户超时时间是否相同。若相同,则表示当前服务器中的配置程序代码设置正确有效,按照当前的配置程序代码可以达到预期的web登 录效果;若不相同,则表示当前服务器中的配置程序代码设置有误,需要对相应的配置程序代码进行调整。In this step, according to the measured target concurrent login number and target user timeout period, as well as the preset concurrent login number and preset user timeout period in the preset configuration program code, determine the preset concurrent login number and target concurrent login Whether the number is the same, and whether the preset user timeout period and the target user timeout period are the same. If they are the same, it means that the configuration program code in the current server is set correctly and effectively, and the expected web login effect can be achieved according to the current configuration program code; if they are not the same, it means that the configuration program code in the current server is set incorrectly, and you need to check the corresponding The configuration program code is adjusted.
本发明实施例提供的一种服务器的配置程序代码的测试方法,通过从第一时间点开始利用登录命令调用web应用的登录接口;并在web应用登录成功时更新当前并发登录数量,在检测到调用登录接口失败时,根据当前并发登录数量确定出目标并发登录数量;在确定出目标并发登录数量后,再次利用登录命令调用登录接口,直至再次检测到web应用登录成功,记录当前时刻为第二时间点;然后根据第一时间点和第二时间点的差值计算出目标用户超时时间;通过判断预设并发登录数量和预设用户超时时间是否与目标并发登录数量和目标用户超时时间对应相同,得出测试结果。因此本方法不需要测试人员手动登录web应用,操作方式更加简便且所需的时间少,因此提高了登录web应用的便捷性;登录方式便捷也将使得登录web应用的间隔时间短,降低测试误差,并且能够相对避免人工操作导致的差错,因此能够提高测试结果的准确性。The embodiment of the present invention provides a method for testing the configuration program code of a server. The login interface of the web application is invoked by using the login command from the first time point; and the current number of concurrent logins is updated when the web application login is successful. When calling the login interface fails, the target number of concurrent logins is determined according to the current number of concurrent logins; after the target number of concurrent logins is determined, the login interface is called again with the login command until the successful login of the web application is detected again, and the current moment is recorded as the second Time point; then the target user timeout time is calculated according to the difference between the first time point and the second time point; by judging whether the preset number of concurrent logins and the preset user timeout time are the same as the target number of concurrent logins and the target user timeout time , Get the test result. Therefore, this method does not require testers to manually log in to the web application, and the operation method is simpler and requires less time, so the convenience of logging in to the web application is improved; the convenient login method will also shorten the time interval for logging in to the web application and reduce the test error , And can relatively avoid errors caused by manual operation, so it can improve the accuracy of test results.
在上述实施例的基础上,本实施例对技术方案作了进一步的说明和优化,具体的,本实施例中,在再次利用登录命令调用登录接口的过程中,进一步包括:On the basis of the foregoing embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, in the process of using the login command to call the login interface again, it further includes:
记录利用登录命令调用登录接口的次数。Record the number of times that the login interface is called with the login command.
本实施例中,是通过设置计数器,并在再次利用登录命令调用web应用的登录接口时,在每次调用登录命令登录web应用但是没有登录成功时,则将计数器加1,直至能成功登录web应用。也就是说,计数器的计数表示利用登录命令尝试登录web应用的次数。In this embodiment, the counter is set, and when the login interface of the web application is called again with the login command, each time the login command is called to log in to the web application but the login is not successful, the counter is increased by 1 until the web login can be successfully logged in. application. In other words, the count of the counter indicates the number of attempts to log in to the web application using the login command.
可见,本实施例通过进一步记录利用登录命令登录web应用的次数,因此在后续的操作过程中能够查看尝试登录web应用的次数,以便于测试人员获取到更多的运行信息。It can be seen that this embodiment further records the number of logins to the web application using the login command, so that the number of attempts to log in to the web application can be checked in the subsequent operation process, so that the tester can obtain more running information.
在上述实施例的基础上,本实施例对技术方案作了进一步的说明和优化,具体的,本实施例中,在从第一时间点开始利用登录命令调用web应 用的登录接口之后,进一步包括:On the basis of the foregoing embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, after the login command is used to call the login interface of the web application from the first time point, it further includes :
若在第一预设次数之后未检测到调用登录接口失败的情况,确定出预设并发登录数量为无效设置。If no failure to call the login interface is detected after the first preset number of times, it is determined that the preset number of concurrent logins is an invalid setting.
在实际操作中,可能存在预先设置的用于限制并发登录数量的程序代码不正确导致预设并发数量为无效设置的情况。因此,本实施例进一步设置第一预设次数,并通过判断在开始利用登录命令调用web应用的登录接口达到第一预设次数之后,是否存在仍未检测到调用登录接口失败的情况,若是,则表示预先设置的预设并发登录数量并未起到作用,即,预设并发登录数量为无效设置。In actual operation, there may be cases where the preset program code used to limit the number of concurrent logins is incorrect, causing the preset number of concurrent logins to be invalid. Therefore, this embodiment further sets the first preset number of times, and determines whether there is a case where the failure to call the login interface has not been detected after the login interface of the web application is called by the login command to reach the first preset number of times. If so, It means that the preset number of concurrent logins does not work, that is, the preset number of concurrent logins is an invalid setting.
相应的,在再次利用登录命令调用登录接口之后,若在第二预设次数之后没有再次检测到web应用登录成功,则确定出预设用户超时时间为无效设置。Correspondingly, after the login interface is called by the login command again, if successful login of the web application is not detected again after the second preset number of times, it is determined that the preset user timeout period is an invalid setting.
相应的,在实际操作中,可能存在预先设置的用于限制用户超时时间的程序代码不正确导致预设用户超时时间为无效设置的情况。因此,本实施例通过先设置第二预设次数,并在利用登录命令调用web应用的登录接口的过程中,若在尝试登录第二预设次数之后,仍没有检测到成功登录web应用的情况,即,没有已经登录的web应用由于达到预设用户超时时间而自动登出的情况,导致后续始终无法再次登录新的web应用,表示预先设置的预设用户超时时间并未起到作用,即预设用户超时时间为无效设置。Correspondingly, in actual operation, there may be cases where the preset program code for limiting the user timeout period is incorrect, which causes the preset user timeout period to be invalid. Therefore, in this embodiment, the second preset number of times is set first, and in the process of using the login command to call the login interface of the web application, if after the second preset number of attempts to log in, the successful login to the web application is not detected. , That is, there is no web application that has been logged in due to the preset user timeout period and automatically log out, resulting in the subsequent failure to log in to the new web application again, which means that the preset preset user timeout period does not work, that is, The preset user timeout period is an invalid setting.
按照本实施例的方法,确定出的目标并发登录数量与预设并发登录数量可能存在三种情况:According to the method of this embodiment, the determined target number of concurrent logins and the preset number of concurrent logins may have three situations:
第一种是目标并发登录数量与预设并发登录数量相等,表示设置的用于限制并发登录数量的程序代码正确有效;The first is that the target number of concurrent logins is equal to the preset number of concurrent logins, indicating that the program code set to limit the number of concurrent logins is correct and valid;
第二种是目标并发登录数量小于预设并发登录数量,表示设置的用于限制并发登录数量的程序代码不正确;The second is that the target number of concurrent logins is less than the preset number of concurrent logins, which means that the program code set to limit the number of concurrent logins is incorrect;
第三种是目标并发登录数量大于预设并发登录数量,表示设置的用于限制并发登录数量的程序代码不正确或无效。The third is that the target number of concurrent logins is greater than the preset number of concurrent logins, indicating that the program code set to limit the number of concurrent logins is incorrect or invalid.
确定出的目标用户超时时间与预设用户超时时间可能存在三种情况:There may be three situations for the determined target user timeout time and the preset user timeout time:
第一种是目标用户超时时间与预设用户超时时间相同,表示设置的用 于限制用户超时时间的程序代码正确有效;The first is that the target user's timeout period is the same as the preset user's timeout period, which means that the program code set to limit the user's timeout period is correct and valid;
第二种是目标用户超时时间小于预设用户超时时间,表示设置的用于限制用户超时时间的程序代码不正确;The second is that the target user timeout time is less than the preset user timeout time, which means that the program code set to limit the user timeout time is incorrect;
第三种是目标用户超时时间大于预设用户超时时间,表示设置的用于限制用户超时时间的程序代码不正确或无效。The third is that the target user timeout time is greater than the preset user timeout time, which means that the program code set to limit the user timeout time is incorrect or invalid.
在上述实施例的基础上,本实施例对技术方案作了进一步的说明和优化,具体的,本实施例中,On the basis of the foregoing embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment,
在再次利用登录命令调用登录接口的过程中,进一步包括:In the process of using the login command to call the login interface again, it further includes:
在调用登录接口失败时,发出对应的提示信息。When the login interface fails to be called, the corresponding prompt message is issued.
本实施例是在确定出目标并发登录数量之后,在继续尝试利用登录命令登录web应用的过程中,若调用登录接口失败,即web应用未登录成功时,则发出对应的提示信息,以提示测试人员当前无法登录web应用。In this embodiment, after the target number of concurrent logins is determined, in the process of continuing to try to log in to the web application with the login command, if the login interface fails to call, that is, when the web application is not successfully logged in, a corresponding prompt message is issued to prompt the test Personnel cannot currently log in to the web application.
需要说明的是,本实施例对提示信息的具体类型不做限定,例如是可以通过发出提示音的方式发出提示信息,提示音可以是蜂鸣音,也可以是预先设置的语音信息,如“当前用户已达最大数量”;或者也可以是在操作界面上显示预设内容作为提示信息,显示内容可以是图像、文字或者动画,文字也可以是“当前用户已达最大数量”等,具体可以根据实际需求进行设置。It should be noted that this embodiment does not limit the specific type of the prompt information. For example, the prompt information can be issued by emitting a prompt sound. The prompt sound can be a buzzer or a preset voice message, such as " The current user has reached the maximum number"; or it can also display the preset content on the operation interface as a prompt message. The display content can be images, text or animation, and the text can also be "the current user has reached the maximum number", etc., which can be specific Set according to actual needs.
可见,本实施例通过在再次利用登录命令调用登录接口的过程中,在调用登录接口失败时,进一步发出对应的提示信息,能够更加便于测试人员直观准确地知晓当前的登录状况,进一步提升测试人员的使用体验。It can be seen that, in the process of using the login command to call the login interface again in this embodiment, when the login interface fails to be called, the corresponding prompt information is further issued, which can make it easier for the tester to intuitively and accurately know the current login status, and further improve the tester Experience.
为了使本技术领域的人员更好地理解本申请中的技术方案,下面结合实际应用场景对本申请实施例中的技术方案进行详细说明。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with actual application scenarios.
在本申请实施例提供的另一种服务器的配置程序代码的测试方法的具体实现步骤如下:The specific implementation steps of another method for testing the configuration program code of the server provided in the embodiment of the present application are as follows:
设置第一预设次数MaxNum1,表示将循环调用curl命令MaxNum1次,MaxNum1需大于预设用户并发登录数量;Set the first preset number of times MaxNum1, which means that the curl command MaxNum1 will be called cyclically, and MaxNum1 must be greater than the preset number of concurrent user logins;
记录第一时间点begintime,并利用curl命令不断登录web应用,curl命令如:Record the first time point begintime, and use the curl command to log in to the web application continuously. The curl command is as follows:
curl-X POST–d“username=${name}&password=${password}”--insecure https://${ipaddr}/api/session;curl-X POST-d"username=${name}&password=${password}"--insecure https://${ipaddr}/api/session;
判断web应用是否登录成功;Determine whether the web application is successfully logged in;
若登录成功,则更新当前并发登录数量;If the login is successful, update the current number of concurrent logins;
若未登录成功,则提示“当前用户已达最大数量”,并确定出目标并发登录数量,之后跳出循环;If the login is not successful, it will prompt "The current user has reached the maximum number", and determine the target number of concurrent logins, and then jump out of the loop;
若当前循环利用curl命令登录web应用的次数达到第一预设次数MaxNum1,表示当前循环登录次数达到MaxNum1次,仍然可以登录web应用,说明该web应用的预设并发登录数量的限制没有生效,因此提示预设并发登录数量为无效设置。If the current cycle of using the curl command to log in to the web application reaches the first preset number of MaxNum1, it means that the current cycle of logging in times reaches MaxNum1, and the web application can still be logged in, indicating that the preset concurrent login number limit of the web application has not taken effect, so Prompt that the preset number of concurrent logins is an invalid setting.
设置在确定出目标并发登录数量之后再次利用curl命令登录web应用的第二预设次数MaxNum2;Set the second preset number of times MaxNum2 to log in to the web application again using the curl command after the target number of concurrent logins is determined;
设置调用curl命令的第二预设时间周期为1s,即每次都将延时1秒钟后才再次调用curl命令;Set the second preset time period for calling the curl command to 1s, that is, the curl command will be called again after a delay of 1 second each time;
再次利用curl命令调用web应用的登录接口,curl命令如下:Use the curl command to call the login interface of the web application again. The curl command is as follows:
curl-X POST–d“username=${name}&password=${password}”--insecure https://${ipaddr}/api/session;curl-X POST-d"username=${name}&password=${password}"--insecure https://${ipaddr}/api/session;
判断web应用是否登录成功;Determine whether the web application is successfully logged in;
若未登录成功,表示当前已登录的web应用中没有因为达到预设用户超时时间而自动登出的web应用,提示“当前用户已达最大数量”,继续利用curl命令调用web应用的登录接口;If the login is not successful, it means that there is no web application that is automatically logged out because the preset user timeout time is reached in the currently logged-in web application, and it prompts "the current user has reached the maximum number", and continue to use the curl command to call the web application login interface;
若登录成功,则表示当前已登录的web应用中存在因为达到目标用户超时时间而自动登出的web应用,因此记录第二时间点endtime,并跳出循环;If the login is successful, it means that there are web applications that are automatically logged out because the target user timeout time is reached in the currently logged-in web applications, so the second time point endtime is recorded, and the loop is out of the loop;
若当前循环利用curl命令登录web应用的次数达到第二预设次数MaxNum2,表示当前循环登录次数达到MaxNum2次,仍然不能登录web应用,说明该web应用的预设用户超时时间的限制没有生效,因此提示预 设用户超时时间为无效设置;If the current cycle of logging in to the web application using the curl command reaches the second preset number of MaxNum2, it means that the current cycle of logging in has reached MaxNum2, and the web application still cannot be logged in, indicating that the preset user timeout limit of the web application is not in effect, so Prompt that the preset user timeout time is an invalid setting;
根据第一时间点和第二时间点的差值(endTime-beginTime)计算出目标用户超时时间;Calculate the target user's timeout time according to the difference between the first time point and the second time point (endTime-beginTime);
通过判断预设并发登录数量和预设用户超时时间是否与目标并发登录数量和目标用户超时时间对应相同,得出测试结果。The test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the target number of concurrent logins and the target user timeout period.
按照本实施例提供的方法,假设某web服务器运行的预设并发登录数量为20个web应用,设置的预设用户超时时间是5分钟,若该web服务器的配置程序代码正确,那么使用curl命令不断登录web应用时,前20个登录请求可以成功,在第21个web应用登录时,会登录失败并收到提示“当前用户已达最大数量”;之后继续登录的web应用一直会失败,直到5分钟之后,前20个web应用由于陆续达到预设用户超时时间而自动登出,这时第21个以及之后的web应用可以再次成功登录。若在操作过程中,能够登录的web应用的数量不足20个或者循环登录web应用达到第一预设次数,表示该web服务器的配置程序代码不正确;另外,若在操作过程中,在5分钟之内便可以再次登录web应用或者在循环登录web应用达到第二预设次数,表示该web服务器的配置程序代码不正确。According to the method provided in this embodiment, suppose that the preset number of concurrent logins running on a web server is 20 web applications, and the preset user timeout time is set to 5 minutes. If the configuration program code of the web server is correct, use the curl command When you continue to log in to the web application, the first 20 login requests can succeed. When the 21st web application logs in, the login fails and you receive a prompt "The current user has reached the maximum number"; the web applications that continue to log in will fail until After 5 minutes, the first 20 web applications are automatically logged out due to the preset user timeout period. At this time, the 21st and subsequent web applications can successfully log in again. If during the operation, the number of web applications that can be logged in is less than 20 or the number of web applications that can be logged in circularly reaches the first preset number of times, it means that the configuration program code of the web server is incorrect; in addition, if it is within 5 minutes during the operation Within this, you can log in to the web application again or log in to the web application repeatedly for the second preset number of times, which indicates that the configuration program code of the web server is incorrect.
本发明实施例提供的一种服务器的配置程序代码的测试方法,是利用登录命令调用web应用的登录接口,并在web应用登录成功时更新当前并发登录数量,在检测到调用登录接口失败时,根据当前并发登录数量确定出目标并发登录数量;然后在确定出目标并发登录数量后,再次利用登录命令调用登录接口,直至再次检测到web应用登录成功,记录当前时刻为第二时间点;根据第一时间点和第二时间点的差值计算出目标用户超时时间;进而通过判断预设并发登录数量和预设用户超时时间是否与目标并发登录数量和目标用户超时时间对应相同,得出测试结果;而不需要测试人员手动登录web应用,操作方式更加简便且所需的时间少,因此提高了登录web应用的便捷性;登录方式便捷也将使得登录web应用的间隔时间短,降低测试误差,并且能够相对避免人工操作导致的差错,因此能够提高测试结果的准确性。The method for testing the configuration program code of the server provided by the embodiment of the present invention is to use a login command to call the login interface of the web application, and update the current concurrent login number when the web application login is successful, and when it is detected that the login interface fails to be called, Determine the target number of concurrent logins according to the current number of concurrent logins; then, after determining the target number of concurrent logins, use the login command to call the login interface again until the successful login of the web application is detected again, and the current moment is recorded as the second time point; The difference between the first time point and the second time point calculates the target user timeout time; then by judging whether the preset number of concurrent logins and the preset user timeout time correspond to the target number of concurrent logins and the target user timeout time, the test result is obtained ; It does not require testers to manually log in to the web application, the operation method is simpler and requires less time, thus improving the convenience of logging in to the web application; the convenient login method will also make the interval time for logging in to the web application shorter and reduce the test error. In addition, errors caused by manual operation can be relatively avoided, so the accuracy of test results can be improved.
上文对于本发明提供的一种服务器的配置程序代码的测试方法的实施例进行了详细的描述,本发明还提供了一种与该方法对应的服务器的配置程序代码的测试装置及计算机可读存储介质,由于装置及计算机可读存储介质部分的实施例与方法部分的实施例相互照应,因此装置及计算机可读存储介质部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。The embodiment of the method for testing the configuration program code of the server provided by the present invention is described in detail above. The present invention also provides a testing device and computer-readable configuration program code of the server corresponding to the method. Storage medium. Since the embodiments of the device and computer-readable storage medium part correspond to the embodiments of the method part, for the embodiments of the device and computer-readable storage medium part, please refer to the description of the embodiments of the method part, which will not be repeated here. .
图2为本发明实施例提供的一种服务器的配置程序代码的测试装置的结构图,如图2所示,一种服务器的配置程序代码的测试装置包括:FIG. 2 is a structural diagram of a testing device for server configuration program code provided by an embodiment of the present invention. As shown in FIG. 2, a testing device for server configuration program code includes:
第一登录模块21,用于从第一时间点开始利用登录命令调用web应用的登录接口;The first login module 21 is used to call the login interface of the web application by using the login command from the first time point;
确定模块22,用于在web应用登录成功时更新当前并发登录数量,在检测到调用登录接口失败时,根据当前并发登录数量确定出目标并发登录数量;The determining module 22 is used to update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
第二登录模块23,用于在确定出目标并发登录数量后,再次利用登录命令调用登录接口,直至再次检测到web应用登录成功,记录当前时刻为第二时间点;The second login module 23 is configured to use the login command to call the login interface again after the target number of concurrent logins is determined, until the successful login of the web application is detected again, and record the current moment as the second time point;
计算模块24,用于根据第一时间点和第二时间点的差值计算出目标用户超时时间;The calculation module 24 is configured to calculate the timeout period of the target user according to the difference between the first time point and the second time point;
判定模块25,用于通过判断预设并发登录数量和预设用户超时时间是否与目标并发登录数量和目标用户超时时间对应相同,得出测试结果。The determining module 25 is used to determine whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period to obtain a test result.
本发明实施例提供的服务器的配置程序代码的测试装置,具有上述服务器的配置程序代码的测试方法的有益效果。The testing device for the configuration program code of the server provided by the embodiment of the present invention has the beneficial effects of the above-mentioned testing method for the configuration program code of the server.
图3为本发明实施例提供的另一种服务器的配置程序代码的测试装置的结构图,如图3所示,一种服务器的配置程序代码的测试装置包括:FIG. 3 is a structural diagram of another device for testing configuration program code of a server according to an embodiment of the present invention. As shown in FIG. 3, a device for testing configuration program code of a server includes:
存储器31,用于存储计算机程序;The memory 31 is used to store computer programs;
处理器32,用于执行计算机程序时实现如上述服务器的配置程序代码的测试方法的步骤。The processor 32 is used to implement the steps of the method for testing the configuration program code of the server when executing the computer program.
本发明实施例提供的服务器的配置程序代码的测试装置,具有上述服 务器的配置程序代码的测试方法的有益效果。The testing device for the configuration program code of the server provided by the embodiment of the present invention has the beneficial effects of the above-mentioned testing method for the configuration program code of the server.
为解决上述技术问题,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述服务器的配置程序代码的测试方法的步骤。In order to solve the above technical problems, the present invention also provides a computer-readable storage medium with a computer program stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the method for testing the configuration program code of the server are implemented.
本发明实施例提供的计算机可读存储介质,具有上述服务器的配置程序代码的测试方法的有益效果。The computer-readable storage medium provided by the embodiment of the present invention has the beneficial effects of the above-mentioned method for testing the configuration program code of the server.
以上对本发明所提供的服务器的配置程序代码的测试方法、装置及计算机可读存储介质进行了详细介绍。本文中应用了具体实施例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and device for testing the configuration program code of the server and the computer-readable storage medium provided by the present invention have been described in detail above. Specific examples are used in this article to describe the principle and implementation of the present invention. The description of the above examples is only used to help understand the method and the core idea of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of the examples described in the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, in the above description, the composition and steps of each example have been generally described in accordance with the function. Whether these functions are performed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention.

Claims (8)

  1. 一种服务器的配置程序代码的测试方法,其特征在于,包括:A method for testing configuration program code of a server, which is characterized in that it comprises:
    从第一时间点开始利用登录命令调用web应用的登录接口;From the first point in time, use the login command to call the login interface of the web application;
    在所述web应用登录成功时更新当前并发登录数量,在检测到调用所述登录接口失败时,根据所述当前并发登录数量确定出目标并发登录数量;Update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
    在确定出所述目标并发登录数量后,再次利用所述登录命令调用所述登录接口,直至再次检测到所述web应用登录成功,记录当前时刻为第二时间点;After determining the target number of concurrent logins, use the login command to call the login interface again until the successful login of the web application is detected again, and the current moment is recorded as the second time point;
    根据所述第一时间点和所述第二时间点的差值计算出目标用户超时时间;Calculating the target user timeout time according to the difference between the first time point and the second time point;
    通过判断预设并发登录数量和预设用户超时时间是否与所述目标并发登录数量和所述目标用户超时时间对应相同,得出测试结果。The test result is obtained by judging whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period.
  2. 根据权利要求1所述的方法,其特征在于,在所述再次利用所述登录命令调用所述登录接口的过程中,进一步包括:The method according to claim 1, characterized in that, in the process of using the login command to call the login interface again, the method further comprises:
    记录利用所述登录命令调用所述登录接口的次数。Record the number of times the login interface is invoked using the login command.
  3. 根据权利要求1所述的方法,其特征在于,在所述从第一时间点开始利用登录命令调用web应用的登录接口之后,进一步包括:The method according to claim 1, wherein, after said starting from the first time point using a login command to call the login interface of the web application, the method further comprises:
    若在第一预设次数之后未检测到调用所述登录接口失败的情况,确定出所述预设并发登录数量为无效设置。If no failure to call the login interface is detected after the first preset number of times, it is determined that the preset number of concurrent logins is an invalid setting.
  4. 根据权利要求1所述的方法,其特征在于,在所述再次利用所述登录命令调用所述登录接口之后,若在第二预设次数之后没有再次检测到所述web应用登录成功,则确定出所述预设用户超时时间为无效设置。The method according to claim 1, wherein after the login interface is called by the login command again, if the web application login is not detected again after a second preset number of times, it is determined The preset user timeout time is an invalid setting.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,在所述再次利用所述登录命令调用所述登录接口的过程中,进一步包括:The method according to any one of claims 1 to 4, characterized in that, in the process of using the login command to call the login interface again, further comprising:
    在调用所述登录接口失败时,发出对应的提示信息。When the login interface fails to be called, a corresponding prompt message is issued.
  6. 一种服务器的配置程序代码的测试装置,其特征在于,包括:A testing device for the configuration program code of a server, which is characterized in that it comprises:
    第一登录模块,用于从第一时间点开始利用登录命令调用web应用的登录接口;The first login module is used to call the login interface of the web application with the login command from the first time point;
    确定模块,用于在所述web应用登录成功时更新当前并发登录数量, 在检测到调用所述登录接口失败时,根据所述当前并发登录数量确定出目标并发登录数量;The determining module is configured to update the current number of concurrent logins when the web application login is successful, and when it is detected that the login interface fails to be called, determine the target number of concurrent logins according to the current number of concurrent logins;
    第二登录模块,用于在确定出所述目标并发登录数量后,再次利用所述登录命令调用所述登录接口,直至再次检测到所述web应用登录成功,记录当前时刻为第二时间点;The second login module is configured to use the login command to call the login interface again after the target number of concurrent logins is determined, until the successful login of the web application is detected again, and record the current moment as the second time point;
    计算模块,用于根据所述第一时间点和所述第二时间点的差值计算出目标用户超时时间;A calculation module, configured to calculate a target user timeout time according to the difference between the first time point and the second time point;
    判定模块,用于通过判断预设并发登录数量和预设用户超时时间是否与所述目标并发登录数量和所述目标用户超时时间对应相同,得出测试结果。The judging module is used to determine whether the preset number of concurrent logins and the preset user timeout period correspond to the same corresponding to the target number of concurrent logins and the target user timeout period to obtain a test result.
  7. 一种服务器的配置程序代码的测试装置,其特征在于,包括:A testing device for the configuration program code of a server, which is characterized in that it comprises:
    存储器,用于存储计算机程序;Memory, used to store computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述的服务器的配置程序代码的测试方法的步骤。The processor is configured to implement the steps of the method for testing the configuration program code of the server according to any one of claims 1 to 5 when the computer program is executed.
  8. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的服务器的配置程序代码的测试方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the configuration of the server according to any one of claims 1 to 5 is realized The steps of the test method of the program code.
PCT/CN2019/130090 2019-09-29 2019-12-30 Method and apparatus for testing configuration program code of server, and medium WO2021056918A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910935624.5A CN110795339A (en) 2019-09-29 2019-09-29 Method, device and medium for testing configuration program code of server
CN201910935624.5 2019-09-29

Publications (1)

Publication Number Publication Date
WO2021056918A1 true WO2021056918A1 (en) 2021-04-01

Family

ID=69440035

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/130090 WO2021056918A1 (en) 2019-09-29 2019-12-30 Method and apparatus for testing configuration program code of server, and medium

Country Status (2)

Country Link
CN (1) CN110795339A (en)
WO (1) WO2021056918A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522740B (en) * 2020-04-10 2022-10-11 成都安恒信息技术有限公司 Web server timeout analysis system and analysis method based on natural number group

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379040A (en) * 2012-04-24 2013-10-30 阿里巴巴集团控股有限公司 Device and method for controlling concurrency number in high concurrency system
CN106772196A (en) * 2017-01-05 2017-05-31 云南电网有限责任公司电力科学研究院 A kind of electric energy metrical standard set-up on-line monitoring method
CN108011779A (en) * 2017-11-30 2018-05-08 四川长虹电器股份有限公司 The test method of Cloud Server task throughput under limited resources supplIes
CN108075951A (en) * 2017-12-26 2018-05-25 珠海金山网络游戏科技有限公司 A kind of server stress test method and device based on player's distribution
US20180300245A1 (en) * 2017-04-17 2018-10-18 EMC IP Holding Company LLC Method, device and computer readable storage media for managing storage system
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6981180B1 (en) * 2000-03-16 2005-12-27 Akamai Technologies, Inc. Method and apparatus for testing request-response service using live connection traffic
CN100568826C (en) * 2004-11-11 2009-12-09 中兴通讯股份有限公司 A kind of performance test methods of authentication service and device
US10169221B2 (en) * 2008-07-22 2019-01-01 Accelerate Group Limited Method and system for web-site testing
US9647919B1 (en) * 2014-12-04 2017-05-09 Amazon Technologies Automated determination of maximum service throughput
CN106201794B (en) * 2016-06-27 2019-07-05 北京奇虎科技有限公司 A kind of detection method and device of server
CN106713036B (en) * 2016-12-27 2020-06-30 中国建设银行股份有限公司 Fault processing method and system for mobile terminal payment system
CN107070752B (en) * 2017-04-25 2020-07-24 深圳市世纪福科技有限公司 Testing method and testing system for long connection capacity
CN107480015B (en) * 2017-07-04 2020-12-01 网易(杭州)网络有限公司 Load testing method, device and system, storage medium and pressure testing server
CN108089898A (en) * 2018-01-16 2018-05-29 郑州云海信息技术有限公司 The method, apparatus and system of a kind of upgrading BIOS
CN108495333A (en) * 2018-03-27 2018-09-04 上海康斐信息技术有限公司 A kind of test system and method for the client terminal quantity of wireless access point
CN108829594A (en) * 2018-06-07 2018-11-16 郑州云海信息技术有限公司 The method and system of automatic test BMC web assets information function under a kind of Linux
CN109446093B (en) * 2018-11-05 2022-02-22 郑州云海信息技术有限公司 Method and device for testing expansion platform interface
CN109918275B (en) * 2019-01-17 2022-09-16 珠海金山网络游戏科技有限公司 Method, device and system for realizing pressure test on server performance
CN109831360A (en) * 2019-02-27 2019-05-31 深圳市吉祥腾达科技有限公司 Automated testing method and test macro for multi-user concurrent web authentication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379040A (en) * 2012-04-24 2013-10-30 阿里巴巴集团控股有限公司 Device and method for controlling concurrency number in high concurrency system
CN106772196A (en) * 2017-01-05 2017-05-31 云南电网有限责任公司电力科学研究院 A kind of electric energy metrical standard set-up on-line monitoring method
US20180300245A1 (en) * 2017-04-17 2018-10-18 EMC IP Holding Company LLC Method, device and computer readable storage media for managing storage system
CN108011779A (en) * 2017-11-30 2018-05-08 四川长虹电器股份有限公司 The test method of Cloud Server task throughput under limited resources supplIes
CN108075951A (en) * 2017-12-26 2018-05-25 珠海金山网络游戏科技有限公司 A kind of server stress test method and device based on player's distribution
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium

Also Published As

Publication number Publication date
CN110795339A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
WO2017185952A1 (en) Hardware device access management method and system
US10587612B2 (en) Automated detection of login sequence for web form-based authentication
US20050086643A1 (en) Methods and systems for automatically testing websites and web applications using knowledge bases of standard inputs and standard errors
CN110908909B (en) Automatic test method, device, storage medium and equipment
CN111124919A (en) User interface testing method, device, equipment and storage medium
WO2019169723A1 (en) Test case selection method, device and equipment, and computer-readable storage medium
US8645766B2 (en) Serialized error injection into a function under test
WO2020238235A1 (en) Identity verification and checking method and apparatus
US20130138381A1 (en) Handheld electronic device testing method
WO2021056918A1 (en) Method and apparatus for testing configuration program code of server, and medium
JP2023534331A (en) CONTENT DISTRIBUTION NETWORK PROCESSING METHOD, APPARATUS, ELECTRONIC DEVICE, COMPUTER READABLE STORAGE MEDIUM AND COMPUTER PROGRAM
US20200192780A1 (en) Regression analysis platform
WO2021042919A1 (en) Data allocation test method and device under high concurrency, terminal, and storage medium
CN108664593A (en) Data consistency verification method, device, storage medium and electronic equipment
US9626268B2 (en) Controlling a byte code transformer on detection of completion of an asynchronous command
US11119894B2 (en) System and method for configurable and proactive application diagnostics and recovery
US20200394062A1 (en) Capability liveness of containerized services
US10558556B2 (en) Introspective fault and workload injection for service assurance
CN110321711A (en) Detect the method and system of application server SQL injection point
CN113590498B (en) Method and system for testing application starting time of desktop operating system
WO2020038039A1 (en) Cpu testing method and apparatus, and electronic device
CN112328299A (en) Server firmware information viewing method, device, equipment and storage medium
Fukuda et al. Stability improvement of an accelerated android operating system for application observation
CN111400057A (en) Method, device and medium for remotely controlling test process
CN111061621A (en) Method, device and equipment for verifying program performance and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19947326

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19947326

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19947326

Country of ref document: EP

Kind code of ref document: A1