CN112395187A - Test method, test system, computer device and storage medium - Google Patents

Test method, test system, computer device and storage medium Download PDF

Info

Publication number
CN112395187A
CN112395187A CN202011226058.XA CN202011226058A CN112395187A CN 112395187 A CN112395187 A CN 112395187A CN 202011226058 A CN202011226058 A CN 202011226058A CN 112395187 A CN112395187 A CN 112395187A
Authority
CN
China
Prior art keywords
test
client
server
pressure
sending
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011226058.XA
Other languages
Chinese (zh)
Inventor
曾三兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Express Jiangsu Technology Co Ltd
Human Horizons Jiangsu Technology Co Ltd
Original Assignee
China Express Jiangsu Technology Co Ltd
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 China Express Jiangsu Technology Co Ltd filed Critical China Express Jiangsu Technology Co Ltd
Priority to CN202011226058.XA priority Critical patent/CN112395187A/en
Publication of CN112395187A publication Critical patent/CN112395187A/en
Pending legal-status Critical Current

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
    • 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/3692Test management for test results analysis

Abstract

The invention discloses a test method, a test system, computer equipment and a storage medium, and belongs to the technical field of computers. The invention can directly carry out the test without installing the test client before the test, and can carry out unified management on all the test clients. Each client can respectively send a test script to the server, and the server respectively sends the received test scripts to the pressure testers corresponding to the corresponding clients; the server can also respectively send the test requests sent by the clients to the pressure testing machines corresponding to the clients, so that the pressure testing machines are controlled to test the associated tested objects; the server can also obtain the test information sent by each pressure tester and send the received test information to the corresponding client so as to display the test information at the client. The invention can flexibly test without safely testing the client in advance, improves the experience effect of the user and is convenient to operate and use.

Description

