Server test method, target client, medium and product

By designing the login and read and write modules of the target client, directly establishing a connection with the OPC server and generating test results, solving the problem of manually adding bit numbers and write value restrictions in OPC server testing, and achieving quick tests without the need for third-party clients.

CN119127593APending Publication Date: 2024-12-13BEIJING CONSEN AUTOMATION CONTROL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411271306.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In OPC server testing, the existing technology needs to be tested with the help of a third-party client, especially when large-scale testing and subscription number are large, the bit number is manually added and reconnected needs to be added again, and some value is written. Unable to write, there are inconvenience in use and functional limitations.

Method used

A target client is designed, including a login module and a read and write module. It establishes a connection with the OPC server through the login module. The read and write module reads the expected information from the test cases and receives actual information, generates test results, and does not require a third-party customer. test OPC server on the side.

Benefits of technology

It realizes that OPC server testing is completed conveniently and quickly without using third-party clients, solves the problem of manually adding bit numbers and writing value limitations, and improves testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127593A_ABST
    Figure CN119127593A_ABST
Patent Text Reader

Abstract

The invention discloses a server test method, a target client, a medium and a product. The server testing method is executed by a target client, and the target client comprises a login module and a read-write module. The server test method comprises the following steps: reading information of a server expected to log in from a test case through the login module, and establishing connection with a to-be-tested server according to the information of the server expected to log in; and through the read-write module, reading expected information from the test case, receiving actual information fed back by the to-be-tested server, and generating a test result according to the actual information and the expected information. According to the technical scheme of the invention, the OPC server can be tested conveniently and quickly without the help of a third-party client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of OPC technology, and in particular to a server testing method, a target client, a medium and a product. Background Art

[0002] In traditional testing, OPC (OLE for Process Control) data testing usually requires the use of third-party software. In the usual testing method, if the server is tested, it is necessary to connect to the server to be tested through a third-party client software to perform partial functional verification. In this process, there are the following problems: large-scale testing is required during OPC server testing. When the number of subscribed bit numbers is large, the commonly used open source OPC DA (OPC DataAccess) client on the market needs to manually add the bit number in the OPC server, and the bit number needs to be added again after disconnection and reconnection; when using the client to write values ​​to the bit number, some of the expected write values ​​cannot be written due to client restrictions. Summary of the invention

[0003] The embodiment of the present invention provides a server testing method, a target client, a medium and a product, so as to realize the convenient and fast completion of the testing of the OPC server without the aid of a third-party client.

[0004] According to one aspect of the present invention, a server testing method is provided, which is executed by a target client, wherein the target client comprises: a login module and a read-write module; the server testing method comprises:

[0005] Through the login module, the server information expected to be logged in is read from the test case, and a connection is established with the server to be tested according to the server information expected to be logged in;

[0006] The expected information is read from the test case through the reading and writing module, the actual information fed back by the server to be tested is received, and the test result is generated according to the actual information and the expected information.

[0007] According to another aspect of the present invention, a target client is provided, the target client comprising:

[0008] at least one processor; and

[0009] a memory communicatively connected to the at least one processor; wherein,

[0010] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the server testing method described in any embodiment of the present invention.

[0011] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server testing method described in any embodiment of the present invention when executed.

[0012] According to another aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the server testing method described in any embodiment of the present invention is implemented.

[0013] The embodiment of the present invention designs a target client, which includes a login module and a read-write module. The login module reads the server information expected to be logged in from the test case, and establishes a connection with the server to be tested according to the server information expected to be logged in. Then, the read-write module reads the expected information from the test case, receives the actual information fed back by the server to be tested, and generates a test result according to the actual information and the expected information. Through the technical solution of the present invention, it is possible to complete the test of the OPC server conveniently and quickly without the help of a third-party client.

[0014] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 is a flow chart of a server testing method in an embodiment of the present invention;

[0017] Figure 2 is a flowchart of an exemplary server testing method in an embodiment of the present invention;

[0018] Figure 3 is a structural diagram of an exemplary server testing method in an embodiment of the present invention;

[0019] Figure 4 is a flowchart of another exemplary server testing method in an embodiment of the present invention;

[0020] Figure 5is a structural diagram of another exemplary server testing method in an embodiment of the present invention;

[0021] Figure 6 is a structural diagram of a server testing method in an embodiment of the present invention;

[0022] Figure 7 It is a schematic diagram of the structure of a target client for implementing the server testing method of an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and their meanings are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0026] Embodiment 1

