CN116954570A - Method, device, equipment and storage medium for generating analog data - Google Patents

Method, device, equipment and storage medium for generating analog data Download PDF

Info

Publication number
CN116954570A
CN116954570A CN202311023041.8A CN202311023041A CN116954570A CN 116954570 A CN116954570 A CN 116954570A CN 202311023041 A CN202311023041 A CN 202311023041A CN 116954570 A CN116954570 A CN 116954570A
Authority
CN
China
Prior art keywords
simulation data
target simulation
data generation
file
generation command
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
CN202311023041.8A
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.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN202311023041.8A priority Critical patent/CN116954570A/en
Publication of CN116954570A publication Critical patent/CN116954570A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for generating analog data, which are executed by a node back-end service, wherein the method comprises the following steps: in the process that the node back-end service is in a working state, if a target simulation data generation command is detected, acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory; analyzing the target simulation data generation file to generate target simulation data matched with the target simulation data generation command; the target simulation data are used as output data of a setting interface for front-end use. By the technical scheme, the generation of the simulation data can be realized, the generation efficiency of the simulation data is improved, and the difficulty of writing and maintaining the simulation data is reduced.

Description

Method, device, equipment and storage medium for generating analog data
Technical Field
The present invention relates to the field of data generation, and in particular, to a method, an apparatus, a device, and a storage medium for generating analog data.
Background
Data simulation services refer to replacing a virtual object with one for some complex data scenarios during development or testing. If a field of the A interface is relied on in the test process, but the required data cannot be returned correctly, the data required currently can be simulated by the data simulation service for testing.
At present, most of data simulation services are intercepted by a packet capturing tool or are directly compiled into codes by developers for application, and the packet capturing tool is used for intercepting, so that the packet capturing tool is required to be additionally downloaded, the manual hard coding mode into the codes is not flexible, and the subsequent code maintenance is difficult.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for generating analog data, which can solve the problem of high difficulty in code writing and maintenance work caused by inflexible configuration when analog data are generated in the prior art.
In a first aspect, an embodiment of the present invention provides a method for generating analog data, which is executed by a node backend service, where the method includes:
in the process that the node back-end service is in a working state, if a target simulation data generation command is detected, acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory;
analyzing the target simulation data generation file to generate target simulation data matched with the target simulation data generation command;
the target simulation data are used as output data of a setting interface for front-end use.
In a second aspect, an embodiment of the present invention provides an apparatus for generating analog data, which is executed by a node backend service, where the apparatus includes:
the data file acquisition module is used for acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory if the target simulation data generation command is detected in the process that the node rear end service is in a working state;
the simulation data generation module is used for analyzing the target simulation data generation file and generating target simulation data matched with the target simulation data generation command;
the target simulation data are used as output data of a setting interface for front-end use.
In a third aspect, an embodiment of the present invention provides an electronic device, 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 analog data according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause a processor to implement a method for generating analog data according to any embodiment of the present invention.
According to the technical scheme, in the process that the node rear-end service is in a working state, if the target simulation data generation command is detected, the target simulation data generation file matched with the target simulation data generation command is acquired under the preset file directory, then the target simulation data generation file is analyzed, and the target simulation data matched with the target simulation data generation command is generated, so that the problems of inflexible configuration and high difficulty in code writing and maintenance work in the generation of the simulation data in the prior art are solved, the generation of the simulation data is realized, the generation efficiency of the simulation data is improved, and the difficulty in writing and maintenance work of the simulation data is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating simulation data according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for generating analog data according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for generating analog data according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a method for generating analog data according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention 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 invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention 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 invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for generating analog data according to a first embodiment of the present invention, where the method may be performed by an apparatus for generating analog data, and the apparatus for generating analog data may be implemented in hardware and/or software, and the apparatus for generating analog data may be configured in a terminal or a server configured with node back-end services.
As shown in fig. 1, the method includes:
s110, in the process that the node back-end service is in a working state, if a target simulation data generation command is detected, acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory.
The node is an open source cross-platform running environment and is used for executing javascript codes outside a browser, and the rear end is an independent program which can be used for creating an application program interface; furthermore, the node back-end service can construct back-end application with high expandability, data density and real time, and meanwhile, the node has the advantages of easy operation, suitability for prototype and agile development, quick development, universality of high-expandability service javascript, unified front-end language and back-end language, clean codes and easy maintenance of projects.
In this embodiment, a start instruction of the node back-end service may be generated and sent through a point touch operation of the user at the front end, so as to confirm that the current node back-end service is in a working state; further, the front end is a terminal or a server with an analog data receiving function or an analog testing function; for example, the front end may be a weback-dev-service that may implement local intercept and data simulation functions, other online UI platforms with similar functions, and the like.
The simulation data generation command is a data instruction used for being sent to a node back-end service so that the node back-end service can perform work of searching a target simulation data generation file matched with the target simulation data generation command.
In this embodiment, the preset file directory may be a root directory of a JSON system having a communication connection with the node backend service; in this embodiment, the preset file directory is set as the root directory of the system, so that the searching speed of the files on the directory can be increased, and the system or service with access to the root directory authority can conveniently call the files in the file directory position better, thereby ensuring the smoothness of system operation.
The target simulation data generation file comprises the following steps: the generation requirement of the simulation data and the JS format code data generated by the JSON platform based on the generation requirement; for example, if the generation request is "generate B data corresponding to the a interface", the generation file includes B data applicable to the a interface in JS format in addition to the generation request.
S120, analyzing the target simulation data generation file to generate target simulation data matched with the target simulation data generation command.
The target simulation data are used as output data of a setting interface for front-end use.
The target simulation data can be simulation data of a B data class which can be suitable for an A interface and is obtained by analyzing a target simulation data generation file through a node back-end service on the basis of the steps; it should be noted that, the above-mentioned a interface is a virtual interface, and specific hardware configuration of the a interface is not required in the method described in this embodiment.
Specifically, the analyzing the target simulation data generating file to generate target simulation data matched with the target simulation data generating command includes: analyzing the target simulation data generation file to obtain all JSON grammar data included in the target simulation data generation file; and analyzing all JSON grammar data to obtain the target simulation data.
Wherein the JSON (JavaScriptObjectNotation, JS object profile) syntax data is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language based on a subset of ECMAScript (European ComputerManufacturersAssociation, js specification by the european computer institute). The compact and clear hierarchical structure makes JSON an ideal data exchange language. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency.
The target simulation data is the simulation data which is adapted to the front-end platform and the generation requirement of the simulation data.
In this embodiment, the data format of the target analog data is: any of numbers, strings, arrays, objects, boolean values, and time stamps.
Accordingly, namely, the target format of the generation requirement of the analog data included in the target analog data generation file is any one of a number, a character string, an array, an object, a Boolean value and a timestamp; for example, if the generation requirement of the analog data is B data applicable to the a interface, the data type of the B data is any one of numbers, character strings, arrays, objects, boolean values, and time stamps, that is, the B data may be 2023, 7, 6, 14:38:09, and other types of specific content requirements.
Optionally, after generating the target simulation data matched with the target simulation data generation command, the method further includes: and generating a simulation result according to the generation result of the target simulation data, and carrying out association display on the simulation result and the target simulation data.
Wherein the simulation result includes: simulation data generation success and simulation data generation failure; further, in this embodiment, if the target simulation data is successfully generated, the node back-end service generates "simulation data generation success" data at the same time, packages the data with the target simulation data, and transmits the data to a front-end platform having communication connection with the node back-end service for display; otherwise, generating 'simulated data generation failure' data and sending the data to a front-end platform for display.
According to the technical scheme, in the process that the node back-end service is in the working state, if the target simulation data generation command is detected, the target simulation data generation file matched with the target simulation data generation command is acquired under the preset file directory, then the target simulation data generation file is analyzed, the target simulation data matched with the target simulation data generation command is generated, generation of simulation data is achieved, generation efficiency of the simulation data is improved, and difficulty of simulation data writing and maintenance work is reduced.
Example two
Fig. 2 is a flowchart of a method for generating simulation data according to a second embodiment of the present invention, where the method for obtaining, under a preset file directory, a target simulation data generation file matching with a target simulation data generation command is refined based on the above embodiment, specifically in this embodiment, when a target simulation data generation command is detected.
As shown in fig. 2, the method includes:
s210, responding to a simulation data configuration instruction, generating a current simulation data generation file through the JSON system, and storing the current simulation data generation file in a root file directory of the JSON system.
The JSON system can generate a JS format simulation data generation file according to the simulation data configuration instruction; and the simulation data generation file comprises a JS format data code matched with the simulation data configuration instruction.
Further, the JSON (JavaScriptObjectNotation, JS object profile) format is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language based on a subset of ECMAScript (European ComputerManufacturersAssociation, js specification by the european computer institute). The compact and clear hierarchical structure makes JSON an ideal data exchange language. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency.
S220, constructing a current simulation data generation command matched with the current simulation data generation file through a JSON system according to the file storage address of the current simulation data generation file in the root file directory.
Wherein the analog data generation command includes: generating a storage address of a file by the current simulation data; further, the simulation data generation command may be used to send to a node back-end service so that the node back-end service may perform a task of searching for a target simulation data generation file that matches the target simulation data generation command.
S230, receiving a target simulation data generation command provided by the JSON system, and acquiring a file storage address matched with the target simulation data generation command according to the attribute of the target simulation data generation command.
And after the node back-end service is triggered and started, establishing communication connection with the JSON system.
The attribute of the target simulation data generation command comprises a file storage address of a simulation data generation file matched with the target simulation data generation command.
S240, searching and acquiring a target simulation data generation file matched with the target simulation data generation command in a root file directory of the JSON system according to the file storage address.
S250, analyzing the target simulation data generation file to generate target simulation data matched with the target simulation data generation command.
The target simulation data are used as output data of a setting interface for front-end use.
The target simulation data can be simulation data of a B data class which can be suitable for an A interface and is obtained by analyzing a target simulation data generation file through a node back-end service on the basis of the steps; it should be noted that, the above-mentioned a interface is a virtual interface, and specific hardware configuration of the a interface is not required in the method described in this embodiment.
According to the technical scheme, the target simulation data generation command provided by the JSON system is received, the file storage address matched with the target simulation data generation command is obtained according to the attribute of the target simulation data generation command, then the target simulation data generation file matched with the target simulation data generation command is searched and obtained in the root file directory of the JSON system according to the file storage address, finally the target simulation data generation file is analyzed to generate the target simulation data matched with the target simulation data generation command, the generation of the simulation data is realized, the generation efficiency of the simulation data is improved, and the difficulty of simulation data writing and maintenance work is reduced.
Example III
Fig. 3 is a schematic structural diagram of a device for generating analog data according to a third embodiment of the present invention.
As shown in fig. 3, the apparatus includes:
the data file obtaining module 210 is configured to obtain, in a preset file directory, a target simulation data generation file matching the target simulation data generation command if the target simulation data generation command is detected during the working state of the node back-end service;
the simulation data generating module 320 is configured to parse the target simulation data generating file to generate target simulation data matched with the target simulation data generating command;
the target simulation data are used as output data of a setting interface for front-end use.
According to the technical scheme, in the process that the node back-end service is in the working state, if the target simulation data generation command is detected, the target simulation data generation file matched with the target simulation data generation command is acquired under the preset file directory, then the target simulation data generation file is analyzed, the target simulation data matched with the target simulation data generation command is generated, generation of simulation data is achieved, generation efficiency of the simulation data is improved, and difficulty of simulation data writing and maintenance work is reduced.
Based on the above embodiment, the data file obtaining module 310 further includes:
the file storage address acquisition unit is used for acquiring a file storage address matched with the target simulation data generation command according to the attribute of the target simulation data generation command if the target simulation data generation command provided by the JSON system is received in the process that the node rear end service is in a working state;
and the root file searching unit is used for searching and acquiring a target simulation data generation file matched with the target simulation data generation command in a root file directory of the JSON system according to the file storage address.
Based on the above embodiment, the analog data generating module 320 further includes:
the grammar data acquisition unit is used for analyzing the target simulation data generation file and acquiring all JSON grammar data included in the target simulation data generation file;
and the grammar data analysis unit is used for analyzing all the JSON grammar data to obtain the target simulation data.
On the basis of the above embodiment, the apparatus for generating analog data further includes:
the data file generation module is used for responding to a simulation data configuration instruction before acquiring a target simulation data generation file matched with the target simulation data generation command, generating a current simulation data generation file through a JSON system, and storing the current simulation data generation file in a root file directory of the JSON system;
and constructing a current simulation data generation command matched with the current simulation data generation file through a JSON system according to the file storage address of the current simulation data generation file in the root file directory.
On the basis of the above embodiment, the generation device of analog data further includes: and the association display module is used for generating a simulation result according to the generation result of the target simulation data after generating the target simulation data matched with the target simulation data generation command, and carrying out association display on the simulation result and the target simulation data.
The simulation data generating device provided by the embodiment of the invention can execute the simulation data generating method provided by any embodiment of the invention, 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 invention. 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. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing 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 inventions 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 RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 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 respective methods and processes described above, for example, the generation method of analog data.
Accordingly, the method comprises the following steps:
in the process that the node back-end service is in a working state, if a target simulation data generation command is detected, acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory;
analyzing the target simulation data generation file to generate target simulation data matched with the target simulation data generation command;
the target simulation data are used as output data of a setting interface for front-end use.
In some embodiments, the method of generating analog data 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 electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into the RAM13 and executed by the processor 11, one or more steps of the above-described generation method of analog data may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of generating analog data in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load 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 a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention 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 data processing apparatus, 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 invention, 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 system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, 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 systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. 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.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
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 invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.

