CN113285849A - Equipment testing method and device based on microservice - Google Patents

Equipment testing method and device based on microservice Download PDF

Info

Publication number
CN113285849A
CN113285849A CN202110368375.3A CN202110368375A CN113285849A CN 113285849 A CN113285849 A CN 113285849A CN 202110368375 A CN202110368375 A CN 202110368375A CN 113285849 A CN113285849 A CN 113285849A
Authority
CN
China
Prior art keywords
micro
test
service
management
information
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.)
Granted
Application number
CN202110368375.3A
Other languages
Chinese (zh)
Other versions
CN113285849B (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.)
CICT Mobile Communication Technology Co Ltd
Original Assignee
Wuhan Hongxin Technology Development 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 Wuhan Hongxin Technology Development Co Ltd filed Critical Wuhan Hongxin Technology Development Co Ltd
Priority to CN202110368375.3A priority Critical patent/CN113285849B/en
Publication of CN113285849A publication Critical patent/CN113285849A/en
Application granted granted Critical
Publication of CN113285849B publication Critical patent/CN113285849B/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/50Testing arrangements
    • 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
    • H04L43/065Generation of reports related to network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a device testing method and a device based on micro-service, wherein the method comprises the following steps: receiving a test instruction sent by a terminal, and acquiring information of tested equipment carried by the test instruction; according to the information of the tested equipment, based on micro-service management, calling corresponding micro-services to test the tested equipment to obtain a test result; and sending the test result to the terminal. The equipment testing method and device based on the micro-service provided by the embodiment of the invention are based on micro-service management, test equipment is tested by calling the corresponding micro-service to obtain a test result, the coupling between the front end and the back end and each module can be removed, a client does not need to be deployed on the terminal, more convenient equipment testing can be realized, the maintenance is simpler, and the deployment, the updating and the upgrading are more convenient.

Description

