Nothing Special   »   [go: up one dir, main page]

CN113127338A - Firmware testing method, server and computer readable storage medium - Google Patents

Firmware testing method, server and computer readable storage medium Download PDF

Info

Publication number
CN113127338A
CN113127338A CN202110303511.0A CN202110303511A CN113127338A CN 113127338 A CN113127338 A CN 113127338A CN 202110303511 A CN202110303511 A CN 202110303511A CN 113127338 A CN113127338 A CN 113127338A
Authority
CN
China
Prior art keywords
test
case
signaling
data
target instruction
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
CN202110303511.0A
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 Ruiming Zhitong Technology Co ltd
Original Assignee
Sichuan Ruiming Zhitong 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 Ruiming Zhitong Technology Co ltd filed Critical Sichuan Ruiming Zhitong Technology Co ltd
Priority to CN202110303511.0A priority Critical patent/CN113127338A/en
Publication of CN113127338A publication Critical patent/CN113127338A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a firmware testing method and a server, wherein the method comprises the following steps: the server acquires a test signaling and a device identifier of the device to be tested; acquiring a test case according to the test signaling, and generating a target instruction according to the test case; and sending the target instruction to the to-be-tested equipment according to the equipment identification, and receiving test data returned by the to-be-tested equipment. When the firmware is tested, the target instruction is directly sent to the equipment to be tested, manual checking is not needed, operation steps are simplified, and the efficiency of the firmware test is obviously improved. In addition, in the embodiment of the application, the use case data can be managed in a unified mode, can be executed in batches, can be operated by one key, greatly improves the efficiency and is high in expansibility.

Description

