CN114238072A - HIL requirement design method, HIL requirement design device, computer equipment and storage medium - Google Patents

HIL requirement design method, HIL requirement design device, computer equipment and storage medium Download PDF

Info

Publication number
CN114238072A
CN114238072A CN202111347565.3A CN202111347565A CN114238072A CN 114238072 A CN114238072 A CN 114238072A CN 202111347565 A CN202111347565 A CN 202111347565A CN 114238072 A CN114238072 A CN 114238072A
Authority
CN
China
Prior art keywords
requirement
hil
graph
description
displaying
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
CN202111347565.3A
Other languages
Chinese (zh)
Inventor
邹博松
路鹏飞
王卉捷
朱科屹
王荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Software Evaluation Center
Original Assignee
China Software Evaluation Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Software Evaluation Center filed Critical China Software Evaluation Center
Priority to CN202111347565.3A priority Critical patent/CN114238072A/en
Publication of CN114238072A publication Critical patent/CN114238072A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a HIL requirement design method, a HIL requirement design device, computer equipment and a storage medium. The method comprises the following steps: displaying a demand design interface; responding to the graph selection operation, and displaying the HIL requirement description graph selected by the graph selection operation in a preset area of a requirement design interface; acquiring description information input by information input operation, and generating an HIL requirement graph according to the description information and the HIL requirement description graph; and converting the HIL requirement graph into natural language to obtain and display HIL requirement information. By adopting the invention, the accuracy of HIL requirement design can be improved, thereby improving the accuracy of HIL test.

Description