Test method, test system, computer device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a test method, a test system, a computer device, and a storage medium.
Background
With the development of internet technology, more and more applications are available on terminals such as mobile phones, tablet computers, smart televisions and smart electric vehicles, and the functions are more and more abundant. When each application program is completely written, technicians need to test the application program, and the application program is issued after the test is successful.
The existing JMETER pressure testing tool needs to install testing client sides before testing, is time-consuming and labor-consuming, occupies memory resources of a computer, is independent of each other and cannot uniformly manage all the testing client sides.
Disclosure of Invention
Aiming at the problems of the conventional JMETER pressure testing tool, the testing method, the testing system, the computer equipment and the storage medium aim to directly carry out testing, do not need to install a testing client before testing and can carry out unified management on all testing clients.
The invention provides a test method, which is applied to a server and comprises the following steps:
receiving a test script sent by at least one client, and sending the test script to a pressure tester corresponding to the client;
each client corresponds to one pressure measuring machine, and the pressure measuring machine is associated with a measured object;
sending a test request sent by the client to the pressure testing machine corresponding to the client, and controlling the pressure testing machine to test the associated tested object;
and acquiring test information sent by each pressure tester, and sending the test information to the corresponding client.
Optionally, the obtaining test information sent by each pressure tester, and sending the test information to the corresponding client includes:
and acquiring the test information sent by each pressure tester in real time, and sending the test information to the client corresponding to the pressure tester by adopting an Ajax asynchronous mechanism.
Optionally, the method further includes:
receiving a query request sent by at least one client, and sending the query request to a pressure tester corresponding to the client to acquire historical test report data corresponding to the query request;
and sending the historical test report data to the corresponding client.
Optionally, the server and the client communicate by using a hypertext transfer protocol.
The invention also provides a test method, which is applied to the client corresponding to the pressure tester and comprises the following steps:
sending a test script to a server so that the server sends the test script to the pressure testing machine corresponding to the client;
sending a test request to the server so that the server sends the test request to the pressure testing machine corresponding to the client, and controlling the pressure testing machine to test the associated tested object;
and acquiring the test information sent by the server and displaying the test information.
Optionally, in the test operation stage, the test information is script data;
acquiring the test information sent by the server, and displaying the test information, wherein the method comprises the following steps:
and acquiring the script data sent by the server by adopting an Ajax asynchronous mechanism, calculating the pressure measurement progress duration according to the pressure measurement duration in the script data, generating a progress bar according to the pressure measurement progress duration, and displaying the progress bar and the script data.
Optionally, when the test is completed, the test information is test report data;
acquiring the test information sent by the server, and displaying the test information, wherein the method comprises the following steps:
and acquiring the test report data sent by the server by adopting an Ajax asynchronous mechanism, generating a test report according to the test report data, and displaying the test report.
Optionally, the method further includes:
sending a query request to the server, so that the server sends the query request to a pressure tester corresponding to the client to acquire historical test report data corresponding to the query request;
and acquiring the historical test report data sent by the server, generating a historical test report according to the historical test report data, and displaying the historical test report.
Optionally, the client and the server communicate using a hypertext transfer protocol.
The invention also provides a test system, which comprises a server and at least one client;
the client is used for respectively sending the test script and the test request to the server, acquiring the test information sent by the server and displaying the test information;
the server is used for receiving the test script sent by at least one client and sending the test script to the pressure tester corresponding to the client; the server is also used for sending the test request sent by the client to the pressure testing machine corresponding to the client and controlling the pressure testing machine to test the associated tested object; the server is further used for obtaining the test information sent by each pressure tester and sending the test information to the corresponding client.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the computer program.
The invention also provides a computer-readable storage medium, on which a computer program is stored, characterized in that the computer program realizes the steps of the above-mentioned method when being executed by a processor.
The beneficial effects of the above technical scheme are that:
the testing method, the testing system, the computer equipment and the storage medium provided by the invention can be used for directly testing without installing a testing client before testing, and can be used for uniformly managing all testing clients. Each client can respectively send a test script to the server, and the server respectively sends the received test scripts to the pressure testers corresponding to the corresponding clients; the server can also respectively send the test requests sent by the clients to the pressure testing machines corresponding to the clients, so that the pressure testing machines are controlled to test the associated tested objects; the server can also obtain the test information sent by each pressure tester and send the received test information to the corresponding client so as to display the test information at the client. The invention can flexibly test without safely testing the client in advance, improves the experience effect of the user and is convenient to operate and use.
Drawings
FIG. 1 is a flowchart of a method of one embodiment of a testing method according to one embodiment of the present invention;
FIG. 2 is a flowchart of a method of another embodiment of a testing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a method of testing a second embodiment of the present invention;
FIG. 4 is a schematic view of a configuration interface of a client;
FIG. 5 is a schematic view of an operation interface of a client;
FIG. 6 is a schematic view of a monitoring interface of a client;
FIG. 7 is a schematic view of a reporting interface of a client;
FIG. 8 is a flowchart of a method of another embodiment of a testing method according to a second embodiment of the present invention;
FIG. 9 is a block diagram of an embodiment of a test system according to a third embodiment of the present invention;
FIG. 10 is a diagram of the internal modules of the client according to the present invention;
FIG. 11 is a block diagram of the internal components of the server according to the present invention;
FIG. 12 is a flow chart illustrating the testing principle of the testing system of the present invention;
FIG. 13 is a diagram of the hardware architecture of one embodiment of the computer apparatus of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The testing method, the testing system, the computer equipment and the storage medium can directly carry out testing, do not need to install a testing client before testing, and can carry out unified management on all testing clients. Each client can respectively send a test script to the server, and the server respectively sends the received test scripts to the pressure testers corresponding to the corresponding clients; the server can also respectively send the test requests sent by the clients to the pressure testing machines corresponding to the clients, so that the pressure testing machines are controlled to test the associated tested objects; the server can also obtain the test information sent by each pressure tester and send the received test information to the corresponding client so as to display the test information at the client. The invention can flexibly test without safely testing the client in advance, improves the experience effect of the user and is convenient to operate and use.
Example one
Referring to fig. 1, a testing method of this embodiment is applied to a server for implementing a JMeter pressure testing function, and includes the following steps:
A1. and receiving a test script sent by at least one client, and sending the test script to a pressure tester corresponding to the client.
Each client corresponds to one pressure measuring machine, and the pressure measuring machines are associated with the measured objects.
It should be noted that: the server and the client communicate by using a hypertext transfer protocol.
The tested object is an application program or application software (such as APP), and the tested application program can be installed in a cloud server, a local server or a mobile terminal in practical application. The pressure measuring machine can be associated with the ID address of the measured object according to the ID address. The application program may be an order system, a customer service system, etc., and is not particularly limited herein.
In this embodiment, the client sends a test script (jmx script) to the server by using a File Transfer Protocol (FTP). Each client corresponds to a user account, a user logs in the user account through a WEB page to communicate with the server, and the server sends the received test script to the pressure testing machine corresponding to the client. The server can manage a plurality of clients simultaneously and support multithreading parallel testing. The pressure measuring machine adopts a Linux system.
A2. And sending the test request sent by the client to the pressure testing machine corresponding to the client, and controlling the pressure testing machine to test the associated tested object.
In this embodiment, a user may perform parameter configuration on a test script through a client, for example: project name, test plan, scene configuration (voltage stabilization test, load test, benchmark test, etc.), cycle, concurrency times, preset time, pressure test duration, etc. The client sends a test request to the server in the form of a Shell command. And after receiving the test request sent by the client, the server sends the test request to the corresponding pressure testing machine, so that the pressure testing machine is controlled to test the related tested object.
A3. And acquiring test information sent by each pressure tester, and sending the test information to the corresponding client.
Further, step a3 may include: and acquiring the test information sent by each pressure tester in real time, and sending the test information to the client corresponding to the pressure tester by adopting an Ajax asynchronous mechanism.
The test of the tested object comprises a test operation stage and a test completion stage. In the test operation stage, the test information is script data, the tested object sends the real-time script data to the associated pressure testing machine, the pressure testing machine downloads the script data (namely, a test log) and sends the script data to the server, and the server feeds the script data back to the client by adopting an Ajax asynchronous mechanism, so that a user can know the current test condition and progress in real time. In the test completion stage, the test information is test report data, after the tested object completes the test, the pressure tester downloads the test report data from the tested object and sends the test report data to the server, the server adopts an Ajax asynchronous mechanism to feed the test report data back to the client, the client generates a test report according to the test report data, and the test report can include: the test report can be visually known by a user through information such as a curve graph, a bar graph, a sector statistical chart, a test result, test statistics and the like.
In this embodiment, the server may send each client to a test script, and send each test script to the pressure tester corresponding to the corresponding client; the server can also respectively send the test requests sent by the clients to the pressure testing machines corresponding to the clients, so that the pressure testing machines are controlled to test the associated tested objects; the server can also obtain the test information sent by each pressure tester and send the received test information to the corresponding client so as to display the test information at the client. The invention can flexibly test without safely testing the client in advance, improves the experience effect of the user and is convenient to operate and use.
In a preferred embodiment, the test method described with reference to fig. 2 may further include:
A4. receiving an inquiry request sent by at least one client, and sending the inquiry request to a pressure tester corresponding to the client to acquire historical test report data corresponding to the inquiry request.
A5. And sending the historical test report data to the corresponding client.
In this embodiment, the client may generate a historical test report according to the historical test report data, and the historical test report may include: the curve chart, the bar chart, the sector statistical chart, the test result, the test statistics and other information of the test of the previous time can be used for enabling a user to visually know the test report.
The existing tested object can only store the current test report data, but can not store the historical test report data, and when the test is carried out again, the next test report data needs to be covered by the last test report data. The measured object in this embodiment can store the test report data each time. When a user needs to inquire historical test report data, an inquiry request can be sent to the server through the client, the server sends the inquiry request to the corresponding pressure testing machine, the pressure testing machine sends the inquiry request to the associated tested object so as to extract the historical test report data stored in the tested object, the historical test report data are fed back to the client through the pressure testing machine and the server, and the client generates a historical test report according to the historical test report data, so that the user can visually know the test result of the past through the client, and the purpose of searching and inquiring the historical test report is achieved.
The pressure tester in this embodiment can store the test report data every time. When a user needs to inquire historical test report data, an inquiry request can be sent to the server through the client, the server sends the inquiry request to the corresponding pressure testing machine so as to extract the stored historical test report data, the pressure testing machine feeds the historical test report data back to the client through the server, and the client generates a historical test report according to the historical test report data, so that the user can visually know the test results of the past through the client, and the purpose of retrieving and inquiring the historical test report is achieved.
Example two
Referring to fig. 3, a testing method of the present embodiment is applied to a client corresponding to a pressure tester, and includes the following steps:
B1. and sending the test script to a server so that the server sends the test script to the pressure testing machine corresponding to the client.
It should be noted that: the client and the server communicate by means of a hypertext transfer protocol.
In this embodiment, the client sends a test script (jmx script) to the server by using a File Transfer Protocol (FTP). Each client corresponds to a user account, a user logs in the user account through a WEB page to communicate with the server, and the server sends the received test script to the pressure testing machine corresponding to the client. The pressure measuring machine adopts a Linux system.
B2. And sending the test request to the server so that the server sends the test request to the pressure testing machine corresponding to the client, and controlling the pressure testing machine to test the associated tested object.
In this embodiment, a user may perform parameter configuration on a test script through a client, for example: project name, test plan, scene configuration (voltage stabilization test, load test, benchmark test, etc.), cycle, concurrency times, preset time, pressure test duration, etc. The client sends a test request to the server in the form of a Shell command. And after receiving the test request sent by the client, the server sends the test request to the corresponding pressure testing machine, so that the pressure testing machine is controlled to test the related tested object.
B3. And acquiring the test information sent by the server and displaying the test information.
In the test operation stage, where the test information is script data, step B3 may include: and acquiring the script data sent by the server by adopting an Ajax asynchronous mechanism, calculating the pressure measurement progress duration according to the pressure measurement duration in the script data, generating a progress bar according to the pressure measurement progress duration, and displaying the progress bar and the script data.
Further, stability pressure measurement coefficients (e.g., 10%, 15%, etc.) may be determined according to the test scenario of the script data, according to the formula: and calculating the pressure measurement progress duration, and generating a progress bar according to the pressure measurement progress duration. Wherein, each test scene corresponds to a stability pressure measurement coefficient. Through the Ajax asynchronous processing mechanism, the time (pressure measuring progress time length) which may be consumed by generating the pressure measuring scene is generated on the basis of the pressure measuring time length by adding a certain proportion of time delay per second.
In the test operation stage, the tested object sends the real-time script data to the associated pressure testing machine, the pressure testing machine downloads the script data (namely, the test log) and sends the script data to the server, and the server feeds the script data back to the client by adopting the Ajax asynchronous mechanism, so that a user can know the current test condition and progress in real time.
When the test is completed, the test information is test report data, and step B3 may include: and acquiring the test report data sent by the server by adopting an Ajax asynchronous mechanism, generating a test report according to the test report data, and displaying the test report.
In the test completion stage, after the tested object completes the test, the pressure testing machine downloads the test report data from the tested object and sends the test report data to the server, the server adopts the Ajax asynchronous mechanism to feed the test report data back to the client, the client generates the test report according to the test report data, and the test report can include: the test report can be visually known by a user through information such as a curve graph, a bar graph, a sector statistical chart, a test result, test statistics and the like.
In this embodiment, a user can set corresponding parameter configuration at a client as required, send a test request to a server in a Shell command form, and send the test request to a corresponding pressure testing machine through the server, so that the pressure testing machine is controlled to perform a test on a tested object, and the operation and use are facilitated; the client can also communicate with the server by adopting an Ajax asynchronous mechanism, test information is obtained in real time during a test operation stage, the pressure measurement progress duration is calculated according to the pressure measurement duration in the script data, a progress bar is generated according to the pressure measurement progress duration, and the progress bar and the script data are displayed, so that the pressure measurement progress is visually and dynamically displayed; when the test is completed, the test report data sent by the server is obtained in real time, the test report is generated according to the test report data, and the test report is displayed, so that the experience effect of a user is improved.
In practical application, the client may include 4 page display interfaces in the test process, which are respectively: the user can switch between 4 display interfaces according to needs by operating the interface, the log interface, the monitoring interface and the report interface, and before testing, the user can configure the test script on the configuration interface, referring to fig. 4. In the test process, a user can watch test information such as a test scene, a test progress, predicted remaining time and the like of the current tested object on the operation interface, and the reference is made to fig. 5; a user can view the pressure measurement performance index of the measured object in real time through the monitoring interface, and the reference is made to fig. 6; the user may view the test report information in real time through the report interface, see fig. 7.
In a preferred embodiment, the test method described with reference to fig. 8 may further include:
B4. and sending the query request to the server, so that the server sends the query request to the pressure testing machine corresponding to the client to acquire historical test report data corresponding to the query request.
B5. And acquiring the historical test report data sent by the server, generating a historical test report according to the historical test report data, and displaying the historical test report.
In this embodiment, the client may generate a historical test report according to the historical test report data, and the historical test report may include: the curve chart, the bar chart, the sector statistical chart, the test result, the test statistics and other information of the test of the previous time can be used for enabling a user to visually know the test report.
The existing tested object can only store the current test report data, but can not store the historical test report data, and when the test is carried out again, the next test report data needs to be covered by the last test report data. The measured object in this embodiment can store the test report data each time. When a user needs to inquire historical test report data, an inquiry request can be sent to the server through the client, the server sends the inquiry request to the corresponding pressure testing machine, the pressure testing machine sends the inquiry request to the associated tested object so as to extract the historical test report data stored in the tested object, the historical test report data are fed back to the client through the pressure testing machine and the server, and the client generates a historical test report according to the historical test report data, so that the user can visually know the test result of the past through the client, and the purpose of searching and inquiring the historical test report is achieved.
The pressure tester in this embodiment can store the test report data every time. When a user needs to inquire historical test report data, an inquiry request can be sent to the server through the client, the server sends the inquiry request to the corresponding pressure testing machine so as to extract the stored historical test report data, the pressure testing machine feeds the historical test report data back to the client through the server, and the client generates a historical test report according to the historical test report data, so that the user can visually know the test results of the past through the client, and the purpose of searching and inquiring the historical test report is achieved.
EXAMPLE III
Referring to fig. 9, a testing system of the present embodiment includes a server 2 and at least one client 1.
The client 1 is configured to send a test script and a test request to the server 2, and is further configured to obtain test information sent by the server 2 and display the test information.
The client 1 shown in fig. 10 includes: a first transmitting unit 11, a first receiving unit 12, a processing unit 13 and a display unit 14.
The first sending unit 11 is configured to send the test script and the test request to the server 2 respectively.
The first receiving unit 12 is configured to receive the test information sent by the server 2.
And the processing unit 13 is used for processing the test information.
Specifically, when the test information is script data, the processing unit 13 is configured to obtain the script data sent by the server 2 by using an Ajax asynchronous mechanism, calculate a pressure measurement progress duration according to a pressure measurement duration in the script data, and generate a progress bar according to the pressure measurement progress duration; when the test information is test report data, the processing unit 13 acquires the test report data sent by the server 2 by using an Ajax asynchronous mechanism, and generates a test report according to the test report data.
And the display unit 14 is used for displaying the test information.
Specifically, when the test information is script data, the display unit 14 is configured to display a progress bar and the script data; when the test information is test report data, the display unit 14 is used for the test report information.
The server 2 is used for receiving the test script sent by at least one client 1 and sending the test script to the pressure tester corresponding to the client 1; the server 2 is further configured to send a test request sent by the client 1 to the pressure testing machine corresponding to the client 1, and control the pressure testing machine to perform a test on the associated tested object; the server 2 is further configured to obtain test information sent by each pressure tester, and send the test information to the corresponding client 1.
The server 2 shown with reference to fig. 11 includes: a second receiving unit 21 and a second transmitting unit 22.
The second receiving unit 21 is configured to receive a test script and a test request sent by at least one client 1, and is further configured to receive test information sent by each pressure tester.
The second sending unit 22 is configured to send the test script to the pressure testing machine corresponding to the client 1, and is further configured to send the received test request to the pressure testing machine corresponding to the client 1, and control the pressure testing machine to perform a test on the associated tested object; and is also used for sending the test information sent by the pressure tester to the corresponding client 1.
It should be noted that: the server and the client communicate by using a hypertext transfer protocol.
Referring to fig. 12, the test flow of the test system in this embodiment is:
s1, a client sends a test script;
s2, the server sends the test script to a pressure tester corresponding to the client;
s3, the client sends a test request;
s4, the server sends the test request to a pressure tester corresponding to the client;
s5, the pressure testing machine tests the related tested object;
s6, the tested object sends the test information to a pressure tester;
s7, the pressure testing machine sends the testing information to a server;
s8, the server sends the test information to the client;
and S9, displaying the test information by the client.
In the embodiment, the client side adopts the Web side, so that the operation and the use can be more flexible, and the user experience is greatly improved. The Web operation mode of the JMeter not only has the same functions as the existing JMeter desktop application, but also expands the functions which the existing JMeter does not have, such as: the method comprises the following steps of percentage progress bar display, visual scene configuration and selection, visual real-time performance index monitoring and performance report display, historical pressure measurement report query support and the like, and the experience effect of a user is improved.
Example four
In order to achieve the above object, the present invention further provides a computer device 3, where the computer device 3 includes a plurality of computer devices 3, components of the server 2 in the test system according to the third embodiment may be dispersed in different computer devices 3, and the computer device 3 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server, or a server cluster formed by a plurality of servers) that executes a program, or the like. The computer device 3 of the present embodiment includes at least, but is not limited to: a memory 31, a processor 33, a network interface 32, and a server 2 in the test system (refer to fig. 13) that can be communicatively connected to each other through a system bus. It is noted that fig. 13 only shows the computer device 3 with components, but it is to be understood that not all of the shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the memory 31 includes at least one type of computer-readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 31 may be an internal storage unit of the computer device 3, such as a hard disk or a memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device 3. Of course, the memory 31 may also comprise both an internal storage unit of the computer device 3 and an external storage device thereof. In this embodiment, the memory 31 is generally used for storing an operating system and various application software installed in the computer device 3, such as a program code of the testing method in the first embodiment. Further, the memory 31 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 33 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 33 is typically arranged to control the overall operation of the computer device 3, such as to perform control and processing related to data interaction or communication with said computer device 3. In this embodiment, the processor 33 is configured to run the program codes stored in the memory 31 or process data, for example, run the server 2 in the test system.
The network interface 32 may comprise a wireless network interface or a wired network interface, and the network interface 32 is typically used to establish a communication connection between the computer device 3 and other computer devices 3. For example, the network interface 32 is used to connect the computer device 3 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 3 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 13 only shows the computer device 3 with components 21-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the server 2 in the test system stored in the memory 31 may also be divided into one or more program modules, and the one or more program modules are stored in the memory 31 and executed by one or more processors (in this embodiment, the processor 33) to complete the present invention.
EXAMPLE five
To achieve the above objects, the present invention also provides a computer-readable storage medium including a plurality of storage media such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by the processor 33 implements corresponding functions. The computer readable storage medium of the embodiment is used for storing the server 2 in the test system, and when being executed by the processor 33, the computer readable storage medium implements the test method of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. A testing method is applied to a server and comprises the following steps:
receiving a test script sent by at least one client, and sending the test script to a pressure tester corresponding to the client;
each client corresponds to one pressure measuring machine, and the pressure measuring machine is associated with a measured object;
sending a test request sent by the client to the pressure testing machine corresponding to the client, and controlling the pressure testing machine to test the associated tested object;
and acquiring test information sent by each pressure tester, and sending the test information to the corresponding client.
2. The method according to claim 1, wherein obtaining test information sent by each of the pressure testers, and sending the test information to the corresponding client comprises:
and acquiring the test information sent by each pressure tester in real time, and sending the test information to the client corresponding to the pressure tester by adopting an Ajax asynchronous mechanism.
3. The test method of claim 1, further comprising:
receiving a query request sent by at least one client, and sending the query request to a pressure tester corresponding to the client to acquire historical test report data corresponding to the query request;
and sending the historical test report data to the corresponding client.
4. The testing method of claim 1, wherein the server and the client communicate using hypertext transfer protocol.
5. A testing method is applied to a client corresponding to a pressure tester, and comprises the following steps:
sending a test script to a server so that the server sends the test script to the pressure testing machine corresponding to the client;
sending a test request to the server so that the server sends the test request to the pressure testing machine corresponding to the client, and controlling the pressure testing machine to test the associated tested object;
and acquiring the test information sent by the server and displaying the test information.
6. The test method according to claim 5, wherein in a test operation stage, the test information is script data;
acquiring the test information sent by the server, and displaying the test information, wherein the method comprises the following steps:
and acquiring the script data sent by the server by adopting an Ajax asynchronous mechanism, calculating the pressure measurement progress duration according to the pressure measurement duration in the script data, generating a progress bar according to the pressure measurement progress duration, and displaying the progress bar and the script data.
7. The test method of claim 5, wherein the test information is test report data when the test is completed;
acquiring the test information sent by the server, and displaying the test information, wherein the method comprises the following steps:
and acquiring the test report data sent by the server by adopting an Ajax asynchronous mechanism, generating a test report according to the test report data, and displaying the test report.
8. The test method of claim 5, further comprising:
sending a query request to the server, so that the server sends the query request to a pressure tester corresponding to the client to acquire historical test report data corresponding to the query request;
and acquiring the historical test report data sent by the server, generating a historical test report according to the historical test report data, and displaying the historical test report.
9. The testing method of claim 5, wherein the client and the server communicate using hypertext transfer protocol.
10. A test system comprising a server and at least one client;
the client is used for respectively sending the test script and the test request to the server, acquiring the test information sent by the server and displaying the test information;
the server is used for receiving the test script sent by at least one client and sending the test script to the pressure tester corresponding to the client; the server is also used for sending the test request sent by the client to the pressure testing machine corresponding to the client and controlling the pressure testing machine to test the associated tested object; the server is further used for obtaining the test information sent by each pressure tester and sending the test information to the corresponding client.
11. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 4 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202011226058.XA 2020-11-05 2020-11-05 Test method, test system, computer device and storage medium Pending CN112395187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011226058.XA CN112395187A (en) 2020-11-05 2020-11-05 Test method, test system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011226058.XA CN112395187A (en) 2020-11-05 2020-11-05 Test method, test system, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN112395187A true CN112395187A (en) 2021-02-23