[0027] Figure 1It is a flow chart of a server testing method in an embodiment of the present invention. This embodiment is applicable to the case where an OPC server is tested through an OPC client. The server testing method of this embodiment is executed by a target client. In this embodiment, the target client may be an OPC client used to test the OPC server. Specifically, the target client may be, for example, an OPC DA (OPC Data Access) client, an OPC UA (OPC Unified Architecture) client, or an OPC AE (OPC Alarms & Events) client. Among them, the target client includes: a login module and a read-write module. Among them, the login module may be a module in the target client that realizes connection with the OPC server, and the read-write module may be a module in the target client that performs data read and write operations. As Figure 1 As shown, the method specifically comprises the following steps:

[0028] S101. Read the server information expected to be logged in from the test case through the login module, and establish a connection with the server to be tested according to the server information expected to be logged in.

[0029] The test case may be a test case written by a user and used to test an OPC server to be tested through an OPC client.

[0030] In this embodiment, the server information expected to be logged in may be information of a server to be tested specified by a user in a test case, wherein the server to be tested may be an OPC server to be tested.

[0031] Specifically, the login module in the OPC client first reads the server information expected to be logged in in the test case, and establishes a connection with the OPC server to be tested.

[0032] S102, reading expected information from the test case through the reading and writing module, receiving actual information fed back by the server to be tested, and generating a test result according to the actual information and the expected information.

[0033] In this embodiment, the expected information may be information written in the test case and expected to be written or generated by the server to be tested. In one embodiment, the expected information may be, for example, expected write value information, i.e., the value expected to be written by the server to be tested; in another embodiment, the expected information may be, for example, an alarm event expected to be generated, i.e., an alarm event expected to be generated by the server to be tested.

[0034] The actual information may be actual write value information or actual alarm events generated by the server to be tested according to the expected information. In one embodiment, the actual information may be, for example, actual data, i.e., the value actually written by the server to be tested; in another embodiment, the actual information may be, for example, an actual alarm event, i.e., an alarm event actually generated by the server to be tested.

[0035] It should be noted that the test result may be a result obtained by testing the server to be tested through the OPC client. Exemplarily, the test result may be that the server to be tested passed the test, and in other embodiments, the test result may also be that the server to be tested failed the test.

[0036] Specifically, the read-write module in the target client reads the expected information from the test case, then receives the actual information fed back by the server to be tested, and generates the test result according to the actual information and the expected information.

[0037] The embodiment of the present invention designs a target client, which includes a login module and a read-write module. The login module reads the server information expected to be logged in from the test case, and establishes a connection with the server to be tested according to the server information expected to be logged in. Then, the read-write module reads the expected information from the test case, receives the actual information fed back by the server to be tested, and generates a test result according to the actual information and the expected information. Through the technical solution of the present invention, it is possible to complete the test of the OPC server conveniently and quickly without the help of a third-party client.

[0038] Embodiment 2

[0039] Figure 2 It is a flowchart of an exemplary server testing method in an embodiment of the present invention. In this embodiment, based on the above-mentioned embodiment, when the target client is an OPC DA client or an OPC UA client, the OPC server to be tested is tested through the OPC DA client or the OPC UA client. In this embodiment, the read-write module can be refined into a data read-write module, the expected information can be refined into expected write value information, the actual information can be refined into actual data, and the test result can be refined into a first test result. Specifically, the steps of reading the expected information from the test case through the read-write module, receiving the actual information fed back by the server to be tested, and generating the test result according to the actual information and the expected information can be refined as follows: reading the expected write value information from the test case through the data read-write module, receiving the actual data fed back by the server to be tested, and generating the first test result according to the actual data and the expected write value information. Figure 2 As shown, the method specifically comprises the following steps:

[0040] S201. Read the server information expected to be logged in from the test case through the login module, and establish a connection with the server to be tested according to the server information expected to be logged in.

[0041] S202: Read expected write value information from the test case through the data reading and writing module, receive actual data fed back by the server to be tested, and generate a first test result according to the actual data and the expected write value information.

[0042] The expected write value information includes: an expected write value object, an expected write value, and an expected write cycle.

[0043] It should be noted that the actual data may be the data returned to the target client after the server to be tested writes the value successfully, wherein the target client may be an OPC DA client or an OPC UA client.

[0044] It should be noted that the first test result may be a result obtained by testing the server to be tested through the OPC DA client or the OPC UA client. Exemplarily, the first test result may be, for example, that the server to be tested passed the test. In other embodiments, the first test result may also be that the server to be tested failed the test.