HIL requirement design method, HIL requirement design device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a HIL requirement design method, a HIL requirement design device, computer equipment and a storage medium.
Background
The HIL (Hardware-in-the-Loop) Hardware-in-Loop simulation test system simulates the running state of a controlled object by running a simulation model through a real-time processor, is connected with a tested piece through an I/O interface and carries out comprehensive and systematic test on the tested piece. In consideration of safety, feasibility and reasonable cost, the loop simulation test of the HIL hardware becomes a very important loop in the development process of an ECU (Electronic Control Unit), so that the number of real road tests is reduced, the development time is shortened, the cost is reduced, the software quality of the ECU is improved, and the risk of an automobile factory is reduced.
In the HIL test process of the automobile parts, a test case needs to be designed according to requirements, and the test case is automatically executed after the test case is designed, as shown in FIG. 1. The currently common HIL test procedure is:
a. and the tested user submits a test application and a tested piece functional specification definition excel form.
b. The evaluation enterprise personnel define an excel table according to the function specification of the tested piece to perform manual interpretation on each function; and manually drawing a Test case logic diagram on the Test Designer.
c. And checking to generate an executable case file.
d. And importing the test farm for execution.
In the process, the process b related to requirement description and design is long, tedious and high in professional requirement, and the requirements on logic thinking capability of enterprise personnel, function understanding depth of the tested piece and time and energy input of the personnel are high; and the whole process chain has personnel participation of different working properties, and due to the difference of behavior habits or understanding modes, the understanding of different personnel on the functional requirements is easy to generate deviation, so that the test case designed based on the understood requirements is easy to generate deviation, and finally the accuracy of the HIL test is low.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: in the prior art, deviation exists on the basis of manual description requirements and interpretation requirements, so that the HIL test accuracy is low.
In order to solve the technical problem, the invention provides a HIL requirement design method, a HIL requirement design device, a HIL requirement design computer device and a storage medium.
A HIL requirement design method comprises the following steps:
displaying a demand design interface;
responding to a graph selection operation, and displaying an HIL requirement description graph selected by the graph selection operation in a preset area of the requirement design interface;
acquiring description information input by information input operation, and generating an HIL requirement graph according to the description information and the HIL requirement description graph;
and converting the HIL requirement graph into natural language to obtain and display HIL requirement information.
In one embodiment, the display requirement design interface includes:
when the selected operation of the reading mode option is received, displaying the requirement design interface according to the reading mode;
and when the selected operation of the editing mode option is received, displaying the requirement design interface according to the editing mode.
In one embodiment, the displaying, in response to a graphic selection operation, the HIL requirement description graphic selected by the graphic selection operation in a preset area of the requirement design interface includes:
and responding to the graph selection operation, loading the HIL requirement description graph selected by the graph selection operation in a cache, and displaying the preset area of the requirement design interface.
In one embodiment, the obtaining description information input by the information input operation, and generating the HIL requirement diagram according to the description information and the HIL requirement description diagram includes:
acquiring description information of information input operation corresponding to the HIL requirement description graph input;
identifying the type of the HIL requirement description graph;
searching corresponding association information from a preset association knowledge base according to the type of the HIL requirement description graph and the corresponding description information, and displaying options of the association information;
if the selection operation of the option is received, displaying the association information;
and generating an HIL requirement graph according to the description information, the HIL requirement description graph and the association information.
In one embodiment, after the obtaining the description information input by the information input operation and generating the HIL requirement diagram according to the description information and the HIL requirement description diagram, the method further includes:
when a demand concatenation instruction is received, splicing two or more HIL demand graphs indicated by the demand concatenation instruction into an HIL demand graph;
and when a demand decomposition instruction is received, decomposing the HIL demand graph indicated by the demand decomposition instruction.
In one embodiment, after the displaying the requirement design interface, the method further includes:
receiving a flow chart editing operation instruction;
and responding to the flowchart editing operation instruction, and generating and displaying the flowchart.
An HIL requirement designing apparatus comprising:
the display module is used for displaying a required design interface;
the graphic processing module is used for responding to graphic selection and movement operation and displaying the HIL requirement description graphic selected by the graphic selection and movement operation in a preset area of the requirement design interface;
the requirement diagram generating module is used for acquiring description information input by information input operation and generating an HIL requirement diagram according to the description information and the HIL requirement description diagram;
and the conversion module is used for converting the HIL requirement graph into natural language to obtain and display the HIL requirement information.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
displaying a demand design interface;
responding to a graph selection operation, and displaying an HIL requirement description graph selected by the graph selection operation in a preset area of the requirement design interface;
acquiring description information input by information input operation, and generating an HIL requirement graph according to the description information and the HIL requirement description graph;
and converting the HIL requirement graph into natural language to obtain and display HIL requirement information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
displaying a demand design interface;
responding to a graph selection operation, and displaying an HIL requirement description graph selected by the graph selection operation in a preset area of the requirement design interface;
acquiring description information input by information input operation, and generating an HIL requirement graph according to the description information and the HIL requirement description graph;
and converting the HIL requirement graph into natural language to obtain and display HIL requirement information.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
determining an HIL requirement graph according to graph selection and movement operation, generating an HIL requirement graph according to the HIL requirement graph and description information input by information input operation, and converting the HIL requirement graph into a natural language to obtain HIL requirement information; so, with the HIL demand picture automatic conversion who is used for describing the HIL test demand for the natural language that people can read and understand, intelligence is high-efficient, and can avoid artifical description, the deviation that reads the demand and bring, improves the accuracy of HIL demand design to improve the accuracy of HIL test.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. Wherein the included drawings are:
FIG. 1 illustrates a conventional HIL test flow diagram;
FIG. 2 is a flow diagram illustrating a HIL requirement design method in one embodiment;
FIG. 3 is a block diagram of the processing logic of the copy and cache mechanism in one embodiment;
FIG. 4 is an attribute structure diagram of a state node for intelligent associative input in one embodiment;
FIG. 5 is an attribute structure diagram of a condition node for intelligent associative input in one embodiment;
FIG. 6 is a block diagram of a graphical requirements designer in one embodiment;
FIG. 7 is a diagram illustrating element management of semaphores and values in one embodiment;
FIG. 8 is an exemplary diagram illustrating the definition of grammar rules for a HIL requirement description natural language in one embodiment;
FIG. 9 is a functional logic block diagram of a graphical requirement designer in one embodiment;
fig. 10 is a block diagram showing the structure of an HIL requirement designing apparatus according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
In one embodiment, a HIL requirement design method is provided and can be applied to computer equipment. As shown in fig. 2, taking the application to a computer device as an example, the HIL requirement designing method includes the following steps:
s110: and displaying a requirement design interface.
The requirement design interface is an interface for a user to operate to perform requirement design and display. Specifically, the computer apparatus may control the display device to display the requirement design interface by the control operation.
S130: and responding to the graph selection operation, and displaying the HIL requirement description graph selected by the graph selection operation in a preset area of the requirement design interface.
The figure selection operation is an operation for selecting and moving the HIL requirement description figure. The HIL requirement description graph is a basic element for representing HIL test requirements. The preset area of the requirement design interface is an area for arranging the selected HIL requirement description graph. Specifically, the requirement design interface may include a graphic selection area and a design area, the graphic selection area displays selectable HIL requirement description graphics, and a user may select and drag the HIL requirement description graphics in the graphic selection area to the design area through a graphic selection operation.
S150: and acquiring description information input by information input operation, and generating an HIL requirement graph according to the description information and the HIL requirement description graph.
The information input operation is used for inputting description information, and may be a description graph corresponding to the HIL requirement. For example, the HIL requirement description graph may be a graph representing a state node, and the user inputs information describing the state in the graph representing the state node through an information input operation. Specifically, there may be a plurality of HIL requirement description graphs selected; dragging the HIL requirement description graph selected by the graph selection and shift operation to the position designated by the graph selection and shift operation, filling the corresponding HIL requirement description graph according to the description information input by the information input operation, and responding to the operation of a user to finish the HIL requirement graph.
S170: and converting the HIL requirement graph into natural language to obtain and display HIL requirement information.
And converting the HIL requirement graph into a natural language through a preset conversion rule to obtain HIL requirement information and displaying the HIL requirement information on a requirement design interface. For example, the requirement design interface may further include a description area, and the HIL information is displayed in the description area of the requirement design interface after the HIL requirement information is obtained. The natural language is a language used by people for communication, such as Chinese, and is simple and easy to read.
Specifically, an easily understandable Natural Language can be automatically generated based on the HIL requirement graph by an NLP (Natural Language Processing) technique, and the HIL requirement graph is easy to read and understand and can be accurately and completely represented.
According to the HIL requirement design method, the HIL requirement graph is determined according to the graph selection operation, the HIL requirement graph is generated according to the HIL requirement graph and the description information input by the information input operation, and the HIL requirement graph is converted into the natural language to obtain the HIL requirement information; so, with the HIL demand picture automatic conversion who is used for describing the HIL test demand for the natural language that people can read and understand, intelligence is high-efficient, and can avoid artifical description, the deviation that reads the demand and bring, improves the accuracy of HIL demand design to improve the accuracy of HIL test.
The HIL requirement design method can be applied to HIL test of automobile parts, provides a graphical intelligent operation mode to design the HIL requirement, and can help evaluation enterprises or detection organization personnel to design and manufacture test cases of tested pieces very quickly.
In one embodiment, step S110 includes: when the selected operation of the reading mode option is received, designing an interface according to the reading mode display requirement; and when the selected operation of the editing mode option is received, designing an interface according to the editing mode display requirement.
For example, the reading mode option and the editing mode option may be displayed on the display device, and the user may select the reading mode option and the editing mode option by operation. The operation of selecting the reading mode option is an operation for selecting the reading mode option, and the operation of selecting the editing mode option is an operation for selecting the editing mode option. In the reading mode, displaying a requirement design interface according to a preset reading mode display rule; and in the editing mode, displaying a requirement design interface according to a preset editing mode display rule. Therefore, the switching between the reading mode and the editing mode can be supported, and the user can conveniently select the reading mode and the editing mode.
For example, in the reading mode, a simplified natural language is adopted to express a current editing object, an initial focus is located in a state attribute natural segment, logic block focus switching is performed through 'KU/KD' of a keyboard, and a logic segment of the focus is displayed in a highlight fillet border mode. The logic segment can be switched into an editing mode by double-clicking the focus, and the elements of the logic segment are automatically unfolded according to the editing mode. And in the editing mode, the focus logic section is selected by a highlight fillet frame and is displayed in a mode that front-end elements such as an input frame, a selection frame and a button are easy to interactively edit. And after the editing is finished, the editing mode can be quitted through an ESC key of the keyboard, and the edited natural language is automatically generated. When the user only wants to know the information of the target object, the user can provide the displayable space in the reading mode to the maximum extent to display the language which is easy to understand by people, and when the user wants to edit the details of the target object, the user can enter the editing mode to provide the editable space to the maximum extent.
In one embodiment, step S130 includes: and responding to the graph selection operation, loading the HIL requirement description graph selected by the graph selection operation in the cache, and displaying a preset area of the requirement design interface.
And loading the HIL requirement description graph from the cache, operating in a copy mode, realizing a copy and offline design mechanism, stopping a design task temporarily or a network terminal without losing the existing design when the power is off, and recovering the HIL requirement description graph at any time when the network terminal has working conditions again.
Design requirements, state of requirements, migration conditions of requirements are target objects of the graphical operation. Wherein the state of the demand and the migration condition of the demand have an affiliation with the demand object. The computer device will create a cache of the corresponding objects for the design requirements and the state of the requirements and the migration conditions. As shown in fig. 3, when a user performs a read/write operation by clicking objects of a demand, a demand state, and a demand migration condition, object data is first loaded from a cache. And when the cache does not have the required object data, requesting to load the object data from the server and storing the object data into the object cache. When the object data of the state of the demand and the migration condition of the demand do not exist in the cache, the object copy is generated from the demand and stored in the object cache. What is meant here by generating a copy of an object is that the object's descriptive content is copied from the source since the object is a child of the source. All the modification actions of the user on the object are to operate the copy, and forced combination and storage are carried out only when the user clicks synchronous combination.
In one embodiment, step S150 includes steps (a1) to (a 5).
Step (a 1): the acquired information input operation corresponds to description information of the HIL requirement description graphic input.
Step (a 2): the type of the HIL requirement description graph is identified.
Step (a 3): and searching corresponding association information from a preset association knowledge base and displaying options of the association information according to the type of the HIL requirement description graph and the corresponding description information.
Step (a 4): and if the selection operation of the option is received, displaying the association information.
Step (a 5): and generating an HIL requirement graph according to the description information, the HIL requirement description graph and the association information.
Searching association information according to the type of the HIL requirement description graph and corresponding description information for a user to select, providing HIL requirement design combining graphical and intelligent association input, describing requirements by adopting a graphical operation mode, and designing the HIL requirement by means of directed intelligent association input; development and test personnel can input in an intelligent association mode, work efficiency is improved, expression ambiguity is reduced, logic and setting details are emphasized, and requirements of professional knowledge are reduced.
The intelligent association can be input through inputting a context environment and existing association of input and demand element basic libraries, so that the workload of users is reduced, the professional terms are input by using knowledge base data, and the ambiguity of demand design and description caused by personnel habits or knowledge is reduced. Specifically, association is carried out by establishing the current input information, the type of the current HIL requirement description graph and an association matrix of an association knowledge base.
For example, the graphic selection area of the requirement design interface comprises an editing area, and the UI component of the editing area is bound with the property of the requirement element type. When a user inputs, the system automatically identifies the attribute of the required element type bound by the UI component where the user is located, the input information and the required element type are submitted to the rear-end association module in real time, the association module performs character prefix matching to the corresponding association knowledge base according to the incidence matrix, and returns the matched association information. When the user approves the association option to confirm, the automatic association of the input content is completed, otherwise, the user-defined input is completed. And the attribute related to the content of the current input item can be used as the dependent input information of the next association requirement element so as to limit the association content of the next focus input element.
As shown in FIG. 4, the attributes of the state nodes include state names, state time expressions, requirement reference expressions, state logic block names, assignment expressions, semaphores, operators, values, flowcharts, and other requirement basis elements. And performing associative input according to a predefined association strategy, the current input of a user and the associated historical input. As shown in fig. 5, the attribute of the condition node includes elements such as a condition name and a condition expression.
In one embodiment, after step S150, the method further includes: when a demand concatenation instruction is received, splicing two or more HIL demand graphs indicated by the demand concatenation instruction into an HIL demand graph; and when the requirement decomposition instruction is received, decomposing the HIL requirement graph indicated by the requirement decomposition instruction.
The demand concatenation and decomposition functions are supported by carrying out demand concatenation according to the demand concatenation command and carrying out demand decomposition according to the demand decomposition command, and the demand concatenation can change the complex demand into the demand of modularized concatenation.
The requirement concatenation mainly solves the problem scenes that description and design of large-scale functional requirements are complex and need to be simplified and split, and the scenes that a plurality of completed requirements need to be designed and spliced into one functional requirement. Decomposing the demand into sub-demands and making reference to the sub-demands. When the quote type requirement is clicked, the requirement of concatenation is automatically started on the TAB label page. Therefore, a plurality of completed demands can be connected in series, and the demands of the load can be split into a plurality of demands to be connected in series.
In one embodiment, after step S110, the method further includes: receiving a flow chart editing operation instruction; and responding to the operation instruction for editing the flow chart, and generating and displaying the flow chart.
The method and the device solve the complex scene problem which needs to be expressed by using the flow chart in the process of demand design by editing the operation instruction according to the flow chart to generate the flow chart. For example, a scene that a part of complex algorithm cannot be expressed by using natural language or needs are described more difficultly by using the natural language can be solved by using the flow chart.
For example, the PYTHON code related to the demand function logic is entered and a flowchart is generated in real time. The flow chart is generated according to the recorded codes, and if the codes are modified and do not operate for a certain time, the flow chart is automatically regenerated.
To better illustrate the present invention, the following detailed description is made in conjunction with a graphical requirement designer that can implement the above-described HIL requirement design method:
the graphical requirement designer is divided into a component area, an editing area, a design area and a description area. Different partitions have different function locations and event response actions. The HIL graphical requirement can be designed through graphical operation, and then the requirement description language formatted in Chinese can be automatically generated through NLP.
The component area mainly shows some graphs which can be used by the logic diagram, including a starting state node, an ending state node, a self-defined state node, a directed curve, a directed broken line and a directed straight line. The nodes and the lines can be dragged into the logic diagram design area in a dragging mode, and after dragging, editing design can be carried out in the editing area and the setting area.
The edit section can be set differently for different logic diagram components. Such as state settings, state transitions, etc. Automatic filtering and association of inputs may be performed in the setup area. And other editing design areas are synchronously displayed.
The description area generates a formatting requirement natural language by the linkage of the NLG natural language generation and the editing area, and the requirement can be designed by intelligent association type input. And synchronously displaying the contents of the design area and the setting area.
And dragging and designing the required logic diagram component through the design area.
As shown in fig. 6, the graphical requirement designer mainly includes core modules such as element management, requirement description natural language specification and NLP automatic generation engine, intelligent associative input, copy and offline mechanism, graphical requirement designer, requirement concatenation, and real-time generation of flow chart.
Among them, regarding element management: the elements on which the HIL test requirements depend are abstractly classified and are separately managed so as to support intelligent association and graphical batch operation. Element management comprises semaphore management, state management, constant management, conditional expression management, assignment expression management, condition management, state logic block management, flow chart management, formula management, table management, function management and demand path management. Taking semaphore management as an example, refer to fig. 7. By the abstract management of the requirement elements, the basis of the imaging and intelligence of the HIL requirement design and the automatic generation of the natural language is constructed, and the functions can be abstracted into the design and association of the logical relationship among one or more groups of a plurality of requirement elements.
Describing natural language specifications and NLP auto-generation engines with respect to requirements: the formatted Chinese demand language is defined and generated through an NLP module, and the formatted Chinese demand language which is easy to understand for a human is automatically generated according to the graphic design of the demand. By defining required descriptive language rules, a machine language with a logical structure is converted into a natural language that is easily understood by humans. The requirements are primarily represented and described using basic elements such as requirement models, state nodes, migration conditions, semaphores, constants, and the like. The state describes the current state node, the node information includes the state name, the state type of the node, and whether the node is the default node of the state type, and the state node generated when the demand model is used to generate the demand is the default node. The state logic block represents signals which need to be set when the required node state is in a certain node state, and the signals mainly comprise flow chart statements and assignment expression statements. The conditional migration statement describes a transfer relationship among the nodes, and the transfer relationship mainly comprises information of a source node, a transfer condition and a target node. The condition includes condition type, condition name and condition expression. The statements are organized according to a certain grammatical rule, and the HIL requirement of the graphic design can be converted into the requirement of natural language description which is easy to understand by people through an NLP conversion engine. The definition of the syntax rules describing natural language of the HIL requirement is shown in fig. 8.
A user carries out intelligent association and flow chart design through graphic operation of a graphic requirement designer to generate a requirement description graph with minimized requirement, nested requirement and requirement concatenation, and the graph is automatically converted into a formatted Chinese requirement language which is easy to understand through an NLP module.
Defining natural language of human comprehensible demand as HIL demand grammar of NLP according to certain specifications and standards, dividing various target objects into basic demand elements according to a grammar, as shown in FIG. 9, constructing a graphical HIL demand through a graphical demand designer and intelligent association input, and automatically converting the graphical HIL demand into demand description natural language through an NLP engine and predefined HIL demand language grammar. In order to support complex requirement design, the support of a flow chart and the support of requirement concatenation are introduced. In order to enable the graphical demand designer to more effectively utilize the space, a reading and editing mode switching mechanism is designed. Meanwhile, an off-line and copy requirement design mechanism is introduced for supporting off-line design and parallel design.
Taking the implementation of the B/S architecture as an example, the difference between the implementation effects of the invention and the traditional method is as follows:
Figure BDA0003354771680000101
it should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 10, there is provided an HIL requirement designing apparatus including:
a display module 110 for displaying a demand design interface; the graphic processing module 130 is configured to respond to a graphic selection operation and display an HIL requirement description graphic selected by the graphic selection operation in a preset area of a requirement design interface; the requirement diagram generating module 150 is used for acquiring description information input by information input operation and generating an HIL requirement diagram according to the description information and the HIL requirement description diagram; and the conversion module 170 is configured to convert the HIL requirement diagram into a natural language, obtain HIL requirement information, and display the HIL requirement information.
The HIL requirement design device determines the HIL requirement graph according to the graph selection operation, generates the HIL requirement graph according to the HIL requirement graph and the description information input by the information input operation, and converts the HIL requirement graph into the natural language to obtain the HIL requirement information; so, with the HIL demand picture automatic conversion who is used for describing the HIL test demand for the natural language that people can read and understand, intelligence is high-efficient, and can avoid artifical description, the deviation that reads the demand and bring, improves the accuracy of HIL demand design to improve the accuracy of HIL test.
For specific limitations of the HIL requirement design apparatus, reference may be made to the above limitations of the HIL requirement design method, which is not described herein again. The various modules in the HIL requirement designing apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiments when executing the computer program.
The computer equipment can realize the steps of the method in each embodiment, and similarly, can improve the accuracy of the HIL requirement design, thereby improving the accuracy of the HIL test.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method in the embodiments described above.
The computer-readable storage medium can realize the steps of the method in the embodiments, and similarly, can improve the accuracy of the HIL requirement design, thereby improving the accuracy of the HIL test.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A HIL requirement design method is characterized by comprising the following steps:
displaying a demand design interface;
responding to a graph selection operation, and displaying an HIL requirement description graph selected by the graph selection operation in a preset area of the requirement design interface;
acquiring description information input by information input operation, and generating an HIL requirement graph according to the description information and the HIL requirement description graph;
and converting the HIL requirement graph into natural language to obtain and display HIL requirement information.
2. The method of claim 1, wherein displaying the requirements design interface comprises:
when the selected operation of the reading mode option is received, displaying the requirement design interface according to the reading mode;
and when the selected operation of the editing mode option is received, displaying the requirement design interface according to the editing mode.
3. The method according to claim 1, wherein the displaying, in response to a graphic selection operation, the HIL requirement description graphic selected by the graphic selection operation in a preset area of the requirement design interface comprises:
and responding to the graph selection operation, loading the HIL requirement description graph selected by the graph selection operation in a cache, and displaying the preset area of the requirement design interface.
4. The method according to claim 1, wherein the obtaining description information input by the information input operation and generating the HIL requirement diagram according to the description information and the HIL requirement description diagram comprises:
acquiring description information of information input operation corresponding to the HIL requirement description graph input;
identifying the type of the HIL requirement description graph;
searching corresponding association information from a preset association knowledge base according to the type of the HIL requirement description graph and the corresponding description information, and displaying options of the association information;
if the selection operation of the option is received, displaying the association information;
and generating an HIL requirement graph according to the description information, the HIL requirement description graph and the association information.
5. The method according to claim 1, wherein after obtaining the description information input by the information input operation and generating the HIL requirement diagram according to the description information and the HIL requirement description diagram, the method further comprises:
when a demand concatenation instruction is received, splicing two or more HIL demand graphs indicated by the demand concatenation instruction into an HIL demand graph;
and when a demand decomposition instruction is received, decomposing the HIL demand graph indicated by the demand decomposition instruction.
6. The method of claim 1, wherein after displaying the requirements design interface, further comprising:
receiving a flow chart editing operation instruction;
and responding to the flowchart editing operation instruction, and generating and displaying the flowchart.
7. An HIL requirement designing apparatus, comprising:
the display module is used for displaying a required design interface;
the graphic processing module is used for responding to graphic selection and movement operation and displaying the HIL requirement description graphic selected by the graphic selection and movement operation in a preset area of the requirement design interface;
the requirement diagram generating module is used for acquiring description information input by information input operation and generating an HIL requirement diagram according to the description information and the HIL requirement description diagram;
and the conversion module is used for converting the HIL requirement graph into natural language to obtain and display the HIL requirement information.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202111347565.3A 2021-11-15 2021-11-15 HIL requirement design method, HIL requirement design device, computer equipment and storage medium Pending CN114238072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111347565.3A CN114238072A (en) 2021-11-15 2021-11-15 HIL requirement design method, HIL requirement design device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111347565.3A CN114238072A (en) 2021-11-15 2021-11-15 HIL requirement design method, HIL requirement design device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114238072A true CN114238072A (en) 2022-03-25

