CN111352668A - Device testing method and device based on plug-in and testing system based on plug-in - Google Patents

Device testing method and device based on plug-in and testing system based on plug-in Download PDF

Info

Publication number
CN111352668A
CN111352668A CN202010125825.1A CN202010125825A CN111352668A CN 111352668 A CN111352668 A CN 111352668A CN 202010125825 A CN202010125825 A CN 202010125825A CN 111352668 A CN111352668 A CN 111352668A
Authority
CN
China
Prior art keywords
plug
test
testing
ins
target equipment
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
CN202010125825.1A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010125825.1A priority Critical patent/CN111352668A/en
Publication of CN111352668A publication Critical patent/CN111352668A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The invention discloses a device testing method and device based on a plug-in and a testing system based on the plug-in. Wherein, the method comprises the following steps: acquiring identification information of target equipment to be tested; determining a test mode for testing the target equipment according to the identification information, wherein the test mode carries test plug-ins which are used for testing the target equipment and the running sequence among the test plug-ins; starting a test system for testing the target equipment, and calling a test plug-in for testing the target equipment according to the test mode; and testing the target equipment by operating the test plug-in. The invention solves the technical problem of lower adaptability of a mode for testing equipment in the related art.

Description

Device testing method and device based on plug-in and testing system based on plug-in
Technical Field
The invention relates to the technical field of testing, in particular to a device testing method and device based on a plug-in and a testing system based on the plug-in.
Background
An automated test system is required to perform tasks and measurement operations, some of which are specific to a particular device under test and others of which are applicable to a variety of devices under test. Conventional test systems typically integrate both types of operations into the same single software layer. In this paradigm, each part of the test system needs to be changed when the project requirements change, and the reuse of code becomes very cumbersome.
In view of the above problem of relatively low adaptability of the method for testing the device in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a device testing method and device based on a plug-in and a testing system based on the plug-in, which at least solve the technical problem that the mode for testing the device in the related art is relatively low in adaptability.
According to an aspect of an embodiment of the present invention, there is provided a device testing method based on a plug-in, including: acquiring identification information of target equipment to be tested; determining a test mode for testing the target equipment according to the identification information, wherein the test mode carries test plug-ins required to be used for testing the target equipment and an operation sequence among the test plug-ins; starting a test system for testing the target equipment, and calling a test plug-in for testing the target equipment according to the test mode; and testing the target equipment by operating the test plug-in.
Optionally, before determining the test mode for testing the target device according to the identification information, the method for testing a device based on a plug-in further includes: and constructing a mapping relation between the test plug-in used for testing different devices and the identification information of the different devices.
Optionally, after the constructing a mapping relationship between the test pattern for testing the different device and the identification information of the different device, the method for testing a device based on a plug-in further includes: determining a test plug-in needed by a test model for testing the different equipment; and determining the running sequence of the test plug-ins according to the function of each plug-in the test plug-ins.
Optionally, the determining, according to the identification information, a test mode for testing the target device includes: and inquiring a plug-in registry according to the identification information to obtain a test mode required to be used for testing the target equipment, wherein all test plug-ins in the test system and plug-in information of all test plug-ins are stored in the plug-in registry.
Optionally, after the mapping relationship between the test plug-in for testing different devices and the identification information of the different devices is constructed, the plug-in based device testing method includes: and laying out the test plug-ins for testing the different devices to obtain a starting sequence among the test plug-ins for testing the different devices.
Optionally, the laying out the test plug-in for testing the different devices includes: triggering a plug-in icon control corresponding to a test plug-in a plug-in menu bar of the test system; searching a test plug-in corresponding to the plug-in icon control in an associated container according to the plug-in icon control, wherein the test plug-in is stored in the associated container; and laying out the test plug-in by triggering a connection operation in the test system.
Optionally, the testing the target device by running the test plug-in includes: determining whether a currently running test plug-in is the last plug-in the test plug-ins; and when the operation of the currently operated test plug-in is finished, determining that the test on the target equipment is finished.
Optionally, after the target device is tested by running the test plug-in, the plug-in based device testing method further includes: and releasing the test plug-in resource for testing the target equipment.
According to another aspect of the embodiments of the present invention, there is also provided a device testing apparatus based on a plug-in, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring identification information of target equipment to be tested; a first determining unit, configured to determine a test mode for testing the target device according to the identification information, where the test mode carries test plug-ins that are required to be used for testing the target device, and an operating sequence between the test plug-ins; the calling unit is used for starting a test system for testing the target equipment and calling a test plug-in for testing the target equipment according to the test mode; and the test unit is used for testing the target equipment by operating the test plug-in.
Optionally, the plug-in based device testing apparatus further includes: and the construction unit is used for constructing a mapping relation between the test plug-in used for testing different devices and the identification information of the different devices before the test mode for testing the target device is determined according to the identification information.
Optionally, the plug-in based device testing apparatus further includes: a second determining unit, configured to determine, after the mapping relationship between the test pattern for testing different devices and the identification information of the different devices is established, a test plug-in that needs to be used by a test model for testing the different devices; and the third determining unit is used for determining the running sequence of the test plug-ins according to the function of each plug-in the test plug-ins.
Optionally, the first determining unit includes: and the query module is used for querying a plug-in registry according to the identification information to obtain a test mode required to be used for testing the target equipment, wherein all test plugs in the test system and the plug-in information of all test plugs are stored in the plug-in registry.
Optionally, the plug-in based device testing apparatus includes: and the layout unit is used for laying out the test plug-ins for testing the different devices after the mapping relation between the test plug-ins for testing the different devices and the identification information of the different devices is established, so as to obtain the starting sequence between the test plug-ins for testing the different devices.
Optionally, the layout unit includes: the trigger module is used for triggering a plug-in icon control corresponding to a test plug-in a plug-in menu bar of the test system; the searching module is used for searching a test plug-in corresponding to the plug-in icon control in an associated container according to the plug-in icon control, wherein the associated container stores the test plug-in; and the layout module is used for performing layout on the test plug-in by triggering the connection operation in the test system.
Optionally, the test unit includes: the first determining module is used for determining whether the currently running test plug-in is the last plug-in the test plug-ins; and the second determining module is used for determining that the test on the target equipment is finished when the running of the currently running test plug-in is finished.
Optionally, the plug-in based device testing apparatus further includes: and the release unit is used for releasing the test plug-in resources used for testing the target equipment after the target equipment is tested by running the test plug-in.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the plug-in based device testing method according to any one of the above.
According to another aspect of the embodiment of the present invention, there is also provided a processor, configured to run a program, where the program executes the plug-in based device testing method described in any one of the above when running.
According to another aspect of the embodiments of the present invention, there is also provided a plug-in based test system, including: a memory, a processor coupled with the memory, the memory and the processor communicating over a bus system; the memory is used for storing a program, wherein the program controls the equipment where the memory is located to execute any one of the plug-in based equipment testing methods when being executed by the processor; the processor is configured to run a program, where the program executes the plug-in based device testing method according to any one of the above.
In the embodiment of the invention, the identification information of the target equipment to be tested is acquired; determining a test mode for testing the target equipment according to the identification information, wherein the test mode carries test plug-ins which are used for testing the target equipment and the running sequence among the test plug-ins; starting a test system for testing the target equipment, and calling a test plug-in for testing the target equipment according to the test mode; the target equipment is tested by running the test plug-in, and the plug-in based equipment testing method provided by the embodiment of the invention realizes the purpose of determining the test mode according to the type of the equipment to be tested and testing the target equipment by utilizing the preset installation and starting sequence of the test plug-in, thereby achieving the technical effect of improving the applicability of the test system, simultaneously improving the technical effect of testing the efficiency of the target equipment and further solving the technical problem of lower adaptability of a mode for testing the equipment in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of a method for plug-in based device testing in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram of a plug-in platform according to an embodiment of the invention;
FIG. 3 is a flow diagram of an alternative plug-in based device testing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a card-based device testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a plug-in based device testing method, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a plug-in based device testing method according to an embodiment of the present invention, as shown in fig. 1, the plug-in based device testing method includes the steps of:
step S102, obtaining the identification information of the target device to be tested.
Optionally, the target device to be tested is a device to be tested. The identification information herein refers to information for identifying a target device to be tested, for example, an ID code of the target device, a serial number of the target device, a model of the target device, and the like.
And step S104, determining a test mode for testing the target equipment according to the identification information, wherein the test mode carries test plug-ins required to be used for testing the target equipment and an operation sequence among the test plug-ins.
Step S106, starting a test system for testing the target equipment, and calling a test plug-in for testing the target equipment according to the test mode.
And step S108, testing the target equipment by running the test plug-in.
As can be seen from the above, in the embodiment of the present invention, the identification information of the target device to be tested may be obtained, and then the test mode for testing the target device is determined according to the identification information, where the test mode carries the test plug-ins to be used for testing the target device and the running sequence among the test plug-ins; starting a test system for testing the target equipment, and calling a test plug-in for testing the target equipment according to the test mode; the target equipment is tested by running the test plug-in, so that the test mode can be determined according to the type of the equipment to be tested, the target equipment is tested by utilizing the preset installation starting sequence of the test plug-in, the technical effect of improving the applicability of the test system is achieved, and meanwhile, the technical effect of improving the test efficiency of testing the target equipment is also improved.
It is worth noting that in the embodiment of the present invention, a plurality of test plug-ins can be developed in advance, different test plug-ins can be used for different devices, and the target device can be tested according to the starting sequence of the different test plug-ins, which is beneficial to large-scale software development, so that the development can be performed in parallel, and the development efficiency and quality can be improved.
The device testing method based on the plug-in solves the technical problem that the mode for testing the device in the related technology is low in adaptability.
Compared with the traditional test system, the test system based on the plug-in is used in the embodiment of the invention, the division between the plug-in management program (namely, the test system) and the plug-in program is quite clear, the plug-in management program is only responsible for the communication with the plug-in program (namely, the test plug-in program) and the function of calling the plug-in program, and the algorithm processing related to the specific service function is completed by the plug-in module. By adopting the mode, the plug-in units have little connection and interference, the coupling degree between the plug-in modules is reduced, and the dependence between the plug-in units is reduced. After the software design is completed, the plug-in management program and each plug-in program can be completely independent, which is beneficial to enabling the development to be carried out in parallel in large-scale software development and improving the development efficiency and quality.
According to the above embodiment of the present invention, before determining the test mode for testing the target device according to the identification information, the method for testing a device based on a plug-in may further include: and constructing a mapping relation between the test plug-in for testing different devices and the identification information of the different devices. In this embodiment, after the target device to be tested is obtained, it can be determined which test plug-ins should be used to test the target device.
In an optional embodiment, after constructing the mapping relationship between the test patterns for testing the different devices and the identification information of the different devices, the plug-in based device testing method may further include: determining a test plug-in needed by a test model for testing different devices; and determining the running sequence of the test plug-ins according to the function of each plug-in the test plug-ins.
According to the above embodiment of the present invention, in step S104, determining a test mode for testing the target device according to the identification information includes: and inquiring a plug-in registry according to the identification information to obtain a test mode required to be used for testing the target equipment, wherein all test plugs in the test system and plug-in information of all test plugs are stored in the plug-in registry.
In an optional embodiment, after constructing a mapping relationship between a test plug-in for testing different devices and identification information of the different devices, the plug-in based device testing method may include: and laying out the test plug-ins for testing different devices to obtain a starting sequence among the test plug-ins for testing different devices.
According to the above embodiment of the present invention, the layout of the test plug-in for testing different devices includes: triggering a plugin icon control corresponding to a test plugin in a plugin menu bar of the test system; searching a test plug-in corresponding to the plug-in icon control in the associated container according to the plug-in icon control, wherein the associated container stores the test plug-in; and laying out the test plug-in by triggering a connection operation in the test system.
According to the above embodiment of the present invention, the testing the target device by running the test plug-in includes: determining whether the currently running test plug-in is the last plug-in the test plug-ins; and when the running of the currently running test plug-in is finished, determining that the target equipment is tested to be finished.
In an optional embodiment, after the target device is tested by running the test plug-in, the plug-in based device testing method further includes: and releasing the test plug-in resource for testing the target equipment. In this embodiment, consumption of system resources can be reduced.
It should be noted that, in the embodiment of the present invention, a software system is developed by using QT, and the specific implementation manner is as follows:
(1) defining a plug-in interface abstract class IPlugin and giving a function declaration of the plug-in interface class:
1. acquiring the unique identifier of the plug-in by using a getPluginID function;
2. using a getPluginVersion function to obtain the version number of the plug-in;
3. using a getPluginName function for obtaining the name of the plug-in;
4. the getplugingiconpath function is used to get the plug-in icon path.
(2) The method comprises the following steps of realizing a PluginRegTable class of the plug-in registry, and being used for adding plug-in information into the registry, unloading the plug-in information, reading the plug-in information and the like, and realizing the following functions:
1. using the appedPlugin function for adding a plug-in information;
2. using a removePlugin function for uninstalling the plug-in information;
3. the readRegTable function is used to read information in the plug-in registry into memory.
(3) Loading of plug-ins: the method comprises the steps of obtaining identification, names and icons of all plug-ins by inquiring a plug-in registry, then sequentially loading the plug-ins to obtain information such as the icons of the plug-ins, storing the information in an associated container QMap < QString, IPlugin > PluginMap, and establishing a mapping relation between each plug-in and the name of the plug-in.
(4) Invocation of the plug-in: when a user clicks a certain plugin icon control in a plugin menu bar on the left side of a corresponding test system by a mouse, conducting name search on a plugin in a PluginMap associated container through a name bound by the icon control, so as to obtain a plugin pointer with the type of IPlugin, calling a construction function of the pointer to generate a plugin object, and displaying the plugin object in a layout mode in a blank area on the right side.
(5) Connection interaction between plugins: the method comprises the steps of clicking a connecting line on a test system interface, clicking a certain plug-in object on a blank area, dragging a mouse to move to the position above another plug-in object, and when the mouse is released, enabling the two plug-in objects to be in line connection and binding the running sequence of a main program and the transmission address of input and output data.
(6) And starting a main program of the test system, namely searching a first inserted plug-in object as a starting point of starting the main program, calling an execution function of the plug-in object, and positioning the plug-in object connected with the plug-in object and executing the plug-in object through a connection line binding relationship when the execution of the plug-in object is finished. In this manner, until the last plug-in is searched. And after the operation is finished, releasing the plug-in resource.
Fig. 2 is a block diagram of a plug-in platform according to an embodiment of the present invention, and as shown in fig. 2, a multi-side plug-in is simultaneously connected to a plug-in container, so that the plug-in platform of the test system can invoke one or more plug-ins of a plurality of test plug-ins in time to test a target device. The plug-in platform also comprises modules such as a working platform user interface UI, data management and service and the like, and the target equipment can be tested when the platform runs. In addition, as shown in FIG. 2, the plug-in platform also includes QTLIB that can be used to create plug-ins.
Fig. 3 is a flowchart of an alternative method for testing a device based on a plug-in according to an embodiment of the present invention, and as shown in fig. 3, after the test system is started, plug-in information is obtained from a platform plug-in registry, and a plug-in is loaded according to a plug-in position in the plug-in registry; then inquiring a plug-in interface to judge whether the system can identify, reading the name and icon information of the plug-in, displaying the icon plus name mode of the plug-in a plug-in area of the test system, establishing a signal called by the plug-in, performing plug-in object layout and connection between the plug-ins through a mouse, and starting a program; and after the test is finished, releasing the resources.
In addition, as shown in fig. 3, a plug-in may be generated by a plug-in expensiveness, and the plug-in may be registered in the plug-in platform, specifically, in the form of a plug-in registration target.
Compared with the traditional software architecture, the equipment testing method based on the plug-in provided by the embodiment of the invention has the advantages that the division between the plug-in management program (namely the testing system) and the plug-in program is quite clear in the software architecture based on the plug-in technology, the plug-in management program is responsible for the plug-in management (responsible for processing the communication with the plug-in and calling the function of the plug-in), and the algorithm and data processing related to the specific service function are completed by the plug-in module. By adopting the technology, after software design is completed, the plug-in management program and each plug-in can be completely and independently developed, so that development can be performed in parallel, and the development efficiency and quality are improved. In the development and debugging process, when some plug-in modules have problems, the plug-in modules are independent from one another, so that other modules cannot be influenced, the development of software testing work is facilitated, and the problems can be found conveniently in the testing process. In addition, all the functional modules are concentrated on one software framework for development, and the programming process is relatively complex. According to the scheme, the test system is developed by using a QT plug-in based mode, each functional module is effectively independent, the coupling degree between the modules is reduced, and the development efficiency and the reusability of software are improved.
Example 2
According to another aspect of the embodiment of the present invention, there is also provided a device testing apparatus based on a plug-in, fig. 4 is a schematic diagram of the device testing apparatus based on the plug-in according to the embodiment of the present invention, as shown in fig. 4, the device testing apparatus based on the plug-in includes: an acquiring unit 41, a first determining unit 43, a calling unit 45 and a testing unit 47. The schematic diagram of the card-based device testing apparatus is described in detail below.
An obtaining unit 41, configured to obtain identification information of a target device to be tested.
A first determining unit 43, configured to determine a test mode for testing the target device according to the identification information, where the test mode carries test plug-ins that need to be used for testing the target device, and an operation sequence between the test plug-ins.
The invoking unit 45 is configured to start a test system for testing the target device, and invoke a test plug-in for testing the target device according to the test mode.
And the test unit 47 is used for testing the target equipment by running the test plug-in.
It should be noted here that the above-mentioned obtaining unit 41, the first determining unit 43, the invoking unit 45 and the testing unit 47 correspond to steps S102 to S108 in embodiment 1, and the above-mentioned units are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of embodiment 1. It should be noted that the above-described elements as part of an apparatus may be implemented in a computer system, such as a set of computer-executable instructions.
As can be seen from the above, in the above embodiment of the present application, the obtaining unit may be used to obtain the identification information of the target device to be tested; then, determining a test mode for testing the target equipment by using a first determination unit according to the identification information, wherein the test mode carries test plug-ins required to be used for testing the target equipment and an operation sequence among the test plug-ins; starting a test system for testing the target equipment by using the calling unit, and calling a test plug-in for testing the target equipment according to the test mode; and testing the target equipment by running the test plug-in by using the test unit. By the device testing device based on the plug-in, provided by the embodiment of the invention, the purpose that the testing mode can be determined according to the type of the device to be tested and the target device is tested by utilizing the preset testing plug-in installation starting sequence is achieved, the technical effect of improving the applicability of the testing system is achieved, meanwhile, the technical effect of improving the testing efficiency of the target device is also improved, and the technical problem that the adaptability of a mode for testing the device in the related technology is lower is solved.
In an optional embodiment, the plug-in based device testing apparatus further comprises: and the construction unit is used for constructing a mapping relation between the test plug-in for testing different devices and the identification information of the different devices before determining the test mode for testing the target device according to the identification information.
In an optional embodiment, the plug-in based device testing apparatus further comprises: the second determining unit is used for determining a test plug-in needed by a test model for testing different equipment after a mapping relation between a test mode for testing different equipment and identification information of the different equipment is established; and the third determining unit is used for determining the running sequence of the test plug-ins according to the function of each plug-in the test plug-ins.
In an alternative embodiment, the first determining unit includes: and the query module is used for querying the plug-in registry according to the identification information to obtain a test mode required for testing the target equipment, wherein all test plug-ins in the test system and the plug-in information of all test plug-ins are stored in the plug-in registry.
In an alternative embodiment, the plug-in based device testing apparatus comprises: and the layout unit is used for laying out the test plug-ins for testing different devices after the mapping relation between the test plug-ins for testing different devices and the identification information of different devices is established, so as to obtain the starting sequence of the test plug-ins for testing different devices.
In an alternative embodiment, the layout unit includes: the trigger module is used for triggering a plug-in icon control corresponding to a test plug-in a plug-in menu bar of the test system; the searching module is used for searching a test plug-in corresponding to the plug-in icon control in the associated container according to the plug-in icon control, wherein the associated container stores the test plug-in; and the layout module is used for laying out the test plug-ins by triggering the connection operation in the test system.
In an alternative embodiment, a test unit, comprises: the first determining module is used for determining whether the currently running test plug-in is the last plug-in the test plug-ins; and the second determining module is used for determining that the test on the target equipment is finished when the running of the currently running test plug-in is finished.
In an optional embodiment, the plug-in based device testing apparatus further comprises: and the release unit is used for releasing the test plug-in resources used for testing the target equipment after the target equipment is tested by running the test plug-in.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the plug-in based device testing method of any one of the above.
Example 4
According to another aspect of the embodiment of the present invention, there is provided a processor, configured to execute a program, where the program executes the plug-in based device testing method according to any one of the above.
Example 5
According to another aspect of the embodiments of the present invention, there is also provided a plug-in based test system, including: a memory, a processor coupled to the memory, the memory and the processor communicating via a bus system; the memory is used for storing a program, wherein the program controls the equipment where the memory is located to execute any one of the plug-in based equipment testing methods when being executed by the processor; the processor is used for running the program, wherein the program runs to execute the plug-in based device testing method in any one of the above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. 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, units or modules, and may be in an electrical 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 units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
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, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for testing equipment based on plug-ins is characterized by comprising the following steps:
acquiring identification information of target equipment to be tested;
determining a test mode for testing the target equipment according to the identification information, wherein the test mode carries test plug-ins required to be used for testing the target equipment and an operation sequence among the test plug-ins;
starting a test system for testing the target equipment, and calling a test plug-in for testing the target equipment according to the test mode;
and testing the target equipment by operating the test plug-in.
2. The method of claim 1, wherein prior to said determining a test mode for testing the target device based on the identification information, the method further comprises: and constructing a mapping relation between the test plug-in used for testing different devices and the identification information of the different devices.
3. The method of claim 2, wherein after the constructing a mapping relationship between the test patterns for testing the different devices and the identification information of the different devices, the method further comprises:
determining a test plug-in needed by a test model for testing the different equipment;
and determining the running sequence of the test plug-ins according to the function of each plug-in the test plug-ins.
4. The method of claim 1, wherein determining a test mode for testing the target device according to the identification information comprises:
and inquiring a plug-in registry according to the identification information to obtain a test mode required to be used for testing the target equipment, wherein all test plug-ins in the test system and plug-in information of all test plug-ins are stored in the plug-in registry.
5. The method according to claim 2, wherein after the building of the mapping relationship between the test plug-in for testing the different device and the identification information of the different device, the method comprises:
and laying out the test plug-ins for testing the different devices to obtain a starting sequence among the test plug-ins for testing the different devices.
6. The method of claim 5, wherein laying out test cards for testing the different devices comprises:
triggering a plug-in icon control corresponding to a test plug-in a plug-in menu bar of the test system;
searching a test plug-in corresponding to the plug-in icon control in an associated container according to the plug-in icon control, wherein the test plug-in is stored in the associated container;
and laying out the test plug-in by triggering a connection operation in the test system.
7. The method of claim 1, wherein the testing the target device by running the test plug-in comprises:
determining whether a currently running test plug-in is the last plug-in the test plug-ins;
and when the operation of the currently operated test plug-in is finished, determining that the test on the target equipment is finished.
8. The method of claim 1, wherein after the target device is tested by running the test plug-in, the method further comprises:
and releasing the test plug-in resource for testing the target equipment.
9. A device testing apparatus based on a plug-in, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring identification information of target equipment to be tested;
a first determining unit, configured to determine a test mode for testing the target device according to the identification information, where the test mode carries test plug-ins that are required to be used for testing the target device, and an operating sequence between the test plug-ins;
the calling unit is used for starting a test system for testing the target equipment and calling a test plug-in for testing the target equipment according to the test mode;
and the test unit is used for testing the target equipment by operating the test plug-in.
10. A plug-in based test system, comprising:
a memory, a processor coupled with the memory, the memory and the processor communicating over a bus system;
the memory is used for storing a program, wherein the program controls the device where the memory is located to execute the plug-in based device testing method according to any one of claims 1 to 8 when being executed by the processor;
the processor is configured to run a program, wherein the program is configured to execute the plug-in based device testing method according to any one of claims 1 to 8 when running.
CN202010125825.1A 2020-02-27 2020-02-27 Device testing method and device based on plug-in and testing system based on plug-in Pending CN111352668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010125825.1A CN111352668A (en) 2020-02-27 2020-02-27 Device testing method and device based on plug-in and testing system based on plug-in

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010125825.1A CN111352668A (en) 2020-02-27 2020-02-27 Device testing method and device based on plug-in and testing system based on plug-in