Firmware testing method, server and computer readable storage medium
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a firmware testing method, a server, and a computer-readable storage medium.
Background
In the field of security monitoring, a security monitoring platform generally needs to be compatible with other devices of different manufacturers besides being butted with own video monitoring devices. That is to say, the security monitoring platform needs to adapt to different devices according to different protocols. Some devices are not completely developed according to the specified protocol, so that compatibility problems can occur when accessing the platform. Therefore, prior to use, firmware testing is required. Most of the current firmware tests are manually checked by testers according to established data, so that the operation steps are complicated, and the efficiency is low.
Disclosure of Invention
The embodiment of the application provides a firmware testing method, a server and a computer readable storage medium, which can solve the problems of complicated operation steps and low efficiency of the existing firmware testing method.
In a first aspect, an embodiment of the present application provides a firmware testing method, including:
acquiring a test signaling and a device identifier of a device to be tested;
acquiring a test case according to the test signaling, and generating a target instruction according to the test case;
and sending the target instruction to the to-be-tested equipment according to the equipment identification, and receiving test data returned by the to-be-tested equipment.
According to the scheme, when the firmware is tested, the target instruction is directly sent to the to-be-tested equipment without manual checking, so that the operation steps are simplified, and the efficiency of the firmware test is obviously improved. In addition, in the embodiment of the application, the use case data can be managed in a unified mode, can be executed in batches, can be operated by one key, greatly improves the efficiency and is high in expansibility.
Further, the obtaining a test case according to the test signaling and generating a target instruction according to the test case includes:
acquiring an associated protocol corresponding to the test signaling;
if the associated protocol corresponding to the test signaling is obtained, determining a test case according to the test signaling and the associated protocol corresponding to the test signaling;
and carrying out protocol analysis on the test case to obtain a target instruction.
According to the scheme, when the user inputs the test signaling on the front-end equipment, the user fills in the association protocol, and then the association protocol corresponding to the test signaling can be obtained. Therefore, a user can determine the test case by setting the associated protocol, the test case can be determined only by the test signaling with the associated protocol, and the user can flexibly manage and control the test case.
Further, the performing protocol analysis on the test case to obtain a target instruction includes:
and if the test case has the associated execution parameters, generating a target instruction according to the associated execution parameters and the test case.
According to the scheme, when the protocol is analyzed, whether the test case has the associated execution parameters or not can be judged firstly, and the associated execution parameters are conditions for filling the user into the test case before the analysis and the issuing of the test case. The user can flexibly set the test data and the test environment by setting the associated execution parameters, thereby greatly improving the test efficiency.
Further, the performing protocol analysis on the test case to obtain a target instruction includes:
and if the test case has no associated execution parameters, generating a target instruction according to preset default execution parameters and the test case.
According to the scheme, when the protocol is analyzed, whether the test case has the associated execution parameters or not can be judged firstly, and the associated execution parameters are conditions for filling the user into the test case before the analysis and the issuing of the test case. When the associated execution parameters set by the user are not obtained, in order to ensure smooth test, the preset default execution parameters set in advance can be adopted to continue the test, so that the test is ensured to be carried out. In addition, the default execution parameters can be understood as a default test mode, and when the user does not set the default execution parameters, the test can be conveniently carried out.
Further, after the receiving the test data returned by the device under test, the method further includes:
and if the test data is data returned aiming at the test signaling, performing data conversion on the test data to obtain one or more of test interaction track data, test process data and test result data.
According to the scheme, if the test data is data returned aiming at the test signaling, the server performs data conversion on the test data to obtain a response test result. The test data is detected once, whether the test data is returned aiming at the test signaling is detected, and therefore the test result corresponding to each device to be tested can be accurately obtained when a plurality of devices to be tested are tested simultaneously, and the test efficiency is improved.
Further, the obtaining of the test case according to the test signaling includes:
and determining a test case corresponding to the test signaling according to the test signaling and the case data set of the strong association relation.
The server can analyze the test signaling to obtain a corresponding test case, and then obtain the test case with the closest relationship with the test signaling from the case data set with the strong association relationship, that is, obtain the test case which is most likely to be used by the user. The use case data set with the strong association relation is preset, so that the cost of manual operation is reduced, and the efficiency of firmware verification is further improved.
Further, before determining the test case corresponding to the test signaling according to the test signaling and the case data set with the strong association relationship, the method further includes:
and learning the case data in the preset case set through a data mining algorithm to obtain the case data set with the strong association relation.
The server can learn the data use cases to obtain a use case data set with a strong association relation. The data use cases are automatically learned, so that the cost of manual operation is further reduced, and the efficiency of firmware verification is further improved.
In a second aspect, an embodiment of the present application provides a server, including:
the device comprises an acquisition unit, a test unit and a test unit, wherein the acquisition unit is used for acquiring a test signaling and a device identifier of a device to be tested;
the first processing unit is used for acquiring a test case according to the test signaling and generating a target instruction according to the test case;
and the second processing unit is used for sending the target instruction to the to-be-tested equipment according to the equipment identifier and receiving test data returned by the to-be-tested equipment.
Further, the first processing unit is specifically configured to:
acquiring an associated protocol corresponding to the test signaling;
if the associated protocol corresponding to the test signaling is obtained, determining a test case according to the test signaling and the associated protocol corresponding to the test signaling;
and carrying out protocol analysis on the test case to obtain a target instruction.
Further, the first processing unit is specifically configured to:
and if the test case has the associated execution parameters, generating a target instruction according to the associated execution parameters and the test case.
Further, the first processing unit is specifically configured to:
and if the test case has no associated execution parameters, generating a target instruction according to preset default execution parameters and the test case.
Further, the server further includes:
and the third processing unit is used for performing data conversion on the test data to obtain one or more of test interaction track data, test process data and test result data if the test data is data returned aiming at the test signaling.
Further, the first processing unit is specifically configured to:
and determining a test case corresponding to the test signaling according to the test signaling and the case data set of the strong association relation.
Further, the server further includes:
and the fourth processing unit is used for learning the case data in the preset case set through a data mining algorithm to obtain the case data set with the strong association relation.
In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the firmware testing method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the firmware testing method according to the first aspect.
In the embodiment of the application, a server acquires a test signaling and a device identifier of a device to be tested; acquiring a test case according to the test signaling, and generating a target instruction according to the test case; and sending the target instruction to the to-be-tested equipment according to the equipment identification, and receiving test data returned by the to-be-tested equipment. When the firmware is tested, the target instruction is directly sent to the equipment to be tested, manual checking is not needed, operation steps are simplified, and the efficiency of the firmware test is obviously improved. In addition, in the embodiment of the application, the use case data can be managed in a unified mode, can be executed in batches, can be operated by one key, greatly improves the efficiency and is high in expansibility.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a firmware testing method according to a first embodiment of the present application;
fig. 2 is a schematic flowchart of a refinement of S102 in a firmware testing method according to a first embodiment of the present application;
FIG. 3 is a schematic diagram of a server provided by a second embodiment of the present application;
fig. 4 is a schematic diagram of a server provided in a third embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of a firmware testing method according to a first embodiment of the present application. In this embodiment, an execution subject of the firmware testing method is a server. The firmware testing method as shown in fig. 1 may include:
s101: and acquiring the test signaling and the equipment identification of the equipment to be tested.
The server obtains the test signaling and the equipment identification of the equipment to be tested. The test signaling may include signaling data, case data composed of the signaling data, and case set data composed of the case data, which is not limited herein.
The device identification is a unique and determined identification that each device has, for example, the identification of the device to be tested 1 may be a and the identification of the device to be tested 2 may be B.
In an embodiment, the server may obtain the test signaling and the device identifier of the device to be tested from preset test data, for example, the server may be preset, and obtain the test signaling and the device identifier of the device to be tested from the preset test data under a certain trigger condition, so as to test the device to be tested.
In one embodiment, the server may receive the test signaling sent by the front-end device and the device identifier of the device to be tested. A user can input a test signaling and a device identification of a device to be tested through a page of the front-end device, and then the front-end device sends the test signaling and the device identification of the device to be tested to a server; or, the user may send the test signaling and the device identifier of the device to be tested to the front-end device through other devices, and then the front-end device sends the test signaling and the device identifier of the device to be tested to the server, which is not limited herein. Therefore, the user can flexibly set the test signaling and the equipment identification of the equipment to be tested, the batch execution can be realized, the one-key operation can be realized, and the test efficiency is improved during the test.
In addition, when a user inputs a test signal on the front-end equipment, different plug-ins can be selected, so that the user can select different plug-ins according to requirements, and the test is more flexible and beneficial to improving the test efficiency. For example, selecting a different plug-in may select whether to issue a use case or a set of use cases when issuing data to the device to be tested. When the user inputs the test signaling on the front-end equipment, the front-end interface can set a drop-down box for selecting the associated protocol, the associated protocol is selected as a necessary item, if the associated protocol is not filled, the current test signaling is judged to have no associated protocol when the test signaling is added, the adding process is terminated, and the process of adding the test signaling is returned again.
S102: and acquiring a test case according to the test signaling, and generating a target instruction according to the test case.
And the server acquires the test case according to the test signaling. The test signaling can comprise signaling data, case data consisting of the signaling data and force set data consisting of the case data, and the server can acquire the test case in the test signaling or integrate the test signaling to obtain the test case.
After the test case is obtained, the server generates a target instruction according to the test case, and the server can decompose the test case to obtain the target instruction corresponding to the test case which can be identified by the device to be tested.
Specifically, S102 may include S1021 to S1023, and as shown in fig. 2, S1021 to S1023 are specifically as follows:
s1021: and acquiring the associated protocol corresponding to the test signaling.
And the server acquires the associated protocol corresponding to the test signaling. When the user inputs the test signaling on the front-end equipment, the user fills in the association protocol, and then the association protocol corresponding to the test signaling can be obtained.
When the user inputs the test signaling on the front-end equipment, the user does not fill in the associated protocol, and then the associated protocol corresponding to the test signaling cannot be acquired.
S1022: and if the associated protocol corresponding to the test signaling is obtained, determining a test case according to the test signaling and the associated protocol corresponding to the test signaling.
If the server obtains the associated protocol corresponding to the test signaling, determining a test case according to the test signaling and the associated protocol corresponding to the test signaling, namely, the device performs case composition on the test signaling and the associated protocol corresponding to the test signaling to obtain the test case.
S1023: and carrying out protocol analysis on the test case to obtain a target instruction.
The server can perform protocol analysis on the test case to obtain a target instruction, and during analysis, the server can perform protocol analysis on the test case according to a preset protocol to obtain the target instruction which can be identified by the device to be tested.
Specifically, when the protocol is analyzed, it may be determined whether the test case has associated execution parameters, where the associated execution parameters are conditions for the user to fill in the test case before the test case is issued after the analysis. For example, in a test case in a heartbeat scene of a device to be tested, a time period of a heartbeat cycle needs to be input as an associated execution parameter, and a time interval of heartbeats of the device to be tested exceeds the time period, that is, the test case is regarded as failing.
And if the test case has the associated execution parameters, generating a target instruction according to the associated execution parameters and the test case. When the target instruction is generated according to the associated execution parameters and the test case, the device may also determine whether the current associated execution parameters are complete, and if the test case has the associated execution parameters which are complete, the target instruction may be generated according to the associated execution parameters and the test case.
If the test case has no associated execution parameters, the server can acquire preset default execution parameters and generate a target instruction according to the preset default execution parameters and the test case.
In addition, when the test case protocol is analyzed, whether the test case has an associated scene or not can be judged at first, and the associated scene is set by a user before the test case is analyzed and issued. The service scenarios generally include: device registration, device authentication, device heartbeat, and the like. The independent test cases of the unassociated scene can analyze and issue a single test case; the test case set associated with the service scene can analyze and issue batch test cases.
In one embodiment, a server obtains a test case according to a test signaling, including: and determining a test case corresponding to the test signaling according to the test signaling and the case data set of the strong association relation. The server stores a case data set with a strong association relationship in advance, wherein the case data set with the strong association relationship stores the association relationship among the learned test cases. The server can analyze the test signaling to obtain a corresponding test case, and then obtain the test case with the closest relationship with the test signaling from the case data set with the strong association relationship, that is, obtain the test case which is most likely to be used by the user.
The case data set with the strong association relation can be automatically learned according to the data cases collected by the server, and the server learns the case data in the preset case set through a data mining algorithm to obtain the case data set with the strong association relation. After the server analyzes a new test case each time, the server can store the new test case into a storage area of the server to obtain a data case, and the server can learn the data case to obtain a case data set with a strong association relation. In order to obtain the association relationship between frequent items from the existing data use cases in the database, a strong association item between the data use cases can be generated by adopting an FP-growth algorithm, so that the verification efficiency of the tool is further improved.
In the automatic learning process, there are two parameters of activities, support (support) and confidence (confidence), which need to be trained according to a large amount of data.
The FP-Growth algorithm mainly aims to find out a frequent item set in a data set, and roughly comprises the following three steps:
(1) and constructing an item head table, wherein the item head table records the set of all frequent items and the support degree count, and arranges the frequent items in descending order according to the support degree count.
(2) And constructing the FP-Tree.
(3) And mining a frequent item set based on the FP-Tree.
It should be noted that, after the server parses a new test case each time, the new test case may be stored in the storage area of the server to obtain a data case. The storage area can be used for storing reading rules of the test cases and verification rules of the test cases, and can provide data such as test case query and test case execution result storage.
S103: and sending the target instruction to the to-be-tested equipment according to the equipment identification, and receiving test data returned by the to-be-tested equipment.
And the server sends the target instruction to the to-be-tested equipment corresponding to the equipment identification according to the equipment identification.
And when the to-be-tested equipment receives the target instruction, testing according to the target instruction to generate test data, and sending the generated test data to the server by the to-be-tested equipment. And the server receives test data returned by the device to be tested.
The test data includes data generated by the device to be tested in the test process and test result data, for example, the test data may include test interaction trajectory data, test process data, and test result data.
It will be appreciated that the device under test may receive a plurality of kinds of test tasks, i.e. different target instructions to perform the test. Therefore, when the device to be tested returns test data, the server needs to judge whether the received test data is data returned for the test signaling, and if the test data is data returned for the test signaling, data conversion is performed on the test data to obtain one or more of test interaction trajectory data, test process data and test result data.
In the embodiment of the application, a server acquires a test signaling and a device identifier of a device to be tested; acquiring a test case according to the test signaling, and generating a target instruction according to the test case; and sending the target instruction to the to-be-tested equipment according to the equipment identification, and receiving test data returned by the to-be-tested equipment. When the firmware is tested, the target instruction is directly sent to the equipment to be tested, manual checking is not needed, operation steps are simplified, and testing efficiency is improved.
In addition, the use case data can be managed in a unified mode, can be executed in batches, can be operated by one key, and greatly improves the efficiency. Meanwhile, the method in the application has strong expansibility, can support different devices and use case data of different protocols, and can expand multidimensional use case data.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 3, fig. 3 is a schematic diagram of a server according to a second embodiment of the present application. The units are used for executing the steps in the embodiment corresponding to the figures 1-2. Please refer to the related descriptions of the embodiments corresponding to fig. 1-2. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, the server 3 includes:
an obtaining unit 310, configured to obtain a test signaling and a device identifier of a device to be tested;
the first processing unit 320 is configured to obtain a test case according to the test signaling, and generate a target instruction according to the test case;
the second processing unit 330 is configured to send the target instruction to the device to be tested according to the device identifier, and receive test data returned by the device to be tested.
Further, the first processing unit 320 is specifically configured to:
acquiring an associated protocol corresponding to the test signaling;
if the associated protocol corresponding to the test signaling is obtained, determining a test case according to the test signaling and the associated protocol corresponding to the test signaling;
and carrying out protocol analysis on the test case to obtain a target instruction.
Further, the first processing unit 320 is specifically configured to:
and if the test case has the associated execution parameters, generating a target instruction according to the associated execution parameters and the test case.
Further, the first processing unit 320 is specifically configured to:
and if the test case has no associated execution parameters, generating a target instruction according to preset default execution parameters and the test case.
Further, the server 3 further includes:
and the third processing unit is used for performing data conversion on the test data to obtain one or more of test interaction track data, test process data and test result data if the test data is data returned aiming at the test signaling.
Further, the first processing unit 320 is specifically configured to:
and determining a test case corresponding to the test signaling according to the test signaling and the case data set of the strong association relation.
Further, the server 3 further includes:
and the fourth processing unit is used for learning the case data in the preset case set through a data mining algorithm to obtain the case data set with the strong association relation.
Fig. 4 is a schematic diagram of a server provided in a third embodiment of the present application. As shown in fig. 4, the server 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42, such as a firmware test program, stored in the memory 41 and executable on the processor 40. The processor 40, when executing the computer program 42, implements the steps in the various embodiments of the firmware testing method described above, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 310 to 330 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the server 4. For example, the computer program 42 may be divided into an acquisition unit, a first processing unit, and a second processing unit, and each unit specifically functions as follows:
the device comprises an acquisition unit, a test unit and a test unit, wherein the acquisition unit is used for acquiring a test signaling and a device identifier of a device to be tested;
the first processing unit is used for acquiring a test case according to the test signaling and generating a target instruction according to the test case;
and the second processing unit is used for sending the target instruction to the to-be-tested equipment according to the equipment identifier and receiving test data returned by the to-be-tested equipment.
The server may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a server 4 and does not constitute a limitation of server 4 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the server may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the server 4, such as a hard disk or a memory of the server 4. The memory 41 may also be an external storage device of the server 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the server 4. Further, the server 4 may also include both an internal storage unit and an external storage device of the server 4. The memory 41 is used for storing the computer program and other programs and data required by the server. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A firmware testing method is applied to a server and comprises the following steps:
acquiring a test signaling and a device identifier of a device to be tested;
acquiring a test case according to the test signaling, and generating a target instruction according to the test case;
and sending the target instruction to the to-be-tested equipment according to the equipment identification, and receiving test data returned by the to-be-tested equipment.
2. The firmware testing method according to claim 1, wherein the obtaining a test case according to the test signaling and generating a target instruction according to the test case comprises:
acquiring an associated protocol corresponding to the test signaling;
if the associated protocol corresponding to the test signaling is obtained, determining a test case according to the test signaling and the associated protocol corresponding to the test signaling;
and carrying out protocol analysis on the test case to obtain a target instruction.
3. The firmware testing method according to claim 2, wherein the performing protocol analysis on the test case to obtain a target instruction comprises:
and if the test case has the associated execution parameters, generating a target instruction according to the associated execution parameters and the test case.
4. The firmware testing method according to claim 2, wherein the performing protocol analysis on the test case to obtain a target instruction comprises:
and if the test case has no associated execution parameters, generating a target instruction according to preset default execution parameters and the test case.
5. The firmware testing method of claim 1, further comprising, after said receiving test data returned by the device under test:
and if the test data is data returned aiming at the test signaling, performing data conversion on the test data to obtain one or more of test interaction track data, test process data and test result data.
6. The firmware testing method according to claim 1, wherein the obtaining of the test case according to the test signaling comprises:
and determining a test case corresponding to the test signaling according to the test signaling and the case data set of the strong association relation.
7. The firmware testing method according to claim 6, wherein before determining the test case corresponding to the test signaling according to the test signaling and the case data set with strong association relationship, the method further comprises:
and learning the case data in the preset case set through a data mining algorithm to obtain the case data set with the strong association relation.
8. A server, comprising:
the device comprises an acquisition unit, a test unit and a test unit, wherein the acquisition unit is used for acquiring a test signaling and a device identifier of a device to be tested;
the first processing unit is used for acquiring a test case according to the test signaling and generating a target instruction according to the test case;
and the second processing unit is used for sending the target instruction to the to-be-tested equipment according to the equipment identifier and receiving test data returned by the to-be-tested equipment.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110303511.0A 2021-03-22 2021-03-22 Firmware testing method, server and computer readable storage medium Pending CN113127338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110303511.0A CN113127338A (en) 2021-03-22 2021-03-22 Firmware testing method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110303511.0A CN113127338A (en) 2021-03-22 2021-03-22 Firmware testing method, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113127338A true CN113127338A (en) 2021-07-16

