CN110417618B - Test system and method based on data platform - Google Patents

Test system and method based on data platform Download PDF

Info

Publication number
CN110417618B
CN110417618B CN201910620946.0A CN201910620946A CN110417618B CN 110417618 B CN110417618 B CN 110417618B CN 201910620946 A CN201910620946 A CN 201910620946A CN 110417618 B CN110417618 B CN 110417618B
Authority
CN
China
Prior art keywords
data platform
data
northbound
communication module
report
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.)
Active
Application number
CN201910620946.0A
Other languages
Chinese (zh)
Other versions
CN110417618A (en
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.)
Hefei Yirui Communication Technology Co Ltd
Original Assignee
Hefei Yirui Communication 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 Hefei Yirui Communication Technology Co Ltd filed Critical Hefei Yirui Communication Technology Co Ltd
Priority to CN201910620946.0A priority Critical patent/CN110417618B/en
Publication of CN110417618A publication Critical patent/CN110417618A/en
Application granted granted Critical
Publication of CN110417618B publication Critical patent/CN110417618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses a test system and a method based on a data platform, wherein the test system comprises: the system comprises a controller, a communication module, a data platform and a northbound server; the controller is used for controlling the communication module to be connected with the data platform, controlling the communication module to report the south data to the data platform, acquiring the report result of the south data, controlling the north server to execute the north operation on the data platform, acquiring the execution result of the north operation, and determining the test result according to the report result of the south data and the execution result of the north operation. According to the test system, the data platform, the communication module and the northbound server can be automatically tested through one controller, and waste of a large amount of human resources and time resources caused by manual testing is avoided.

Description