Family

ID=74598228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011226058.XA Pending CN112395187A (en) 2020-11-05 2020-11-05 Test method, test system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112395187A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method
CN114387775A (en) * 2022-03-24 2022-04-22 北京智象信息技术有限公司 Pressure measurement method and device for simulating remote controller
CN115114127A (en) * 2021-03-22 2022-09-27 小沃科技有限公司 Pressure testing system
CN115114127B (en) * 2021-03-22 2024-04-30 小沃科技有限公司 Pressure testing system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186444B (en) * 2013-04-15 2016-07-06 北京搜狐新时代信息技术有限公司 A kind of performance test methods, test platform and test machine
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
US9940342B2 (en) * 2014-09-25 2018-04-10 Red Hat, Inc. Stability measurement for federation engine
CN108052451A (en) * 2017-12-26 2018-05-18 网易(杭州)网络有限公司 Test method, system, test server, test terminal and storage medium
CN110413594A (en) * 2019-06-25 2019-11-05 苏州浪潮智能科技有限公司 A kind of more example method for testing pressure of Redis and device
CN111078539A (en) * 2019-11-29 2020-04-28 江苏苏宁物流有限公司 Test method, device, system and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186444B (en) * 2013-04-15 2016-07-06 北京搜狐新时代信息技术有限公司 A kind of performance test methods, test platform and test machine
US9940342B2 (en) * 2014-09-25 2018-04-10 Red Hat, Inc. Stability measurement for federation engine
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN108052451A (en) * 2017-12-26 2018-05-18 网易(杭州)网络有限公司 Test method, system, test server, test terminal and storage medium
CN110413594A (en) * 2019-06-25 2019-11-05 苏州浪潮智能科技有限公司 A kind of more example method for testing pressure of Redis and device
CN111078539A (en) * 2019-11-29 2020-04-28 江苏苏宁物流有限公司 Test method, device, system and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114127A (en) * 2021-03-22 2022-09-27 小沃科技有限公司 Pressure testing system
CN115114127B (en) * 2021-03-22 2024-04-30 小沃科技有限公司 Pressure testing system
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method
CN114387775A (en) * 2022-03-24 2022-04-22 北京智象信息技术有限公司 Pressure measurement method and device for simulating remote controller