[0045] Specifically, the data reading and writing module in the OPC DA client or the OPC UA client reads the expected write value information from the test case, then receives the actual data fed back by the server to be tested, and generates a first test result according to the actual data and the expected write value information.

[0046] Optionally, the expected write value information is read from the test case through the data reading and writing module, actual data fed back by the server to be tested is received, and a first test result is generated according to the actual data and the expected write value information, including:

[0047] The expected write value information is read from the test case through the data reading and writing module, and the expected write value information is sent to the server to be tested, so that the server to be tested performs the write operation, and the actual data generated after the write operation is successful is fed back to the data reading and writing module.

[0048] The data reading and writing module compares the actual data with the expected write value information to generate a first test result.

[0049] It should be noted that the write value operation may be an operation in which the server to be tested writes a value to a bit number according to expected write value information.

[0050] Specifically, the data reading and writing module in the OPC DA client or the OPC UA client reads the expected write value information from the test case and sends the expected write value information to the server to be tested. The server to be tested performs the write value operation and feeds back the actual data generated after the write value is successfully sent to the data reading and writing module. The data reading and writing module compares the actual data with the expected write value information to generate a first test result.

[0051] Optionally, before reading the expected write value information from the test case through the data reading and writing module, it also includes:

[0052] Read the subscription number from the test case through the data reading and writing module.

[0053] Specifically, the OPC DA client or OPC UA client reads the subscription bit number, the expected write value object, the expected write value, and the expected write cycle from the test case, and sends the information to the OPC server to be tested. The OPC server to be tested performs a write value operation based on the information.

[0054] As an exemplary description of an embodiment of the present invention, Figure 3 FIG. 1 is a structural diagram of an exemplary server testing method in an embodiment of the present invention. Figure 3 As shown, with the OPC DA client or OPC UA client (hereinafter referred to as DA, UA client) as the first client, the main operations of the server test method can be described as:

[0055] The login module first reads the server information expected to be logged in in the test case and connects to the OPC server to be tested. After successful login, the data read and write module reads the subscription bit number, expected write value object, expected write value and expected write cycle from the test case and sends this information to the OPC server. After the OPC server writes the value successfully, the OPC server returns the actual data to the DA and UA clients. The data read and write module compares the expected write value information (expected write value object, expected write value and expected write cycle) with the actual data to determine the correctness of the read and write data.

[0056] The technical solution of the embodiment of the present invention is to design an OPC DA client or an OPC UA client, wherein the OPC DA client or the OPC UA client includes: a login module and a data read-write module, wherein the login module is used to read the server information expected to be logged in from the test case, and a connection is established with the server to be tested according to the server information expected to be logged in, wherein the data read-write module is used to read the expected write value information from the test case, and the expected write value information is sent to the server to be tested, so that the server to be tested performs a write value operation, and the actual data generated after the write value is successfully fed back to the data read-write module, wherein the data read-write module compares the actual data with the expected write value information, generates a first test result, and completes the test of the server to be tested. Through the technical solution of the present invention, it is possible to conveniently and quickly complete the test of the OPC server without the aid of a third-party client.

[0057] Embodiment 3

[0058] Figure 4 It is a flowchart of another exemplary server testing method in an embodiment of the present invention. In this embodiment, based on the above-mentioned embodiment, when the target client is an OPC AE client, the OPC server to be tested is tested through the OPC AE client. In this embodiment, the read-write module can be refined into an alarm event management module, the expected information can be refined into the expected alarm event, the actual information can be refined into the actual alarm event, and the test result can be refined into a second test result. Specifically, the steps of reading the expected information from the test case through the read-write module, receiving the actual information fed back by the server to be tested, and generating the test result according to the actual information and the expected information can be refined as follows: reading the expected alarm event from the test case through the alarm event management module, receiving the actual alarm event fed back by the server to be tested, and generating the second test result according to the expected alarm event and the actual alarm event. Figure 4 As shown, the method specifically comprises the following steps:

[0059] S301. Read the server information expected to be logged in from the test case through the login module, and establish a connection with the server to be tested according to the server information expected to be logged in.

[0060] S302. Read the expected alarm event from the test case through the alarm event management module, receive the actual alarm event fed back by the server to be tested, and generate a second test result according to the expected alarm event and the actual alarm event.

[0061] In this embodiment, the alarm event expected to be generated can be read from the test case, and the alarm or event expected to be generated by the OPC server to be tested can be read from the test case. The actual alarm event can be the alarm or event actually generated by the OPC server to be tested according to the expected alarm event.

