CN115480970A - Performance test method, device, equipment and storage medium - Google Patents

Performance test method, device, equipment and storage medium Download PDF

Info

Publication number
CN115480970A
CN115480970A CN202211164063.1A CN202211164063A CN115480970A CN 115480970 A CN115480970 A CN 115480970A CN 202211164063 A CN202211164063 A CN 202211164063A CN 115480970 A CN115480970 A CN 115480970A
Authority
CN
China
Prior art keywords
test
target
item
test item
target parameter
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
CN202211164063.1A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211164063.1A priority Critical patent/CN115480970A/en
Publication of CN115480970A publication Critical patent/CN115480970A/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a performance testing method, a performance testing device, a performance testing equipment and a storage medium, which relate to the technical field of computers and comprise the following steps: displaying a test item selection page so as to determine a test item selected by a user from the test item selection page as a target test item; generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user; and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result. According to the method and the device, a plurality of test items are concentrated on one page for selection, and the corresponding parameter configuration sub-page is displayed according to the selected test items, so that the selected test items are independently set with parameters for testing, the convenience and the efficiency of testing are improved, and the operation of performance testing is simplified.

Description

Performance test method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a performance testing method, apparatus, device, and storage medium.
Background
With the continuous and high-speed development of the trusted industry of our country, more and more domestic computers and servers enter the fields of commerce and the like, and gradually become mainstream electronic office equipment. Particularly, server products need to work for a long time in use, perform a large amount of calculations, and provide stable services. Since a home-made server product starts late, key technologies are not completely mature, and the server configuration is various, the compatibility is strong, and the types of the carried components are complex, such as memories and network cards of various specifications, HBA (Host Bus Adapter) cards, SAS (STATISTICAL ANALYSIS SYSTEM) cards, raid (Redundant Arrays of Independent Disks) cards, backplanes, and the like, the overall performance of the server product and the performance of each component are an index that is particularly emphasized by users. The server performance test is the most effective way for testing the performance and stability of the server, and before the product is put on the market in batches, manufacturers can fully test the reliability of the product and the performance of each part of assembly, so that the best use experience is provided for users.
The server performance test is to test various performance indexes of the system by simulating various normal, peak and abnormal load conditions through an automatic test tool. Both load tests and pressure tests belong to the performance tests, and both can be performed in combination. Currently, the most commonly used test tools include Unixbench, LTP (Linux Project), FIO (Flexible IO Tester), SPEC CPU, iozone, stream, AC, DC, rebot, and the like, and the test tools are mainly installed in a Linux system, a script is deployed, and test items with different functions are realized by executing different test scripts. The Unixbench tool is used for testing the performance of a linux system host, the LTP tool is used for performing pressure testing, the FIO tool is mainly used for testing the performance of a disk, the SPEC CPU is mainly used for testing the performance of a processor of a system, the Iozone is used for testing the read-write performance of file systems in different operating systems, the Stream tool is used for testing the memory performance, and the AC, DC and rebot are mainly used for performing cycle starting testing of the machine. For testers, different scripts need to be manually installed on different performance test items, different running parameters needed by tests are set, operation methods are complicated, the functions are single, the operation methods are not visual enough, errors are prone to occurring in the operation process, the test success rate is short of one step, and the work efficiency is greatly discounted.
Disclosure of Invention
In view of the above, the present invention provides a performance testing method, apparatus, device and storage medium, which can improve the convenience and efficiency of testing and simplify the operation of performance testing. The specific scheme is as follows:
in a first aspect, the present application discloses a performance testing method, comprising:
displaying a test item selection page so as to determine a test item selected by a user from the test item selection page as a target test item;
generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user;
and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result.
Optionally, before the displaying the test item selection page, the method further includes:
installing an integrated test graphical tool containing a preset number of the test items;
correspondingly, the display test item selection page includes:
and after the integrated test graphical tool is installed, if the integrated test graphical tool is detected to be clicked, displaying the test item selection page.
Optionally, the generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameter set by the user includes:
when the target test item is Unixbench, generating a target parameter configuration page comprising a single thread, multiple threads and a single and multiple thread parallel;
when the target test item is LTP, generating a target parameter configuration page containing initial test, pressure test and parameter setting;
when the target test item is an IOZONE, generating a target parameter configuration page containing different memory magnification settings;
and when the target test item is Stream, generating a target parameter configuration page containing first parameter setting and second parameter setting.
Optionally, the generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameter set by the user includes:
when the target test item is AC or DC or Reboot, executing preset inspection item operation and generating a corresponding target parameter configuration page so as to obtain a target parameter set by the user; the target parameter configuration page comprises protection time, test times and a test result storage path.
Optionally, before the executing the preset inspection item operation and generating the corresponding target parameter configuration page, the method further includes:
setting an item to be inspected, acquiring item information corresponding to the item to be inspected, and storing the item information in a preset area;
generating an inspection item selection page based on the item to be inspected;
correspondingly, when the target test item is AC or DC or rebot, executing a preset check item operation, including:
when the target test item is AC or DC or rebot, displaying the check item selection page;
acquiring the item to be inspected selected by the user on the inspection item selection page to obtain a target item to be inspected;
and judging whether the project information identical to the project to be detected of the target exists in the preset area.
Optionally, after determining whether the item information that is the same as the item to be inspected exists in the preset area, the method further includes:
if the project information same as the project to be detected of the target exists in the preset area, executing a step of generating a corresponding target parameter configuration page based on the target test project so as to obtain a target parameter set by the user;
and if the project information which is the same as the project to be detected of the target does not exist in the preset area, generating error reporting information.
Optionally, the invoking a preset script corresponding to the target test item based on the target parameter to perform a test, and obtaining a corresponding test result includes:
when detecting that a test starting button on the target parameter configuration page is clicked, calling the preset script and the system file corresponding to the target test item based on the target parameter for testing, and obtaining a corresponding test result;
and storing the test result to a corresponding area according to a preset path.
In a second aspect, the present application discloses a performance testing device, comprising:
the test item determining module is used for displaying a test item selection page so as to determine the test item selected by the user from the test item selection page as a target test item;
the parameter configuration page generating module is used for generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user;
and the test module is used for calling a preset script corresponding to the target test item based on the target parameter to test and obtaining a corresponding test result.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the performance testing method as disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements a performance testing method as disclosed in the preceding.
It can be seen that the present application provides a performance testing method, comprising: displaying a test item selection page so as to determine a test item selected by a user from the test item selection page as a target test item; generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user; and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result. Therefore, the test items are concentrated on one page for selection, so that the test process is simple and visual, the corresponding parameter configuration sub-page is displayed according to the test items selected by the user on the test item selection page, the selected test items are independently set with parameters for testing, the manual operation behaviors of the user are reduced, the test convenience and the test efficiency are improved, and the performance test operation is simplified.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a performance testing method disclosed herein;
FIG. 2 is a schematic view of a test item selection page disclosed herein;
FIG. 3 is a flow chart of a specific performance testing method disclosed herein;
FIG. 4 is a schematic view of a target parameter configuration page disclosed herein;
FIG. 5 is a schematic view of a target parameter configuration page disclosed herein;
FIG. 6 is a schematic view of a target parameter configuration page disclosed herein;
FIG. 7 is a schematic view of a target parameter configuration page disclosed herein;
FIG. 8 is a flow chart of a specific performance testing method disclosed herein;
FIG. 9 is a schematic view of an inspection item selection page disclosed herein;
FIG. 10 is a schematic view of a target parameter configuration page disclosed herein;
FIG. 11 is a schematic structural diagram of a performance testing apparatus provided in the present application;
fig. 12 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
Currently, server performance testing refers to testing various performance indexes of a system by simulating various normal, peak and abnormal load conditions through an automated testing tool. Both load tests and pressure tests belong to the performance tests, and both can be performed in combination. The most commonly used test tools include Unixbench, LTP, FIO, SPEC CPU, iozone, stream, AC, DC, rebot, etc., and the test tools are mainly installed in a Linux system, scripts are deployed, and test items with different functions are realized by executing different test scripts. For a tester, different performance test items need to be manually installed with different scripts, different running parameters required by the test are set, the operation method is complicated, the function is single, the operation method is not intuitive enough, errors are easy to occur in the operation process, the test result is short of one step and the working efficiency is greatly discounted. Therefore, the application provides a performance test method which can improve the convenience and the efficiency of the test and simplify the operation of the performance test.
The embodiment of the invention discloses a performance testing method, which is shown in figure 1 and comprises the following steps:
step S11: and displaying the test item selection page so as to determine the test item selected by the user from the test item selection page as the target test item.
In this embodiment, the test item selection page is presented so that the test item selected by the user from the test item selection page is determined as the target test item. It can be understood that, since different scripts need to be manually installed when different performance test projects are performed, that is, multiple system files need to be manually changed, which is complex and inefficient, the present solution integrates the projects that need to be performed with performance test into one tool, and after clicking this tool, a test project selection page is displayed, as shown in fig. 2, at this time, options of the projects to be tested are displayed on the test project selection page, for example, the test projects to be tested are all displayed, including Unixbench, LTP, FIO, SPEC CPU, iozone, stream, AC, DC, reboot options. The user may make a selection on the test item selection page and determine the test item selected by the user as the target test item. It should be noted that each test item on the test item selection page needs to be tested, and each test item is tested one at a time. Meanwhile, the options on the test item selection page are not limited to the test items, and the test items can be added, modified and the like according to actual conditions.
Step S12: and generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user.
In this embodiment, a test item selection page is displayed to determine a test item selected by a user from the test item selection page as a target test item, and then a corresponding target parameter configuration page is generated based on the target test item, so as to obtain a target parameter set by the user. It can be understood that, after the user selects the target test item, the tool automatically enters a sub-interface of the target test item, that is, a target parameter configuration page, so that the user configures the current test parameter related to the target test item on the target parameter configuration page. For example, when the target test item is Unixbench, the target parameter configuration page including a single thread, multiple threads and a single and multiple thread parallel is generated; when the target test item is LTP, generating a target parameter configuration page containing initial test, pressure test and parameter setting; when the target test item is an IOZONE, generating a target parameter configuration page containing different memory magnification settings; and when the target test item is Stream, generating a target parameter configuration page containing first parameter setting and second parameter setting.
Step S13: and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result.
In this embodiment, a corresponding target parameter configuration page is generated based on the target test item, after the target parameter set by the user is acquired, a preset script corresponding to the target test item is called based on the target parameter for testing, and a corresponding test result is obtained. It can be understood that each target parameter configuration page is provided with a test start button, and when the test start button is clicked, the tool background automatically calls a preset script corresponding to the target test item to perform testing based on the acquired target parameters.
Further, the present solution can also be applied to other home-made electronic devices, such as a PC (personal computer); the method can also be applied to other tests which are only run through scripts at present in an extended mode, and more test items can be integrated into one tool to be presented. According to the scheme, the background script is directly called through the installation of the integration tool, the test operation of each test item is not required to be independently deployed, all common performance test tools are directly presented in a graphical mode, the problem that a single script is operated for single test in performance test is solved, convenience and rapidness are achieved, the operation is simple and visual, and the operation flow is simplified.
Thus, the present application provides a performance testing method, comprising: displaying a test item selection page so as to determine a test item selected by a user from the test item selection page as a target test item; generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user; and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result. Therefore, the test method and the test system have the advantages that the test process is simple and visual by concentrating a plurality of test items on one page for selection, the corresponding parameter configuration sub-pages are displayed according to the test items selected by the user on the test item selection page, the selected test items are independently set with parameters for testing, the manual operation behaviors of the user are reduced, the test convenience and the test efficiency are improved, and the performance test operation is simplified.
Referring to fig. 3, the embodiment of the present invention discloses a performance testing method, and the embodiment further describes and optimizes the technical solution with respect to the previous embodiment.
Step S21: and installing an integrated test graphical tool containing a preset number of the test items.
In this embodiment, an integrated test patterning tool including a preset number of the test items is installed. It is understood that the integrated test patterning tool is a tool based on trust server performance testing. And (3) logging in the operating system by a user, and installing an integrated test graphical tool containing a preset number of test items in the system by utilizing the open source characteristic of the operating system based on the mainstream Linux operating system so as to display all the executable test items in a graphical interface mode.
Step S22: and after the integrated test graphical tool is installed, if the integrated test graphical tool is detected to be clicked, displaying the test item selection page so as to determine the test item selected by the user from the test item selection page as the target test item.
In this embodiment, after the integrated test patterning tool including the preset number of test items is installed, after the installation of the integrated test patterning tool is completed, if it is detected that the integrated test patterning tool is clicked, the test item selection page is displayed, so that the test item selected by the user from the test item selection page is determined as the target test item. Specifically, after the installation is completed, when it is detected that a user (i.e., a tester) double-clicks an icon of the integrated test graphical tool, the tool is opened to display the test item selection page, after the user selects one test item from the test item selection page, the test item is determined as a target test item, and a next button is clicked to enter a target parameter configuration page corresponding to the target test item.
Step S23: and generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user.
In this embodiment, the test item selection page is displayed, after a test item selected by a user from the test item selection page is determined as a target test item, a corresponding target parameter configuration page is generated based on the target test item, parameters on the target parameter configuration page are set so as to obtain target parameters set by the user, and then a button for starting a test is clicked. For example, when the target test item is Unixbench, the target parameter configuration page shown in fig. 4 is entered, and at this time, the target parameter configuration page includes three parameter configuration items: single thread, multiple thread, single multiple thread parallel. Unixbench is an open source performance testing tool under Unix (Unix, BSD (Berkeley Software suite), linux) system, and is widely used for testing the performance of Linux system hosts, namely UB. The main test items of Unixbench are: the system comprises system calling, reading and writing, a process, graphical testing, 2D, 3D, pipelines, operation, a C library and the like, wherein the testing result is not only based on a CPU, a memory or a disk, but also depends on hardware, an operating system version and a compiler. And comparing each test result with a reference value to obtain an index value, combining the index values of all test items to form a test score value, wherein the higher the score value is, the better the performance is. Only three modes need to be set in this tool: the test can be completed by single thread, multithreading and single/multithreading.
When the target test item is LTP, the target parameter configuration page shown in fig. 5 is entered, and the target parameter configuration page includes two options of initial test and stress test and a parameter setting frame. Namely, selecting proper parameters from the parameter setting frame to be respectively set in the initial test and the pressure test. The number of the set parameters is not limited, and the parameters can be limited according to actual conditions. It will be appreciated that the LTP test comprises two phases, an initial test and a stress test. The initial test is a necessary condition for starting the test, and comprises that an LTP test suite is successfully operated on hardware and an operating system, the hardware and the operating system are used for reliable operation, a driver script runalltestss.sh attached to the LTP test suite is used for verifying a kernel, the script executes a file system stress test, a hard disk I/O test, a memory management stress test, an IPC stress test, an SCHED (universal time scheduler) test, a command function verification test and a system call function test, and the stress test can verify the robustness of a product when the system is in high use rate. As a supplement to runalltests.sh, a test scenario named ltpstress.sh is specially designed, a large range of kernel components are operated in parallel while network and memory management are used, and a high pressure load is generated on a test system, and a pressure test part mainly executes the following test items: NFS (Network File System) stress test, memory management stress test, file System stress test, math (floating point) test, multithread stress test, hard disk I/O (Input/Output) test, IPC (Inter-Process Communication) test, system call function test, and Network stress test. By the tool, the test can be completed only by selecting an LTP test stage and setting parameters.
When the target test item is IOZONE, the target parameter configuration page shown in fig. 6 is entered, and at this time, the target parameter configuration page includes different memory magnification setting options (for example, 2 times memory, 1 time memory, and 1/2 times memory) and other options for customizing the memory magnification. It is understood that IOZONE is a benchmark tool for a file system, and can test the read/write performance of the file system in different operating systems. The performance of the hard disk in different modes such as Read, write, re-Read, re-write, read backwards, read strained, fread, fwrite, random Read, pread, mmap, aio _ Read, aio _ write and the like can be tested. During testing, attention needs to be paid to the fact that the size of a set test file must be larger than a memory (optimally, the size of the set test file is twice that of the memory), otherwise, the system caches read and write contents, and the numerical value is very unreal. By using the tool, the test can be carried out only by setting the memory parameters.
When the target test item is Stream, enter a target parameter configuration page as shown in fig. 7, and generate the target parameter configuration page including a first parameter setting and a second parameter setting, for example, the first parameter setting is export OMP _ NUM _ THREADS = (), and the second parameter setting is export GOMP _ CPU _ AFFINITY = (). It can be understood that Stream is a set of comprehensive performance testing programs, and is written by two efficient languages, namely, a format Translation language and a C language, so that the Stream testing routine can fully exert the memory capability. The Stream test results in a maximum memory bandwidth that can be continuously run, not a theoretical maximum. Stream mainly has four kinds of array operations, and the performance of the memory bandwidth is tested, which is respectively: copy of array (Copy), scale transform of array (Scale), vector summation of array (Add), composite vector summation of array (Triad). The value of the array adopts double precision, 8 bytes. The tool can be used for testing only by setting two parameters according to actual conditions.
Step S24: and when detecting that a test starting button on the target parameter configuration page is clicked, calling the preset script and the system file corresponding to the target test item based on the target parameter for testing, and obtaining a corresponding test result.
In this embodiment, a button for starting a test is set on a target parameter configuration page corresponding to each target test item, and after a user completes parameter setting on the target parameter configuration page, the button for starting the test is clicked, so that when it is detected that the button for starting the test on the target parameter configuration page is clicked, the preset script and the system file corresponding to the target test item are called based on the target parameter for testing, and the corresponding test result is obtained.
It can be understood that, when the target test item is Unixbench, if a single thread is selected, a value corresponding to the single thread is compared with a preset reference of a current platform to obtain a first index value, a value with a larger comparison result is usually determined as an index value, then the comparison operations are performed on multiple threads and the single/multiple threads in parallel in sequence to obtain a second index value and a third index value, and then the first index value, the second index value and the third index value are added to obtain a final test score value, that is, the test result.
Step S25: and storing the test result to a corresponding area according to a preset path.
In this embodiment, the preset script and the system file corresponding to the target test item are called based on the target parameter to perform a test, and after the corresponding test result is obtained, the test result is stored to the corresponding area according to a preset path. It is to be understood that the preset storage path may be predetermined, or may be storage path information obtained by setting an option of a storage path on each target parameter configuration page.
Therefore, the integrated test graphical tool containing the preset number of test items is installed; after the integrated test graphical tool is installed, if the integrated test graphical tool is clicked, displaying the test item selection page so as to determine the test item selected by the user from the test item selection page as a target test item; generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user; when detecting that a test starting button on the target parameter configuration page is clicked, calling the preset script and the system file corresponding to the target test item based on the target parameter for testing, and obtaining a corresponding test result; and storing the test result to a corresponding area according to a preset path, so that the test convenience and efficiency are improved, and the operation of performance test is simplified.
Referring to fig. 8, the embodiment of the present invention discloses a performance testing method, and the embodiment further describes and optimizes the technical solution with respect to the previous embodiment.
Step S31: and displaying the test item selection page so as to determine the test item selected by the user from the test item selection page as the target test item.
Step S32: and setting a project to be inspected, acquiring project information corresponding to the project to be inspected, storing the project information to a preset area, and generating an inspection project selection page based on the project to be inspected.
In this embodiment, after determining a test item selected by a user from the test item selection page as a target test item, setting an item to be inspected, acquiring item information corresponding to the item to be inspected, storing the item information in a preset area, and generating an inspection item selection page based on the item to be inspected. It can be understood that the item information corresponding to the item to be inspected is used for the subsequent detection operation.
Step S33: and when the target test item is AC or DC or rebot, displaying the check item selection page.
In this embodiment, when the target test item is AC, DC, or rebot, the method enters an inspection item selection page as shown in fig. 9, where the inspection item selection page includes MC info, SDR, MC info, FRU info, memory info, HDD info, PCIE info, CPU info, GPU info, MEM1 info, PSU info, and Network. It can be understood that after the examination item is set, when the target test item is AC, DC or rebot, the examination item selection page is automatically entered after each start to examine and collate the above information. In addition, the AC test needs to be matched with a fatigue machine for use.
Step S34: and acquiring the item to be inspected selected by the user on the inspection item selection page to obtain an item to be inspected of the target, and judging whether the preset area has the item information which is the same as the item to be inspected of the target.
In this embodiment, after the inspection item selection page is displayed, the item to be inspected selected by the user on the inspection item selection page is acquired to obtain the target item to be inspected, and whether the item information identical to the target item to be inspected exists in the preset area is determined. It is understood that the user checks the above information in sequence, and performs a corresponding checking operation after clicking the next button. And if the project information which is the same as the project to be detected of the target does not exist in the preset area, generating error reporting information.
Step S35: and if the project information which is the same as the project to be detected of the target exists in the preset area, executing a step of generating a corresponding target parameter configuration page based on the target test project so as to obtain the target parameter set by the user.
In this embodiment, it is determined whether the item information that is the same as the item to be inspected of the target exists in the preset area, and if the item information that is the same as the item to be inspected of the target exists in the preset area, the step of generating a corresponding target parameter configuration page based on the target test item is executed, so as to obtain the target parameter set by the user. It can be understood that, if the item information identical to the item to be inspected exists in the preset area, the target parameter configuration page shown in fig. 10 is entered for setting, where the target parameter configuration page includes protection time, test times, and a test result storage path.
The scheme is to solve the problems that different test items in a pressure test need different scripts to be realized, the scripts are scattered, a plurality of system files need to be manually changed, the operation is complex, and the efficiency is low.
Step S36: and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result.
For the specific contents of the above steps S31 and S36, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated herein.
Therefore, the test item selection page is displayed, so that the test item selected by the user from the test item selection page is determined as the target test item; setting an item to be inspected, acquiring item information corresponding to the item to be inspected, storing the item information in a preset area, and generating an inspection item selection page based on the item to be inspected; when the target test item is AC or DC or rebot, displaying the inspection item selection page; acquiring the item to be inspected selected by the user on the inspection item selection page to obtain a target item to be inspected, and judging whether the preset area has the item information which is the same as the target item to be inspected; if the project information same as the project to be detected of the target exists in the preset area, executing a step of generating a corresponding target parameter configuration page based on the target test project so as to obtain a target parameter set by the user; and calling a preset script corresponding to the target test item based on the target parameters to test, and obtaining a corresponding test result, so that the test convenience and the test efficiency are improved, and the operation of performance test is simplified.
Referring to fig. 11, the embodiment of the present application also correspondingly discloses a performance testing apparatus, which includes:
the test item determining module 11 is configured to display a test item selection page, so that a test item selected by a user from the test item selection page is determined as a target test item;
a parameter configuration page generating module 12, configured to generate a corresponding target parameter configuration page based on the target test item, so as to obtain a target parameter set by the user;
and the test module 13 is configured to call a preset script corresponding to the target test item based on the target parameter to perform a test, and obtain a corresponding test result.
As can be seen, the present application includes: displaying a test item selection page so as to determine a test item selected by a user from the test item selection page as a target test item; generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user; and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result. Therefore, the test method and the test system have the advantages that the test process is simple and visual by concentrating a plurality of test items on one page for selection, the corresponding parameter configuration sub-pages are displayed according to the test items selected by the user on the test item selection page, the selected test items are independently set with parameters for testing, the manual operation behaviors of the user are reduced, the test convenience and the test efficiency are improved, and the performance test operation is simplified.
In some specific embodiments, the test item determining module 11 specifically includes:
the tool installation unit is used for installing an integrated test graphical tool containing a preset number of test items;
and the page display unit is used for displaying the test item selection page if the integrated test graphical tool is clicked after the integrated test graphical tool is installed, so that the test item selected by the user from the test item selection page is determined as the target test item.
In some specific embodiments, the parameter configuration page generating module 12 specifically includes:
the first page generation unit is used for generating a target parameter configuration page containing single threads, multiple threads and single and multiple threads in parallel when the target test item is Unixbench;
a second page generating unit, configured to generate the target parameter configuration page including an initial test, a stress test, and parameter setting when the target test item is an LTP;
a third page generating unit, configured to generate the target parameter configuration page including different memory magnification settings when the target test item is an IOZONE;
a fourth page generating unit, configured to generate the target parameter configuration page including the first parameter setting and the second parameter setting when the target test item is Stream;
the system comprises an item to be inspected setting unit, a data processing unit and a data processing unit, wherein the item to be inspected setting unit is used for setting an item to be inspected, acquiring item information corresponding to the item to be inspected and storing the item information to a preset area;
the inspection item selection page generating unit is used for generating an inspection item selection page based on the item to be inspected;
an inspection item selection page display unit, configured to display the inspection item selection page when the target test item is AC, DC, or rebot;
the target item to be checked determining unit is used for acquiring the item to be checked selected by the user on the checking item selecting page to obtain a target item to be checked;
a project information judging unit, configured to judge whether the project information that is the same as the target project to be inspected exists in the preset area;
a fifth page generating unit, configured to execute a preset inspection item operation and generate a corresponding target parameter configuration page if the item information that is the same as the target item to be inspected exists in the preset area, so as to obtain a target parameter set by the user; the target parameter configuration page comprises protection time, test times and a test result storage path;
and the error information generating unit is used for generating error information if the project information which is the same as the project to be checked does not exist in the preset area.
In some specific embodiments, the test module 13 specifically includes:
the test unit is used for calling the preset script and the system file corresponding to the target test item based on the target parameter to test when detecting that a test starting button on the target parameter configuration page is clicked, and obtaining a corresponding test result;
and the test result storage unit is used for storing the test result to the corresponding area according to the preset path.
Furthermore, the embodiment of the application also provides electronic equipment. FIG. 12 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and nothing in the figure should be taken as a limitation on the scope of use of the present application.
Fig. 12 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein, the memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the performance testing method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, netware, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the performance testing method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, an embodiment of the present application further discloses a storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the performance testing method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is provided for a performance testing method, apparatus, device and storage medium, and the principle and implementation of the present invention are described herein by applying specific examples, and the description of the above embodiments is only used to help understanding the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of performance testing, comprising:
displaying a test item selection page so as to determine a test item selected by a user from the test item selection page as a target test item;
generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameters set by the user;
and calling a preset script corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result.
2. The performance testing method of claim 1, wherein before the presenting the test item selection page, further comprising:
installing an integrated test graphical tool containing a preset number of the test items;
correspondingly, the display test item selection page includes:
and after the integrated test graphical tool is installed, if the integrated test graphical tool is detected to be clicked, displaying the test item selection page.
3. The performance testing method according to claim 1, wherein the generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameter set by the user comprises:
when the target test item is Unixbench, generating a target parameter configuration page comprising a single thread, multiple threads and a single and multiple thread parallel;
when the target test item is LTP, generating a target parameter configuration page containing initial test, pressure test and parameter setting;
when the target test item is an IOZONE, generating a target parameter configuration page containing different memory magnification settings;
and when the target test item is Stream, generating the target parameter configuration page containing the first parameter setting and the second parameter setting.
4. The performance testing method according to claim 1, wherein the generating a corresponding target parameter configuration page based on the target test item so as to obtain the target parameter set by the user comprises:
when the target test item is AC or DC or Reboot, executing preset inspection item operation and generating a corresponding target parameter configuration page so as to obtain a target parameter set by the user; the target parameter configuration page comprises protection time, test times and a test result storage path.
5. The performance testing method according to claim 4, wherein before the executing the preset check item operation and generating the corresponding target parameter configuration page, the method further comprises:
setting an item to be inspected, acquiring item information corresponding to the item to be inspected, and storing the item information in a preset area;
generating an inspection item selection page based on the item to be inspected;
correspondingly, when the target test item is AC or DC or rebot, executing a preset check item operation, including:
when the target test item is AC or DC or rebot, displaying the inspection item selection page;
acquiring the item to be inspected selected by the user on the inspection item selection page to obtain a target item to be inspected;
and judging whether the project information identical to the project to be detected of the target exists in the preset area.
6. The performance testing method according to claim 5, wherein after determining whether the item information identical to the item to be inspected exists in the preset area, the method further comprises:
if the project information which is the same as the project to be detected of the target exists in the preset area, executing a step of generating a corresponding target parameter configuration page based on the target test project so as to obtain the target parameter set by the user;
and if the project information which is the same as the project to be detected of the target does not exist in the preset area, generating error reporting information.
7. The performance testing method according to any one of claims 1 to 6, wherein the invoking a preset script corresponding to the target test item based on the target parameter for testing and obtaining a corresponding test result comprises:
when it is detected that a test starting button on the target parameter configuration page is clicked, calling the preset script and the system file corresponding to the target test item based on the target parameter to test, and obtaining a corresponding test result;
and storing the test result to a corresponding area according to a preset path.
8. A performance testing device, comprising:
the test item determining module is used for displaying a test item selection page so as to determine the test item selected by the user from the test item selection page as a target test item;
a parameter configuration page generating module, configured to generate a corresponding target parameter configuration page based on the target test item, so as to obtain a target parameter set by the user;
and the test module is used for calling a preset script corresponding to the target test item based on the target parameter to test and obtaining a corresponding test result.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the performance testing method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the performance testing method of any of claims 1 to 7.
CN202211164063.1A 2022-09-23 2022-09-23 Performance test method, device, equipment and storage medium Pending CN115480970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211164063.1A CN115480970A (en) 2022-09-23 2022-09-23 Performance test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211164063.1A CN115480970A (en) 2022-09-23 2022-09-23 Performance test method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115480970A true CN115480970A (en) 2022-12-16