Equipment testing method and device based on microservice
Technical Field
The invention relates to the technical field of communication, in particular to a device testing method and device based on micro-service.
Background
With the development of the communication manufacturing industry, in order to improve productivity, shorten production cycle and improve production quality, the requirements on development cycle and expansibility of an automatic test system are higher and higher.
For a test system, the code amount of an automatic test system with a single framework is large, the front end and the rear end are difficult to maintain together with the coupling of each module, a client needs to be installed on a test computer during testing, and the deployment, the updating and the upgrading are inconvenient.
Disclosure of Invention
The invention provides a device testing method and device based on micro-service, which are used for solving the defect of inconvenient testing in the prior art and realizing more convenient device testing.
The invention provides a device testing method based on micro-service, which comprises the following steps:
receiving a test instruction sent by a terminal, and acquiring information of tested equipment carried by the test instruction;
according to the information of the tested equipment, based on micro-service management, calling corresponding micro-services to test the tested equipment to obtain a test result;
and sending the test result to the terminal.
According to the equipment testing method based on the micro-service, the specific steps of calling the corresponding micro-service to test the equipment to be tested based on the micro-service management according to the information of the equipment to be tested and obtaining the test result comprise:
and calling other micro services corresponding to the information of the tested equipment to test the tested equipment through the micro service for test control according to the information of the tested equipment based on micro service management, and obtaining a test result.
According to the device testing method based on the micro service provided by the invention, the other micro services comprise: at least one of a micro-service for testing authority management, a micro-service for testing template management, a micro-service for index management, a micro-service for meter management, a micro-service for protocol library management, a micro-service for data storage, and a micro-service for data analysis.
According to the equipment testing method based on the micro service, the micro service used for testing control calls other micro services corresponding to the information of the equipment to be tested to test the equipment to be tested according to the information of the equipment to be tested, and the specific steps of obtaining the test result comprise:
acquiring information of the corresponding other micro services through the micro service for test control based on micro service management;
and calling the corresponding other micro services to test the tested equipment by the micro service for test control according to the information of the corresponding other micro services based on micro service management to obtain a test result.
The device testing method based on the micro service further comprises the following steps:
and controlling the flow of each micro-service.
The invention also provides a device testing method based on the microservice, which comprises the following steps:
sending a test instruction carrying information of the tested equipment to a server, so that the server calls corresponding micro-services to test the tested equipment according to the information of the tested equipment and based on micro-service management to obtain a test result;
and receiving the test result sent by the server.
The invention also provides a device testing device based on the micro service, which comprises:
the first receiving module is used for receiving a test instruction sent by a terminal and acquiring the information of the tested equipment carried by the test instruction;
the micro-service module is used for calling corresponding micro-services to test the tested equipment based on micro-service management according to the information of the tested equipment to obtain a test result;
and the first sending module is used for sending the test result to the terminal.
The invention also provides a device testing device based on the micro service, which comprises:
the second sending module is used for sending a test instruction carrying information of the tested equipment to the server side, so that the server side calls corresponding micro-services to test the tested equipment according to the information of the tested equipment based on micro-service management to obtain a test result;
and the second receiving module is used for receiving the test result sent by the server.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of any one of the microservice-based device testing methods.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the microservice-based device testing method as described in any of the above.
The equipment testing method and device based on the micro-service are based on micro-service management, test is carried out on the tested equipment by calling the corresponding micro-service to obtain the test result, the coupling between the front end and the back end and each module can be removed, a client does not need to be deployed on the terminal, more convenient equipment testing can be realized, the maintenance is simpler, and the deployment, the updating and the upgrading are more convenient.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for testing a device based on microservice provided by the present invention;
FIG. 2 is a flow chart illustrating a method for testing a device based on microservice provided by the present invention;
FIG. 3 is a schematic structural diagram of a device testing apparatus based on micro-services provided in the present invention;
FIG. 4 is a schematic structural diagram of a micro-service module in the device testing apparatus based on micro-services provided by the present invention;
FIG. 5 is a schematic structural diagram of a device testing apparatus based on micro-services provided in the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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.
In the description of the embodiments of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have specific orientations, be configured in specific orientations, and operate, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and not order.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
In order to overcome the problems in the prior art, the invention provides a device testing method and a device based on micro-services.
Fig. 1 is a schematic flow chart of a method for testing a device based on microservice according to the present invention. The method for testing a device based on microservice according to an embodiment of the present invention is described below with reference to fig. 1. As shown in fig. 1, the method includes: step 101, receiving a test instruction sent by a terminal, and acquiring information of a tested device carried by the test instruction.
Specifically, the execution subject of the device testing method based on the micro service provided by the embodiment of the invention is the server. The micro-service can be deployed on the service end and used for providing services required by testing, development and management.
The tested device can be any communication device. Preferably, the device under test is a wireless communication device.
The terminal can send a test instruction carrying information of the tested equipment to the server side through a browser or an APP and the like based on a network.
It is understood that the terminal is located at the front end and the server is located at the back end.
And the server receives the test instruction and acquires the information of the tested equipment carried by the test instruction.
And 102, according to the information of the tested equipment, based on micro-service management, calling corresponding micro-services to test the tested equipment, and obtaining a test result.
Specifically, the server may call a corresponding micro service according to the information of the device under test, execute the test on the device under test, and obtain the test result.
Microservice is a service that splits system traffic into finer granularity according to function. Each microservice provides a common API (Application Programming Interface) to the outside world and independently assumes responsibility for the outside world services.
Based on the micro-service, the front end and the back end can be separated, and each functional module for testing is deployed as the micro-service, so that the expansion, configuration and deployment of a test platform are more flexible, and the method is also suitable for product market popularization; moreover, the terminal does not need to be locally provided with a client, can carry out automatic testing only by a browser and the like, is more convenient and quick, and is particularly suitable for automatic testing with short development period, flexible expansion and convenient use.
The calling of the micro-service can be realized based on micro-service administration.
And the micro-service management is used for scheduling and managing each micro-service.
And 103, sending the test result to the terminal.
Specifically, after the test result is obtained, the server may send the test result to the terminal, and the terminal may obtain the test result corresponding to the test instruction, and end the test.
The embodiment of the invention is based on micro-service management, tests the tested equipment by calling the corresponding micro-service to obtain the test result, can remove the coupling between the front end and the back end and each module, does not need to deploy a client on the terminal, can realize more convenient equipment test, has simpler maintenance and more convenient deployment, update and upgrade.
Based on the content of any of the above embodiments, according to the information of the device under test, based on the micro-service administration, the corresponding micro-service is called to test the device under test, and the specific steps of obtaining the test result include: and calling other micro services corresponding to the information of the tested equipment to test the tested equipment through the micro service for test control according to the information of the tested equipment based on micro service management, and obtaining a test result.
Specifically, the micro-services deployed on the server side at least include micro-services for test control.
The method is used for micro-service of test control, and is particularly used for test execution, test process, result display and the like.
By calling the micro service for test control, automatic test can be executed, the test process and test data can be displayed in real time, and control such as test pause, stop, retest and the like can be performed.
It should be noted that, for different devices under test, instruments, protocols, test cases, templates, etc. required for testing may be different, and the functions of the micro services are relatively single, so that the micro service for test control calls other micro services based on the micro service administration according to the differences of the instruments, protocols, test cases, templates, etc. required for performing the automated test, to complete the test.
The other micro-services refer to micro-services different from the micro-services for test control, and can be used for managing instruments, protocols, test cases or templates, and the like required by the test.
The embodiment of the invention calls other corresponding micro services to test the tested equipment through the micro service for test control according to the information of the tested equipment, can release the coupling between the front end and the back end and each module, does not need to arrange a client on the terminal, can realize more convenient equipment test, has simpler maintenance and is more convenient to arrange, update and upgrade.
Based on the content of any of the above embodiments, the other microservices include: at least one of a micro-service for testing authority management, a micro-service for testing template management, a micro-service for index management, a micro-service for meter management, a micro-service for protocol library management, a micro-service for data storage, and a micro-service for data analysis.
In particular, the micro-service for testing authority management is specifically used for role management, user management, menu and button management and the like.
By calling the micro service for testing the authority management, the authority management of various users and roles in an organization structure can be carried out, and the authority can be controlled according to templates, menus, buttons and data tables.
The method is used for micro-service of testing template management, and is particularly used for template development, template management, template scaffolds and the like.
By calling the micro-service for testing template management, development, maintenance and deployment of the testing template can be carried out, and drag-type configuration development can be carried out.
The method is used for micro-service of index management, in particular to index development, index management, index scaffolding and the like.
By calling the micro service for index management, development, maintenance and deployment of an index library can be performed, and basic configuration type low-code development can be performed.
The index refers to a test index which is obtained by testing the tested equipment.
The micro-service is used for instrument management, and is particularly used for instrument management, instruction set management, drive development and the like.
By calling the micro service for instrument management, development and management of drivers, instruction sets and the like of various instruments used for testing can be performed.
The micro-service is used for protocol library management, and is particularly used for protocol library development, protocol library management and the like.
By calling the micro service for managing the protocol library, the development and management of the analysis and the use of various equipment protocols can be carried out.
The micro-service is used for data storage, particularly for database storage, log (log) file storage and the like.
By invoking the microservice for protocol library management, records of test data and test log files may be stored.
The micro-service for data analysis is particularly used for report development, report management and the like, and the data is tested through statistical analysis, so that improvement and optimization are facilitated.
By calling the microservice for data analysis, statistical analysis and report display of test data can be performed.
The micro service for test control may invoke one or more of a micro service for test authority management, a micro service for test template management, a micro service for index management, a micro service for meter management, a micro service for protocol library management, a micro service for data storage, and a micro service for data analysis, according to the information of the device under test.
Microservices for test control, microservices for test authority management, microservices for test template management, microservices for index management, microservices for meter management, microservices for protocol library management, microservices for data storage and microservices for data analysis may collectively comprise microservices deployments.
The embodiment of the invention calls other corresponding micro services to test the tested equipment through the micro service for test control according to the information of the tested equipment, can release the coupling between the front end and the back end and each module, does not need to arrange a client on the terminal, can realize more convenient equipment test, has simpler maintenance and is more convenient to arrange, update and upgrade.
Based on the content of any of the above embodiments, the micro service for test control calls other micro services corresponding to the information of the device to be tested to test the device to be tested according to the information of the device to be tested based on the micro service administration, and the specific steps of obtaining the test result include: and acquiring information of other corresponding micro services based on micro service management through the micro service for test control.
Specifically, the micro service for test control may be realized based on the micro service administration to invoke the corresponding other micro service.
The micro-service management can be used for scheduling management of each micro-service.
The micro-service management can be realized based on a micro-service gateway and a micro-service registration center.
The micro service gateway can be used for authentication, safety control, log unified processing and monitoring and the like of micro services.
The micro service gateway can be a gateway based on kong and the like.
The microservice registration center can be used for dynamic service discovery, service configuration management, service and flow management and the like of microservices.
The microservice registry can be based on a microcos and other microservice registries.
The micro service used for test control can determine other micro services which can be called according to other registered micro services of the micro service registration center, and obtain information of other micro services corresponding to the information of the tested equipment from the other micro services which can be called according to the information of the tested equipment.
The information of other micro-services may include information such as routes of other micro-services.
And calling the corresponding other micro services to test the tested equipment according to the information of the corresponding other micro services through the micro service for test control based on micro service management, and obtaining a test result.
Specifically, after the information of other micro services corresponding to the information of the device under test is acquired, the micro service for test control may call each of the corresponding other micro services according to the information of the corresponding other micro services and based on the micro service gateway, so as to complete the test.
The embodiment of the invention obtains the information of other corresponding micro services through the micro service for test control, calls the other corresponding micro services to test the tested equipment according to the information of the other corresponding micro services, can remove the coupling between the front end and the back end and each module, does not need to arrange a client on the terminal, can realize more convenient equipment test, has simpler maintenance and more convenient arrangement, update and upgrade.
Based on the content of any of the above embodiments, the method for testing a device based on a microservice further includes: and controlling the flow of each micro-service.
Specifically, the micro-service administration may also be used to control the flow of each micro-service.
The flow control of each micro service based on micro service management can also be realized based on a breaker.
The breaker can monitor the flow of each micro-service called in the test process and the total flow of each micro-service called, and can protect the stability of micro-service calling from multiple dimensions by controlling the flow, fusing degradation, protecting system load and the like of the corresponding micro-service under the condition that the abnormal flow is found through monitoring.
The breaker can be a circuit breaker based on sentinel and the like.
The embodiment of the invention can protect the stability of the micro-service calling of the equipment by controlling the flow of each micro-service.
Fig. 2 is a schematic flow chart of a method for testing a device based on microservice according to the present invention. The method for testing the device based on the microservice according to the embodiment of the present invention is described below with reference to fig. 2. As shown in fig. 2, the method includes: step 201, sending a test instruction carrying information of the device to be tested to the server, so that the server invokes a corresponding micro service to test the device to be tested according to the information of the device to be tested and based on micro service management, and obtaining a test result.
Specifically, the execution subject of the device testing method based on the microservice provided by the embodiment of the present invention is a terminal.
The terminal can send a test instruction carrying information of the tested equipment to the server side through a browser and the like based on a network.
It is understood that the terminal is located at the front end and the server is located at the back end.
The server receives the test instruction and acquires the information of the tested equipment carried by the test instruction; after the information of the tested equipment carried by the test instruction is obtained, the server side can call corresponding micro-services based on micro-service management according to the information of the tested equipment, execute the test on the tested equipment and obtain a test result; after obtaining the test result, the server may send the test result to the terminal.
Step 202, receiving a test result sent by the server.
Specifically, the terminal receives a test result sent by the server, and ends the test.
The embodiment of the invention is based on micro-service management, tests the tested equipment by calling the corresponding micro-service to obtain the test result, can remove the coupling between the front end and the back end and each module, does not need to deploy a client on the terminal, can realize more convenient equipment test, has simpler maintenance and more convenient deployment, update and upgrade.
The micro-service based device testing apparatus provided by the present invention is described below, and the micro-service based device testing apparatus described below and the micro-service based device testing method described above may be referred to in correspondence with each other.
Fig. 3 is a schematic structural diagram of a device testing apparatus based on microservices according to an embodiment of the present invention. Based on the content of any of the above embodiments, as shown in fig. 3, the apparatus includes a first receiving module 301, a micro-service module 302, and a first sending module 303, where:
the first receiving module 301 is configured to receive a test instruction sent by a terminal, and acquire information of a device under test carried by the test instruction;
the micro-service module 302 is configured to call a corresponding micro-service to test the device to be tested based on micro-service management according to information of the device to be tested, and obtain a test result;
a first sending module 303, configured to send the test result to the terminal.
Specifically, the device for testing equipment based on micro-services provided by the embodiment of the invention is a server side.
The first receiving module 301, the micro service module 302 and the first transmitting module 303 are electrically connected in sequence.
The terminal can send a test instruction carrying information of the tested equipment to the server side through a browser or an APP and the like based on a network.
The server may receive the test instruction through the first receiving module 301, and obtain information of the device under test carried by the test instruction.
The micro service module 302 may call a corresponding micro service based on micro service management according to the information of the device under test, and execute a test on the device under test to obtain a test result.
FIG. 4 is a schematic structural diagram of a micro-service module in the device testing apparatus based on micro-services according to the present invention. As shown in fig. 4, micro-service module 302 may include a micro-service deployment sub-module 401 and a micro-service administration sub-module 402.
The micro service deployment sub module 401 may include a test authority management unit 4011, a test control unit 4012, a test template management unit 4013, an index management unit 4014, an instrument management unit 4015, a protocol library management unit 4016, a data storage unit 4017, and a data analysis unit 4018.
The testing authority management unit 4011 is configured to invoke a micro service for testing authority management, and may include a role management subunit, a user management subunit, and a menu and button management subunit.
The test control unit 4012 is used to invoke micro services for test control, and may include a test execution subunit and a test procedure and result presentation subunit.
The test template management unit 4013 is configured to invoke micro services for test template management, and may include a template development subunit, a template management subunit, and a template scaffold unit.
The index management unit 4014 is configured to call a microservice for index management, and may include an index development subunit, an index management subunit, and an index scaffold unit.
The meter management unit 4015 is used to call a micro service for meter management, and may include a meter management subunit, an instruction set management subunit, and a drive development subunit.
The protocol library management unit 4016 is used to call a microservice for protocol library management, and may include a protocol library development subunit and a protocol library management subunit.
The data storage unit 4017 is used to call a microservice for data storage, and may include a database storage subunit and a log file storage subunit.
The data analysis unit 4018 is used to invoke a microservice for data analysis, and may include a report development subunit and a report management subunit.
The microservice governance sub-module 402 may include a microservice gateway 4021, a microservice registry 4022, a circuit breaker 4023, and a call chain 4024.
The micro service gateway 4021 may be based on kong, and may be used for authentication, security control, unified log processing and monitoring of micro services.
The microservice registry 4022 may be based on nacos and the like, and may be used for dynamic service discovery, service configuration management, service and traffic management and the like of microservices.
The circuit breaker 4023 may be based on sentinel, etc. and is used for controlling flow, fusing degradation, protecting system load, etc. and protecting the stability of the micro service invocation in multiple dimensions.
The call chain 4024 may be based on skywalk, etc. and is used to expose a topology diagram of microservice relationships, call chain paths, etc.
After the micro service module 302 obtains the test result, the server may send the test result to the terminal through the first sending module 303, and the terminal may obtain the test result corresponding to the test instruction, thereby ending the test.
The device testing apparatus based on micro service provided in the embodiment of the present invention is configured to execute the device testing method based on micro service, and an implementation manner of the device testing apparatus based on micro service provided in the embodiment of the present invention is consistent with an implementation manner of the device testing method based on micro service provided in the present invention, and the same beneficial effects can be achieved, and details are not described here.
The device testing apparatus based on micro-service is used in the device testing method based on micro-service of the foregoing embodiments. Therefore, the descriptions and definitions in the micro service-based device testing method in the foregoing embodiments can be used for understanding the execution modules in the embodiments of the present invention.
The embodiment of the invention is based on micro-service management, tests the tested equipment by calling the corresponding micro-service to obtain the test result, can remove the coupling between the front end and the back end and each module, does not need to deploy a client on the terminal, can realize more convenient equipment test, has simpler maintenance and more convenient deployment, update and upgrade.
Fig. 5 is a schematic structural diagram of a device testing apparatus based on microservices according to an embodiment of the present invention. Based on the content of any of the above embodiments, as shown in fig. 5, the apparatus includes a second sending module 501 and a second receiving module 502, where:
a second sending module 501, configured to send a test instruction carrying information of the device under test to the server, so that the server invokes a corresponding micro service to test the device under test according to the information of the device under test based on micro service management, and obtains a test result;
the second receiving module 502 is configured to receive a test result sent by the server.
Specifically, the device testing apparatus based on the micro service provided by the embodiment of the present invention is a terminal.
The second transmitting module 501 and the second receiving module 502 are electrically connected.
The terminal may send a test instruction carrying information of the device under test to the server through the second sending module 501 in a browser or the like based on the network.
The server receives the test instruction and acquires the information of the tested equipment carried by the test instruction; after the information of the tested equipment carried by the test instruction is obtained, the server side can call corresponding micro-services according to the information of the tested equipment based on micro-service management, execute the test on the tested equipment and obtain a test result; after obtaining the test result, the server may send the test result to the terminal.
The terminal may receive the test result sent by the server through the second receiving module 502, and end the test.
The device testing apparatus based on micro service provided in the embodiment of the present invention is configured to execute the device testing method based on micro service, and an implementation manner of the device testing apparatus based on micro service provided in the embodiment of the present invention is consistent with an implementation manner of the device testing method based on micro service provided in the present invention, and the same beneficial effects can be achieved, and details are not described here.
The device testing apparatus based on micro-service is used in the device testing method based on micro-service of the foregoing embodiments. Therefore, the descriptions and definitions in the micro service-based device testing method in the foregoing embodiments can be used for understanding the execution modules in the embodiments of the present invention.
The embodiment of the invention is based on micro-service management, tests the tested equipment by calling the corresponding micro-service to obtain the test result, can remove the coupling between the front end and the back end and each module, does not need to deploy a client on the terminal, can realize more convenient equipment test, has simpler maintenance and more convenient deployment, update and upgrade.
It should be noted that, in the description of any of the above embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the term "development" is to be understood broadly, and may be, for example, a code-type development or a configuration-type development; the term "management" is to be understood broadly, for example, it may be modification, deployment, deletion, query, or derivation; the term "executing" is to be understood broadly, and may be, for example, starting, pausing, or stopping; the term "scaffold" is to be understood in a broad sense, and may be, for example, a third-party code generation tool, or an automatic code generation tool developed by itself; the term "micro service gateway" is to be understood in a broad sense and may be a different gateway component, such as kong; the term "microservice registry" is to be understood in a broad sense and may be different registry components, such as nacos; the term "circuit breaker" is to be understood in a broad sense and may be a different circuit breaker assembly, such as sentinel; the term "call chain" is to be understood broadly and may be a different call chain component, such as skywalk. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions stored in the memory 630 and executable on the processor 610 to perform the microservice-based device testing method provided by the above-described method embodiments, the method comprising: receiving a test instruction sent by a terminal, and acquiring information of tested equipment carried by the test instruction; according to the information of the tested equipment, based on micro-service management, calling corresponding micro-service to test the tested equipment, and obtaining a test result; sending the test result to the terminal; or the method comprises: sending a test instruction carrying information of the tested equipment to the server, so that the server calls corresponding micro-services to test the tested equipment according to the information of the tested equipment and based on micro-service management to obtain a test result; and receiving a test result sent by the server.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. 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 removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The processor 610 in the electronic device provided in the embodiment of the present invention may call the logic instruction in the memory 630, and the implementation manner of the electronic device is consistent with the implementation manner of the device testing method based on microservice provided in the present invention, and the same beneficial effects may be achieved, which is not described herein again.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the microservice-based device testing method provided by the above-mentioned method embodiments, and the method includes: receiving a test instruction sent by a terminal, and acquiring information of tested equipment carried by the test instruction; according to the information of the tested equipment, based on micro-service management, calling corresponding micro-service to test the tested equipment, and obtaining a test result; sending the test result to the terminal; or the method comprises: sending a test instruction carrying information of the tested equipment to the server, so that the server calls corresponding micro-services to test the tested equipment according to the information of the tested equipment and based on micro-service management to obtain a test result; and receiving a test result sent by the server.
When the computer program product provided by the embodiment of the present invention is executed, the method for testing a device based on microservice is implemented, and the specific implementation manner of the method is consistent with the implementation manner described in the embodiment of the foregoing method, and the same beneficial effects can be achieved, which is not described herein again.
In yet another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the micro-service based device testing method provided in the foregoing embodiments, and the method includes: receiving a test instruction sent by a terminal, and acquiring information of tested equipment carried by the test instruction; according to the information of the tested equipment, based on micro-service management, calling corresponding micro-service to test the tested equipment, and obtaining a test result; sending the test result to the terminal; or the method comprises: sending a test instruction carrying information of the tested equipment to the server, so that the server calls corresponding micro-services to test the tested equipment according to the information of the tested equipment and based on micro-service management to obtain a test result; and receiving a test result sent by the server.
When the computer program stored on the non-transitory computer readable storage medium provided in the embodiments of the present invention is executed, the method for testing a device based on a microservice is implemented, and a specific implementation manner of the method is consistent with that described in the foregoing method embodiments, and the same beneficial effects can be achieved, which is not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A device testing method based on micro service is characterized by comprising the following steps:
receiving a test instruction sent by a terminal, and acquiring information of tested equipment carried by the test instruction;
according to the information of the tested equipment, based on micro-service management, calling corresponding micro-services to test the tested equipment to obtain a test result;
and sending the test result to the terminal.
2. The method for testing equipment based on microservice according to claim 1, wherein the specific steps of calling the corresponding microservice to test the equipment to be tested based on microservice management according to the information of the equipment to be tested and obtaining the test result comprise:
and calling other micro services corresponding to the information of the tested equipment to test the tested equipment through the micro service for test control according to the information of the tested equipment based on micro service management, and obtaining a test result.
3. The microservice-based device testing method of claim 2, wherein the other microservices comprise: at least one of a micro-service for testing authority management, a micro-service for testing template management, a micro-service for index management, a micro-service for meter management, a micro-service for protocol library management, a micro-service for data storage, and a micro-service for data analysis.
4. The microservice-based device testing method according to claim 2, wherein the specific step of calling other microservices corresponding to the information of the device under test to test the device under test through the microservice for test control according to the information of the device under test based on microservice management, and obtaining the test result includes:
acquiring information of the corresponding other micro services through the micro service for test control based on micro service management;
and calling the corresponding other micro services to test the tested equipment by the micro service for test control according to the information of the corresponding other micro services based on micro service management to obtain a test result.
5. The microservice-based device testing method of any of claims 1 to 4, further comprising:
and controlling the flow of each micro-service.
6. A device testing method based on micro service is characterized by comprising the following steps:
sending a test instruction carrying information of the tested equipment to a server, so that the server calls corresponding micro-services to test the tested equipment according to the information of the tested equipment and based on micro-service management to obtain a test result;
and receiving the test result sent by the server.
7. A microservice-based device testing apparatus, comprising:
the first receiving module is used for receiving a test instruction sent by a terminal and acquiring the information of the tested equipment carried by the test instruction;
the micro-service module is used for calling corresponding micro-services to test the tested equipment based on micro-service management according to the information of the tested equipment to obtain a test result;
and the first sending module is used for sending the test result to the terminal.
8. A microservice-based device testing apparatus, comprising:
the second sending module is used for sending a test instruction carrying information of the tested equipment to the server side so that the server side calls corresponding micro-services to test the tested equipment according to the information of the tested equipment, and obtains a test result based on micro-service management;
and the second receiving module is used for receiving the test result sent by the server.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for microservice-based device testing of any of claims 1 to 6 are performed by the processor when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the microservice-based device testing method of any of claims 1 to 6.
CN202110368375.3A 2021-04-06 2021-04-06 Equipment testing method and device based on micro-service Active CN113285849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110368375.3A CN113285849B (en) 2021-04-06 2021-04-06 Equipment testing method and device based on micro-service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110368375.3A CN113285849B (en) 2021-04-06 2021-04-06 Equipment testing method and device based on micro-service