[0062] It should be noted that the second test result may be a result obtained by testing the server to be tested through the OPC AE client. Exemplarily, the second test result may be, for example, that the server to be tested passed the test. In other embodiments, the second test result may also be that the server to be tested failed the test.

[0063] Specifically, the alarm event management module in the OPC AE client reads the expected alarm event from the test case, then receives the actual alarm event fed back by the server to be tested, and generates a second test result according to the actual alarm event and the expected alarm event.

[0064] Optionally, the alarm event management module reads the expected alarm event from the test case, receives the actual alarm event fed back by the server to be tested, and generates a second test result according to the expected alarm event and the actual alarm event, including:

[0065] The alarm event management module reads the expected alarm event from the test case and sends the expected alarm event to the server to be tested, so that the server to be tested generates an actual alarm event and feeds the actual alarm event back to the alarm event management module.

[0066] The alarm event management module generates a second test result by comparing the expected alarm event with the actual alarm event.

[0067] Specifically, after successful login, if there are expected alarms and events, the OPC AE client reads the expected alarms and events from the test case, and sends the expected alarms and events to the OPC server to be tested. The OPC server to be tested generates actual alarms and events based on the expected alarm events obtained. The OPC AE client can monitor the generated alarm events and perform management operations such as confirmation and filtering on the generated alarms and events. The OPC AE client can compare the expected alarms and events obtained from the test case with the alarms and events actually monitored on the OPC server to determine the correctness of the alarm and event data.

[0068] As an exemplary description of an embodiment of the present invention, Figure 5 FIG. 1 is a structural diagram of another exemplary server testing method in an embodiment of the present invention. Figure 5As shown, taking the OPC AE client (AE client for short) as the target client, the main operations of the server test method can be described as:

[0069] The login module in the AE client first reads the server information expected to be logged in in the test case and connects to the OPC server to be tested. After successful login, if there are expected alarms and events, the AE client reads the expected alarms and events from the test case, and sends the expected alarms and events to the OPC server to be tested. The OPC server to be tested generates actual alarms and events based on the expected data (expected alarms and events) obtained, and returns the actual alarms and events to the AE client. The AE client can monitor the generated alarms and events, and can manage alarms and events. The AE client can compare the alarms and events expected to be generated in the test case with the alarms and events actually monitored by the OPC server (i.e., the actual data returned) to determine the correctness of the alarm and event data.

[0070] The technical solution of the embodiment of the present invention is to design an OPC AE client, an OPC AE client: a login module and an alarm event management module, read the server information expected to be logged in from the test case through the login module, and establish a connection with the server to be tested according to the server information expected to be logged in, read the alarm event expected to be generated from the test case through the alarm event management module, and send the expected alarm event to the server to be tested, the server to be tested generates an actual alarm event, and feeds the actual alarm event back to the alarm event management module, the alarm event management module compares the expected alarm event with the actual alarm event, generates a second test result, and completes the test of the server to be tested. Through the technical solution of the present invention, it is possible to complete the test of the OPC server conveniently and quickly without the help of a third-party client.

[0071] Embodiment 4

[0072] In the traditional process of OPC testing of the server to be tested through a third-party server, there are the following problems: 1. Scale usability issues: OPC server testing requires large-scale testing. When the number of subscribed bit numbers is large, the commonly used open source OPC DA clients on the market need to manually add the bit numbers in the OPC server, and the bit numbers need to be added again after disconnection and reconnection; similarly, when using the client to write values ​​to the bit numbers, some of the expected write values ​​cannot be written due to client restrictions. 2. Missing functions: The commonly used open source OPC DA clients on the market cannot write values ​​to bit numbers concurrently, and cannot automatically write values ​​to bit numbers regularly; when testing big data, it is necessary to use the naked eye to judge whether the bit number write and read values ​​are correct, and whether the alarm and event generation are correct.

[0073] Figure 61 is a structural diagram of a server testing method in an embodiment of the present invention. It is applicable to the case where an OPC server is tested through an OPC DA client, an OPC UA client, and an OPC AE client. Figure 6 As shown, the method specifically comprises the following steps:

[0074] The OPC DA client and the OPC UA client are connected to the OPC server to be tested. The OPC DA client and the OPC UA client obtain the expected write value, write value object, and cycle from the test case, and send the expected write value, write value object, and cycle to the OPC server to be tested. The OPC server to be tested returns the actual data to the OPC DA client and the OPC UA client.

