CN117130898A - Test software development method and device of Internet of things module and electronic equipment - Google Patents

Test software development method and device of Internet of things module and electronic equipment Download PDF

Info

Publication number
CN117130898A
CN117130898A CN202210557002.5A CN202210557002A CN117130898A CN 117130898 A CN117130898 A CN 117130898A CN 202210557002 A CN202210557002 A CN 202210557002A CN 117130898 A CN117130898 A CN 117130898A
Authority
CN
China
Prior art keywords
test
control command
command data
data structure
internet
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
CN202210557002.5A
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.)
Sichuan Ailian Technology Co ltd
Original Assignee
Sichuan Ailian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Ailian Technology Co ltd filed Critical Sichuan Ailian Technology Co ltd
Priority to CN202210557002.5A priority Critical patent/CN117130898A/en
Publication of CN117130898A publication Critical patent/CN117130898A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a test software development method and device of an internet of things module and electronic equipment, and relates to the technical field of communication test software development. The method comprises the following steps: the control command data structure of the internet of things module is constructed, so that the control command data structure is convenient to adapt to different chip control requirements, all control commands of the internet of things module can be clearly described, in the process of production test of test software, the control command data corresponding to the control command data structure is analyzed through the coding controller, only commands stored in a lightweight data exchange format are analyzed, loose coupling development is realized, related instructions corresponding to the analyzed control command data are executed, and a plurality of control units corresponding to the related instructions are obtained; and calling the corresponding control unit for each specific test item to complete the test of the test item, thereby improving the development efficiency of test software and ensuring the excellent development quality.

Description