Claims (10)

1. A method for generating analog data, which is executed by a node backend service, comprising:
in the process that the node back-end service is in a working state, if a target simulation data generation command is detected, acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory;
analyzing the target simulation data generation file to generate target simulation data matched with the target simulation data generation command;
the target simulation data are used as output data of a setting interface for front-end use.
2. The method according to claim 1, wherein, in the process that the node backend service is in an operating state, if a target simulation data generation command is detected, acquiring, under a preset file directory, a target simulation data generation file matched with the target simulation data generation command, includes:
in the process that the node back-end service is in a working state, if a target simulation data generation command provided by a JSON system is received, acquiring a file storage address matched with the target simulation data generation command according to the attribute of the target simulation data generation command;
after the node back-end service is triggered and started, establishing communication connection with the JSON system;
and searching and acquiring a target simulation data generation file matched with the target simulation data generation command in a root file directory of the JSON system according to the file storage address.
3. The method of claim 1, wherein parsing the target simulation data generation file to generate target simulation data that matches the target simulation data generation command comprises:
analyzing the target simulation data generation file to obtain all JSON grammar data included in the target simulation data generation file;
and analyzing all JSON grammar data to obtain the target simulation data.
4. The method of claim 2, further comprising, prior to obtaining a target simulation data generation file that matches the target simulation data generation command:
responding to a simulation data configuration instruction, generating a current simulation data generation file through a JSON system, and storing the current simulation data generation file in a root file directory of the JSON system;
and constructing a current simulation data generation command matched with the current simulation data generation file through a JSON system according to the file storage address of the current simulation data generation file in the root file directory.
5. The method according to any one of claims 1-4, wherein the data format of the target simulation data is: any of numbers, strings, arrays, objects, boolean values, and time stamps.
6. The method of claim 1, further comprising, after generating target simulation data that matches the target simulation data generation command:
and generating a simulation result according to the generation result of the target simulation data, and carrying out association display on the simulation result and the target simulation data.
7. An apparatus for generating analog data, which is executed by a node backend service, comprising:
the data file acquisition module is used for acquiring a target simulation data generation file matched with the target simulation data generation command under a preset file directory if the target simulation data generation command is detected in the process that the node rear end service is in a working state;
the simulation data generation module is used for analyzing the target simulation data generation file and generating target simulation data matched with the target simulation data generation command;
the target simulation data are used as output data of a setting interface for front-end use.
8. The apparatus of claim 7, wherein the data file acquisition module further comprises:
the storage address acquisition unit is used for acquiring a file storage address matched with the target simulation data generation command according to the attribute of the target simulation data generation command if the target simulation data generation command provided by the JSON system is received in the process that the node rear end service is in a working state; after the node back-end service is triggered and started, establishing communication connection with the JSON system;
and the file searching unit is used for searching and acquiring the target simulation data generation file matched with the target simulation data generation command in the root file directory of the JSON system according to the file storage address.
9. An electronic device, the electronic device comprising:
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 simulated data according to any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of generating analogue data according to any one of claims 1-7.
CN202311023041.8A 2023-08-15 2023-08-15 Method, device, equipment and storage medium for generating analog data Pending CN116954570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311023041.8A CN116954570A (en) 2023-08-15 2023-08-15 Method, device, equipment and storage medium for generating analog data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311023041.8A CN116954570A (en) 2023-08-15 2023-08-15 Method, device, equipment and storage medium for generating analog data