Publications (1)

Publication Number Publication Date
CN111352668A true CN111352668A (en) 2020-06-30

Family

ID=71192425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010125825.1A Pending CN111352668A (en) 2020-02-27 2020-02-27 Device testing method and device based on plug-in and testing system based on plug-in

Country Status (1)

Country Link
CN (1) CN111352668A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4012566A1 (en) * 2020-12-11 2022-06-15 Commsolid GmbH Method for an improved firmware deployment and its usage in embedded logic
WO2022122946A1 (en) * 2020-12-11 2022-06-16 Commsolid Gmbh Method for an improved firmware deployment and its usage in embedded logic

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159145A1 (en) * 2010-12-17 2012-06-21 Oracle International Corporation Plug-in system for software applications
US20130159963A1 (en) * 2011-12-15 2013-06-20 Tata Consultancy Services Limited Agile Unit and Regression Testing Framework for Domain Specific Languages
US20130179858A1 (en) * 2012-01-10 2013-07-11 Sap Ag Framework for automated testing of mobile apps
CN103577907A (en) * 2012-07-24 2014-02-12 阿里巴巴集团控股有限公司 Continuous integration testing method and system
CN104007348A (en) * 2014-06-10 2014-08-27 紫光测控有限公司 Automated testing system and method thereof
CN107015902A (en) * 2016-01-27 2017-08-04 阿里巴巴集团控股有限公司 A kind of method of testing and equipment
CN107908556A (en) * 2017-11-08 2018-04-13 中国平安人寿保险股份有限公司 Interface test method, device, equipment and computer-readable recording medium
CN108399132A (en) * 2018-03-21 2018-08-14 腾讯科技(深圳)有限公司 A kind of scheduling tests method, apparatus and storage medium
CN108536587A (en) * 2018-03-21 2018-09-14 轻客智能科技(江苏)有限公司 A kind of automated testing method and system based on Appium
CN108932194A (en) * 2018-06-21 2018-12-04 北京京东金融科技控股有限公司 Automated testing method, device, system, medium and electronic equipment
US20190294532A1 (en) * 2018-03-26 2019-09-26 Hyperconnect, Inc. Computer program and server for executing test group distribution method
CN110765001A (en) * 2019-09-06 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Modularized automatic test method and device for application system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159145A1 (en) * 2010-12-17 2012-06-21 Oracle International Corporation Plug-in system for software applications
US20130159963A1 (en) * 2011-12-15 2013-06-20 Tata Consultancy Services Limited Agile Unit and Regression Testing Framework for Domain Specific Languages
US20130179858A1 (en) * 2012-01-10 2013-07-11 Sap Ag Framework for automated testing of mobile apps
CN103577907A (en) * 2012-07-24 2014-02-12 阿里巴巴集团控股有限公司 Continuous integration testing method and system
CN104007348A (en) * 2014-06-10 2014-08-27 紫光测控有限公司 Automated testing system and method thereof
CN107015902A (en) * 2016-01-27 2017-08-04 阿里巴巴集团控股有限公司 A kind of method of testing and equipment
CN107908556A (en) * 2017-11-08 2018-04-13 中国平安人寿保险股份有限公司 Interface test method, device, equipment and computer-readable recording medium
CN108399132A (en) * 2018-03-21 2018-08-14 腾讯科技(深圳)有限公司 A kind of scheduling tests method, apparatus and storage medium
CN108536587A (en) * 2018-03-21 2018-09-14 轻客智能科技(江苏)有限公司 A kind of automated testing method and system based on Appium
US20190294532A1 (en) * 2018-03-26 2019-09-26 Hyperconnect, Inc. Computer program and server for executing test group distribution method
CN108932194A (en) * 2018-06-21 2018-12-04 北京京东金融科技控股有限公司 Automated testing method, device, system, medium and electronic equipment
CN110765001A (en) * 2019-09-06 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Modularized automatic test method and device for application system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4012566A1 (en) * 2020-12-11 2022-06-15 Commsolid GmbH Method for an improved firmware deployment and its usage in embedded logic
WO2022122946A1 (en) * 2020-12-11 2022-06-16 Commsolid Gmbh Method for an improved firmware deployment and its usage in embedded logic