Test system and method based on data platform
Technical Field
The invention relates to the technical field of testing of data platforms, in particular to a testing system based on a data platform and a testing method based on the data platform.
Background
With the rise of the internet of things industry, the application test of the internet of things big data platform matched with the internet of things industry is more and more important. In the industry of the internet of things, the application of a communication module is often accompanied with the use of a data platform, so for module testing, the module testing needs to be associated with the platform of the internet of things to perform corresponding testing.
In the related art, the test is usually performed by a manual test, which not only requires human power to monitor the operating states of the communication module, the data platform and the northbound server for a long time, but also requires a long-term repetitive stress test to ensure the stability of the communication module and the server, and thus, a large amount of resources such as human power and time are consumed.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, a first objective of the present invention is to provide a data platform-based test system, which can automatically test a data platform, a communication module and a northbound server through a controller, so as to avoid waste of a large amount of human resources and time resources caused by manual testing.
The second objective of the present invention is to provide a testing method based on a data platform.
A third object of the invention is to propose an electronic device.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a test system based on a data platform, including: the system comprises a controller, a communication module, a data platform and a northbound server; the controller is used for controlling the communication module to establish connection with the data platform, controlling the communication module to report southward data to the data platform, acquiring the report result of the southward data, controlling the northbound server to execute northbound operation on the data platform, acquiring the execution result of the northbound operation, and determining a test result according to the report result of the southward data and the execution result of the northbound operation.
According to the test system based on the data platform, the controller is used for controlling the communication module to be connected with the data platform, controlling the communication module to report the south data to the data platform, acquiring the report result of the south data, controlling the north server to execute the north operation on the data platform, acquiring the execution result of the north operation, and determining the test result according to the report result of the south data and the execution result of the north operation. Therefore, the data platform, the communication module and the northbound server can be automatically tested through one controller, and waste of a large amount of human resources and time resources caused by manual testing is avoided.
In addition, the test system based on the data platform according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the invention, the controller is further configured to: before the communication module is controlled to report southbound data to the data platform, whether the connection between the communication module and the data platform is successful is judged; and if so, controlling the communication module to report the south-oriented data to the data platform.
According to an embodiment of the invention, the controller is further configured to: if not, counting the connection failure times, and continuously controlling the communication module to establish connection with the data platform when the connection failure times are smaller than a set time threshold.
According to an embodiment of the invention, the controller is specifically configured to: and obtaining a report result of the southbound data according to a confirmation character message obtained from the communication module, wherein the confirmation character message is determined by the data platform whether to return to the communication module according to the type of the southbound data.
According to an embodiment of the invention, the controller is specifically configured to: acquiring the state of the southbound data on the data platform from the data platform through the northbound server; and obtaining a reporting result of the southbound data according to the state of the southbound data on the data platform.
According to an embodiment of the present invention, the reporting result of the southbound data includes a reporting status and a reporting success rate; the controller is specifically configured to: if the report is successful, directly controlling the northbound server to execute a northbound operation step on the data platform; and if the report is unsuccessful, activating a communication link between the communication module and the data platform, and controlling the northbound server to execute northbound operation on the data platform after the communication link is successfully activated.
According to an embodiment of the invention, the controller is specifically configured to: when the northbound server is controlled to execute the northbound operation on the data platform, a report message which is issued by the data platform and corresponds to the northbound operation is acquired through the communication module; controlling the communication module to send response information to the data platform according to the report message; and acquiring the response information and an execution result of the northbound operation from the data platform through the northbound server, wherein the execution result of the northbound operation is obtained by the data platform according to the response information.
According to an embodiment of the invention, the controller is specifically configured to: and comparing the report result of the southbound data and the execution result of the northbound operation with a preset standard report result and a preset standard execution result respectively to determine the test result.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides a testing method based on a data platform, including: controlling a communication module to establish connection with a data platform, controlling the communication module to report southbound data to the data platform, and acquiring a report result of the southbound data; controlling a northbound server to execute a northbound operation on the data platform and acquiring an execution result of the northbound operation; and determining a test result according to the report result of the southbound data and the execution result of the northbound operation.
According to the test method based on the data platform, a communication module is controlled to be connected with the data platform, the communication module is controlled to report southward data to the data platform, the report result of the southward data is obtained, a northbound server is controlled to execute northbound operation on the data platform, the execution result of the northbound operation is obtained, and a test result is determined according to the report result of the southward data and the execution result of the northbound operation. Therefore, automatic testing of the data platform, the communication module and the northbound server can be achieved, and waste of a large amount of human resources and time resources caused by manual testing is avoided.
To achieve the above object, an embodiment of a third aspect of the present invention provides an electronic device, including: the testing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the testing method based on the data platform provided by the embodiment of the second aspect of the invention is realized.
According to the electronic equipment provided by the embodiment of the invention, by executing the test method based on the data platform, the automatic test of the data platform, the communication module and the northbound server can be realized, and the waste of a large amount of human resources and time resources caused by manual test is avoided.
Drawings
FIG. 1 is a block schematic diagram of a data platform based test system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data platform based testing method according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A data platform based test system, a data platform based test method, and an electronic device according to embodiments of the present invention are described below with reference to the accompanying drawings.
FIG. 1 is a block diagram of a data platform based test system according to an embodiment of the present invention. As shown in fig. 1, a test system based on a data platform according to an embodiment of the present invention may include: controller 10, communication module 20, data platform 30, and northbound server 40.
The controller 10 is configured to control the communication module 20 to establish a connection with the data platform 30, control the communication module 20 to report the south data to the data platform 30, and obtain a report result of the south data, and control the north server 40 to execute the north operation on the data platform 30, and obtain an execution result of the north operation, and determine the test result according to the report result of the south data and the execution result of the north operation.
Specifically, the controller 10 may control the communication module 20 to establish a connection with the data platform 30, where a protocol between the communication module 20 and the data platform 30 is applicable to all protocol types that can enable the communication module 20 to establish a connection with the data platform 30, and may be reasonably selected according to actual requirements, and the data platform 30 may be an internet of things platform, or may be a large data platform of other types, and is not limited specifically.
After the communication module 20 and the data platform 30 are successfully connected, the controller 10 controls the communication module 20 to upload southbound data (i.e., data that the controller 10 controls the communication module 20 to report to the data platform 30) to the data platform 30 according to a set data type (the data type can be reasonably selected according to requirements, for example, the data type can be a character string type, a floating point type, an integer type, a boolean type, an opaque data type, etc.), and obtains a report result of the southbound data, meanwhile, the north-oriented server 40 may be controlled by the controller 10 to perform a north-oriented operation on the data platform 30 (i.e., to control a transmission direction of data or an execution direction of the operation, from the north-oriented server 40 to the data platform 30, to the communication module 20, and finally to the controller 10), and obtaining the execution result of the north operation, and finally determining the test result according to the report result of the south data and the execution result of the north operation. Therefore, the reporting result of the south data and the execution result of the north operation can be automatically acquired through one controller 10, so that the data platform 30 and the communication module 20 can be automatically tested, and waste of a large amount of human resources and time resources caused by manual testing is avoided.
It should be noted that, in practical application, the controller 10 and the northbound server 40 may be integrated in the control module to implement the above-mentioned automatic testing function through the control module, and a northbound server does not need to be separately built, so that resources occupied by the testing system are greatly reduced, and waste of device resources is avoided.
According to one embodiment of the invention, the controller 10 is further configured to: before the communication module 20 is controlled to report the southbound data to the data platform 30, whether the connection between the communication module 20 and the data platform 30 is successful is judged; if yes, the control communication module 20 reports the south data to the data platform 30.
According to one embodiment of the invention, the controller 10 is further configured to: if not, counting the connection failure times, and continuing to control the communication module 20 to establish connection with the data platform 30 when the connection failure times is smaller than the set time threshold.
Specifically, when the controller 10 controls the communication module 20 to establish a connection with the data platform 30, the controller 10 may also read a connection state between the communication module 20 and the data platform 30, and determine whether the connection between the communication module 20 and the data platform 30 is successful according to the connection state between the communication module 20 and the data platform 30. If the connection between the communication module 20 and the data platform 30 fails, the controller 10 counts the connection failure times and determines whether the connection failure times is smaller than a set time threshold (the set time threshold can be calibrated according to actual conditions). If the connection failure times are greater than or equal to the set time threshold, it is indicated that the connection between the communication module 20 and the data platform 30 cannot be established, at this time, the communication protocol between the communication module 20 and the data platform 30 may be replaced, or the communication module 20 may be replaced, and the communication module 20 and the data platform 30 may be controlled to establish connection again, and the statistical connection failure times in the controller 10 may be cleared; if the connection failure times are less than the set time threshold, the communication module 20 continues to be controlled to establish connection with the data platform 30 until the connection is successful within the set time threshold. When the communication module 20 is successfully connected to the data platform 30, the controller 10 can calculate the success rate of the connection between the communication module 20 and the data platform 30, and continue to control the communication module 20 to report southward data to the data platform 30 according to the set data type through the controller 10.
According to one embodiment of the invention, the controller 10 is specifically configured to: the reporting result of the southbound data is obtained according to the confirmation character message acquired from the communication module 20, and whether the confirmation character message is returned to the communication module 20 is determined by the data platform 30 according to the type of the southbound data.
According to another embodiment of the present invention, the controller 10 is specifically configured to: acquiring the state of the southbound data on the data platform 30 from the data platform 30 through the northbound server 40; and obtaining the report result of the southbound data according to the state of the southbound data on the data platform 30.
The reporting result of the southbound data can comprise a reporting state and a reporting success rate, and the reporting state can comprise a state that the southbound data is successfully reported and a state that the southbound data is failed to be reported.
Specifically, in practical applications, after the controller 10 controls the communication module 20 to successfully connect with the data platform 30 and controls the communication module 20 to report the south data to the data platform 30 according to the set data type, the data platform 30 may record the south data and determine whether to return an acknowledgement character message (ACK message) to the communication module 20 according to the data type of the south data, so as to obtain the acknowledgement character message from the communication module 20 through an obtaining unit in the controller 10 as a possible implementation manner, and if the obtaining unit in the controller 10 successfully obtains the acknowledgement character message from the data platform 30, it may determine that the south data is successfully reported and calculate a reporting success rate of the south data; as another possible implementation manner, the controller 10 may control the northbound server 40 to obtain the state of the southbound data on the data platform 30 through operations such as get/post in an HTTP (HyperText Transfer Protocol) Protocol (only the operations such as get/post in the HTTP Protocol are taken as examples, and other operations in other protocols may also be used as examples), determine whether the southbound data is successfully reported according to the state of the southbound data on the data platform 30, and calculate the reporting success rate of the southbound data when the southbound data is successfully reported.
According to one embodiment of the invention, the controller 10 is specifically configured to: if the report is successful, directly controlling the northbound server 40 to execute the northbound operation on the data platform 30; if the report is unsuccessful, the communication link between the communication module 20 and the data platform 30 is activated, and after the successful activation, the northbound server 40 is controlled to execute the northbound operation on the data platform 30.
Specifically, if the controller 10 determines that the report of the northbound data is successful, the northbound server 40 may be directly controlled to Execute a northbound operation on the data platform 30, and specifically, the northbound server 40 may be controlled by the controller 10 to Execute the northbound operation on the data platform 30 through get/post operations in the HTTP protocol (only get/post operations in the HTTP protocol are taken as an example, and other operations in other protocols may also be used as examples), where the northbound operation may include Write/Read/Execute/subscribe operations, and in practical applications, the northbound operation may be selected according to practical requirements, may also obtain a random number according to a set manner, and randomly Execute any one northbound operation according to the random number, and may also randomly select an operation from multiple northbound operations to combine, and Execute a randomly combined northbound operation.
If the controller 10 determines that the south-bound data report fails, the update operation may be used to activate the communication link between the communication module 20 and the data platform 30 for the next north-bound operation. Specifically, in practical applications, because the types of the communication protocols used between the communication module 20 and the data platform 30 are different, and the duration of the operation of the communication link between the corresponding communication module 20 and the data platform 30 is also different, it can be determined whether the communication link needs to be activated according to the type of the communication protocol used between the communication module 20 and the data platform 30. For example, when some protocols based on a User Datagram Protocol (UDP) (e.g., a lap/lwm 2 m/onent Protocol based on UDP) Protocol are used between the communication module 20 and the data platform 30, the duration of the communication link between the communication module 20 and the data platform 30 is short, and the communication link between the communication module 20 and the data platform 30 is easy to enter a sleep state, so that the communication link needs to be activated, and needs to be activated; when other communication protocols (such as http/https/ftp and the like) are adopted between the communication module 20 and the data platform 30, the communication link between the communication module 20 and the data platform 30 can be always in an operating state, so that the problem of communication link activation does not exist, and the communication link does not need to be activated.
According to one embodiment of the invention, the controller 10 is specifically configured to: when controlling the northbound server 40 to execute the northbound operation on the data platform 30, obtaining a report message corresponding to the northbound operation, issued by the data platform 30, through the communication module 20; controlling the communication module 20 to send a response message to the data platform 30 according to the report message; the response information and the execution result of the northbound operation are obtained from the data platform 30 by the northbound server 40, wherein the execution result of the northbound operation is obtained by the data platform 30 according to the response information.
Specifically, after the northbound server 40 performs the northbound operation on the data platform 30, the data platform 30 may send a corresponding report message (URC, including the content of data, flag, instruction, information, and the like, which is reported at irregular time) to the communication module 20. The controller 10 can read the report message corresponding to the northbound operation received by the communication module 20, and control the communication module 20 to make a corresponding response according to the content of the report message, and send the response message to the data platform 30.
That is, the data platform 30 may be controlled by the controller 10 to wait for reception of the response information transmitted by the communication module 20. If the data platform 30 does not receive the response information within the first preset time, it may be determined that the communication module 20 does not respond or the response is overtime, and therefore, it may be determined that the execution of the northbound operation fails, if the data platform 30 receives the response information within the first preset time, it may be determined whether the response information is accurate through the data platform 30, if the response information is accurate, it may be determined that the execution of the northbound operation is successful, and if the response information is inaccurate, it may be determined that the execution of the northbound operation fails, and therefore, the data platform 30 may obtain the execution result of the northbound operation according to the response information. At this time, the northbound server 40 may also be controlled by the controller 10 to collect the execution result of the northbound operation fed back by the data platform 30, read the statistical information of the northbound server 40, and calculate the success rate of the northbound operation.
It should be noted that, after the data platform 30 obtains the execution result of the northbound operation according to the response information, the controller 10 is further configured to determine whether the northbound server 40 collects the execution result of the northbound operation fed back by the data platform 30 within a second preset time, and if the execution result of the northbound operation fed back by the data platform 30 is not collected within the second preset time, it may determine that the execution of the northbound operation fails.
According to one embodiment of the invention, the controller 10 is specifically configured to: and comparing the reporting result of the southbound data and the execution result of the northbound operation with a preset standard reporting result and a preset standard execution result respectively to determine a test result.
Specifically, after the reporting result of the southbound data and the execution result of the northbound operation are obtained through the above method, the success rate of the southbound data reporting can be compared with the success rate of the standard southbound data reporting, and the success rate of the northbound operation can be compared with the success rate of the standard northbound operation, if the success rate of the southbound data reporting is greater than or equal to the success rate of the standard southbound data reporting and the success rate of the northbound operation is greater than or equal to the success rate of the standard northbound operation, the test is judged to be successful, otherwise, the test is judged to be failed. The test duration and the number of the loop tests may be determined by the test case.
It should be noted that the test system according to the embodiment of the present invention is not only suitable for random combination of all types of southbound data and northbound operations, that is, simultaneously testing the reporting result of the southbound data and the execution result of the northbound operation, but also suitable for reporting of a single southbound data, that is, separately testing the reporting result of the southbound data, and also suitable for executing a single northbound operation, that is, separately testing the execution result of the northbound operation.
In summary, according to the test system based on the data platform in the embodiment of the present invention, the controller controls the communication module to establish a connection with the data platform, controls the communication module to report the southbound data to the data platform, obtains the report result of the southbound data, controls the northbound server to execute the northbound operation on the data platform, obtains the execution result of the northbound operation, and determines the test result according to the report result of the southbound data and the execution result of the northbound operation. Therefore, the data platform, the communication module and the northbound server can be automatically tested through one controller, and waste of a large amount of human resources and time resources caused by manual testing is avoided.
FIG. 2 is a flow chart of a data platform based testing method according to an embodiment of the invention. As shown in fig. 2, the testing method based on the data platform according to the embodiment of the present invention may include:
s201, the communication module is controlled to be connected with the data platform, the communication module is controlled to report the southward data to the data platform, and a report result of the southward data is obtained.
S202, controlling the northbound server to execute the northbound operation on the data platform, and acquiring the execution result of the northbound operation.
S203, determining a test result according to the report result of the southbound data and the execution result of the northbound operation.
It should be noted that, for details that are not disclosed in the data platform based test method according to the embodiment of the present invention, please refer to details that are disclosed in the data platform based test system according to the embodiment of the present invention, and detailed descriptions thereof are omitted here.
According to the test method based on the data platform, a communication module is controlled to be connected with the data platform, the communication module is controlled to report southward data to the data platform, the report result of the southward data is obtained, a northbound server is controlled to execute northbound operation on the data platform, the execution result of the northbound operation is obtained, and a test result is determined according to the report result of the southward data and the execution result of the northbound operation. Therefore, automatic testing of the data platform, the communication module and the northbound server can be achieved, and waste of a large amount of human resources and time resources caused by manual testing is avoided.
In addition, an embodiment of the present invention further provides an electronic device, including: the testing method based on the data platform comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the testing method based on the data platform is realized.
According to the electronic equipment provided by the embodiment of the invention, by executing the test method based on the data platform, the automatic test of the data platform, the communication module and the northbound server can be realized, and the waste of a large amount of human resources and time resources caused by manual test is avoided.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In addition, in the description of the present invention, the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A data platform based test system, comprising: the system comprises a controller, a communication module, a data platform and a northbound server;
the controller is used for controlling the communication module to establish connection with the data platform, controlling the communication module to report southward data to the data platform and obtain the report result of the southward data, controlling the northbound server to execute northbound operation on the data platform and obtain the execution result of the northbound operation, and determining a test result according to the report result of the southward data and the execution result of the northbound operation;
the north operation is an operation that is issued from the communication module to the north server through the data platform.
2. The test system of claim 1, wherein the controller is further configured to:
before the communication module is controlled to report southbound data to the data platform, whether the connection between the communication module and the data platform is successful is judged;
and if so, controlling the communication module to report the south-oriented data to the data platform.
3. The test system of claim 2, wherein the controller is further configured to:
if not, counting the connection failure times, and continuously controlling the communication module to establish connection with the data platform when the connection failure times are smaller than a set time threshold.
4. The test system of claim 1, wherein the controller is specifically configured to:
and obtaining a report result of the southbound data according to a confirmation character message obtained from the communication module, wherein the confirmation character message is determined by the data platform whether to return to the communication module according to the type of the southbound data.
5. The test system of claim 1, wherein the controller is specifically configured to:
acquiring the state of the southbound data on the data platform from the data platform through the northbound server;
and obtaining a reporting result of the southbound data according to the state of the southbound data on the data platform.
6. The test system of claim 1, wherein the reporting result of the southbound data includes a reporting status and a reporting success rate; the controller is specifically configured to:
if the report is successful, directly controlling the northbound server to execute a northbound operation step on the data platform;
and if the report is unsuccessful, activating a communication link between the communication module and the data platform, and controlling the northbound server to execute northbound operation on the data platform after the communication link is successfully activated.
7. The test system of claim 1, wherein the controller is specifically configured to:
when the northbound server is controlled to execute the northbound operation on the data platform, a report message which is issued by the data platform and corresponds to the northbound operation is acquired through the communication module;
controlling the communication module to send response information to the data platform according to the report message;
and acquiring the response information and an execution result of the northbound operation from the data platform through the northbound server, wherein the execution result of the northbound operation is obtained by the data platform according to the response information.
8. The test system of claim 1, wherein the controller is specifically configured to:
and comparing the report result of the southbound data and the execution result of the northbound operation with a preset standard report result and a preset standard execution result respectively to determine the test result.
9. A test method based on a data platform is characterized by comprising the following steps:
controlling a communication module to establish connection with a data platform, controlling the communication module to report southbound data to the data platform, and acquiring a report result of the southbound data;
controlling a northbound server to execute a northbound operation on the data platform and acquiring an execution result of the northbound operation;
determining a test result according to the report result of the southbound data and the execution result of the northbound operation;
the north operation is an operation that is issued from the communication module to the north server through the data platform.
10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the data platform based testing method of claim 9.
CN201910620946.0A 2019-07-10 2019-07-10 Test system and method based on data platform Active CN110417618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910620946.0A CN110417618B (en) 2019-07-10 2019-07-10 Test system and method based on data platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910620946.0A CN110417618B (en) 2019-07-10 2019-07-10 Test system and method based on data platform