Family

ID=76773700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110303511.0A Pending CN113127338A (en) 2021-03-22 2021-03-22 Firmware testing method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113127338A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613099A (en) * 2021-08-06 2021-11-05 国网浙江省电力有限公司检修分公司 Secondary equipment test system based on internet of things
CN113687223A (en) * 2021-08-30 2021-11-23 广东睿住智能科技有限公司 Test method, test device, server and storage medium
CN113704037A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Equipment testing method and device, computer equipment and storage medium
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium
CN114036073A (en) * 2022-01-07 2022-02-11 荣耀终端有限公司 Test method and test device for terminal equipment
CN114089026A (en) * 2021-10-09 2022-02-25 广西世纪创新显示电子有限公司 Shutdown power test method and device, electronic equipment and storage medium
CN114111875A (en) * 2021-10-12 2022-03-01 桂林长海发展有限责任公司 Method and system for testing aging of holder, storage medium and electronic equipment
CN114285668A (en) * 2021-12-30 2022-04-05 北京天融信网络安全技术有限公司 Network gate testing method and device, storage medium and electronic equipment
CN114328231A (en) * 2021-12-29 2022-04-12 苏州浪潮智能科技有限公司 Test method, test device, electronic equipment and storage medium
CN114610599A (en) * 2022-01-18 2022-06-10 阿里云计算有限公司 Test method and system
CN114610605A (en) * 2022-02-24 2022-06-10 海南乾唐视联信息技术有限公司 Test method, test device, terminal equipment and storage medium
CN115021877A (en) * 2022-05-17 2022-09-06 中国电信股份有限公司 Signaling test method and device, storage medium and electronic equipment
CN115442261A (en) * 2022-05-27 2022-12-06 北京罗克维尔斯科技有限公司 Method and system for testing lower computer
CN115720201A (en) * 2022-07-28 2023-02-28 山东有人物联网股份有限公司 Method for testing data transmission stability of transparent transmission equipment, terminal equipment and medium
CN115967797A (en) * 2022-11-30 2023-04-14 海南视联通信技术有限公司 Product testing method and device, electronic equipment and storage medium
CN117389813A (en) * 2023-11-07 2024-01-12 中科驭数(北京)科技有限公司 RDMA test method, RDMA test device, electronic equipment and computer storage medium
CN115967797B (en) * 2022-11-30 2024-11-08 海南视联通信技术有限公司 Product testing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
US20180293156A1 (en) * 2017-04-06 2018-10-11 At&T Intellectual Property I, L.P. System and method for testing software applications in a software defined network
CN110362489A (en) * 2019-07-15 2019-10-22 上海仪电(集团)有限公司中央研究院 A kind of method for generating test case, generating means and software automatic test system
CN110851308A (en) * 2019-10-21 2020-02-28 香港乐蜜有限公司 Test method, test device, electronic equipment and storage medium
CN110941555A (en) * 2019-11-26 2020-03-31 广州品唯软件有限公司 Test case recommendation method and device, computer equipment and storage medium
CN111208798A (en) * 2019-12-26 2020-05-29 深圳市优必选科技股份有限公司 Robot testing method and device, electronic equipment and storage medium
CN112115039A (en) * 2019-06-21 2020-12-22 百度在线网络技术(北京)有限公司 Test case generation method, device and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
US20180293156A1 (en) * 2017-04-06 2018-10-11 At&T Intellectual Property I, L.P. System and method for testing software applications in a software defined network
CN112115039A (en) * 2019-06-21 2020-12-22 百度在线网络技术(北京)有限公司 Test case generation method, device and equipment
CN110362489A (en) * 2019-07-15 2019-10-22 上海仪电(集团)有限公司中央研究院 A kind of method for generating test case, generating means and software automatic test system
CN110851308A (en) * 2019-10-21 2020-02-28 香港乐蜜有限公司 Test method, test device, electronic equipment and storage medium
CN110941555A (en) * 2019-11-26 2020-03-31 广州品唯软件有限公司 Test case recommendation method and device, computer equipment and storage medium
CN111208798A (en) * 2019-12-26 2020-05-29 深圳市优必选科技股份有限公司 Robot testing method and device, electronic equipment and storage medium

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613099A (en) * 2021-08-06 2021-11-05 国网浙江省电力有限公司检修分公司 Secondary equipment test system based on internet of things
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium
CN113687223A (en) * 2021-08-30 2021-11-23 广东睿住智能科技有限公司 Test method, test device, server and storage medium
CN113704037A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Equipment testing method and device, computer equipment and storage medium
CN114089026A (en) * 2021-10-09 2022-02-25 广西世纪创新显示电子有限公司 Shutdown power test method and device, electronic equipment and storage medium
CN114111875A (en) * 2021-10-12 2022-03-01 桂林长海发展有限责任公司 Method and system for testing aging of holder, storage medium and electronic equipment
CN114328231A (en) * 2021-12-29 2022-04-12 苏州浪潮智能科技有限公司 Test method, test device, electronic equipment and storage medium
CN114285668B (en) * 2021-12-30 2023-11-28 北京天融信网络安全技术有限公司 Gate testing method and device, storage medium and electronic equipment
CN114285668A (en) * 2021-12-30 2022-04-05 北京天融信网络安全技术有限公司 Network gate testing method and device, storage medium and electronic equipment
CN114036073A (en) * 2022-01-07 2022-02-11 荣耀终端有限公司 Test method and test device for terminal equipment
CN114610599A (en) * 2022-01-18 2022-06-10 阿里云计算有限公司 Test method and system
CN114610605A (en) * 2022-02-24 2022-06-10 海南乾唐视联信息技术有限公司 Test method, test device, terminal equipment and storage medium
CN115021877B (en) * 2022-05-17 2023-11-14 中国电信股份有限公司 Signaling test method and device, storage medium and electronic equipment
CN115021877A (en) * 2022-05-17 2022-09-06 中国电信股份有限公司 Signaling test method and device, storage medium and electronic equipment
CN115442261A (en) * 2022-05-27 2022-12-06 北京罗克维尔斯科技有限公司 Method and system for testing lower computer
CN115720201A (en) * 2022-07-28 2023-02-28 山东有人物联网股份有限公司 Method for testing data transmission stability of transparent transmission equipment, terminal equipment and medium
CN115720201B (en) * 2022-07-28 2024-04-12 山东有人物联网股份有限公司 Method for testing data transmission stability of transparent transmission equipment, terminal equipment and medium
CN115967797A (en) * 2022-11-30 2023-04-14 海南视联通信技术有限公司 Product testing method and device, electronic equipment and storage medium
CN115967797B (en) * 2022-11-30 2024-11-08 海南视联通信技术有限公司 Product testing method and device, electronic equipment and storage medium
CN117389813A (en) * 2023-11-07 2024-01-12 中科驭数(北京)科技有限公司 RDMA test method, RDMA test device, electronic equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN113127338A (en) Firmware testing method, server and computer readable storage medium
CN105787364B (en) Automatic testing method, device and system for tasks
CN113114659B (en) Diagnostic equipment detection method and device, terminal equipment and storage medium
CN110096419A (en) Acquisition methods, interface log management server and the service server of interface log
CN113703868B (en) Vehicle diagnosis software configuration method, electronic device and readable storage medium
CN112948224B (en) Data processing method, device, terminal and storage medium
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN112445490B (en) File sequence processing method, device, terminal equipment and storage medium
CN112948233A (en) Interface testing method, device, terminal equipment and medium
CN113448834A (en) Buried point testing method and device, electronic equipment and storage medium
CN108647139B (en) System test method, device, storage medium and electronic device
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN112306040A (en) Vehicle detection method, device, equipment and server
CN107678917B (en) Test machine automation management method, device, equipment and storage medium
CN112104708B (en) Communication method and device of diagnostic equipment, electronic equipment and storage medium
CN114488997B (en) ECU (electronic control Unit) refreshing method and device, electronic equipment and storage medium
CN113572826B (en) Device information binding method and system and electronic device
CN114879630A (en) Vehicle fault diagnosis method, device, equipment and readable storage medium
CN112783942B (en) Block chain-based data acquisition quality verification method, system, device and medium
CN112445797B (en) Vehicle diagnosis data reference method, device, terminal equipment and storage medium
CN111242256B (en) Information verification method, device and terminal
CN114531340A (en) Log acquisition method and device, electronic equipment, chip and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN114356769A (en) Software learning method, device, equipment and storage medium
CN114942623B (en) Method and device for testing controller, vehicle and computer readable 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