Publications (1)

Publication Number Publication Date
CN116954570A true CN116954570A (en) 2023-10-27

Family

ID=88454639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311023041.8A Pending CN116954570A (en) 2023-08-15 2023-08-15 Method, device, equipment and storage medium for generating analog data

Country Status (1)

Country Link
CN (1) CN116954570A (en)

Similar Documents

Publication Publication Date Title
US20230029359A1 (en) Method and apparatus for testing ai chip computing performance, and non-transitory computer-readable storage medium
CN111752843A (en) Method, device, electronic equipment and readable storage medium for determining influence surface
CN115168130A (en) Chip testing method and device, electronic equipment and storage medium
CN113127357B (en) Unit test method, apparatus, device, storage medium, and program product
CN112149828B (en) Operator precision detection method and device based on deep learning framework
CN116303013A (en) Source code analysis method, device, electronic equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN116954570A (en) Method, device, equipment and storage medium for generating analog data
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115328736A (en) Probe deployment method, device, equipment and storage medium
CN113691403A (en) Topological node configuration method, related device and computer program product
CN113656268B (en) Performance test method and device for business service, electronic equipment and storage medium
CN117270838B (en) Method, device, equipment and medium for generating universal formula script
CN113836291B (en) Data processing method, device, equipment and storage medium
CN115576265B (en) PLC equipment simulation method, device, equipment and storage medium
CN115061925A (en) Performance test method and device of heterogeneous acceleration program and storage medium
CN115757186A (en) Performance test method, device, equipment and medium of software interface
CN115967638A (en) Equipment simulation system, method, equipment and storage medium
CN116578555A (en) Data verification method, system, electronic equipment and storage medium
CN113849170A (en) Code sharing method and device, electronic equipment and storage medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN115567624A (en) Message processing method and device, electronic equipment and medium
CN115102850A (en) Configuration comparison method and device, electronic equipment and storage medium
CN116225568A (en) Management method, device and equipment of application system interface and storage 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