Similar Documents

Publication Publication Date Title
KR102317535B1 (en) Methods and systems for implementing data tracking with software development kits
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN110221968A (en) Method for testing software and Related product
CN110287696B (en) Detection method, device and equipment for rebound shell process
CN109241014B (en) Data processing method and device and server
CN111258680B (en) Resource loading method and device, storage medium and electronic device
CN106648563B (en) Dependency decoupling processing method and device for shared module in application program
CN108415821A (en) The generation method and device of test report
CN112099800B (en) Code data processing method, device and server
CN111352668A (en) Device testing method and device based on plug-in and testing system based on plug-in
CN111262753B (en) Method, system, terminal and storage medium for automatically configuring number of NUMA nodes
CN108897588B (en) Routing method and routing device for communication between modules
CN111913742B (en) Program processing method and related equipment
CN110347735A (en) The data forwarding of configurationization mends processing method, device and readable storage medium storing program for executing extremely
CN112162908A (en) Program call link monitoring implementation method and device based on bytecode injection technology
CN112052037A (en) Application software development method, device, equipment and medium
US9396239B2 (en) Compiling method, storage medium and compiling apparatus
CN111901149B (en) Method and system for automatically generating and detecting Fabric network configuration file
CN114003457A (en) Data acquisition method and device, storage medium and electronic equipment
CN111797016B (en) Application program testing method, device, storage medium and device
CN112147987B (en) Vehicle diagnosis method, vehicle diagnosis device and terminal equipment
CN113342647A (en) Test data generation method and device
CN112667498A (en) Server building method and device, computer equipment and readable storage medium
CN110955595A (en) Problem repairing method and device, electronic equipment and computer readable storage medium
CN112748932B (en) Data processing method and server based on intelligent contract

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200630

RJ01 Rejection of invention patent application after publication