[0075] The OPC AE client is connected to the OPC server to be tested. The OPC AE client obtains the alarms and events generated in the server from the test case, and sends the expected alarms and events to the OPC server to be tested. The OPC server to be tested generates actual alarms and events based on the expected alarms and events, and returns the actual alarms and events to the AE client.

[0076] The client side finally completes the test of the OPC DA client, OPC UA client and OPC AE client on the OPC server to be tested by performing data comparison.

[0077] In the technical solution of the embodiment of the present invention, various OPC clients are connected to the corresponding OPC servers, and the big data test is completed by comparing the expected data in the test case with the data actually received from the OPC server. The client's read-write module completes the bit number write operation by obtaining the expected write value object, write value, cycle and other information in the test case, solving the problem of the open source server client's restriction on bit number write value.

[0078] Embodiment 5

[0079] Figure 7 A schematic diagram of a target client 30 that can be used to implement an embodiment of the present invention is shown. The target client is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The target client can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0080] like Figure 7 As shown, the target client 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the target client 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other via a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.

[0081] A number of components in the target client 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the target client 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0082] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 performs the various methods and processes described above, such as the server testing method:

[0083] Through the login module, the server information expected to be logged in is read from the test case, and a connection is established with the server to be tested according to the server information expected to be logged in;

[0084] The expected information is read from the test case through the reading and writing module, the actual information fed back by the server to be tested is received, and the test result is generated according to the actual information and the expected information.

[0085] In some embodiments, the server test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the target client 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the server test method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to execute the server test method in any other suitable manner (e.g., by means of firmware).

[0086] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0087] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0088] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0089] To provide interaction with a user, the systems and techniques described herein may be implemented on a target client having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the target client. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0090] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0091] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0092] In one embodiment, the present invention further includes a computer program product, the computer program product includes a computer program, and the computer program implements the server testing method of any embodiment of the present invention when executed by a processor.

[0093] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can 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 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 can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0094] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0095] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A server testing method, characterized in that: The method is executed by a target client, wherein the target client includes a login module and a read-write module; the server testing method includes: Through the login module, the server information expected to be logged in is read from the test case, and a connection is established with the server to be tested according to the server information expected to be logged in; The expected information is read from the test case through the reading and writing module, the actual information fed back by the server to be tested is received, and the test result is generated according to the actual information and the expected information.

2. The method according to claim 1, characterized in that Reading expected information from the test case through the reading and writing module, receiving actual information fed back by the server to be tested, and generating a test result according to the actual information and the expected information, including: The expected write value information is read from the test case through the data reading and writing module, the actual data fed back by the server to be tested is received, and a first test result is generated according to the actual data and the expected write value information.

3. The method according to claim 2, characterized in that The method comprises: reading expected write value information from the test case through a data reading and writing module, receiving actual data fed back by the server to be tested, and generating a first test result according to the actual data and the expected write value information, including: Reading expected write value information from the test case through a data reading and writing module, and sending the expected write value information to the server to be tested, so that the server to be tested performs a write value operation, and feeding back actual data generated after the write value is successfully sent to the data reading and writing module; The data reading and writing module compares the actual data with the expected write value information to generate a first test result.

4. The method according to claim 2, characterized in that: The expected write value information includes: an expected write object, an expected write value, and an expected write cycle.

5. The method according to claim 2, characterized in that: Before reading the expected write value information from the test case through the data reading and writing module, the method further includes: The subscription number is read from the test case through the data reading and writing module.

6. The method according to claim 1, characterized in that Reading expected information from the test case through the reading and writing module, receiving actual information fed back by the server to be tested, and generating a test result according to the actual information and the expected information, including: The alarm event management module reads the expected alarm event from the test case, receives the actual alarm event fed back by the server to be tested, and generates a second test result according to the expected alarm event and the actual alarm event.

7. The method according to claim 6, characterized in that The method comprises: reading an expected alarm event from the test case through an alarm event management module, receiving an actual alarm event fed back by the server to be tested, and generating a second test result according to the expected alarm event and the actual alarm event, including: Reading the expected alarm event from the test case through the alarm event management module, and sending the expected alarm event to the server to be tested, so that the server to be tested generates an actual alarm event, and feeds the actual alarm event back to the alarm event management module; The alarm event management module generates a second test result by comparing the expected alarm event with the actual alarm event.

8. A target client, characterized in that: The target client includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the server testing method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server testing method according to any one of claims 1 to 7 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the server testing method according to any one of claims 1 to 7.