Publications (2)

Publication Number Publication Date
CN110417618A CN110417618A (en) 2019-11-05
CN110417618B true CN110417618B (en) 2021-06-29

Family

ID=68360949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910620946.0A Active CN110417618B (en) 2019-07-10 2019-07-10 Test system and method based on data platform

Country Status (1)

Country Link
CN (1) CN110417618B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037870B (en) * 2021-04-15 2022-05-17 无锡专心智制科技有限公司 Data acquisition system and method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902429A (en) * 2012-12-26 2014-07-02 北京新媒传信科技有限公司 Early warning method, sever and system in automated test
CN103929276A (en) * 2014-04-30 2014-07-16 中国科学院微电子研究所 Rate self-adaption method and system of wireless body area network
CN105337798A (en) * 2015-10-22 2016-02-17 上海斐讯数据通信技术有限公司 Method and system for testing server performance
CN106411637A (en) * 2016-09-13 2017-02-15 四川长虹电器股份有限公司 Internet-of-things device scenario testing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3824000B2 (en) * 2004-01-20 2006-09-20 オムロン株式会社 Read / write processing device for RFID tag
CN101127647A (en) * 2004-11-05 2008-02-20 华为技术有限公司 Fax test device and network device based on T38 protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902429A (en) * 2012-12-26 2014-07-02 北京新媒传信科技有限公司 Early warning method, sever and system in automated test
CN103929276A (en) * 2014-04-30 2014-07-16 中国科学院微电子研究所 Rate self-adaption method and system of wireless body area network
CN105337798A (en) * 2015-10-22 2016-02-17 上海斐讯数据通信技术有限公司 Method and system for testing server performance
CN106411637A (en) * 2016-09-13 2017-02-15 四川长虹电器股份有限公司 Internet-of-things device scenario testing method