Publications (2)

Publication Number Publication Date
CN113285849A true CN113285849A (en) 2021-08-20
CN113285849B CN113285849B (en) 2022-09-27

Family

ID=77276513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110368375.3A Active CN113285849B (en) 2021-04-06 2021-04-06 Equipment testing method and device based on micro-service

Country Status (1)

Country Link
CN (1) CN113285849B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704127A (en) * 2021-09-03 2021-11-26 北京惠岩信息科技有限公司 Micro-service testing method and micro-service testing device
CN114615251A (en) * 2022-03-24 2022-06-10 中电科思仪科技股份有限公司 Signal testing instrument cloud control system and method for realizing acquisition and calculation separation

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542796A (en) * 2018-12-28 2019-03-29 深圳云天励飞技术有限公司 Test method and Related product
CN109710524A (en) * 2018-12-19 2019-05-03 上海华兴数字科技有限公司 A kind of automatic test approach, system and computer storage medium
CN111147322A (en) * 2019-12-13 2020-05-12 中盈优创资讯科技有限公司 Test system and method for micro service architecture of 5G core network
CN111176989A (en) * 2019-12-22 2020-05-19 同济大学 Fault injection test scenario case model and framework based on service arrangement
US20200167267A1 (en) * 2018-11-28 2020-05-28 Sap Se Asynchronous consumer-driven contract testing in micro service architecture
CN111290951A (en) * 2020-01-22 2020-06-16 京东数字科技控股有限公司 Test method, terminal, server, system and storage medium
CN111475417A (en) * 2020-04-13 2020-07-31 广东美的暖通设备有限公司 Automatic testing method, device, equipment and storage medium
CN111506505A (en) * 2020-04-13 2020-08-07 北京奇艺世纪科技有限公司 Test case obtaining method and device
WO2020237797A1 (en) * 2019-05-31 2020-12-03 烽火通信科技股份有限公司 Dynamic configuration management method and system in microservice framework
CN112306851A (en) * 2019-08-01 2021-02-02 北京京东尚科信息技术有限公司 Automatic testing method and device
CN112463634A (en) * 2020-12-11 2021-03-09 中国人民银行清算总中心 Software testing method and device under micro-service architecture

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200167267A1 (en) * 2018-11-28 2020-05-28 Sap Se Asynchronous consumer-driven contract testing in micro service architecture
CN109710524A (en) * 2018-12-19 2019-05-03 上海华兴数字科技有限公司 A kind of automatic test approach, system and computer storage medium
CN109542796A (en) * 2018-12-28 2019-03-29 深圳云天励飞技术有限公司 Test method and Related product
WO2020237797A1 (en) * 2019-05-31 2020-12-03 烽火通信科技股份有限公司 Dynamic configuration management method and system in microservice framework
CN112306851A (en) * 2019-08-01 2021-02-02 北京京东尚科信息技术有限公司 Automatic testing method and device
CN111147322A (en) * 2019-12-13 2020-05-12 中盈优创资讯科技有限公司 Test system and method for micro service architecture of 5G core network
CN111176989A (en) * 2019-12-22 2020-05-19 同济大学 Fault injection test scenario case model and framework based on service arrangement
CN111290951A (en) * 2020-01-22 2020-06-16 京东数字科技控股有限公司 Test method, terminal, server, system and storage medium
CN111475417A (en) * 2020-04-13 2020-07-31 广东美的暖通设备有限公司 Automatic testing method, device, equipment and storage medium
CN111506505A (en) * 2020-04-13 2020-08-07 北京奇艺世纪科技有限公司 Test case obtaining method and device
CN112463634A (en) * 2020-12-11 2021-03-09 中国人民银行清算总中心 Software testing method and device under micro-service architecture

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704127A (en) * 2021-09-03 2021-11-26 北京惠岩信息科技有限公司 Micro-service testing method and micro-service testing device
CN114615251A (en) * 2022-03-24 2022-06-10 中电科思仪科技股份有限公司 Signal testing instrument cloud control system and method for realizing acquisition and calculation separation
CN114615251B (en) * 2022-03-24 2024-05-03 中电科思仪科技股份有限公司 Signal testing instrument cloud control system and method for realizing acquisition and calculation separation

