Automatic testing method, device and equipment for extensible service-oriented communication middleware based on Internet protocol, and storage medium
By building test pages and using cheap 100-megabit vehicle Ethernet converters, the problem of high testing costs in the prior art is solved, and low-cost testing of scalable service-oriented communication middleware based on Internet protocol is realized.
Patent Information
- Application Number
- CN202411402710.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-10-09
AI Technical Summary
Existing scalable service-oriented communication middleware testing methods based on Internet protocols require expensive hardware equipment, resulting in high testing costs.
By obtaining service identifiers, method identifiers, event identifiers, and signals in the service matrix, build a test page and use a cheap 100-megabit Ethernet converter for testing.
Reduces the testing cost of scalable service-oriented communication middleware based on Internet protocol, and implements an inexpensive testing solution.
Smart Images

Figure CN119211054A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle-mounted controller testing, and in particular to an automated testing method, apparatus, device and storage medium for extensible service-oriented communication middleware based on Internet protocol. Background Art
[0002] The Scalable Service-Oriented Middleware over IP (Some / IP) protocol based on the Internet Protocol in automotive Ethernet has become the mainstream communication protocol for more and more cars. The communication between different functions of the car will use the service signals of Some / IP, and the interactive functions involving a single component need to simulate Some / IP messages for testing.
[0003] At present, the means of simulation testing is mainly to implement simulation testing of Some / IP messages by writing scripts on software and using supporting Ethernet-supported hardware. However, the hardware equipment required for this method is expensive, resulting in high testing costs. Therefore, how to reduce the testing cost of scalable service-oriented communication middleware based on Internet protocols is a problem that still needs to be solved.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide an automated testing method, apparatus, device and storage medium for extensible service-oriented communication middleware based on Internet Protocol, aiming to solve the technical problem of how to reduce the testing cost of extensible service-oriented communication middleware based on Internet Protocol.
[0006] To achieve the above objectives, the present application proposes an automated testing method for extensible service-oriented communication middleware based on Internet protocol, the method comprising:
[0007] Acquire a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extract a service identifier, a method identifier, an event identifier, and a signal from the service matrix;
[0008] constructing a test page according to the service identifier, the method identifier, the event identifier and the signal;
[0009] The extensible service-oriented communication middleware based on the Internet protocol is tested through the test page.
[0010] In one embodiment, the step of constructing a test page according to the service identifier, the method identifier, the event identifier and the signal comprises:
[0011] constructing a first level directory according to the service identifier;
[0012] Construct a second-level directory according to the method identifier and the event identifier;
[0013] constructing a third-level directory according to the signal;
[0014] In one embodiment, the step of constructing a third-level directory according to the signal includes:
[0015] According to the signal, setting the page display content;
[0016] Construct a third-level directory based on the content displayed on the page.
[0017] In one embodiment, the step of constructing a test page according to the first-level directory, the second-level directory, and the third-level directory includes:
[0018] A three-layer directory structure including a service layer, a mode layer and a signal layer is obtained according to the first-level directory, the second-level directory and the third-level directory, wherein the service layer includes different services, the mode layer includes methods or events under the service, and the signal layer includes specific signal information;
[0019] Build a test page according to the three-layer directory structure.
[0020] In one embodiment, after the step of constructing a test page according to the three-layer directory structure, the step further includes:
[0021] Receiving a display instruction through the test page;
[0022] According to the display instruction, detailed information of the signal is displayed on the test page.
[0023] In one embodiment, the step of testing the extensible service-oriented communication middleware based on the Internet protocol through the test page includes:
[0024] Receiving a test instruction through the test page;
[0025] According to the test instruction, the extensible service-oriented communication middleware based on the Internet protocol is tested.
[0026] In one embodiment, the step of testing the extensible service-oriented communication middleware based on the Internet protocol according to the test instruction includes:
[0027] According to the test instruction, corresponding test information is generated on the test page;
[0028] The test information is packaged and tested according to the message format of the extensible service-oriented communication middleware based on the Internet protocol.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes an automated testing device for an extensible service-oriented communication middleware based on the Internet protocol, wherein the automated testing device for an extensible service-oriented communication middleware based on the Internet protocol comprises:
[0030] An acquisition module, used for acquiring a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extracting a service identifier, a method identifier, an event identifier and a signal from the service matrix;
[0031] A construction module, configured to construct a test page according to the service identifier, the method identifier, the event identifier and the signal;
[0032] The test module is used to test the extensible service-oriented communication middleware based on the Internet protocol through the test page.
[0033] In addition, to achieve the above-mentioned objectives, the present application also proposes an automated testing device for an extensible service-oriented communication middleware based on the Internet Protocol, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the automated testing method for an extensible service-oriented communication middleware based on the Internet Protocol as described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the automated testing method of the extensible service-oriented communication middleware based on the Internet protocol as described above are implemented.
[0035] In addition, to achieve the above objectives, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the automated testing method of the extensible service-oriented communication middleware based on the Internet protocol as described above.
[0036] The present application provides an automated testing method for an extensible service-oriented communication middleware based on the Internet protocol. The present application obtains a service matrix of the extensible service-oriented communication middleware based on the Internet protocol, and extracts a service identifier, a method identifier, an event identifier, and a signal from the service matrix; constructs a test page according to the service identifier, the method identifier, the event identifier, and the signal; and tests the extensible service-oriented communication middleware based on the Internet protocol through the test page.
[0037] In summary, the present application can solve the technical problem of how to reduce the testing cost of scalable service-oriented communication middleware based on Internet Protocol by testing the scalable service-oriented communication middleware based on Internet Protocol through a cheap 100M vehicle-mounted Ethernet converter. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A flowchart diagram of the first embodiment of the automated testing method for extensible service-oriented communication middleware based on Internet protocol provided by the present application;
[0041] Figure 2 This is a schematic diagram of a service matrix in the first embodiment of the automated testing method for extensible service-oriented communication middleware based on Internet protocol of the present application;
[0042] Figure 3 This is a schematic diagram of the message format in the first embodiment of the automated testing method for extensible service-oriented communication middleware based on the Internet protocol of this application;
[0043] Figure 4 A flow chart of the second embodiment of the automated testing method for extensible service-oriented communication middleware based on Internet protocol provided by the present application;
[0044] Figure 5 This is a schematic diagram of the test page construction process in the second embodiment of the automated testing method for extensible service-oriented communication middleware based on Internet protocol of the present application;
[0045] Figure 6This is a schematic diagram of a test page in the second embodiment of the automated testing method for extensible service-oriented communication middleware based on Internet protocol of the present application;
[0046] Figure 7 This is a schematic diagram of the module structure of an automated testing device for extensible service-oriented communication middleware based on Internet protocol according to an embodiment of the present application;
[0047] Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the automated testing method of the extensible service-oriented communication middleware based on the Internet protocol in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the present application is to obtain a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extract a service identifier, a method identifier, an event identifier and a signal from the service matrix; construct a test page according to the service identifier, the method identifier, the event identifier and the signal; and test the extensible service-oriented communication middleware based on the Internet protocol through the test page.
[0052] At present, the means of simulation testing is mainly to implement simulation testing of Some / IP messages by writing scripts on software and using supporting Ethernet-supported hardware. However, the hardware equipment required for this method is expensive, resulting in high testing costs. Therefore, how to reduce the testing cost of scalable service-oriented communication middleware based on Internet protocols is a problem that still needs to be solved.
[0053] The present application can test the scalable service-oriented communication middleware based on the Internet Protocol through a cheap 100M vehicle-mounted Ethernet converter, thereby solving the technical problem of how to reduce the testing cost of the scalable service-oriented communication middleware based on the Internet Protocol.
[0054] Based on this, the embodiment of the present application provides an automated testing method for extensible service-oriented communication middleware based on Internet protocol, referring to Figure 1 , Figure 1This is a flow chart of the first embodiment of the automated testing method for extensible service-oriented communication middleware based on Internet protocol of the present application.
[0055] In this embodiment, the automated testing method of the extensible service-oriented communication middleware based on the Internet protocol includes steps S10 to S30:
[0056] Step S10: obtaining a service matrix of the extensible service-oriented communication middleware based on the Internet protocol, and extracting a service identifier, a method identifier, an event identifier and a signal from the service matrix;
[0057] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an automated testing device based on an extensible service-oriented communication middleware of the Internet protocol, etc. The following takes the automated testing device based on an extensible service-oriented communication middleware of the Internet protocol as an example to illustrate this embodiment and the following embodiments.
[0058] It should be noted that the extensible service-oriented communication middleware based on Internet protocol, namely Some / IP, has a service matrix as the core of the design of the SOME / IP service interface. It designs the signals that need to be transmitted by SOME / IP in the system in the format of the service interface that meets the requirements of SOME / IP. These service interfaces define how ECUs (electronic control units) communicate with each other, including communication logic, data types, service interfaces, etc. The SOME / IP service matrix usually contains service division, service interface, unique identifier, subscription group, etc. Figure 2 As shown. The service identifier is the Service ID. The Service ID is used to uniquely identify a service. In SOME / IP communication, each service has a globally unique Service ID to ensure the accuracy and reliability of communication. The method identifier is the Method ID. The Method ID is part of the message ID and is used to uniquely identify a method. When the message is of the Method type, the message ID consists of the Service ID and the Method ID. The event identifier is the Event ID. The Event ID is also part of the message ID and is used to uniquely identify an event. When the message is of the Event type, the message ID consists of the Service ID and the Event ID. The signal refers to the specific data information of a method or event under a service.
[0059] Step S20: constructing a test page according to the service identifier, the method identifier, the event identifier and the signal;
[0060] It is understandable that a test page can be constructed through the extracted Service ID, Method ID, Event ID and signal, and the test page can display detailed information of the service method or event.
[0061] Step S30: Testing the extensible service-oriented communication middleware based on the Internet protocol through the test page.
[0062] It is understandable that the SOME / IP service can be tested through the constructed test page.
[0063] In a feasible manner, the step of testing the extensible service-oriented communication middleware based on the Internet protocol through the test page includes:
[0064] Receiving a test instruction through the test page;
[0065] According to the test instruction, the extensible service-oriented communication middleware based on the Internet protocol is tested.
[0066] It should be noted that in the test page, the test instructions include instructions for selecting the service to be tested and sending instructions. Through the test instructions, corresponding test information can be generated on the test page, and the test information can be packaged and tested according to the message format of SOME / IP. The message format of SOME / IP is as follows: Figure 3 As shown in the figure, the test information includes Service ID, Method ID, server IP, port number, etc.
[0067] This embodiment obtains a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extracts a service identifier, a method identifier, an event identifier, and a signal from the service matrix; constructs a test page according to the service identifier, the method identifier, the event identifier, and the signal; and tests the extensible service-oriented communication middleware based on the Internet protocol through the test page.
[0068] In summary, this embodiment can test the scalable service-oriented communication middleware based on the Internet Protocol through a cheap 100M vehicle-mounted Ethernet converter, thereby solving the technical problem of how to reduce the testing cost of the scalable service-oriented communication middleware based on the Internet Protocol.
[0069] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , the step S20 includes steps S201 to S204:
[0070] Step S201: constructing a first-level directory according to the service identifier;
[0071] It should be noted that the service identifier, namely the Service ID, is the unique identifier of the service in SOME / IP communication. The extracted Service ID can be used as the first-level directory of the test page.
[0072] Step S202: construct a second-level directory according to the method identifier and the event identifier;
[0073] It should be noted that the method identifier and event identifier, namely the Method ID and Event ID, are used to identify the method or event of the service in the SOME / IP communication, respectively. The extracted Method ID or Event ID can be used as the first-level directory of the test page.
[0074] Step S203: constructing a third-level directory according to the signal;
[0075] It is understandable that the third-level directory constructed by the signal is the last level of directory, which can display detailed information of the signal.
[0076] In a feasible manner, the step of constructing a third-level directory according to the signal includes:
[0077] According to the signal, setting the page display content;
[0078] Construct a third-level directory based on the content displayed on the page.
[0079] It should be noted that the settings page displays the content of Service ID, Method ID, EventgroupID (event group identifier), Cyclic Time (cycle time), RPC Type (remote procedure call type), Server_IP (server IP address), Client_IP (client IP address), Server Port (server port), Client Port (client port), Src_mac_address (source MAC address), Dst_mac_address (destination MAC address), VLAN_ID (virtual LAN identifier), VLAN_PRIORITY (virtual LAN priority), Payload (payload), signal_list (signal list).
[0080] Step S204: construct a test page according to the first-level directory, the second-level directory, and the third-level directory.
[0081] It is understandable that a test page can be constructed by using the first level directory, the second level directory and the third level directory. The test page construction process is as follows: Figure 5 shown.
[0082] In a feasible manner, the step of constructing a test page according to the first-level directory, the second-level directory, and the third-level directory includes:
[0083] A three-layer directory structure including a service layer, a mode layer and a signal layer is obtained according to the first-level directory, the second-level directory and the third-level directory, wherein the service layer includes different services, the mode layer includes methods or events under the service, and the signal layer includes specific signal information;
[0084] Build a test page according to the three-layer directory structure.
[0085] Understandably, a test page like Figure 6 As shown, Figure 6 The service is the power system information, the Service ID is 3000, the method is the power system display information, the Method ID is 8003, and the charging status light is the detailed content of the signal.
[0086] In a feasible manner, after the step of constructing the test page according to the three-layer directory structure, the step further includes:
[0087] Receiving a display instruction through the test page;
[0088] According to the display instruction, detailed information of the signal is displayed on the test page.
[0089] Understandably, through the test page, you can view the detailed information of the signal under any service.
[0090] This embodiment constructs a first-level directory according to the service identifier; constructs a second-level directory according to the method identifier and the event identifier; constructs a third-level directory according to the signal; and constructs a test page according to the first-level directory, the second-level directory, and the third-level directory.
[0091] This embodiment can complete the test task by constructing a test page through a service identifier, a method identifier, an event identifier, and a signal, and solves the problem of how to reduce the test cost of an extensible service-oriented communication middleware based on the Internet protocol.
[0092] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the automated testing method of the extensible service-oriented communication middleware based on the Internet protocol of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0093] This application also provides an automated testing device for extensible service-oriented communication middleware based on Internet protocol, please refer to Figure 7 , the automated testing device for the extensible service-oriented communication middleware based on the Internet protocol comprises:
[0094] An acquisition module 10 is used to acquire a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extract a service identifier, a method identifier, an event identifier and a signal from the service matrix;
[0095] A construction module 20, configured to construct a test page according to the service identifier, the method identifier, the event identifier and the signal;
[0096] The testing module 30 is used to test the extensible service-oriented communication middleware based on the Internet protocol through the testing page.
[0097] This embodiment obtains a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extracts a service identifier, a method identifier, an event identifier, and a signal from the service matrix; constructs a test page according to the service identifier, the method identifier, the event identifier, and the signal; and tests the extensible service-oriented communication middleware based on the Internet protocol through the test page.
[0098] In summary, this embodiment can test the scalable service-oriented communication middleware based on the Internet Protocol through a cheap 100M vehicle-mounted Ethernet converter, thereby solving the technical problem of how to reduce the testing cost of the scalable service-oriented communication middleware based on the Internet Protocol.
[0099] In one embodiment, the construction module 20 is further used to construct a first-level directory according to the service identifier; construct a second-level directory according to the method identifier and the event identifier; and construct a third-level directory according to the signal;
[0100] In one embodiment, the construction module 20 is further used to set page display content according to the signal; and to construct a third-level directory according to the page display content.
[0101] In one embodiment, the construction module 20 is also used to obtain a three-layer directory structure including a service layer, a mode layer and a signal layer according to the first-level directory, the second-level directory and the third-level directory, wherein the service layer includes different services, the mode layer includes methods or events under the service, and the signal layer includes specific signal information; and construct a test page according to the three-layer directory structure.
[0102] In one embodiment, the construction module 20 is further configured to receive a display instruction through the test page; and display detailed information of the signal on the test page according to the display instruction.
[0103] In one embodiment, the testing module 30 is further configured to receive a testing instruction through the testing page; and test the extensible service-oriented communication middleware based on the Internet protocol according to the testing instruction.
[0104] In one embodiment, the test module 30 is further configured to generate corresponding test information on the test page according to the test instruction; and to package the test information according to the message format of the extensible service-oriented communication middleware based on the Internet protocol and perform the test.
[0105] The automated testing device for extensible service-oriented communication middleware based on Internet protocol provided by the present application adopts the automated testing method for extensible service-oriented communication middleware based on Internet protocol in the above-mentioned embodiment, which can solve the technical problem of how to reduce the testing cost of extensible service-oriented communication middleware based on Internet protocol. Compared with the prior art, the beneficial effects of the automated testing device for extensible service-oriented communication middleware based on Internet protocol provided by the present application are the same as the beneficial effects of the automated testing method for extensible service-oriented communication middleware based on Internet protocol provided by the above-mentioned embodiment, and the other technical features in the automated testing device for extensible service-oriented communication middleware based on Internet protocol are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0106] The present application provides an automated testing device for extensible service-oriented communication middleware based on Internet protocol. The automated testing device for extensible service-oriented communication middleware based on Internet protocol includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automated testing method for extensible service-oriented communication middleware based on Internet protocol in the above-mentioned embodiment one.
[0107] Reference below Figure 8, which shows a schematic diagram of the structure of an automated test device based on an Internet protocol extensible service-oriented communication middleware suitable for implementing an embodiment of the present application. The automated test device based on an Internet protocol extensible service-oriented communication middleware in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The illustrated automated testing device of the extensible service-oriented communication middleware based on the Internet protocol is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0108] like Figure 8 As shown, the automated test equipment based on the extensible service-oriented communication middleware of the Internet protocol may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the automated test equipment based on the extensible service-oriented communication middleware of the Internet protocol are also stored. The processing device 1001, the ROM 1002 and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the automated test equipment based on the extensible service-oriented communication middleware of the Internet protocol to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the automated test equipment based on the extensible service-oriented communication middleware of the Internet protocol with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0109] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0110] The automated testing device for extensible service-oriented communication middleware based on Internet protocol provided by the present application adopts the automated testing method for extensible service-oriented communication middleware based on Internet protocol in the above-mentioned embodiment, which can solve the technical problem of how to reduce the testing cost of extensible service-oriented communication middleware based on Internet protocol. Compared with the prior art, the beneficial effects of the automated testing device for extensible service-oriented communication middleware based on Internet protocol provided by the present application are the same as the beneficial effects of the automated testing method for extensible service-oriented communication middleware based on Internet protocol provided by the above-mentioned embodiment, and the other technical features in the automated testing device for extensible service-oriented communication middleware based on Internet protocol are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0111] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0113] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the automated testing method for the extensible service-oriented communication middleware based on the Internet protocol in the above-mentioned embodiment.
[0114] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0115] The computer-readable storage medium may be included in the automated testing device of the extensible service-oriented communication middleware based on the Internet protocol; or may exist independently without being assembled into the automated testing device of the extensible service-oriented communication middleware based on the Internet protocol.
[0116] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the automated testing equipment of the extensible service-oriented communication middleware based on the Internet Protocol, the automated testing equipment of the extensible service-oriented communication middleware based on the Internet Protocol: obtains the service matrix of the extensible service-oriented communication middleware based on the Internet Protocol, and extracts the service identifier, method identifier, event identifier and signal from the service matrix; constructs a test page according to the service identifier, the method identifier, the event identifier and the signal; and tests the extensible service-oriented communication middleware based on the Internet Protocol through the test page.
[0117] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0118] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0119] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0120] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned automated testing method for extensible service-oriented communication middleware based on Internet protocol, and can solve the technical problem of how to reduce the testing cost of extensible service-oriented communication middleware based on Internet protocol. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the automated testing method for extensible service-oriented communication middleware based on Internet protocol provided by the above-mentioned embodiment, and will not be repeated here.
[0121] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned automated testing method for extensible service-oriented communication middleware based on the Internet protocol.
[0122] The computer program product provided by the present application can solve the technical problem of how to reduce the testing cost of the extensible service-oriented communication middleware based on the Internet protocol. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the automated testing method of the extensible service-oriented communication middleware based on the Internet protocol provided by the above-mentioned embodiment, and will not be described in detail here.
[0123] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An automated testing method for extensible service-oriented communication middleware based on Internet protocol, characterized in that: The method includes: Acquire a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extract a service identifier, a method identifier, an event identifier, and a signal from the service matrix; constructing a test page according to the service identifier, the method identifier, the event identifier and the signal; The extensible service-oriented communication middleware based on the Internet protocol is tested through the test page.
2. The method according to claim 1, characterized in that The step of constructing a test page according to the service identifier, the method identifier, the event identifier and the signal comprises: constructing a first level directory according to the service identifier; Construct a second-level directory according to the method identifier and the event identifier; constructing a third-level directory according to the signal; A test page is constructed according to the first-level directory, the second-level directory, and the third-level directory.
3. The method according to claim 2, characterized in that The step of constructing a third-level directory according to the signal comprises: According to the signal, setting the page display content; Construct a third-level directory based on the content displayed on the page.
4. The method according to claim 2, characterized in that The step of constructing a test page according to the first level directory, the second level directory and the third level directory comprises: A three-layer directory structure including a service layer, a mode layer and a signal layer is obtained according to the first-level directory, the second-level directory and the third-level directory, wherein the service layer includes different services, the mode layer includes methods or events under the service, and the signal layer includes specific signal information; Build a test page according to the three-layer directory structure.
5. The method according to claim 4, characterized in that After the step of constructing the test page according to the three-layer directory structure, the following steps are further included: Receiving a display instruction through the test page; According to the display instruction, detailed information of the signal is displayed on the test page.
6. The method according to claim 1, characterized in that The step of testing the extensible service-oriented communication middleware based on the Internet protocol through the test page includes: Receiving a test instruction through the test page; According to the test instruction, the extensible service-oriented communication middleware based on the Internet protocol is tested.
7. The method according to claim 5, characterized in that The step of testing the extensible service-oriented communication middleware based on the Internet protocol according to the test instruction includes: According to the test instruction, corresponding test information is generated on the test page; The test information is packaged and tested according to the message format of the extensible service-oriented communication middleware based on the Internet protocol.
8. An automated testing device for extensible service-oriented communication middleware based on Internet protocol, characterized in that: The device comprises: An acquisition module, used for acquiring a service matrix of an extensible service-oriented communication middleware based on the Internet protocol, and extracting a service identifier, a method identifier, an event identifier and a signal from the service matrix; A construction module, configured to construct a test page according to the service identifier, the method identifier, the event identifier and the signal; The test module is used to test the extensible service-oriented communication middleware based on the Internet protocol through the test page.
9. An automated testing device for extensible service-oriented communication middleware based on Internet protocol, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automated testing method for extensible service-oriented communication middleware based on Internet protocol as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the automated testing method for extensible service-oriented communication middleware based on Internet protocol as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
A directory display method and device
CN109729407A
Test system building method and test system
CN111913889A
Protocol conformance test method and system for vehicle DDS (Direct Digital Synthesizer) middleware
CN116192685A
SOME / IP service test system and method
CN117421114A
SOME / IP-based application function simulation test method and related device
CN117891725A
Cited By
Equipment testing method, simulator, electronic equipment and storage medium
CN120692184A