Test software development method and device of Internet of things module and electronic equipment
Technical Field
The application relates to the technical field of communication test software development, in particular to a test software development method and device of an internet of things module and electronic equipment.
Background
When an internet of things (IoT) product module manufacturing enterprise performs actual production testing, development of test software is required for different chip manufacturers and different chip interfaces.
Common internet of things module programming control interfaces include DLL packaging APIs, serial port communications, command line tools, socket communications, and the like.
For development of test software, the existing communication method is as follows: the specific control mode is adapted to specific operation, including various input parameters required by test, analysis of test results and the like, aiming at specific codes of specific chips.
The results of current communication methods include: all new chips need to develop test software, specific adaptation is needed, so that the development efficiency is low, and the development quality is uncontrollable.
Disclosure of Invention
The application aims to provide a test software development method and device of an internet of things module and electronic equipment, and aims to solve the problems that the development efficiency is low and the development quality is uncontrollable because specific adaptation is required for developing test software of a new chip.
In a first aspect, the present application provides a method for developing test software of an internet of things module, where the method includes:
constructing a control command data structure of the internet of things module, wherein the control command data structure comprises: the input parameters and the output parameters are stored in a lightweight data exchange format;
in the process of production test of the test software, analyzing the control command data corresponding to the control command data structure through the coding controller;
executing the analyzed related instructions corresponding to the control command data to obtain a plurality of control units corresponding to the related instructions;
and calling the corresponding control unit for each specific test item to finish the test of the test item.
Under the condition of adopting the technical scheme, the test software development method of the internet of things module provided by the embodiment of the application can construct a control command data structure of the internet of things module, wherein the control command data structure comprises the following components: the input parameters and the output parameters are stored in a lightweight data exchange format, so that the control system is convenient for adapting to different chip control requirements, all control commands of the internet of things module can be clearly described, and in the process of production test of test software, the control command data corresponding to the control command data structure is analyzed through the coding controller; when the coding controller codes, only the command stored by analyzing the lightweight data exchange format is realized, and a specific control command is not written in the code, so that loose coupling development is realized, the analyzed related instructions corresponding to the control command data are executed, and a plurality of control units corresponding to the related instructions are obtained; according to each specific test item, the corresponding control unit is called, the test of the test item is completed, once the control command data structure and the coding controller are realized, the control command data structure and the coding controller can be kept relatively stable, and if new codes are added later, only codes of corresponding parts are needed to be added, and for the development of test software of the Internet of things modules of different protocols, different interfaces and different chips, only lightweight data exchange format files corresponding to the control command structure are needed to be combed according to test requirements, the development of the test software can be completed rapidly, the development efficiency of the test software is improved, and the excellent development quality is ensured.
In one possible implementation manner, the executing the relevant instruction corresponding to the parsed control command data includes:
and executing corresponding related instructions corresponding to the control command data after analysis by corresponding coding methods according to different programming interfaces.
In one possible implementation manner, the calling the corresponding control unit for each specific test item to complete the test of the test item includes:
in the process of carrying out production test on test software, calling a corresponding control unit for each specific test item, and determining that the test item passes normally under the condition that an instruction corresponding to the control unit is completed;
and calling the corresponding control unit again under the condition that the instruction corresponding to the control unit is not completed, and determining that the test item fails under the condition that the instruction is not completed.
In one possible implementation manner, in the process of performing production test by the test software, the parsing, by the encoding controller, the control command data corresponding to the control command data structure includes:
and in the process of production test of the test software, analyzing the input parameters and the output parameters which are stored in a lightweight data exchange format in the control command data structure through the coding controller.
In one possible implementation, the lightweight data exchange format includes JSON format.
In a second aspect, the present application further provides a test software development device for an internet of things module, where the device includes:
the construction module is used for constructing a control command data structure of the internet of things module, and the control command data structure comprises: the input parameters and the output parameters are stored in a lightweight data exchange format;
the analysis module is used for analyzing the control command data corresponding to the control command data structure through the coding controller in the process of production test of the test software;
the execution module is used for executing the relevant instructions corresponding to the control command data after analysis to obtain a plurality of control units corresponding to the relevant instructions;
and the test module is used for calling the corresponding control unit for each specific test item to finish the test of the test item.
In one possible implementation, the execution module includes:
the execution sub-module is used for executing relevant instructions corresponding to the control command data after analysis by corresponding coding methods aiming at different programming interfaces.
In one possible implementation, the test module includes:
the first determining submodule is used for calling the corresponding control unit for each specific test item in the process of production test of the test software, and determining that the test item normally passes under the condition that an instruction corresponding to the control unit is completed;
and the second determining submodule is used for calling the corresponding control unit again under the condition that the instruction corresponding to the control unit is not completed, and determining that the test item fails under the condition that the instruction is not completed.
In one possible implementation, the parsing module includes:
the analysis submodule is used for analyzing the input parameters and the output parameters which are stored in the control command data structure in a lightweight data exchange format through the coding controller in the process of production test of test software;
the lightweight data exchange format includes JSON format.
The beneficial effects of the test software development device of the internet of things module provided in the second aspect are the same as those of the test software development method of the internet of things module described in the first aspect or any possible implementation manner of the first aspect, and are not repeated here.
In a third aspect, the present application also provides an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the test software development method of the internet of things module described in any of the possible implementations of the first aspect.
The beneficial effects of the electronic device provided in the third aspect are the same as the beneficial effects of the test software development method of the internet of things module described in the first aspect or any possible implementation manner of the first aspect, and are not described herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 shows a flow diagram of a test software development method of an internet of things module according to an embodiment of the present application;
fig. 2 is a schematic diagram showing a control command data structure of an internet of things module according to an embodiment of the present application;
fig. 3 is a flow chart illustrating a method for developing test software of another internet of things module according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a control implementation process of an encoding controller according to an embodiment of the present application;
FIG. 5 shows a test item flow chart provided by an embodiment of the present application;
fig. 6 shows a schematic structural diagram of a test software development device of an internet of things module according to an embodiment of the present application;
fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a chip according to an embodiment of the present application.
Reference numerals:
400-an electronic device; 410-a processor; 420-a communication interface; 430-memory; 440-communication line; 500-chips; 540-bus system.
Detailed Description
In order to clearly describe the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first threshold and the second threshold are merely for distinguishing between different thresholds, and are not limited in order. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In the present application, the words "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c can be single or multiple.
Fig. 1 shows a flow chart of a method for developing test software of an internet of things module, which is provided by the embodiment of the application, as shown in fig. 1, and includes:
step 101: constructing a control command data structure of the internet of things module, wherein the control command data structure comprises: the input parameters and the output parameters are stored in a lightweight data exchange format.
In the present application, the lightweight data exchange format includes JSON format.
Fig. 2 is a schematic diagram showing the content of a control command data structure of an internet of things module according to an embodiment of the present application, where, as shown in fig. 2, the control command data structure may be stored in JSON format, one control command data structure may include at least one command group list, the command group list may include a plurality of command groups, each command group may include a plurality of command nodes, each command node may include an input parameter, a command to be executed, and an output parameter, each input parameter may include a plurality of input subparameters, each input subparameter may include a parameter name and a parameter value, each output parameter may include a plurality of output subparameters, and each output subparameter may include a parameter name and a parameter value.
In the application, the input parameters and the output parameters are stored in a lightweight data exchange format, wherein the lightweight data exchange format comprises a JSON format, so that the control commands of the IoT module can be clearly described in order to adapt to different chip control requirements.
Step 102: and in the process of production test of the test software, analyzing the control command data corresponding to the control command data structure through the coding controller.
In the application, the input parameters and the output parameters stored in the control command data structure in a lightweight data exchange format can be analyzed by the encoding controller in the process of production test of test software.
When the encoding controller encodes, only the command in the JSON format is analyzed, and specific control commands, such as a command line command, a serial port command and the like, are not written in the encoding, so that loose coupling development is realized.
Step 103: and executing the analyzed related instructions corresponding to the control command data to obtain a plurality of control units corresponding to the related instructions.
In the application, the corresponding coding method can be used for executing the corresponding related instructions corresponding to the control command data after analysis according to different programming interfaces to obtain a plurality of control units corresponding to a plurality of related instructions.
Step 104: and calling the corresponding control unit for each specific test item to finish the test of the test item.
In the application, in the process of production test of test software, the corresponding control unit is called for each specific test item, and the test item is determined to pass normally under the condition that the instruction corresponding to the control unit is completed.
It should be noted that, once the control command data structure and the coding controller in the application are realized, the control command data structure and the coding controller can be kept relatively stable, and if the control command data structure and the coding controller are newly added later, only codes of corresponding parts are needed to be added, and for development of test software of IoT modules with different protocols, different interfaces and different chips, only JSON format files corresponding to the control command structure are needed to be combed according to test requirements, so that development of the test software can be completed rapidly.
In summary, the method for developing test software of an internet of things module according to the embodiment of the present application may construct a control command data structure of the internet of things module, where the control command data structure includes: the input parameters and the output parameters are stored in a lightweight data exchange format, so that the control system is convenient for adapting to different chip control requirements, all control commands of the internet of things module can be clearly described, and in the process of production test of test software, the control command data corresponding to the control command data structure is analyzed through the coding controller; when the coding controller codes, only the command stored by analyzing the lightweight data exchange format is realized, and a specific control command is not written in the code, so that loose coupling development is realized, the analyzed related instructions corresponding to the control command data are executed, and a plurality of control units corresponding to the related instructions are obtained; according to each specific test item, the corresponding control unit is called, the test of the test item is completed, once the control command data structure and the coding controller are realized, the control command data structure and the coding controller can be kept relatively stable, and if new codes are added later, only codes of corresponding parts are needed to be added, and for the development of test software of the Internet of things modules of different protocols, different interfaces and different chips, only lightweight data exchange format files corresponding to the control command structure are needed to be combed according to test requirements, the development of the test software can be completed rapidly, the development efficiency of the test software is improved, and the excellent development quality is ensured.
Fig. 3 is a flow chart illustrating another method for developing test software of an internet of things module according to an embodiment of the present application, where, as shown in fig. 3, the method for developing test software of an internet of things module includes:
step 201: constructing a control command data structure of the internet of things module, wherein the control command data structure comprises: the input parameters and the output parameters are stored in a lightweight data exchange format.
In the present application, the lightweight data exchange format includes JSON format.
Fig. 2 is a schematic diagram showing the content of a control command data structure of an internet of things module according to an embodiment of the present application, where, as shown in fig. 2, the control command data structure may be stored in JSON format, one control command data structure may include at least one command group list, the command group list may include a plurality of command groups, each command group may include a plurality of command nodes, each command node may include an input parameter, a command to be executed, and an output parameter, each input parameter may include a plurality of input subparameters, each input subparameter may include a parameter name and a parameter value, each output parameter may include a plurality of output subparameters, and each output subparameter may include a parameter name and a parameter value.
In the application, the input parameters and the output parameters are stored in a lightweight data exchange format, wherein the lightweight data exchange format comprises a JSON format, so that the control commands of the IoT module can be clearly described in order to adapt to different chip control requirements.
Step 202: and in the process of production test of the test software, analyzing the control command data corresponding to the control command data structure through the coding controller.
In the application, the input parameters and the output parameters stored in the control command data structure in a lightweight data exchange format can be analyzed by the encoding controller in the process of production test of test software.
When the encoding controller encodes, only the command in the JSON format is analyzed, and specific control commands, such as a command line command, a serial port command and the like, are not written in the encoding, so that loose coupling development is realized.
Step 203: and aiming at different programming interfaces, executing the corresponding related instructions corresponding to the control command data after analysis by corresponding coding methods respectively to obtain a plurality of control units corresponding to the related instructions.
In the present application, fig. 4 shows a schematic diagram of a control implementation process of an encoding controller provided in the embodiment of the present application, and as shown in fig. 4, taking the c++ language as an example, the implementation of a Class, mainly completing JSON file parsing to obtain a control command and a call of a control unit may be implemented. When the specific coding is carried out, the controller only codes the control command data structure, does not write the specific control command, and realizes the coding according to a mode similar to loose coupling.
As shown in fig. 4, the controller, that is, the encoding controller in the present application, includes an attribute and a method branch, where the attribute branch stores JSON file names and other parameters, and the method branch includes a command group parser and a command group executor, where the command group parser may read the JSON file and parse the JSON file into a corresponding data structure, and the command group executor may execute a command sequence of a specific command group and output a result, and may specifically include a command line executor, a serial port command executor, an HTTP command executor and other types of command executors.
Step 204: and in the process of carrying out production test on the test software, calling the corresponding control unit for each specific test item, and determining that the test item passes normally under the condition that the instruction corresponding to the control unit is completed.
In the present application, fig. 5 shows a test item flowchart provided by the embodiment of the present application, as shown in fig. 5, after a test starts, a controller (i.e. a coding controller in the present application) may be called, a Json file is parsed, then a corresponding controller unit may be called, a command group is executed, and a determination result is determined that the test normally passes under the condition that the executed command group passes.
Step 205: and calling the corresponding control unit again under the condition that the instruction corresponding to the control unit is not completed, and determining that the test item fails under the condition that the instruction is not completed.
In the present application, referring to fig. 5, when the execution command set fails, the recall control unit is returned to execute the corresponding command set once, and the result is again determined, if the execution of the command set is completed, the test is determined to pass normally, and if the command set fails, the test is determined to fail.
It should be noted that, once the control command data structure and the coding controller in the application are realized, the control command data structure and the coding controller can be kept relatively stable, and if the control command data structure and the coding controller are newly added later, only codes of corresponding parts are needed to be added, and for development of test software of IoT modules with different protocols, different interfaces and different chips, only JSON format files corresponding to the control command structure are needed to be combed according to test requirements, so that development of the test software can be completed rapidly.
In summary, the method for developing test software of an internet of things module according to the embodiment of the present application may construct a control command data structure of the internet of things module, where the control command data structure includes: the input parameters and the output parameters are stored in a lightweight data exchange format, so that the control system is convenient for adapting to different chip control requirements, all control commands of the internet of things module can be clearly described, and in the process of production test of test software, the control command data corresponding to the control command data structure is analyzed through the coding controller; when the coding controller codes, only the command stored by analyzing the lightweight data exchange format is realized, and a specific control command is not written in the code, so that loose coupling development is realized, the analyzed related instructions corresponding to the control command data are executed, and a plurality of control units corresponding to the related instructions are obtained; according to each specific test item, the corresponding control unit is called, the test of the test item is completed, once the control command data structure and the coding controller are realized, the control command data structure and the coding controller can be kept relatively stable, and if new codes are added later, only codes of corresponding parts are needed to be added, and for the development of test software of the Internet of things modules of different protocols, different interfaces and different chips, only lightweight data exchange format files corresponding to the control command structure are needed to be combed according to test requirements, the development of the test software can be completed rapidly, the development efficiency of the test software is improved, and the excellent development quality is ensured.
Fig. 6 shows a schematic structural diagram of a test software development device for an internet of things module according to an embodiment of the present application, and as shown in fig. 6, a test software development device 300 for an internet of things module includes:
a construction module 301, configured to construct a control command data structure of the internet of things module, where the control command data structure includes: the input parameters and the output parameters are stored in a lightweight data exchange format;
the parsing module 302 is configured to parse the control command data corresponding to the control command data structure through the encoding controller during the production test of the test software;
the execution module 303 is configured to execute the parsed related instruction corresponding to the control command data, to obtain a plurality of control units corresponding to the plurality of related instructions;
and the test module 304 is configured to call the corresponding control unit for each specific test item, and complete the test of the test item.
Optionally, the execution module includes:
the execution sub-module is used for executing relevant instructions corresponding to the control command data after analysis by corresponding coding methods aiming at different programming interfaces.
Optionally, the test module includes:
the first determining submodule is used for calling the corresponding control unit for each specific test item in the process of production test of the test software, and determining that the test item normally passes under the condition that an instruction corresponding to the control unit is completed;
and the second determining submodule is used for calling the corresponding control unit again under the condition that the instruction corresponding to the control unit is not completed, and determining that the test item fails under the condition that the instruction is not completed.
Optionally, the parsing module includes:
the analysis submodule is used for analyzing the input parameters and the output parameters which are stored in the control command data structure in a lightweight data exchange format through the coding controller in the process of production test of test software;
the lightweight data exchange format includes JSON format.
In summary, the test software development device for an internet of things module provided by the embodiment of the application can construct a control command data structure of the internet of things module, where the control command data structure includes: the input parameters and the output parameters are stored in a lightweight data exchange format, so that the control system is convenient for adapting to different chip control requirements, all control commands of the internet of things module can be clearly described, and in the process of production test of test software, the control command data corresponding to the control command data structure is analyzed through the coding controller; when the coding controller codes, only the command stored by analyzing the lightweight data exchange format is realized, and a specific control command is not written in the code, so that loose coupling development is realized, the analyzed related instructions corresponding to the control command data are executed, and a plurality of control units corresponding to the related instructions are obtained; according to each specific test item, the corresponding control unit is called, the test of the test item is completed, once the control command data structure and the coding controller are realized, the control command data structure and the coding controller can be kept relatively stable, and if new codes are added later, only codes of corresponding parts are needed to be added, and for the development of test software of the Internet of things modules of different protocols, different interfaces and different chips, only lightweight data exchange format files corresponding to the control command structure are needed to be combed according to test requirements, the development of the test software can be completed rapidly, the development efficiency of the test software is improved, and the excellent development quality is ensured.
The test software development device of the internet of things module provided by the application can realize the test software development method of the internet of things module shown in any one of fig. 1 to 5, and in order to avoid repetition, the description is omitted.
The electronic device in the embodiment of the application can be a device, a component in a terminal, an integrated circuit, or a chip. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network ATached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The electronic device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
Fig. 7 shows a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device 400 includes a processor 410.
As shown in FIG. 7, the processor 410 may be a general purpose central processing unit (central processing unit, CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
As shown in fig. 7, the electronic device 400 may further include a communication line 440. Communication line 440 may include a path to communicate information between the above-described components.
Optionally, as shown in fig. 7, the electronic device may further include a communication interface 420. The communication interface 420 may be one or more. Communication interface 420 may use any transceiver-like device for communicating with other devices or communication networks.
Optionally, as shown in fig. 7, the electronic device may also include a memory 430. Memory 430 is used to store computer-executable instructions for performing aspects of the present application and is controlled by the processor for execution. The processor is configured to execute computer-executable instructions stored in the memory, thereby implementing the method provided by the embodiment of the application.
As shown in fig. 7, the memory 430 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 430 may be stand alone and be coupled to the processor 410 via a communication line 440. Memory 430 may also be integrated with processor 410.
Alternatively, the computer-executable instructions in the embodiments of the present application may be referred to as application program codes, which are not particularly limited in the embodiments of the present application.
In a particular implementation, as one embodiment, as shown in FIG. 7, processor 410 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 7.
In a specific implementation, as an embodiment, as shown in fig. 7, the terminal device may include a plurality of processors, such as the processor in fig. 7. Each of these processors may be a single-core processor or a multi-core processor.
Fig. 8 is a schematic structural diagram of a chip according to an embodiment of the present application. As shown in fig. 8, the chip 500 includes one or more (including two) processors 410.
Optionally, as shown in fig. 8, the chip further includes a communication interface 420 and a memory 430, and the memory 430 may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (non-volatile random access memory, NVRAM).
In some implementations, as shown in FIG. 8, the memory 430 stores elements, execution modules or data structures, or a subset thereof, or an extended set thereof.
In the embodiment of the present application, as shown in fig. 8, by calling the operation instruction stored in the memory (the operation instruction may be stored in the operating system), the corresponding operation is performed.
As shown in fig. 8, the processor 410 controls processing operations of any one of the terminal devices, and the processor 410 may also be referred to as a central processing unit (central processing unit, CPU).
As shown in fig. 8, memory 430 may include read only memory and random access memory, and provides instructions and data to the processor. A portion of the memory 430 may also include NVRAM. Such as a memory, a communication interface, and a memory coupled together by a bus system that may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. But for clarity of illustration, the various buses are labeled as bus system 540 in fig. 8.
As shown in fig. 8, the method disclosed in the above embodiment of the present application may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
In one aspect, a computer readable storage medium is provided, in which instructions are stored, which when executed, implement the functions performed by the terminal device in the above embodiments.
In one aspect, a chip is provided, where the chip is applied to a terminal device, and the chip includes at least one processor and a communication interface, where the communication interface is coupled to the at least one processor, and the processor is configured to execute instructions to implement a function executed by a test software development method of an internet of things module in the foregoing embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a terminal, a user equipment, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, e.g., floppy disk, hard disk, tape; optical media, such as digital video discs (digital video disc, DVD); but also semiconductor media such as solid state disks (solid state drive, SSD).
Although the application is described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the application. It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. The method for developing test software of the internet of things module is characterized by comprising the following steps:
constructing a control command data structure of the internet of things module, wherein the control command data structure comprises: the input parameters and the output parameters are stored in a lightweight data exchange format;
in the process of production test of the test software, analyzing the control command data corresponding to the control command data structure through the coding controller;
executing the analyzed related instructions corresponding to the control command data to obtain a plurality of control units corresponding to the related instructions;
and calling the corresponding control unit for each specific test item to finish the test of the test item.
2. The method according to claim 1, wherein the executing the parsed related instruction corresponding to the control command data includes:
and executing corresponding related instructions corresponding to the control command data after analysis by corresponding coding methods according to different programming interfaces.
3. The method according to claim 1, wherein the calling the corresponding control unit for each specific test item to complete the test of the test item includes:
in the process of carrying out production test on test software, calling a corresponding control unit for each specific test item, and determining that the test item passes normally under the condition that an instruction corresponding to the control unit is completed;
and calling the corresponding control unit again under the condition that the instruction corresponding to the control unit is not completed, and determining that the test item fails under the condition that the instruction is not completed.
4. The method according to claim 1, wherein the parsing, by the encoder controller, the control command data corresponding to the control command data structure during the production test of the test software includes:
and in the process of production test of the test software, analyzing the input parameters and the output parameters which are stored in a lightweight data exchange format in the control command data structure through the coding controller.
5. The method of claim 1, wherein the lightweight data exchange format comprises a JSON format.
6. The utility model provides a test software development device of thing networking module, its characterized in that, the device includes:
the construction module is used for constructing a control command data structure of the internet of things module, and the control command data structure comprises: the input parameters and the output parameters are stored in a lightweight data exchange format;
the analysis module is used for analyzing the control command data corresponding to the control command data structure through the coding controller in the process of production test of the test software;
the execution module is used for executing the relevant instructions corresponding to the control command data after analysis to obtain a plurality of control units corresponding to the relevant instructions;
and the test module is used for calling the corresponding control unit for each specific test item to finish the test of the test item.
7. The apparatus of claim 6, wherein the execution module comprises:
the execution sub-module is used for executing relevant instructions corresponding to the control command data after analysis by corresponding coding methods aiming at different programming interfaces.
8. The apparatus of claim 6, wherein the test module comprises:
the first determining submodule is used for calling the corresponding control unit for each specific test item in the process of production test of the test software, and determining that the test item normally passes under the condition that an instruction corresponding to the control unit is completed;
and the second determining submodule is used for calling the corresponding control unit again under the condition that the instruction corresponding to the control unit is not completed, and determining that the test item fails under the condition that the instruction is not completed.
9. The apparatus of claim 6, wherein the parsing module comprises:
the analysis submodule is used for analyzing the input parameters and the output parameters which are stored in the control command data structure in a lightweight data exchange format through the coding controller in the process of production test of test software;
the lightweight data exchange format includes JSON format.
10. An electronic device, comprising: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, enable execution of the test software development method of the internet of things module of any one of claims 1 to 5.
CN202210557002.5A 2022-05-20 2022-05-20 Test software development method and device of Internet of things module and electronic equipment Pending CN117130898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210557002.5A CN117130898A (en) 2022-05-20 2022-05-20 Test software development method and device of Internet of things module and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210557002.5A CN117130898A (en) 2022-05-20 2022-05-20 Test software development method and device of Internet of things module and electronic equipment

Publications (1)

Publication Number Publication Date
CN117130898A true CN117130898A (en) 2023-11-28

Family

ID=88851435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210557002.5A Pending CN117130898A (en) 2022-05-20 2022-05-20 Test software development method and device of Internet of things module and electronic equipment

Country Status (1)

Country Link
CN (1) CN117130898A (en)

Similar Documents

Publication Publication Date Title
CN111428462B (en) Communication protocol template construction method and terminal equipment
WO2019218458A1 (en) Application program test method and device, mobile terminal and medium
CN112765023B (en) Test case generation method and device
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN108228444B (en) Test method and device
CN111858727B (en) Multi-data source data export system and method based on template configuration
WO2019218464A1 (en) Application program testing method and apparatus, and mobile terminal and medium
CN112181522A (en) Data processing method and device and electronic equipment
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN110851207B (en) State transition management method and device, electronic equipment and storage medium
CN115150024A (en) Data processing method, device, equipment and medium
CN111142925A (en) Pipeline type data processing method, equipment and storage medium
CN110968339B (en) Method and device for front-end building tool and electronic equipment
CN115495082B (en) TLV format data automatic conversion method and related equipment
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN117130898A (en) Test software development method and device of Internet of things module and electronic equipment
CN110780855A (en) Method, device and system for uniformly managing and controlling interface
CN114090514A (en) Log retrieval method and device for distributed system
CN115858256A (en) Test method and device for Internet of things equipment and electronic equipment
US10922249B2 (en) Input/output control code filter
CN113419957A (en) Rule-based big data offline batch processing performance capacity scanning method and device
CN117215966B (en) Test method and test device for chip SDK interface and electronic equipment
CN111124416B (en) Method, apparatus, device and storage medium for transferring parameters to an inline assembly
CN112799933B (en) Automatic test method and device
CN108829592B (en) Method and device for verifying quick access register and table entry and verification equipment

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