Also Published As

Publication number Publication date
CN113285849B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
US11652918B2 (en) Using automatically collected device problem information to route and guide users' requests
CN113285849B (en) Equipment testing method and device based on micro-service
US10503579B2 (en) System and method for identifying operational disruptions in mobile computing devices
US20170070582A1 (en) Network entity discovery and service stitching
US9753800B1 (en) Communication network operations management system and method
CN103731205B (en) A kind of optical network unit automated testing method
EP4113911A1 (en) Network service construction system and network service construction method
CN111782524B (en) Application testing method and device, storage medium and electronic device
CN105871584A (en) Method, device and system for updating client configuration in key value pair database
US11811844B2 (en) Product validation based on simulated enhanced calling or messaging communications services in telecommunications network
CN104270289A (en) ONU automatic testing method based on TCL script
CN102355688A (en) Equipment testing system and method
US11546243B1 (en) Unified interface and tracing tool for network function virtualization architecture
CN111580833A (en) Application updating method and system, local management agent device and cloud server
EP3185475A1 (en) Rack diagram display method and apparatus
US20100278078A1 (en) Configuration management of ip/mpls router rings
US9294865B2 (en) Enhanced system and method for custom programming of large groups of phones without requiring additional equipment
CN112559289B (en) Monitoring system
CN113934552A (en) Method and device for determining function code, storage medium and electronic device
CN113934591A (en) Data monitoring method and device, storage medium and electronic device
CN105808418B (en) Test machine register method, apparatus and system
CN113411214A (en) Operation maintenance method and device of base station equipment
CN109922482B (en) OMC system deployment method, OMC system, electronic device and storage medium
CN108632053B (en) Service information processing method and device
CN112866007B (en) Equipment cloud management and control 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
TR01 Transfer of patent right

Effective date of registration: 20240606

Address after: 430205 No.1 tanhu 2nd Road, Canglong Island, Jiangxia District, Wuhan City, Hubei Province

Patentee after: CITIC Mobile Communication Technology Co.,Ltd.

Country or region after: China

Address before: 430205 No.1 tanhu 2nd Road, Canglong Island, Jiangxia District, Wuhan City, Hubei Province

Patentee before: Wuhan Hongxin Technology Development Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right