Method, device and equipment for automatic testing of internet protocol-based extensible service-oriented communication middleware and storage medium
By building test pages and using inexpensive 100Mbps automotive Ethernet converters, the high cost of testing scalable service-oriented communication middleware for Internet protocols was solved, achieving low-cost testing results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, the testing cost of scalable service-oriented communication middleware based on Internet Protocol is relatively high, mainly due to the need for expensive hardware equipment.
By acquiring service identifiers, method identifiers, event identifiers, and signals from the service matrix, a test page is constructed and tested using an inexpensive 100Mbps automotive Ethernet converter.
This reduces testing costs and enables inexpensive testing of scalable service-oriented communication middleware based on Internet protocols.
Smart Images

Figure CN119211054B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle controller testing, and particularly relates to an automatic testing method and device of a Scalable service-Oriented MiddlewarE over IP (Some / IP) middleware based on an Internet protocol, equipment and a storage medium. BACKGROUND
[0002] The Some / IP protocol of a vehicle Ethernet based on an Internet protocol becomes a mainstream communication protocol of more and more automobiles, and the communication between different functions of the automobile uses the service signal of the Some / IP, and the interaction function of a single component needs to be tested by simulating the Some / IP message.
[0003] At present, the main means of simulation testing is to write a script on the software and use the supporting hardware of the Ethernet to realize the simulation testing of the Some / IP message. However, this way needs high-priced hardware devices, resulting in high testing cost. Therefore, how to reduce the testing cost of the Some / IP middleware based on an Internet protocol is still a problem to be solved.
[0004] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0005] The main purpose of the present application is to provide an automatic testing method, device, equipment and storage medium of a Scalable service-Oriented MiddlewarE over IP (Some / IP) middleware based on an Internet protocol, which aims to solve the technical problem of how to reduce the testing cost of the Some / IP middleware based on an Internet protocol.
[0006] To achieve the above purpose, the present application provides an automatic testing method of a Scalable service-Oriented MiddlewarE over IP (Some / IP) middleware based on an Internet protocol, which comprises the following steps:
[0007] Obtaining a service matrix of the Some / IP middleware based on an Internet protocol, and extracting 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] Testing the Some / IP middleware based on an Internet protocol through the test page.
[0010] In one embodiment, the step of constructing a test page based on the service identifier, the method identifier, the event identifier, and the signal includes:
[0011] Construct a first-level directory based on the service identifier;
[0012] Construct a second-level directory based on the method identifier and the event identifier;
[0013] Construct a third-level directory based on the signal;
[0014] In one embodiment, the step of constructing a third-level directory based on the signal includes:
[0015] Based on the signal, set the content displayed on the page;
[0016] Based on the content displayed on the page, construct a third-level directory.
[0017] In one embodiment, the step of constructing a test page based on the first-level directory, the second-level directory, and the third-level directory includes:
[0018] Based on the first-level directory, the second-level directory, and the third-level directory, a three-level directory structure is obtained, which includes a service layer, a mode layer, and a signal layer. The service layer contains different services, the mode layer contains methods or events under the services, and the signal layer contains specific signal information.
[0019] Build the test page according to the three-level directory structure described above.
[0020] In one embodiment, after the step of constructing the test page according to the three-level directory structure, the method further includes:
[0021] Receive display instructions through the test page;
[0022] According to the display instructions, detailed information about the signal is displayed on the test page.
[0023] In one embodiment, the step of testing the scalable service-oriented communication middleware based on the Internet Protocol through the test page includes:
[0024] Receive test instructions through the test page;
[0025] According to the test instructions, the scalable service-oriented communication middleware based on Internet Protocol is tested.
[0026] In one embodiment, the step of testing the scalable service-oriented communication middleware based on the Internet Protocol according to the test instructions includes:
[0027] According to the test instruction, corresponding test information is generated on the test page;
[0028] The test information is packaged in a message format of the Internet protocol-based extensible service-oriented communication middleware and tested.
[0029] In addition, to achieve the above object, the present application further provides an automatic testing device for the Internet protocol-based extensible service-oriented communication middleware, which comprises:
[0030] An acquisition module is configured to acquire a service matrix of the Internet protocol-based extensible service-oriented communication middleware, and extract a service identifier, a method identifier, an event identifier and a signal from the service matrix;
[0031] A construction module is configured to construct a test page according to the service identifier, the method identifier, the event identifier and the signal;
[0032] A testing module is configured to test the Internet protocol-based extensible service-oriented communication middleware through the test page.
[0033] In addition, to achieve the above object, the present application further provides an automatic testing device for the Internet protocol-based extensible service-oriented communication middleware, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the automatic testing method for the Internet protocol-based extensible service-oriented communication middleware.
[0034] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer readable storage medium, and a computer program is stored in the storage medium, and the computer program is executed by a processor to implement the steps of the automatic testing method for the Internet protocol-based extensible service-oriented communication middleware.
[0035] In addition, to achieve the above object, the present application further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the automatic testing method for the Internet protocol-based extensible service-oriented communication middleware.
[0036] The application provides an automatic testing method of an internet protocol-based extensible service-oriented communication middleware, the application acquires a service matrix of the internet protocol-based extensible service-oriented communication middleware, and extracts a service identifier, a method identifier, an event identifier and a signal from the service matrix; a test page is constructed according to the service identifier, the method identifier, the event identifier and the signal; and the internet protocol-based extensible service-oriented communication middleware is tested through the test page.
[0037] In conclusion, the application can test the internet protocol-based extensible service-oriented communication middleware through a cheap 100M vehicle-mounted Ethernet converter, and solves the technical problem of how to reduce the testing cost of the internet protocol-based extensible service-oriented communication middleware. BRIEF DESCRIPTION OF DRAWINGS
[0038] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings can also provide other drawings based on these drawings for those skilled in the art without any creative effort.
[0040] Figure 1 A flowchart is provided for the first embodiment of the automatic testing method of the internet protocol-based extensible service-oriented communication middleware of the application;
[0041] Figure 2 A service matrix diagram is provided for the first embodiment of the automatic testing method of the internet protocol-based extensible service-oriented communication middleware of the application;
[0042] Figure 3 A message format diagram is provided for the first embodiment of the automatic testing method of the internet protocol-based extensible service-oriented communication middleware of the application;
[0043] Figure 4 A flowchart is provided for the second embodiment of the automatic testing method of the internet protocol-based extensible service-oriented communication middleware of the application;
[0044] Figure 5 A test page construction process diagram is provided for the second embodiment of the automatic testing method of the internet protocol-based extensible service-oriented communication middleware of the application;
[0045] Figure 6The test page schematic diagram in the second embodiment of the automatic test method of the Internet protocol-based extensible service-oriented communication middleware of the application;
[0046] Figure 7 The module structure schematic diagram of the automatic test device of the Internet protocol-based extensible service-oriented communication middleware of the embodiment of the application;
[0047] Figure 8 The device structure schematic diagram of the hardware running environment involved in the automatic test method of the Internet protocol-based extensible service-oriented communication middleware in the embodiment of the application.
[0048] The purpose realization, functional features and advantages of the application will be further explained in combination with the embodiments and with reference to the drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the application and do not limit the application.
[0050] In order to better understand the technical solutions of the application, the following will be described in detail in combination with the drawings of the specification and specific embodiments.
[0051] The main solution of the application is to obtain a service matrix of the Internet protocol-based extensible service-oriented communication middleware, 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 Internet protocol-based extensible service-oriented communication middleware through the test page.
[0052] At present, the main means of simulation test is to write scripts on software and use supporting hardware with Ethernet to realize the simulation test of Some / IP messages. However, this method requires high-priced hardware devices, resulting in high test cost. Therefore, how to reduce the test cost of the Internet protocol-based extensible service-oriented communication middleware is still a problem to be solved.
[0053] The application can test the Internet protocol-based extensible service-oriented communication middleware through a cheap 100M vehicle Ethernet converter, thereby solving the technical problem of how to reduce the test cost of the Internet protocol-based extensible service-oriented communication middleware.
[0054] Based on this, the embodiment of the application provides an automatic test method of Internet protocol-based extensible service-oriented communication middleware, which is described with reference to Figure 1 , Figure 1This is a flowchart illustrating the first embodiment of the automated testing method for scalable service-oriented communication middleware based on Internet Protocol (IP).
[0055] In this embodiment, the automated testing method for the scalable service-oriented communication middleware based on Internet Protocol includes steps S10 to S30:
[0056] Step S10: Obtain the service matrix of the Internet Protocol-based scalable service-oriented communication middleware, and extract the service identifier, method identifier, event identifier, and signal from the service matrix;
[0057] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone; or an electronic device capable of performing the above functions, or an automated testing device based on Internet Protocol-based scalable service-oriented communication middleware. The following description uses an automated testing device based on Internet Protocol-based scalable service-oriented communication middleware as an example to illustrate this embodiment and the subsequent embodiments.
[0058] It's important to note that Some / IP, a scalable service-oriented communication middleware based on Internet Protocol (IP), has a service matrix at its core. This matrix designs the signals that the system needs to transmit using Some / IP in accordance with the format of service interfaces required by Some / IP. These service interfaces define how ECUs (Electronic Control Units) communicate, including communication logic, data types, and service interfaces. The Some / IP service matrix typically includes service partitioning, service interfaces, unique identifiers, subscription groups, etc. Figure 2 As shown. The Service Identifier (Service ID) uniquely identifies 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 (Method ID) is part of the Message ID and uniquely identifies a method. When the message is of type Method, the Message ID consists of both the Service ID and the Method ID. The Event Identifier (Event ID) is also part of the Message ID and uniquely identifies an event. When the message is of type Event, the Message ID consists of both the Service ID and the Event ID. Signals refer to the specific data information of a method or event within a service.
[0059] Step S20: Construct a test page based on the service identifier, the method identifier, the event identifier, and the signal;
[0060] It can be understood that the test page can be constructed by the extracted Service ID, Method ID, Event ID and signal, and the test page can display detailed information of the method or event of the service.
[0061] Step S30: testing the SOME / IP service communication middleware based on the Internet protocol through the test page.
[0062] It can be understood that the SOME / IP service communication middleware based on the Internet protocol can be tested through the constructed test page.
[0063] In a possible manner, the step of testing the SOME / IP service communication middleware based on the Internet protocol through the test page comprises:
[0064] receiving a test instruction through the test page;
[0065] testing the SOME / IP service communication middleware based on the Internet protocol according to the test instruction.
[0066] It should be noted that in the test page, the test instruction comprises an instruction of selecting a service to be tested and a sending instruction. Through the test instruction, corresponding test information can be generated in the test page, and the test information is packaged according to the SOME / IP message format and tested. The SOME / IP message format is as shown in Figure 3 . The test information comprises Service ID, Method ID, server IP, port number and the like.
[0067] The embodiment obtains a service matrix of the SOME / IP service communication middleware based on the Internet protocol, 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 SOME / IP service communication middleware based on the Internet protocol through the test page.
[0068] In conclusion, the embodiment can test the SOME / IP service communication middleware based on the Internet protocol through a cheap 100M vehicle Ethernet converter, and solves the technical problem of how to reduce the test cost of the SOME / IP service communication middleware based on the Internet protocol.
[0069] Based on the first embodiment, in the second embodiment, the same or similar contents as the above-mentioned first embodiment can be referred to the above description, and will not be described hereinafter. On this basis, please refer to Figure 4 , the step S20 comprises steps S201-S204:
[0070] Step S201: constructing a first level directory according to the service identifier;
[0071] It should be noted that the service identifier, i.e. Service ID, is a unique identifier of a service in SOME / IP communication. The extracted Service ID can be used as the first level directory of the test page.
[0072] Step S202: constructing a second level directory according to the method identifier and the event identifier;
[0073] It should be noted that the method identifier and the event identifier, i.e. Method ID and Event ID, are used to identify the method or event of the service in SOME / IP communication. 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 can be understood that the third level directory constructed by the signal is the last directory, which can display detailed information of the signal.
[0076] In one possible implementation, the step of constructing the third level directory according to the signal includes:
[0077] setting page display content according to the signal;
[0078] constructing the third level directory according to the page display content.
[0079] It should be noted that the set page display content includes Service ID, Method ID, Eventgroup ID (event group identifier), Cyclic Time (cyclic 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 (target MAC address), VLAN_ID (virtual local area network identifier), VLAN_PRIORITY (virtual local area network priority), Payload (payload), and signal_list (signal list).
[0080] Step S204: constructing a test page according to the first level directory, the second level directory and the third level directory.
[0081] It can be understood that the test page can be constructed through the first hierarchical directory, the second hierarchical directory and the third hierarchical directory, and the test page construction process is as shown in Figure 5 .
[0082] In one possible implementation, the step of constructing the test page according to the first hierarchical directory, the second hierarchical directory and the third hierarchical directory comprises:
[0083] According to the first hierarchical directory, the second hierarchical directory and the third hierarchical directory, a three-layer directory structure comprising a service layer, a mode layer and a signal layer is obtained, wherein the service layer comprises different services, the mode layer comprises methods or events under the services, and the signal layer comprises detailed signal information;
[0084] According to the three-layer directory structure, the test page is constructed.
[0085] It can be understood that the test page is as shown in Figure 6 , Figure 6 In the table, the service is power system information, the service ID is 3000, the method is power system display information, the method ID is 8003, and the signal is the detailed content of the charging status light.
[0086] In one possible implementation, the step of constructing the test page according to the three-layer directory structure further comprises:
[0087] A display instruction is received through the test page;
[0088] According to the display instruction, the detailed information of the signal is displayed on the test page.
[0089] It can be understood that through the test page, the detailed information of the signal under any service can be viewed.
[0090] In this embodiment, the first hierarchical directory is constructed according to the service identifier, the second hierarchical directory is constructed according to the method identifier and the event identifier, the third hierarchical directory is constructed according to the signal, and the test page is constructed according to the first hierarchical directory, the second hierarchical directory and the third hierarchical directory.
[0091] Through the test page constructed by the service identifier, the method identifier, the event identifier and the signal, the test task can be completed, and the problem of how to reduce the test cost of the service-oriented middleware based on the internet protocol is solved.
[0092] It should be noted that the above examples are only used for understanding the present application and do not constitute limitation of the present application, and more forms of simple transformation based on the technical concept are within the protection scope of the present application.
[0093] The present application also provides an automated testing device for the service-oriented communication middleware based on the extensible internet protocol, which refers to Figure 7 The automated testing device for the service-oriented communication middleware based on the extensible internet protocol comprises:
[0094] An acquisition module 10 is configured to acquire a service matrix of the service-oriented communication middleware based on the extensible 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 is configured to construct a test page according to the service identifier, the method identifier, the event identifier and the signal;
[0096] A testing module 30 is configured to test the service-oriented communication middleware based on the extensible internet protocol through the test page.
[0097] The present embodiment acquires a service matrix of the service-oriented communication middleware based on the extensible 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 service-oriented communication middleware based on the extensible internet protocol through the test page.
[0098] In summary, the present embodiment can test the service-oriented communication middleware based on the extensible internet protocol through a cheap 100M vehicle Ethernet converter, and solves the technical problem of how to reduce the testing cost of the service-oriented communication middleware based on the extensible internet protocol.
[0099] In an embodiment, the construction module 20 is further configured to construct a first hierarchical directory according to the service identifier; construct a second hierarchical directory according to the method identifier and the event identifier; and construct a third hierarchical directory according to the signal.
[0100] In an embodiment, the construction module 20 is further configured to set page display content according to the signal; and construct the third hierarchical directory according to the page display content.
[0101] In an embodiment, the constructing module 20 is further configured to obtain a three-layer directory structure including a service layer, a mode layer and a signal layer according to the first hierarchical directory, the second hierarchical directory and the third hierarchical directory, wherein the service layer includes different services, the mode layer includes methods or events under the services, and the signal layer includes specific signal information; and construct the test page according to the three-layer directory structure.
[0102] In an embodiment, the constructing 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 an embodiment, the testing module 30 is further configured to receive a test instruction through the test page; and test the service-oriented architecture communication middleware based on the test instruction.
[0104] In an embodiment, the testing module 30 is further configured to generate corresponding test information on the test page according to the test instruction; and pack and test the test information according to a message format of the service-oriented architecture communication middleware based on the Internet protocol.
[0105] The automatic testing device for the service-oriented architecture communication middleware based on the Internet protocol provided in the present application adopts the automatic testing method for the service-oriented architecture communication middleware based on the Internet protocol in the above embodiments, and can solve the technical problem of how to reduce the testing cost of the service-oriented architecture communication middleware based on the Internet protocol. Compared with the prior art, the automatic testing device for the service-oriented architecture communication middleware based on the Internet protocol provided in the present application has the same beneficial effects as the automatic testing method for the service-oriented architecture communication middleware based on the Internet protocol provided in the above embodiments, and other technical features in the automatic testing device for the service-oriented architecture communication middleware based on the Internet protocol are the same as the features disclosed in the above embodiment method, which will not be described here.
[0106] The present application provides an automatic testing device for a service-oriented architecture communication middleware based on the Internet protocol, which comprises at least one processor and a memory in communication connection with 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 to enable the at least one processor to perform the automatic testing method for the service-oriented architecture communication middleware based on the Internet protocol in the above embodiment one.
[0107] The following will be described with reference to the drawings Figure 8This document illustrates a schematic diagram of an automated testing device suitable for implementing the Internet Protocol-based scalable service-oriented communication middleware of the embodiments of this application. The automated testing device for the Internet Protocol-based scalable service-oriented communication middleware in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The automated testing device based on the Internet Protocol scalable service-oriented communication middleware shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0108] like Figure 8 As shown, an automated test device based on Internet Protocol-based scalable service-oriented communication middleware may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the automated test device based on Internet Protocol-based scalable service-oriented communication middleware. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows automated test equipment using Internet Protocol-based scalable service-oriented communication middleware to exchange data wirelessly or via wired communication with other devices. Although the figure shows automated test equipment using Internet Protocol-based scalable service-oriented communication middleware with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[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 comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the method shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiments disclosed in the present application are executed.
[0110] The automatic test device for the extensible service-oriented communication middleware based on the Internet protocol provided in the present application adopts the automatic test method for the extensible service-oriented communication middleware based on the Internet protocol in the above-mentioned embodiments, and can solve the technical problem of how to reduce the test cost of the extensible service-oriented communication middleware based on the Internet protocol. Compared with the prior art, the automatic test device for the extensible service-oriented communication middleware based on the Internet protocol provided in the present application has the same beneficial effects as the automatic test method for the extensible service-oriented communication middleware based on the Internet protocol provided in the above-mentioned embodiments, and other technical features in the automatic test device for the extensible service-oriented communication middleware based on the Internet protocol are the same as the features disclosed in the above-mentioned embodiments, which will not be repeated here.
[0111] It should be understood that parts of the present application can be realized in hardware, software, firmware, or a combination thereof. In the description of the above-mentioned 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 describes only the specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0113] The present application provides a computer readable storage medium having stored thereon computer readable program instructions (i.e. computer program) for executing the automatic test method for the extensible service-oriented communication middleware based on the Internet protocol in the above-mentioned embodiments.
[0114] The computer readable storage medium provided in the application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of the computer readable storage medium may include, but are not limited to, an electric connection with one or more conductive 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 the 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 can be transmitted by any suitable medium, including but not limited to an electric wire, an optical cable, an RF (Radio Frequency), etc., or any suitable combination of the above.
[0115] The above computer readable storage medium may be contained in the automation testing device based on the extensible service-oriented communication middleware based on the Internet protocol, or may exist separately without being assembled into the automation testing device based on the extensible service-oriented communication middleware based on the Internet protocol.
[0116] The above computer readable storage medium carries one or more programs, when the one or more programs are executed by the automation testing device based on the extensible service-oriented communication middleware based on the Internet protocol, the automation testing device based on the extensible service-oriented communication middleware based on the Internet protocol: 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.
[0117] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can 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 the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0118] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0119] The modules involved in the embodiments of the present application can be implemented in software or hardware. In some cases, the names of the modules do not constitute a limitation on the modules themselves.
[0120] The readable storage medium provided by the application is a computer readable storage medium, and the computer readable storage medium stores computer readable program instructions (namely, a computer program) for executing the automatic test method of the service-oriented middleware based on the Internet protocol, and can solve the technical problem of how to reduce the test cost of the service-oriented middleware based on the Internet protocol. Compared with the prior art, the computer readable storage medium provided by the application has the same beneficial effects as the automatic test method of the service-oriented middleware based on the Internet protocol provided by the above-mentioned embodiments, and details are not described herein.
[0121] The application further provides a computer program product comprising a computer program, which, when executed by a processor, implements the steps of the automatic test method of the service-oriented middleware based on the Internet protocol as described above.
[0122] The computer program product provided by the application can solve the technical problem of how to reduce the test cost of the service-oriented middleware based on the Internet protocol. Compared with the prior art, the computer program product provided by the application has the same beneficial effects as the automatic test method of the service-oriented middleware based on the Internet protocol provided by the above-mentioned embodiments, and details are not described herein.
[0123] The above-mentioned is only part of the embodiments of the application, and does not limit the patent scope of the application, and any equivalent structural transformation, direct / indirect application in other related technical fields made by using the content of the specification and drawings of the application under the technical concept of the application are included in the patent protection scope of the application.
Claims
1. An automated testing method for scalable service-oriented communication middleware based on Internet Protocol, characterized in that, The method includes: Obtain the service matrix of the Scalable Service-Oriented Communication Middleware based on Internet Protocol, and extract service identifiers, method identifiers, event identifiers, and signals from the service matrix; A test page is constructed based on the service identifier, the method identifier, the event identifier, and the signal; The test page is used to test the scalable service-oriented communication middleware based on Internet Protocol. The step of constructing the test page based on the service identifier, the method identifier, the event identifier, and the signal includes: Construct a first-level directory based on the service identifier; Construct a second-level directory based on the method identifier and the event identifier; Construct a third-level directory based on the signal; A test page is constructed based on the first-level directory, the second-level directory, and the third-level directory; The step of testing the scalable service-oriented communication middleware based on the Internet Protocol through the test page includes: Receive test instructions through the test page; According to the test instructions, the scalable service-oriented communication middleware based on Internet Protocol is tested; The step of testing the scalable service-oriented communication middleware based on the Internet Protocol according to the test instructions includes: According to the test instructions, generate corresponding test information on the test page; The test information is packaged and tested according to the message format of the Scalable Service-Oriented Communication Middleware based on Internet Protocol.
2. The method as described in claim 1, characterized in that, The step of constructing the third-level directory based on the signal includes: Based on the signal, set the content displayed on the page; Based on the content displayed on the page, construct a third-level directory.
3. The method as described in claim 1, characterized in that, The step of constructing the test page based on the first-level directory, the second-level directory, and the third-level directory includes: Based on the first-level directory, the second-level directory, and the third-level directory, a three-level directory structure is obtained, which includes a service layer, a mode layer, and a signal layer. The service layer contains different services, the mode layer contains methods or events under the services, and the signal layer contains specific signal information. Build the test page according to the three-level directory structure described above.
4. The method as described in claim 3, characterized in that, After the step of constructing the test page according to the three-level directory structure, the method further includes: Receive display instructions through the test page; According to the display instructions, detailed information about the signal is displayed on the test page.
5. An automated testing device for a scalable service-oriented communication middleware based on Internet Protocol, characterized in that, The device includes: The acquisition module is used to acquire the service matrix of the Scalable Service-Oriented Communication Middleware based on Internet Protocol, and extract service identifiers, method identifiers, event identifiers and signals from the service matrix; A construction module is used to construct a test page based on the service identifier, the method identifier, the event identifier, and the signal; The testing module is used to test the scalable service-oriented communication middleware based on Internet Protocol through the test page; The step of constructing the test page based on the service identifier, the method identifier, the event identifier, and the signal includes: Construct a first-level directory based on the service identifier; Construct a second-level directory based on the method identifier and the event identifier; Construct a third-level directory based on the signal; A test page is constructed based on the first-level directory, the second-level directory, and the third-level directory; The step of testing the scalable service-oriented communication middleware based on the Internet Protocol through the test page includes: Receive test instructions through the test page; According to the test instructions, the scalable service-oriented communication middleware based on Internet Protocol is tested; The step of testing the scalable service-oriented communication middleware based on the Internet Protocol according to the test instructions includes: According to the test instructions, generate corresponding test information on the test page; The test information is packaged and tested according to the message format of the Scalable Service-Oriented Communication Middleware based on Internet Protocol.
6. An automated testing device based on an Internet Protocol-based scalable service-oriented communication middleware, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the automated testing method for an Internet Protocol-based scalable service-oriented communication middleware as described in any one of claims 1 to 4.
7. 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, it implements the steps of the automated testing method for the scalable service-oriented communication middleware based on the Internet protocol as described in any one of claims 1 to 4.
Citation Information
Patent Citations
SOME / IP service test system and method
CN117421114A
Automatic test method, device and equipment for Ethernet service interface and medium
CN117955862A