Also Published As

Publication number Publication date
CN110417618A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
US7783744B2 (en) Facilitating root cause analysis for abnormal behavior of systems in a networked environment
US10171333B2 (en) Determining connection feasibility and selection between different connection types
US8112489B1 (en) Client processing in response to managed system state changes
RU2531355C2 (en) Method and system for wireless device communication
CN110417618B (en) Test system and method based on data platform
US8234380B1 (en) Single communication connection for managing a system with multiple service processors
CN114466321B (en) Message sending method and device, electronic equipment and storage medium
US9843947B2 (en) Visual signal strength indication for a wireless device
US20210407018A1 (en) Farm-sensing system and calibration method of sensor data thereof
CN114641045A (en) Power transmission line communication channel switching method and system based on communication quality perception
CN107659510B (en) Method and device for uploading data by underground barrel terminal, storage medium and underground barrel terminal
CN115981956A (en) SPDK service process monitoring method, device, equipment, storage medium and program product
CN115629596A (en) Remote control test method and device for networked controller, electronic equipment and storage medium
CN110771129A (en) User terminal, server device, and method for setting communication parameters
CN106130815B (en) Board level testing method and device
CN113157458A (en) Method and device for quickly releasing java program memory
CN112256265A (en) H5 page stability testing method and device, storage medium and electronic equipment
CN113612651A (en) IO-Link equipment testing device
CN113741260A (en) Equipment sleep control method and device
JP5444930B2 (en) Backplane test system, backplane test board
CN116165868B (en) Time calibration method and device for data acquisition instrument
CN112788265A (en) Video data storage method and device, image acquisition equipment and readable storage medium
CN109688032B (en) Network transmission performance testing method and device
JP2005332068A (en) Program failure analysis system and program failure analysis method
US20240107459A1 (en) Visualization method of visualizing downlink signal power levels and offsets in a wireless communication cell, testing method and measurement system

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
GR01 Patent grant
GR01 Patent grant