Family

ID=84393922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211164063.1A Pending CN115480970A (en) 2022-09-23 2022-09-23 Performance test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115480970A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116593570A (en) * 2023-06-15 2023-08-15 瑞莱谱(杭州)医疗科技有限公司 Trace element analyzer detection limit performance test method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116593570A (en) * 2023-06-15 2023-08-15 瑞莱谱(杭州)医疗科技有限公司 Trace element analyzer detection limit performance test method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10552301B2 (en) Completing functional testing
CN110554965B (en) Automated fuzz testing method, related equipment and computer readable storage medium
US9026998B2 (en) Selecting relevant tests to quickly assess code stability
US20070220370A1 (en) Mechanism to generate functional test cases for service oriented architecture (SOA) applications from errors encountered in development and runtime
US20070079288A1 (en) System and method for capturing filtered execution history of executable program code
US20130091490A1 (en) Method to automatically discover whether new code is covered by tests
CN111427765B (en) Method and system for automatically starting interface performance test realized based on jmeter
CN108111364B (en) Service system testing method and device
CN108572895B (en) Stability test method for automatically checking software and hardware configuration under Linux
US9842044B2 (en) Commit sensitive tests
CN107038120A (en) A kind of method for testing software and equipment
US20080010536A1 (en) Breakpoints with Separate Conditions
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN115480970A (en) Performance test method, device, equipment and storage medium
CN111966587A (en) Data acquisition method, device and equipment
US20230101154A1 (en) Resumable instruction generation
CN116149901A (en) Data verification test method and device and computer readable storage medium
CN112463574A (en) Software testing method, device, system, equipment and storage medium
US9860155B1 (en) Code coverage and data analysis
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
US8793659B2 (en) Phase-based testing of operating systems
CN113986749A (en) Display method and display device of front-end test information and electronic equipment
CN113220586A (en) Automatic interface pressure test execution method, device and system
CN113835999A (en) Workflow-based testing method for distributed heterogeneous processing system
CN111694729A (en) Application testing method and device, electronic equipment and computer readable medium

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