Similar Documents

Publication Publication Date Title
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
CN108984388B (en) Method and terminal equipment for generating automatic test case
CN107733708B (en) Equipment parameter configuration method and device, computer equipment and storage medium
CN109218133B (en) Network speed testing system, method, device and computer readable storage medium
CN109002395B (en) Code coverage rate management method and device
CN108255701B (en) Scene testing method and mobile terminal
CN110413512B (en) AB test method, AB test device, computer equipment and storage medium
CN110647471B (en) Interface test case generation method, electronic device and storage medium
CN112395187A (en) Test method, test system, computer device and storage medium
CN109788052B (en) Server configuration remote query method, device, terminal and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN112367345A (en) Data processing method, server device and computer readable storage medium
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
CN111736938A (en) Information display method and device, storage medium and electronic device
CN112181762A (en) Software project application basic environment deployment and three-remote visualization processing method
CN111352851A (en) Program testing method and device, computer equipment and storage medium
CN111723017A (en) System capacity testing method and device, computer equipment and storage medium
CN109656791B (en) gPC performance test method and device based on Jmeter
CN112181822A (en) Test method and test method for starting time consumption of application program
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN108600296A (en) Merchant information processing method, device, electronic equipment and storage medium
CN114416420A (en) Equipment problem feedback method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination