Automatic generation method and equipment of performance test case, medium and product
By obtaining performance test case templates and data, using transformation tools to parse and fill field information, and generate performance test cases, the problem of low efficiency in writing performance test cases in the existing technology is solved, and efficient performance testing is achieved.
Patent Information
- Application Number
- CN202411418206.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the writing efficiency of performance test cases is low, the human resources cost is high, and the testing process takes a long time.
By obtaining the performance test case template and performance test result data, use the conversion tool to parse the template, obtain the basic field information, and fill in the corresponding field values into the template to generate the performance test case.
Improves the efficiency of writing performance test cases, reduces the consumption of human resources, and improves the efficiency of performance tests.
Smart Images

Figure CN119512930A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, medium and product for automatically generating performance test cases. Background Art
[0002] In recent years, with the rapid development of Internet technology, the field of autonomous driving has developed rapidly. For the autonomous driving industry, because there are many tests to be conducted and they are relatively complex, the testing process takes a long time. In daily testing work, for performance testing, a lot of manpower and a lot of time are required to write corresponding performance test cases, and the writing of different performance test cases for multiple scenarios requires manual rewriting of performance test cases in the corresponding format, and for different test cases and cases, the final performance test case format needs to be adjusted according to the required format. The efficiency of completing performance testing in this way is very low. Therefore, how to improve the efficiency of writing performance test cases is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0003] One purpose of the present application is to provide a method, device, medium and product for automatically generating performance test cases, at least to solve the problems of low efficiency in writing performance test cases, high human resource costs, and long testing processes. The present application uses a conversion tool to obtain a performance test case template and obtain performance test result data; wherein the performance test case template includes a Word form or an Excel form; the performance test case template is parsed by a conversion tool to obtain basic field information of the performance test case template; the field value corresponding to the basic field information is read from the performance test result data, and the field value is filled into the performance test case template to obtain a performance test case. By adopting this solution, a performance test case can be generated based on a performance test case template through a conversion tool, which improves the writing efficiency of performance test cases, reduces the consumption of human resources for performance testing, and also improves the efficiency of performance testing.
[0004] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0005] In a first aspect, some embodiments of the present application further provide a method for automatically generating performance test cases, including:
[0006] Obtaining a performance test case template and obtaining performance test result data; wherein the performance test case template may be in Word or Excel format;
[0007] Parsing the performance test case template by a conversion tool to obtain basic field information of the performance test case template;
[0008] The field value corresponding to the basic field information is read from the performance test result data, and the field value is filled into the performance test case template to obtain a performance test case.
[0009] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.
[0010] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.
[0011] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.
[0012] Compared with the related art, in the solution provided by the embodiment of the present application, a performance test case template is obtained, and performance test result data is obtained; wherein the performance test case template includes a Word form or an Excel form; the performance test case template is parsed by a conversion tool to obtain basic field information of the performance test case template; the field value corresponding to the basic field information is read from the performance test result data, and the field value is filled into the performance test case template to obtain a performance test case. By adopting this solution, a performance test case can be generated based on a performance test case template through a conversion tool, which improves the writing efficiency of performance test cases, reduces the consumption of human resources for performance testing, and also improves the efficiency of performance testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0014] Figure 1 An exemplary flow chart of a method for automatically generating performance test cases according to some embodiments of the present application;
[0015] Figure 2An exemplary diagram of a Word-formatted performance test case template provided according to some embodiments of the present application;
[0016] Figure 3 An exemplary diagram of an Excel performance test case template provided according to some embodiments of the present application;
[0017] Figure 4 An exemplary diagram after a performance test case template is filled in according to some embodiments of the present application;
[0018] Figure 5 An exemplary diagram after a performance test case template is filled in according to some embodiments of the present application;
[0019] Figure 6 An exemplary flow chart of a method for automatically generating performance test cases according to some embodiments of the present application;
[0020] Figure 7 An exemplary structural diagram of the electronic device is disclosed. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] First embodiment
[0023] The first embodiment of the present application relates to a method for automatically generating performance test cases. Figure 1 As shown, the method may include the following steps:
[0024] Step S101, obtaining a performance test case template and obtaining performance test result data; wherein the performance test case template is in a Word format or an Excel format;
[0025] The performance test case template can be used to generate one or more performance test cases. The template has fixed information and information to be filled in. After the information to be filled in is completed, the performance test case can be obtained.
[0026] Performance test result data may be result data obtained after conducting one or more performance tests, such as average transaction response time, maximum transaction response time, average number of transactions per second (TPS), transaction success rate, CPU utilization, memory utilization, and disk IO status.
[0027] In this solution, the performance test case template may be in Word or Excel format. Figure 2 An exemplary diagram of a Word-formatted performance test case template provided according to some embodiments of the present application; Figure 3 FIG. 1 is an exemplary diagram of an Excel performance test case template provided according to some embodiments of the present application. Figure 2 and Figure 3 As shown, the performance test case template contains basic field information and leaves blank spaces. After filling the blank spaces with corresponding values, a test case can be obtained. Figure 4 An exemplary diagram after a performance test case template is filled in according to some embodiments of the present application; Figure 5 FIG. 1 is an exemplary diagram of a performance test case template filled in according to some embodiments of the present application. Figure 4 and Figure 5 As shown, after filling in the corresponding field values, the corresponding performance test cases are obtained.
[0028] Step S102, parsing the performance test case template by a conversion tool to obtain basic field information of the performance test case template;
[0029] The conversion tool may be a tool for generating performance test cases, wherein a selection page or window may be provided for the staff to select or switch the required performance test case template. At the same time, the conversion tool may also parse the performance test case template, thereby identifying the basic field information required therein.
[0030] In a preferred embodiment, the method further comprises:
[0031] In response to a request to replace the performance test case template, the replaced performance test case template is provided to a conversion tool to generate a replaced performance test case based on the conversion tool.
[0032] Among them, in actual use, if other performance test cases need to be generated, the current performance test case template needs to be stopped during use and switched to other performance test case templates. In this solution, the staff can achieve replacement by stopping the generation operation and selecting the replacement performance test case template, so that the automatic generation of multiple performance test cases can be achieved through the conversion tool. In addition, the switching operation can also be automatically completed according to the number or time of the performance test cases generated in advance.
[0033] Through such a setting, this solution can realize the generation of various performance test cases through the conversion tool, improve the writing efficiency of performance test cases, and also improve the testing efficiency.
[0034] In a preferred solution, before obtaining the performance test case template, the method further includes:
[0035] Create a performance test case template; wherein the basic field information of the performance test case template includes one or more input fields and one or more result fields, and the result field is determined according to the user's definition operation.
[0036] Among them, the creation of a performance test case template can be based on the performance test to be performed as needed, determine the field information that the performance test is concerned about, and then combine one or more field information to obtain the basic field information of the current performance test case template. It should be noted that the basic field information of the performance test case template may include one or more input fields, and one or more result fields, and the result field is determined according to the user's definition operation. The final output format in the performance test case template can be defined arbitrarily, and can include multiple result fields and the template format can be in any form, such as multiple merged cell forms.
[0037] This scheme is set up in this way, which can reduce the overall time required to rewrite performance test cases when performance test cases in different formats are required, and can meet the needs of generating performance test cases in different formats by only replacing the template.
[0038] Among them, according to the basic information required by some daily performance test cases, corresponding test templates are made. Format settings and some cell merging can be performed.
[0039] Step S103, reading the field value corresponding to the basic field information from the performance test result data, and filling the field value into the performance test case template to obtain a performance test case.
[0040] In this solution, after obtaining the basic field information, all fields in the performance test result data can be identified, and the field values corresponding to the basic field information can be read. Here, the values of various fields of a performance test are read in a batch, so that the field values corresponding to each basic field information in a performance test can be obtained.
[0041] After the corresponding field value is identified, it can be filled into the performance test case template to obtain a performance test case.
[0042] The solution provided in this embodiment is to obtain a performance test case template and performance test result data; wherein the performance test case template is in Word or Excel format; the performance test case template is parsed by a conversion tool to obtain basic field information of the performance test case template; the field value corresponding to the basic field information is read from the performance test result data, and the field value is filled into the performance test case template to obtain a performance test case. By adopting this solution, a performance test case can be generated based on a performance test case template through a conversion tool, thereby improving the efficiency of writing performance test cases, reducing the consumption of human resources for performance testing, and also improving the efficiency of performance testing.
[0043] In a preferred solution, if the performance test case template is in Word format, parsing the performance test case template by a conversion tool includes:
[0044] The performance test case template is parsed by the Python Docx library of the conversion tool.
[0045] In a preferred solution, if the performance test case template is in Excel format, parsing the performance test case template by a conversion tool includes:
[0046] The performance test case template is parsed by the Python Openpyx l library of the conversion tool.
[0047] Among them, the template and prepared data are imported into the device tool. If the template is in Excel format, Python's openpyxl is used to parse the data in the template and the prepared Excel performance data. Then, the field values corresponding to each row of the prepared performance data are filled in the parsed template. Each performance test case generates an Excel page.
[0048] If the template is in Word format, the template is parsed through Python's docx library, and openpyx l parses the prepared Excel performance data. Then, the field values corresponding to each row of the prepared performance data are filled in the Word format template. One piece of data corresponds to a table, and all performance test cases are generated into a Word file in the form of multiple tables.
[0049] This solution can quickly generate performance test cases in various formats in daily testing work through performance test case templates and automated conversion, and can generate performance test cases for multiple scenarios based on one test case template, thereby improving the overall testing efficiency and greatly reducing human resource costs.
[0050] In a preferred solution, before reading the field value corresponding to the basic field information from the performance test result data, the method further includes:
[0051] The performance test result data is sorted by a conversion tool to obtain Excel performance data; wherein the first line of the Excel performance data is the names of all fields, and each line of data below represents the result data of a performance test.
[0052] The performance test result data may have the following fields, including the use case name, use case number, use case description, preconditions, use case steps, and test results. The test results also include specific values of some performance indicators under different concurrent user numbers, such as average transaction response time, maximum transaction response time, average number of transactions per second (TPS), transaction success rate, CPU utilization, memory utilization, disk IO status, etc.
[0053] Then the prepared performance test data contains the values of all the basic field information required in the template. The data is prepared in the form of Excel to obtain the prepared Excel performance data. The first line is the names of all the fields required in the template, and each line of data below represents a performance test case.
[0054] In a preferred solution, reading a field value corresponding to the basic field information from the performance test result data, and filling the field value into the performance test case template to obtain a performance test case, includes:
[0055] Read the associated field information corresponding to the basic field information from the first row of the Excel performance data, and fill in the field value corresponding to the associated field information in each row of performance test result data in the Excel performance data into the performance test case template to obtain a performance test case.
[0056] Among them, the associated field information corresponding to the basic field information can be read out line by line and added to the performance test case template to obtain a performance test case.
[0057] This solution is set up in such a way that performance test cases can be generated quickly and accurately. It is simple and efficient, and has a very low error rate.
[0058] Figure 6 The following is an exemplary flow chart of a method for automatically generating performance test cases according to some embodiments of the present application. Figure 6 As shown, first prepare a performance test case template. The template can be in Word format or Excel format. Then prepare an Excel file and write all the performance test result data. Open the invention device tool, import the prepared performance test case template and all the data of the prepared performance test result data, and then automatically generate the performance test case according to the tool, that is, according to the format of the imported template, parse all the prepared performance test result data, and then fill the required data into the performance test case template, and generate all the test cases in the form of the template.
[0059] The calculation logic of the overall device tool is as follows:
[0060] The Word or Excel template of the prepared performance test case can be in any format. Generally, the performance test case will have the following field information, mainly including the case name, case number, case description, preconditions, case steps, and test results. The test results also include the specific values of some performance indicators under different concurrent user numbers, such as the average response time of the transaction, the maximum response time of the transaction, the average number of transactions processed per second (TPS), the transaction success rate, the CPU utilization, the memory utilization, the disk IO status, etc. According to the basic information required by some daily performance test cases, the corresponding test template is made. The format can be set and some cells can be merged. Then the prepared performance test data contains the values of all the basic field information required in the template, and the data is prepared in the form of Excel to obtain the prepared Excel performance data. The first line is the name of all the fields required in the template, and each line of data below represents a performance test case. Then import the template and prepared data into the device tool. If the template is in Excel format, use Python's openpyxl to parse the data in the template and the prepared Excel performance data. Then, fill in the parsed template with the field values corresponding to each row of the prepared performance data. Each performance test case generates an Excel page.
[0061] If the template is in Word format, the template is parsed through Python's docx library, and openpyx l parses the prepared Excel performance data. Then, the field values corresponding to each row of the prepared performance data are filled in the Word format template. One piece of data corresponds to a table, and all performance test cases are generated into a Word file in the form of multiple tables.
[0062] This performance test case template and automated conversion method can quickly generate performance test cases in various formats in daily testing work, and can generate performance test cases for multiple scenarios based on one test case template, thereby improving the overall testing efficiency and greatly reducing human resource costs.
[0063] The solution provided in the present application can flexibly realize the rapid generation of performance test cases in various formats in daily testing work through such performance test case templates and automated conversion, and can generate performance test cases for various scenarios based on one test case template, thereby greatly improving the overall testing efficiency and reducing human resource costs.
[0064] The advantages of the present invention compared with the prior art are:
[0065] It is possible to generate performance test cases in different template formats from a set of performance test data, including templates in word and excel formats, and the final output format in the template can be arbitrarily defined, and can contain multiple result fields and the template format can be in any format, such as multiple merged cell formats. It can reduce the overall time required to rewrite performance test cases when performance test cases in different formats are required. And it is possible to generate performance test cases in different formats by simply replacing the template.
[0066] It can automatically generate multiple performance test cases based on a custom performance test case template and a performance test result data according to the template, generate a template performance test case for each piece of data, and finally generate the required performance test case results. It can reduce the time of manually adjusting the performance test case format.
[0067] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.
[0068] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Figure 7 An exemplary structural diagram of the electronic device is disclosed. Figure 7 As shown, the electronic device includes: one or more processors 501, a memory 502, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0069] The electronic device may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0070] The input device 503 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 504 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0071] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0072] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0073] The memory 502 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 501 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 502, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.
[0074] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0075] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0076] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0077] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).
[0078] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0079] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive so lid state di sk (SSD)), etc.
[0080] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.
[0082] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.
Claims
1. A method for automatically generating performance test cases, characterized in that: include: Obtaining a performance test case template and obtaining performance test result data; wherein the performance test case template may be in Word or Excel format; Parsing the performance test case template by a conversion tool to obtain basic field information of the performance test case template; The field value corresponding to the basic field information is read from the performance test result data, and the field value is filled into the performance test case template to obtain a performance test case.
2. The method according to claim 1, characterized in that If the performance test case template is in Word format, the performance test case template is parsed by a conversion tool, including: The performance test case template is parsed by the Python Docx library of the conversion tool.
3. The method according to claim 1, characterized in that If the performance test case template is in Excel format, the performance test case template is parsed by a conversion tool, including: The performance test case template is parsed by the Python Openpyx l library of the conversion tool.
4. The method according to claim 1, characterized in that Before reading the field value corresponding to the basic field information from the performance test result data, the method further includes: The performance test result data is sorted by a conversion tool to obtain Excel performance data; wherein the first line of the Excel performance data is the names of all fields, and each line of data below represents the result data of a performance test.
5. The method according to claim 4, characterized in that Reading a field value corresponding to the basic field information from the performance test result data, and filling the field value into the performance test case template to obtain a performance test case, including: Read the associated field information corresponding to the basic field information from the first row of the Excel performance data, and fill in the field value corresponding to the associated field information in each row of performance test result data in the Excel performance data into the performance test case template to obtain a performance test case.
6. The method according to claim 1, characterized in that Before obtaining the performance test case template, the method further includes: Create a performance test case template; wherein the basic field information of the performance test case template includes one or more input fields and one or more result fields, and the result field is determined according to the user's definition operation.
7. The method according to claim 1, characterized in that The method further comprises: In response to a request to replace the performance test case template, the replaced performance test case template is provided to a conversion tool to generate a replaced performance test case based on the conversion tool.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 7.
9. A computer readable medium having a computer program / instructions stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.