Family

ID=80749373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111347565.3A Pending CN114238072A (en) 2021-11-15 2021-11-15 HIL requirement design method, HIL requirement design device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114238072A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098205A (en) * 2022-06-17 2022-09-23 来也科技(北京)有限公司 Control method for realizing IA flow editing interface based on RPA and AI

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098205A (en) * 2022-06-17 2022-09-23 来也科技(北京)有限公司 Control method for realizing IA flow editing interface based on RPA and AI

Similar Documents

Publication Publication Date Title
CN111241454B (en) Method, system and device for generating webpage codes
US10198422B2 (en) Information-processing equipment based on a spreadsheet
US8046735B1 (en) Transforming graphical objects in a graphical modeling environment
Park et al. Plant model generation for PLC simulation
CN109117138B (en) Configuration method and device and computer readable storage medium
US20160299745A1 (en) Development method for web development system, and web development system
CN115617327A (en) Low code page building system, method and computer readable storage medium
US8458648B2 (en) Graphical modelization of user interfaces for data intensive applications
CN112199086A (en) Automatic programming control system, method, device, electronic device and storage medium
CN112799968B (en) Test drive modeling system and method based on script
CN112433702B (en) Lightweight process design system and method
CN113721901A (en) Low-code financial data analysis visualization engine
CN117389541B (en) Configuration system and device for generating template based on dialogue retrieval
CN113268227A (en) Zero-code visualization software development platform and development method
JP2022019524A (en) Modeling parameter configuration method, apparatus, device, computer storage medium, and computer program
de_Almeida Monte-Mor et al. Applying MDA approach to create graphical user interfaces
CN111273900A (en) On-line drag code generation method based on gitlab real-time code sharing
CN114238072A (en) HIL requirement design method, HIL requirement design device, computer equipment and storage medium
CN116627418B (en) Multi-level form interface visual generation method and device based on recursion algorithm
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
CN112631585B (en) XML-based rapid parameter interface configuration method
CN114449063A (en) Message processing method, device and equipment
CN114063868A (en) AI (Artificial intelligence) dragging modeling system and method, computer equipment and application
CN113377368A (en) Project development method, device, server and storage medium
CN114518875A (en) Graphical programming system and programming method thereof

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