CN117033218A - Method, device, equipment and medium for generating motor product test report - Google Patents

Method, device, equipment and medium for generating motor product test report Download PDF

Info

Publication number
CN117033218A
CN117033218A CN202311015060.6A CN202311015060A CN117033218A CN 117033218 A CN117033218 A CN 117033218A CN 202311015060 A CN202311015060 A CN 202311015060A CN 117033218 A CN117033218 A CN 117033218A
Authority
CN
China
Prior art keywords
test
report
generating
sub
motor product
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
CN202311015060.6A
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.)
Shanghai Valeo Automotive Electrical Systems Co Ltd
Original Assignee
Shanghai Valeo Automotive Electrical Systems 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 Shanghai Valeo Automotive Electrical Systems Co Ltd filed Critical Shanghai Valeo Automotive Electrical Systems Co Ltd
Priority to CN202311015060.6A priority Critical patent/CN117033218A/en
Publication of CN117033218A publication Critical patent/CN117033218A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for generating a motor product test report. Comprising the following steps: receiving a report demand of a user for a motor product, wherein the report demand comprises a plurality of test cases and report items corresponding to the test cases; extracting a target functional component matched with the test case from a report generating functional library according to the report item; generating a subtest report corresponding to the test case according to the target functional component; and generating a total test report of the needle motor product according to the obtained sub-test report. By receiving the report requirements containing a plurality of test cases and determining target functional components matched with each test case to generate each sub-test report, as each sub-test report corresponds to one functional test, the total test report generated according to each sub-test report can simultaneously cover a plurality of functional test results of the motor product, so that the user can intuitively acquire each functional test result of the motor product while the test duration is reduced.

Description

Method, device, equipment and medium for generating motor product test report
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a test report of a motor product.
Background
At present, in the field of motor product production, in order to ensure the qualification rate of motor products, the motor products are usually required to be tested, and functions which do not pass through are changed and repaired according to test results.
However, at present, when testing is performed on a motor product, the generated test report usually only displays the test result for a specific function, and when a user needs to know other functions of the motor product, the user needs to perform an independent test again, so that the test report of the specific function at present can only be checked in each test process, the test duration is prolonged, and the user is inconvenient to intuitively acquire the test results of various functions of the motor product.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for generating a motor product test report, which are used for efficiently and accurately acquiring the motor product test report.
According to an aspect of the present application, there is provided a method for generating a test report of a motor product, including: receiving a report demand of a user for a motor product, wherein the report demand comprises a plurality of test cases and report items corresponding to the test cases;
extracting a target functional component matched with the test case from a report generating functional library according to the report item;
generating subtest reports corresponding to the test cases according to the target functional components, wherein each subtest report corresponds to different functions of the motor product respectively;
and generating a total test report for the motor product according to the obtained sub-test report.
According to another aspect of the present application, there is provided a motor product test report generating apparatus, including: the system comprises a report demand receiving module, a report demand processing module and a report processing module, wherein the report demand receiving module is used for receiving the report demand of a user for a motor product, and the report demand comprises a plurality of test cases and report items corresponding to the test cases;
the target function component extraction module is used for extracting a target function component matched with the test case from the report generation function library according to the report item;
the subtest report generation module is used for generating subtest reports corresponding to the test cases according to the target functional component, wherein each subtest report corresponds to different functions of the motor product;
and the total test report generating module is used for generating a total test report aiming at the motor product according to the obtained sub-test report.
According to another aspect of the present application, there is provided a computer apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of generating a motor product test report according to any one of the embodiments of the present application.
According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method for generating a motor product test report according to any one of the embodiments of the present application.
According to the technical scheme, the report requirements comprising a plurality of test cases are received, the target functional components matched with the test cases are determined to generate the sub-test reports, and each sub-test report corresponds to one functional test, so that the total test report generated according to each sub-test report can cover a plurality of functional test results of the motor product at the same time, the test duration is reduced, and a user can intuitively acquire all functional test results of the motor product.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for generating a test report of a motor product according to a first embodiment of the present application;
fig. 2 is a flowchart of a method for generating a test report of a motor product according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for generating a test report of a motor product according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, "comprises," "comprising," and "having" and any variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or device.
Example 1
Fig. 1 is a flowchart of a method for generating a test report of a motor product according to an embodiment of the present application, where the method may be performed by a device for generating a test report of a motor product, and the device for generating a test report of a motor product may be implemented in hardware and/or software, and the device for generating a test report of a motor product may be integrally configured in an electronic device. As shown in fig. 1, the method includes:
step S101, receiving a report demand of a user for a motor product.
Optionally, receiving a report demand from a user for the motor product includes: when a test request of a user is received, a requirement filling interface is displayed, wherein the requirement filling interface comprises test cases corresponding to all functions of loading motor products; receiving a test case selected by a user on a requirement filling interface, and receiving report items filled by the user aiming at the selected test case; generating report requirements according to the test cases selected by the user and the filled report items.
Specifically, when the user needs to check the report of the motor product a, the request filling interface may be sent to the terminal, and the request filling interface includes test cases corresponding to each function of loading the motor product, for example, there are multiple functions for the motor product a, namely, function a, function b and function c, and the test case 1 corresponding to the function a, the test case 2 corresponding to the function b, and the test case 3 corresponding to the function c, and the request filling interface includes a selection key for each test case. In addition, after determining the test case selected by the user, the user can fill out a report item in a corresponding position for each test case, wherein the report item refers to a specific parameter type which the user wants to view in a corresponding subtest report according to the acquired test data after the test case tests the function designated by the motor product A, so that the report requirement is generated according to the test case selected by the user and the filled report item. For example, among the reporting requirements are: test case 1, report item-voltage change corresponding to test case 1; test case 2, report item-current change corresponding to test case 2. Therefore, the report requirement includes a plurality of test cases and report items corresponding to the respective test cases, and of course, the present embodiment is merely illustrative, and the specific content included in the report requirement is not limited.
Step S102, extracting target function components matched with the test cases from the report generating function library according to the report items.
Optionally, extracting the target function component matched with the test case from the report generating function library according to the report item includes: acquiring a function component list through a control system, wherein the function component list comprises the corresponding relation between a report item and a function component; acquiring the name of a target functional component according to the report item query functional component list; and extracting the target functional component matched with the test case from the report generating function library according to the name of the target functional component.
It should be noted that, the apparatus of this embodiment includes a control system and an execution unit connected to the control system, so after receiving a report requirement of a user for a motor product, a function component list is obtained by the control system, where a corresponding relationship between a report item and a function component is included in the function component list, and a logical judgment manner adopted for the report item is included in a function component of a specified type, so that a name m of a target function component can be obtained according to the report item, for example, a report item-voltage change query function component list corresponding to test case 1, and since each function component is already stored in a report generation function library in advance, after obtaining the name of the target function component, the target function component m matched with test case 1 can be extracted from the report generation function library according to the name.
Step S103, generating a subtest report corresponding to the test case according to the target functional component.
Optionally, generating a subtest report corresponding to the test case according to the target functional component includes: generating test data aiming at a specified function by running a test case; and processing the test data through the execution component according to the target functional component to obtain a subtest report corresponding to the test case, wherein the execution component is connected with the control system.
Specifically, in this embodiment, after determining the target functional component corresponding to each test case, for example, the target functional component m matched by the test case 1 and the target functional component n matched by the test case 2, two test cases may be sequentially run in this embodiment, so that test data for the motor X function is generated by running the test case 1, and the execution unit processes the obtained test data according to the target functional component m, so as to obtain a subtest report 01 corresponding to the test case 1, and the target functional component m compares a value to be determined with a standard value during execution, so as to give a determination result, and also obtain a test result, a reason that the test fails, and meanwhile, obtain relevant information such as a signal drawing of a voltage change, an execution time of the test case, a function name X of the motor product, and a test flow. After the test case 1 runs and acquires the test data about the motor X function, the test case 2 runs and acquires the test data about the motor Y function, and the corresponding execution component processes the test data about the motor Y function according to the target functional component n to acquire the subtest report 02 corresponding to the test case 2. In this embodiment, only one test case is matched with one target function component, but the specific number of target function components matched by each test case is not limited.
The obtained sub-test reports in this embodiment correspond to different functions of the motor product, for example, the obtained sub-test report 01 corresponds to an X function of the motor product, and the sub-test report 02 corresponds to a Y function of the motor product, for example, the X function may be an operation function of the motor product, the Y function may be a power consumption function of the motor product, which is of course only illustrated in this embodiment, but not limited to specific functions corresponding to the sub-test reports, so long as the sub-test reports correspond to different functions respectively, all of which are within the protection scope of the present application, and are not limited in this embodiment, so that different test cases may be adopted for different functions of the motor product to operate sequentially in this embodiment, thereby improving the test efficiency of the motor product.
Step S104, generating a total test report for the motor product according to the obtained sub-test report.
Optionally, generating a total test report for the motor product according to the obtained sub-test report includes: counting according to each sub-test report to obtain the number of sub-test reports, the number of sub-test reports passing through the test, the number of sub-test reports failing to test and the test passing rate, and determining statistical information according to the number of sub-test reports passing through the test, the number of sub-test reports failing to test and the test passing rate; determining the execution time and period of the motor product test according to the execution time of the test case of each sub-test report, and determining the test basic information according to the execution time and period of the motor product test; constructing a subtest report catalog according to the names of the subtest reports, and arranging the subtest reports according to the names to obtain a test report file; and constructing a total test report according to the statistical information, the test basic information, the test report catalog and the test report file.
Specifically, in this embodiment, after each sub-test report is obtained, all the sub-test reports are summarized to obtain a total test report, and when the total test report is obtained, statistics is performed on all the sub-test reports, on the one hand, the number of the obtained sub-test reports is counted, for example, 10 sub-test reports are counted; on the other hand, the test passing rate is obtained according to the test results in each sub-test report, for example, if two of the 10 sub-test reports contain failed test results and 8 of the 10 sub-test reports contain failed test results, the test passing rate is obtained to be 80%, so that the number of sub-test reports 10, the number of sub-test reports 8, the number of sub-test reports 2, and the test passing rate 80% are included in the statistical information. In addition, in this embodiment, the test execution time and period of the motor product are also obtained according to the test case execution time reported by each sub-test, for example, since each test case is sequentially run, in this embodiment, the test execution time is obtained according to the earliest test execution time and the latest test execution time. And in this embodiment, the period between the latest execution test time and the earliest execution test time is taken as the period of the motor product test. In this embodiment, a test report catalog is further constructed according to the names of the obtained sub-test reports, and then the sub-test reports are arranged according to the names to obtain a test report file.
After the information is collected and acquired according to each sub-test report file, a total test report template is acquired, wherein the total test report template comprises statistical information, test basic information, a test report catalog and display plates specified by the test report file, and specific display modes of different plates. For example, statistical information may be presented in a chart, test basic information may be presented in a table, and subtest report directories and subtest report files may be presented in a document. Of course, the present embodiment is merely illustrative, and the specific display modes of the respective panels are not limited.
According to the method and the device, the report requirements comprising a plurality of test cases are received, the target functional components matched with the test cases are determined to generate the sub-test reports, and each sub-test report corresponds to one function respectively, so that the total test report generated according to each sub-test report can cover a plurality of functional test results of the motor product at the same time, and therefore a user can intuitively acquire all functional test results of the motor product while the test duration is reduced.
Example two
Fig. 2 is a flowchart of a method for generating a test report of a motor product according to a second embodiment of the present application, where after generating a total test report for the motor product according to the obtained sub-test report, the method further includes displaying the specified sub-test report according to a user requirement. As shown in fig. 2, the method includes:
step S201, receiving a report demand of a user for a motor product.
Optionally, receiving a report demand from a user for the motor product includes: when a test request of a user is received, a requirement filling interface is displayed, wherein the requirement filling interface comprises test cases corresponding to all functions of loading motor products; receiving a test case selected by a user on a requirement filling interface, and receiving report items filled by the user aiming at the selected test case; generating report requirements according to the test cases selected by the user and the filled report items.
Step S202, extracting target function components matched with the test cases from the report generating function library according to the report items.
Optionally, extracting the target function component matched with the test case from the report generating function library according to the report item includes: acquiring a function component list through a control system, wherein the function component list comprises the corresponding relation between a report item and a function component; acquiring the name of a target functional component according to the report item query functional component list; and extracting the target functional component matched with the test case from the report generating function library according to the name of the target functional component.
Step S203, generating a subtest report corresponding to the test case according to the target functional component.
Optionally, generating a subtest report corresponding to the test case according to the target functional component includes: generating test data aiming at a specified function by running a test case; and processing the test data through the execution component according to the target functional component to obtain a subtest report corresponding to the test case, wherein the execution component is connected with the control system.
Step S204, generating a total test report for the motor product according to the obtained sub-test report.
Optionally, generating a total test report for the motor product according to the obtained sub-test report includes: counting according to each sub-test report to obtain the number of sub-test reports, the number of sub-test reports passing through the test, the number of sub-test reports failing to test and the test passing rate, and determining statistical information according to the number of sub-test reports passing through the test, the number of sub-test reports failing to test and the test passing rate; determining the execution time and period of the motor product test according to the execution time of the test case of each sub-test report, and determining the test basic information according to the execution time and period of the motor product test; constructing a subtest report catalog according to the names of the subtest reports, and arranging the subtest reports according to the names to obtain a test report file; and constructing a total test report according to the statistical information, the test basic information, the test report catalog and the test report file.
Step S205, the total test report is displayed, and when a selection instruction of a user for the designated number in the test report catalog is received, the subtest report corresponding to the designated number is displayed.
After the total test report is displayed on the man-machine interface, for example, only the names of the test case reports are displayed, but the specific contents of the sub-test reports are not displayed, and the names of the sub-test reports are contained in the catalog, so that the corresponding sub-test reports can be displayed in a clicking manner.
For example, when receiving a selection instruction of a user for a name a in a catalog, the subtest report 001 corresponding to the name a is displayed, so that in the total test report, the user can intuitively acquire statistical information of each subtest report, and can expand the subtest report nested in the total test report according to requirements, thereby facilitating the user to intuitively and efficiently acquire test results of motor products.
According to the method and the device, the report requirements comprising a plurality of test cases are received, the target functional components matched with the test cases are determined to generate the sub-test reports, and each sub-test report corresponds to one function respectively, so that the total test report generated according to each sub-test report can cover a plurality of functional test results of the motor product at the same time, and therefore a user can intuitively acquire all functional test results of the motor product while the test duration is reduced.
Example III
Fig. 3 is a schematic structural diagram of a device for generating a test report of a motor product according to a third embodiment of the present application. As shown in fig. 3, the apparatus includes: a report need receiving module 310, a target functional component extracting module 320, a subtest report generating module 330, and a total test report generating module 340.
The report requirement receiving module 310 is configured to receive a report requirement of a user for a motor product, where the report requirement includes a plurality of test cases and report items corresponding to the test cases;
a target function component extracting module 320, configured to extract a target function component matching the test case from the report generating function library according to the report item;
the subtest report generating module 330 is configured to generate subtest reports corresponding to the test cases according to the target functional component, where each subtest report corresponds to a different function of the motor product;
the total test report generating module 340 is configured to generate a total test report for the motor product according to the obtained sub-test report.
Optionally, the report requirement receiving module 310 is configured to display a requirement filling interface when receiving a test request of a user, where the requirement filling interface includes test cases corresponding to each function of loading a motor product;
receiving a test case selected by a user on a requirement filling interface, and receiving report items filled by the user aiming at the selected test case;
generating report requirements according to the test cases selected by the user and the filled report items.
Optionally, the target functional component extracting module is configured to obtain a functional component list through the control system, where the functional component list includes a corresponding relationship between a report item and a functional component;
acquiring the name of a target functional component according to the report item query functional component list;
and extracting the target functional component matched with the test case from the report generating function library according to the name of the target functional component.
Optionally, the subtest report generating module is used for generating test data aiming at the specified function by running the test case;
and processing the test data through the execution component according to the target functional component to obtain a subtest report corresponding to the test case, wherein the execution component is connected with the control system.
Optionally, the subtest report includes: test case execution time, function name of motor product, test flow, parameter signal drawing and test conclusion.
Optionally, the total test report generating module is configured to perform statistics according to each sub-test report to obtain the number of sub-test reports, the number of sub-test reports that the test passes, the number of sub-test reports that the test fails, and the test passing rate, and determine statistical information according to the number of sub-test reports, the number of sub-test reports that the test passes, the number of sub-test reports that the test fails, and the test passing rate;
determining the execution time and period of the motor product test according to the execution time of the test case of each sub-test report, and determining the test basic information according to the execution time and period of the motor product test;
constructing a test report catalog according to the names of all the subtest reports, and arranging all the subtest reports according to the names to obtain a test report file;
and constructing a total test report according to the statistical information, the test basic information, the test report catalog and the test report file.
Optionally, the device further comprises a subtest report display module for displaying the total test report;
when receiving a selection instruction of a user aiming at the specified name in the test report catalog, displaying the subtest report corresponding to the specified name.
The device for generating the motor product test report provided by the embodiment of the application can execute the method for generating the motor product test report provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the method of generating motor product test reports.
In some embodiments, the method of generating a motor product test report may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the above-described method of generating a motor product test report may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of generating the motor product test report in any other suitable manner (e.g., by means of firmware).
Various implementations of the apparatus and techniques described here above may be implemented in digital electronic circuit devices, integrated circuit devices, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), on-chip device devices (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on programmable devices including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage device, at least one input device, and at least one output device.
A computer program for carrying out methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable motor product test report generating device, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution apparatus, device, or apparatus. The computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor apparatus, device, or apparatus, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the apparatus and techniques described herein may be implemented on a device having: a display device (e.g., a touch screen) for displaying information to a user; and keys, the user may provide input to the device through a touch screen or keys. Other kinds of devices may also be used to provide for interaction with a user; for example, 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, speech input, or tactile input.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of generating a test report for an electrical machine product, comprising:
receiving a report demand of a user for a motor product, wherein the report demand comprises a plurality of test cases and report items corresponding to the test cases;
extracting a target functional component matched with the test case from a report generating functional library according to the report item;
generating subtest reports corresponding to the test cases according to the target functional components, wherein each subtest report corresponds to different functions of the motor product respectively;
and generating a total test report for the motor product according to the obtained sub-test report.
2. The method of claim 1, wherein receiving the user's reporting demand for the motor product comprises:
when a test request of a user is received, a requirement filling interface is displayed, wherein the requirement filling interface comprises test cases corresponding to all functions of a loading motor product;
receiving a test case selected by a user on the requirement filling interface, and receiving report items filled by the user aiming at the selected test case;
and generating the report requirement according to the test case selected by the user and the filled report item.
3. The method of claim 1, wherein extracting target function components matching test cases from a report generating function library according to the report items comprises:
acquiring a function component list through a control system, wherein the function component list comprises the corresponding relation between a report item and a function component;
inquiring the function component list according to the report item to acquire the name of the target function component;
and extracting the target functional component matched with the test case from the report generating function library according to the name of the target functional component.
4. The method of claim 3, wherein the generating a subtest report corresponding to the test case according to the target functional component comprises:
generating test data for a specified function by running the test case;
and processing the test data through an execution component according to the target functional component to obtain a subtest report corresponding to the test case, wherein the execution component is connected with the control system.
5. The method of claim 4, wherein the subtest report includes: test case execution time, function name of motor product, test flow, parameter signal drawing and test conclusion.
6. The method of claim 5, wherein the generating a total test report for the motor product from the obtained sub-test reports comprises:
counting according to each sub-test report to obtain the number of sub-test reports, the number of sub-test reports passing through the test, the number of sub-test reports failing to test and the test passing rate, and determining statistical information according to the number of sub-test reports passing through the test, the number of sub-test reports failing to test and the test passing rate;
determining the execution time and period of the motor product test according to the execution time of the test case of each sub-test report, and determining the test basic information according to the execution time and period of the motor product test;
constructing a test report catalog according to the names of the sub-test reports, and arranging the sub-test reports according to the names to obtain a test report file;
and constructing the total test report according to the statistical information, the test basic information, the test report catalog and the test report file.
7. The method of any one of claims 1 to 6, wherein after generating a total test report for the motor product from the sub-test reports obtained, further comprising:
displaying the total test report;
when receiving a selection instruction of a user for a specified name in the test report catalog, displaying a subtest report corresponding to the specified name.
8. A device for generating a test report of a motor product, comprising:
the system comprises a report demand receiving module, a report demand processing module and a report processing module, wherein the report demand receiving module is used for receiving the report demand of a user for a motor product, and the report demand comprises a plurality of test cases and report items corresponding to the test cases;
the target function component extraction module is used for extracting a target function component matched with the test case from the report generation function library according to the report item;
the subtest report generation module is used for generating subtest reports corresponding to the test cases according to the target functional component, wherein each subtest report corresponds to different functions of the motor product;
and the total test report generating module is used for generating a total test report aiming at the motor product according to the obtained sub-test report.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when the program is executed by the processor.
10. A storage medium having stored thereon computer program of instructions, which when executed by a processor, performs the method of any of claims 1-7.
CN202311015060.6A 2023-08-11 2023-08-11 Method, device, equipment and medium for generating motor product test report Pending CN117033218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311015060.6A CN117033218A (en) 2023-08-11 2023-08-11 Method, device, equipment and medium for generating motor product test report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311015060.6A CN117033218A (en) 2023-08-11 2023-08-11 Method, device, equipment and medium for generating motor product test report

Publications (1)

Publication Number Publication Date
CN117033218A true CN117033218A (en) 2023-11-10

Family

ID=88622302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311015060.6A Pending CN117033218A (en) 2023-08-11 2023-08-11 Method, device, equipment and medium for generating motor product test report

Country Status (1)

Country Link
CN (1) CN117033218A (en)

Similar Documents

Publication Publication Date Title
CN108984388B (en) Method and terminal equipment for generating automatic test case
CN111240876B (en) Fault positioning method and device for micro-service, storage medium and terminal
EP4235482A1 (en) State preview method and system for key equipment of nuclear power plant, and device and storage medium
CN112948427B (en) Data query method, device, equipment and storage medium
CN113467868B (en) Method and device for creating equipment resources
CN110647471A (en) Interface test case generation method, electronic device and storage medium
CN115599769A (en) Data migration method and device, electronic equipment and storage medium
CN115576828A (en) Test case generation method, device, equipment and storage medium
CN110874365B (en) Information query method and related equipment thereof
CN116451619A (en) Component information processing method, device, medium and equipment
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN117033218A (en) Method, device, equipment and medium for generating motor product test report
CN116225690A (en) Memory multidimensional database calculation load balancing method and system based on docker
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN115982045A (en) Interface automation test verification method and device, electronic equipment and storage medium
CN111752677B (en) Cloud resource configuration method, system, terminal and storage medium
CN115098405B (en) Software product evaluation method and device, electronic equipment and storage medium
CN114595231B (en) Database table generation method and device, electronic equipment and storage medium
CN112486847B (en) Error reproduction method, apparatus, system, device and storage medium
CN115292179A (en) Test data generation method and device, electronic equipment and storage medium
CN115640771A (en) PCB file generation method and device, electronic equipment and storage medium
CN117931155A (en) Code generation method, device, equipment and medium
CN115878460A (en) Regression testing method, device, computer equipment and storage medium
CN116301521A (en) Project progress display method, device, equipment and 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