CN112653598B - Automatic testing method, device, equipment and readable storage medium - Google Patents

Automatic testing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112653598B
CN112653598B CN202011514633.6A CN202011514633A CN112653598B CN 112653598 B CN112653598 B CN 112653598B CN 202011514633 A CN202011514633 A CN 202011514633A CN 112653598 B CN112653598 B CN 112653598B
Authority
CN
China
Prior art keywords
tester
port
test case
case process
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011514633.6A
Other languages
Chinese (zh)
Other versions
CN112653598A (en
Inventor
章年忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202011514633.6A priority Critical patent/CN112653598B/en
Publication of CN112653598A publication Critical patent/CN112653598A/en
Application granted granted Critical
Publication of CN112653598B publication Critical patent/CN112653598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides an automatic testing method, an automatic testing device, automatic testing equipment and a readable storage medium, wherein the method comprises the following steps: when a tester operation request sent by a test case process is monitored, if a target tester port is not operated currently, operating the target tester port according to the tester operation request; the target tester port is a tester port which is allocated for the test case process in advance; if the target tester port is being operated currently, waiting for the completion of the sequential operation of all the tester operation requests which are monitored first and are aimed at the target tester port, and then operating the target tester port according to the tester operation requests. Therefore, a certain test case process does not need to directly occupy the corresponding tester port, the use efficiency of the tester port is improved, and the problem that the tester becomes an efficiency bottleneck in the whole automatic testing method and device is solved to a certain extent.

Description

Automatic testing method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an automated testing method, an automated testing apparatus, an automated testing device, and a readable storage medium.
Background
In the field of communication, when a real tester is used in the automatic testing method, a test case is adopted, and a mode of independently occupying a tester port is adopted. The specific working principle is as follows: before the test case is executed, the tester is connected by means of Socket connection. And then operating the tester port distributed on the tester by the tester object returned by the tester, binding the tester port by operating the tester object, and then realizing API (Application Program Interface) operation on the tester function by the tester port object.
In a networking scene formed by a virtual device set, the current technical scheme still adopts the above tester using mode, so that the use of the tester is not saturated, and great waste exists, so that the tester becomes an efficiency bottleneck in the whole automatic testing method and device.
Disclosure of Invention
An embodiment of the present application provides an automated testing method, an automated testing device, an automated testing apparatus, and a readable storage medium, so as to solve the problem of low efficiency in the current testing method.
The embodiment of the application provides an automatic test method, which is applied to automatic test equipment and comprises the following steps: when a tester operation request sent by a test case process is monitored, if a target tester port is not operated currently, operating the target tester port according to the tester operation request; the target tester port is a tester port which is allocated for the test case process in advance; and if the target tester port is currently operated, waiting for the completion of the sequential operation of all the tester operation requests which are monitored in advance and aim at the target tester port, and then operating the target tester port according to the tester operation requests.
It should be understood that for any test case process, the tester is not required to be operated at all times during the test process, and the tester is often operated in stages. After receiving the result information returned by the tester, behaviors such as operating a certain or some virtual devices corresponding to the test case process are often performed according to actual needs. However, in the prior art, when the test case process is performing operations on the operation objects other than the tester, the port of the tester is still occupied by the test case process, so that the use of the tester is not saturated, and a great waste situation exists.
In the implementation process, the tester ports are operated in a unified manner, so that a certain test case process does not need to directly occupy the corresponding tester port, and the tester ports can be sequentially used by a plurality of different test case processes. For example, the test case process 1 and the test case process 2 both correspond to the target tester port 1, and when the test case process 1 and the test case process 2 send tester operation requests sequentially, the operation is performed according to the tester operation request of the test case process 1 which is monitored first, and then after the operation is completed, the operation is performed according to the tester operation request of the test case process 2 which is monitored. In the process of operating according to the monitored tester operation request of the test case process 2, the test case process 1 can perform non-tester operation behaviors such as operation on virtual equipment based on result information returned by the tester.
Therefore, concurrent processing of a plurality of test case processes is realized, the use efficiency of the port of the tester is improved, the efficiency of the whole automatic test can be improved on the whole, and the problem that the tester becomes the efficiency bottleneck in the whole automatic test method and device is solved to a certain extent.
Further, the operation request of the tester carries the unique identifier of the test case process; the method further comprises the following steps: when the target tester port is operated according to the tester operation request, the unique identifier is sent to the target tester port; and when receiving result information returned by the port of the target tester, returning the result information to a test network formed by virtual equipment corresponding to the test case process according to the unique identifier in the result information.
In the implementation process, the unique identifier of the test case process is carried in the operation request of the tester, so that the tester can carry the unique identifier when returning the result information, and the result information can be accurately returned to the test network formed by the virtual devices corresponding to the corresponding test case process through the unique identifier, thereby realizing the accurate transmission of the result information.
Further, the returning the result information to the test network formed by the virtual devices corresponding to the test case process according to the unique identifier in the result information includes: determining a forwarding interface corresponding to the test case process according to the unique identifier in the result information; and stripping the unique identifier in the result information, and forwarding the result information after the unique identifier is stripped to a test network formed by virtual equipment corresponding to the test case process through the forwarding interface.
In the implementation process, the unique identifier in the result information is stripped, so that the data identification rule of a test network (also referred to as virtual device networking or virtual networking in some documents) formed by the existing virtual devices can be compatible.
Further, before monitoring the tester operation request sent by the test case process, the method further comprises: and when a connection request sent by the test case process is received, distributing the unique identifier for the test case process.
In the implementation process, when the connection request sent by the test case process is received, the unique identifier is allocated to the test case process, so that the uniqueness of the unique identifier of each accessed test case process can be effectively ensured.
Further, before monitoring the tester operation request sent by the test case process, the method further comprises: and when receiving the connection request of the test case process, distributing a target tester port for the test case process, and establishing a monitoring relation with the test case process by adopting an idle monitoring address and a monitoring port.
In the implementation process, the target tester port is allocated for the test case process and monitoring is performed, so that the tester operation request of the test case process can be quickly acquired.
Further, the method further comprises: configuring an access address of a tester, a port which the tester can be accessed to, and a monitoring address and a monitoring port which are used for monitoring the process of a test case; connecting a tester through the tester access address, and binding a port which can be accessed by the tester to generate a tester management object; and monitoring the monitoring port on the monitoring address, and waiting for a connection request of a test case process.
In the implementation process, the tester is accessed to an address, a port which can be accessed by the tester, a monitoring address and a monitoring port which are used for monitoring the test case process, the tester is connected to the tester through the tester access address, the port which can be accessed by the tester is bound, a tester management object is generated, the monitoring port is monitored on the monitoring address, a connection request of the test case process is waited, so that the automatic test equipment can uniformly operate the tester port, a certain test case process does not need to directly occupy the corresponding tester port, and the tester port can be sequentially used by a plurality of different test case processes.
The embodiment of the present application further provides an automatic measurement device, including: the monitoring module and the processing module; the monitoring module is used for monitoring the tester operation request sent by the test case process; the processing module is used for operating the target tester port according to the tester operation request if the target tester port is not operated currently when the tester operation request sent by the test case process is monitored; if the target tester port is currently operated, waiting for the completion of the sequential operation of all the tester operation requests which are monitored in advance and aim at the target tester port, and then operating the target tester port according to the tester operation requests; and the target tester port is a tester port which is allocated for the test case process in advance.
Further, the operation request of the tester carries the unique identifier of the test case process; the processing module is further configured to send the unique identifier to the target tester port when the target tester port is operated according to the tester operation request, and return result information to a test network formed by virtual devices corresponding to the test case process according to the unique identifier in the result information when result information returned by the target tester port is received.
The embodiment of the application also provides automatic test equipment, which comprises a processor, a memory and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is configured to execute one or more programs stored in the memory to implement any of the automated testing methods described above.
Also provided in embodiments of the present application is a readable storage medium storing one or more programs executable by one or more processors to implement any of the automated testing methods described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of an automated testing method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a connection structure between an automatic test device and a tester according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a configuration method of an automatic test equipment according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an automated testing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a configuration apparatus of an automated test equipment according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an automated testing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The first embodiment is as follows:
at present, in practical application, for any test case process, it is not always necessary to operate on a tester in a test process, but it often operates on the tester in a staged manner, and after receiving result information returned by the tester, behaviors such as operating a certain or some virtual devices corresponding to the test case process are often performed according to actual needs. In the prior art, when the test case process performs the operation that the operation object is not the tester, the port of the tester is still occupied by the test case process, so that the use of the tester is not saturated, and a great waste situation exists, so that the tester becomes an efficiency bottleneck in the whole automatic testing method and device.
In order to solve the above problem, an automated testing method applicable to automated testing equipment is provided in the embodiments of the present application. As shown in fig. 1, fig. 1 is a schematic flow chart of an automated testing method provided in an embodiment of the present application, and includes:
s101: and monitoring the tester operation request sent by the test case process.
In order to facilitate understanding of the solution of the embodiment of the present application, a brief description is first given to the architecture of the entire automated testing equipment of the embodiment of the present application.
Referring to fig. 2, when a user needs to test a certain test case, a test case process may be initiated in the automatic test equipment. According to the requirements of the test case process, the automatic test equipment selects a certain number of virtual equipment required for executing the test case for the test case process, and constructs the selected virtual equipment into a test network corresponding to the test case (some virtual equipment in the selected certain number of virtual equipment are used as tested objects, and some virtual equipment are used as auxiliary equipment).
It should be noted that, referring to fig. 2, in the embodiment of the present application, a tester agent service is enabled in the automation test equipment, and the tester agent service may allocate a corresponding tester port (i.e., a target tester port of the test case process) to the test case process and monitor the test case process. After that, when the tester agent service monitors the tester operation request of a certain test case process, the operation on the target tester port of the test case process can be realized according to the monitored tester operation request.
The automatic test method provided in the embodiment of the application is applied to automatic test equipment. The relevant steps shown in fig. 1 may be implemented by a tester agent service of the automated test equipment.
It should be noted that, in the embodiment of the present application, the tester operation request refers to data sent by the test case process for requesting and instructing to operate the tester port.
It should be noted that, in the embodiment of the present application, after a user initiates a test case process on an automation test device, the test case process may automatically send a connection request to a tester agent service.
In the embodiment of the application, when the tester agent service of the automated test equipment receives the connection request of the test case process, a target tester port can be allocated for the test case process, and a monitoring relation with the test case process is established by adopting an idle monitoring address and a monitoring port.
For example, in the embodiment of the present application, a monitoring address and a monitoring port may be configured in advance, the tester proxy service may establish a monitoring relationship between the tester proxy service and the test case process by using the monitoring address, and monitor the test case process through the monitoring port.
S102: and if the target tester port is not operated currently, operating the target tester port according to the tester operation request.
S103: if the target tester port is being operated currently, waiting for the completion of the sequential operation of all the tester operation requests which are monitored first and are aimed at the target tester port, and then operating the target tester port according to the tester operation requests.
It should be understood that, in the embodiment of the present application, when a test case process accesses the tester proxy service, the tester port allocated to the test case process by the tester proxy service may be a tester port that has been previously allocated to the remaining test case processes. That is, in the embodiment of the present application, multiple test case processes currently accessing to the tester agent service allow multiplexing of the same tester port.
Thus, in the embodiment of the present application, the tester agent service may receive the following tester operation requests for the same target tester port:
1. and aiming at the same target tester port, only one tester operation request sent by one test case process is received.
In case 1, the target tester port is idle, and the tester proxy service may operate the target tester port directly according to the tester operation request.
2. And aiming at the same target tester port, a plurality of tester operation requests from different test case processes are continuously monitored.
It should be noted that, for a target tester port, it is only available for operation according to a tester operation request at a time. It is apparent that it takes time to operate the target tester port according to one tester operation request. Thus, in case 2, the tester agent service may operate the target tester ports in sequence according to the sequence of the monitored tester operation requests.
For example, it is assumed that the test case process 1 and the test case process 2 both correspond to the target tester port 1, and the tester proxy service successively monitors the tester operation requests sent by the test case process 1 and the test case process 2. The tester agent service performs the operation of the target tester port 1 according to the monitored tester operation request of the test case process 1. And then, after the operation is finished, the operation of the port 1 of the target tester is carried out according to the monitored tester operation request of the test case process 2.
In the embodiment of the application, the sending of the tester operation request can be realized by adopting a long connection mode and the like, so that the tester operation request sent by the test case process is prevented from being returned.
It should be noted that, in the embodiment of the present application, after receiving a connection request of a test case process, the tester proxy service may allocate a tester port and a unique identifier to the test case process according to the connection request, so that the automation test device may accurately determine the test case process corresponding to result information returned by the tester based on the unique identifier of each test case process.
It should be noted that, in the embodiment of the present application, the unique identifier may be generated according to any algorithm that can implement unique tag generation. For example, an integer value that has not been taken before may be taken from 1 to 1024 as the unique identifier assigned to the newly accessed test case process.
In the embodiment of the application, when the test case sends the tester operation request, the unique identifier may be carried in the tester operation request, so that the tester agent service may send the unique identifier to the tester when operating the target tester port corresponding to the test case process according to the tester operation request.
Therefore, after the tester agent service finishes the operation on the port of the target tester according to the tester operation request, the tester can carry the unique identifier in the result information and return the unique identifier to the virtual switch associated with the tester agent service, so that the virtual switch can accurately feed the result information back to the test network formed by the virtual devices corresponding to the test case process according to the unique identifier carried in the result information, and then the test case process carries out further test operation according to the result information fed back by the tester.
For example, after receiving result information fed back by the tester, the virtual switch associated with the tester proxy service may determine, according to the unique identifier in the result information, a forwarding interface of the virtual switch corresponding to the test case process, and then forward the result information to the test network formed by the virtual devices corresponding to the test case process through the forwarding interface.
In order to accurately determine the forwarding interface corresponding to the result information returned by the tester, in the embodiment of the application, after the tester proxy service allocates the unique identifier and the test network formed by the corresponding virtual device to the newly accessed test case process, the forwarding interface of the test network formed by the virtual device corresponding to the test case process is configured to the forwarding flow table between the virtual switches in the virtual switch associated with the tester proxy service, and the forwarding flow table is associated with the unique identifier.
Therefore, when the result information returned by the tester reaches the virtual switch associated with the tester proxy service, the virtual switch searches the forwarding flow table (i.e., searches the forwarding flow table corresponding to the unique identifier in the result information), so as to forward the result information to the forwarding interface corresponding to the unique identifier.
It is worth noting that in the embodiment of the application, after the forwarding interface corresponding to the test case process is determined, the virtual switch can strip the unique identifier in the result information, and then the result information with the unique identifier stripped is forwarded to the test network formed by the virtual devices corresponding to the test case process through the forwarding interface, so that the data identification rule of the test network formed by the existing virtual devices is compatible.
It should be noted that information interaction and operation relationship between the test case process and the test network formed by the corresponding virtual device may be implemented according to the existing manner, and are not described in detail in this embodiment of the present application.
It should be noted that, in the embodiment of the present application, the foregoing related operation steps related to the monitoring of the test case process, the receiving of the tester operation request, and the operation of the tester may be implemented by a tester proxy service of the automated testing equipment, and the receiving and forwarding operations of the result information fed back by the tester may be implemented by configuring a virtual switch.
Therefore, in the embodiment of the present application, the automatic test equipment needs to be configured in advance. For example, as shown in fig. 3, fig. 3 is a configuration method of an automated testing device provided in an embodiment of the present application, including:
s301: and configuring an access address of the tester, a port which can be accessed by the tester, and a monitoring address and a monitoring port for monitoring the test case process.
In the embodiment of the application, a configuration file of the tester proxy service can be configured in advance, so that the configuration is realized based on the configuration file. In the configuration file, a tester access address, a port accessible by the tester, and a monitoring address and a monitoring port for monitoring the test case process can be included.
It should be understood that, in the embodiment of the present application, the tester access address, the port accessible to the tester, and the monitoring address and the monitoring port for monitoring the test case process may be configured by an engineer according to actual needs, or may be configured in an automatic reading manner.
For example, the automatic test equipment may obtain the access address of the tester and the port accessible to the tester by sending an obtaining request to the tester. In addition, the configuration of the monitoring address and the monitoring port for monitoring the test case process can be realized by identifying the idle monitoring address and the idle monitoring port.
S302: and connecting the tester through the tester access address, and binding a port which can be accessed by the tester to generate a tester management object.
In this embodiment of the present application, the tester proxy service may generate a tester management object, thereby implementing operations on each tester port. For the generation method of the tester management object, reference may be made to the existing method, and no explanation is made in the embodiment of the present application.
In this embodiment, the configuration file may further include a network card in the automatic test equipment, so as to establish a connection relationship between each tester port that the tester can access and the network card.
S303: and monitoring the monitoring port on the monitoring address by the tester agent service, and waiting for a connection request of the test case process.
In this embodiment, Socket function may be used to implement snooping the snoop port on the snoop address. It should be noted that the monitor port may receive a connection request and a tester operation request sent by the test case process, so as to monitor the connection request and the tester operation request of the test case process.
In this embodiment of the present application, the configuration file of the tester proxy service may further include a name of a virtual switch established in the automation test equipment, so that based on the name, the tester proxy service may implement establishment and maintenance of forwarding flow entries in the virtual switch.
In this embodiment of the present application, a virtual switch may be implemented using Open source technology Open vSwitch (OVS for short) and other technologies, but is not limited thereto.
It is to be understood that the above tester proxy service and virtual switch may be built into the operating system of the automated test equipment. In the embodiment of the present application, the operating system may be any currently popular version of operating system, and is not limited.
According to the automatic test method provided by the embodiment of the application, the unified operation on the tester ports is realized through the automatic test equipment, so that a certain test case process does not need to directly occupy the corresponding tester ports, and the tester ports can be sequentially used by a plurality of different test case processes. Therefore, concurrent processing of a plurality of test case processes is realized, the use efficiency of the port of the tester is improved, the efficiency of the whole automatic test can be improved on the whole, and the problem that the tester becomes the efficiency bottleneck in the whole automatic test method and device is solved to a certain extent.
Example two:
the present embodiment takes a more specific configuration process as an example on the basis of the first embodiment, and further illustrates the present application.
1. Constructing a configuration file of the tester proxy service, wherein the configuration file contains the following key information:
a) access IP address of the tester.
b) A port accessible by the tester. In the embodiment of the present application, a plurality of tester ports, such as tester port 1 to tester port m, may be configured. The number of ports of the specifically configured access tester can be determined according to the requirements of the test scenario and the number of network interfaces that can be provided by the automatic test equipment.
c) And the monitoring address and the monitoring port are used for monitoring the test case process.
d) Switch name of the associated virtual switch. In this embodiment, an open source technology OVS is used to implement a virtual switch.
e) And the network interface is connected with the port which can be accessed by the tester. From these network interfaces, a connection relationship between the tester ports and the virtual switches associated with the tester proxy services can be established.
2. The method adopts a programming language to realize the proxy service of the tester, and comprises the following steps:
a) according to the API programming interface provided by the tester, calling the API in the tester proxy service to complete the following functions: and connecting the access IP address of the tester, binding a tester port and generating a tester management object.
b) And creating an associated virtual switch by using the OVS command line interface, and adding a network interface in the automatic test equipment connected with the port which can be accessed by the tester into the virtual switch as the port of the OVS.
c) And monitoring a monitoring port on the configured monitoring address by using a Socket function, and waiting for connection initiated by the test case process and a tester operation request sent by the test case process.
In this embodiment, the implementation may be implemented by using a tcl (tool Command language), but not limited thereto.
3. The interface for providing the unified operation tester API for the test case process and the tester agent service has two functions:
a) the test case process transmits the tester operation request to be executed to the tester agent service in a character string form through the interface.
b) The tester agent service operates the tester by managing objects through the tester according to the received tester operation request through the interface.
It should be noted that, although the test case process and the tester proxy service in this embodiment use the same interface to implement sending and receiving of the tester operation request, the present invention is not limited thereto. In fact, the sending and receiving of the tester operation request can also be realized through different interfaces respectively.
In addition, the test case process obtains a unique identifier from the tester agent service when executing, wherein the unique identifier is an integer ID value between 1 and 1024. The integer ID value has the following function:
a) the parameter value is transmitted to the tester proxy service when the test case process calls the API interface of the operation tester to send the tester operation request. Will be used to distinguish between different test case processes when the tester agent service operates the tester.
b) The forwarding flow table entry is established in a virtual switch associated with the tester proxy service. It should be noted that before the test case process executes the test action, after the automation test device completes the distribution of the corresponding virtual device and constructs the test network for the test case process, a corresponding virtual switch may be created for the test case process, and a connection between the virtual switch associated with the tester agent service and the virtual switch corresponding to the test case process is established, so as to implement the forwarding flow table entry from the virtual switch associated with the tester agent service to the virtual switch corresponding to the test case process.
After the above steps are completed, the automated testing method in the first embodiment of the application is performed.
By the scheme, concurrent processing of a plurality of test case processes can be realized through the tester agent service, and tester resources are efficiently utilized, so that the bottleneck problem caused by insufficient tester resources in an automatic test system constructed by virtual equipment is solved, and the beneficial effects of low investment and high efficiency on the tester resources are brought to enterprises.
Example three:
based on the same inventive concept, the embodiment of the present application further provides an automatic testing apparatus 100. Referring to FIG. 4, FIG. 4 illustrates an automated testing apparatus that employs the method of FIG. 1. It should be understood that the specific functions of the apparatus 100 can be referred to the above description, and the detailed description is omitted here as appropriate to avoid redundancy. The device 100 includes at least one software functional module that can be stored in memory in the form of software or firmware or solidified in the operating system of the device 100. Specifically, the method comprises the following steps:
referring to fig. 4, the apparatus 100 may be applied to an automated testing device, and includes: a listening module 101 and a processing module 102. Wherein:
the monitoring module 101 is configured to monitor a tester operation request sent by a test case process;
the processing module 102 is configured to, when a tester operation request sent by a test case process is monitored, operate a target tester port according to the tester operation request if the target tester port is not currently operated; if the target tester port is currently operated, waiting for the completion of the sequential operation of all the tester operation requests which are monitored in advance and aim at the target tester port, and then operating the target tester port according to the tester operation requests; and the target tester port is a tester port which is allocated for the test case process in advance.
In a feasible implementation manner of the embodiment of the present application, the operation request of the tester carries a unique identifier of the test case process; the processing module 102 is further configured to send the unique identifier to the target tester port when the target tester port is operated according to the tester operation request, and return result information to a test network formed by virtual devices corresponding to the test case process according to the unique identifier in the result information when result information returned by the target tester port is received.
In the above feasible embodiment, the processing module 102 is specifically configured to determine, according to the unique identifier in the result information, a forwarding interface corresponding to the test case process, strip the unique identifier in the result information, and forward the result information from which the unique identifier is stripped to a test network formed by virtual devices corresponding to the test case process through the forwarding interface.
In this embodiment of the application, the processing module 102 is further configured to allocate the unique identifier to the test case process when receiving the connection request sent by the test case process.
In this embodiment of the application, before monitoring a tester operation request sent by a test case process, the processing module 102 is further configured to, when receiving a connection request of the test case process, allocate a target tester port to the test case process, and establish a monitoring relationship with the test case process by using an idle monitoring address and a monitoring port.
In the embodiment of the present application, referring to fig. 5, the apparatus 100 may further include: the configuration module 103 is configured to configure a tester access address, a port to which the tester can be accessed, and a monitoring address and a monitoring port for monitoring a test case process, connect the tester through the tester access address, bind the port to which the tester can be accessed, generate a tester management object, monitor the monitoring port at the monitoring address, and wait for a connection request of the test case process.
It should be understood that, for the sake of brevity, the contents described in some embodiments are not repeated in this embodiment.
Example four:
the present embodiment provides an automated test equipment, which is shown in fig. 6, and includes a processor 601, a memory 602, and a communication bus 603. Wherein:
the communication bus 603 is used for connection communication between the processor 601 and the memory 602.
The processor 601 is used for executing one or more programs stored in the memory 602 to implement the automated testing method in the first embodiment.
It will be appreciated that the configuration shown in FIG. 6 is merely illustrative and that the automated test equipment may include more or fewer components than shown in FIG. 6 or may have a different configuration than shown in FIG. 6.
In the embodiment of the application, the automatic test equipment can be a server, and a plurality of virtual machines can be built in the automatic test equipment, so that a test network environment formed by corresponding virtual equipment is provided for a test case process.
The present embodiment further provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash Memory, a usb (Secure Digital Memory Card), an MMC (Multimedia Card), etc., in which one or more programs for implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the automated testing method in the first embodiment. And will not be described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
In this context, a plurality means two or more.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. An automated testing method is applied to automated testing equipment and comprises the following steps:
when a tester operation request sent by a test case process is monitored, if a target tester port is not operated currently, operating the target tester port according to the tester operation request; the target tester port is a tester port which is allocated for the test case process in advance;
if the target tester port is currently operated, waiting for the completion of the sequential operation of all the tester operation requests which are monitored in advance and aim at the target tester port, and then operating the target tester port according to the tester operation requests;
the operation request of the tester carries the unique identification of the test case process; the method further comprises the following steps:
when the target tester port is operated according to the tester operation request, the unique identifier is sent to the target tester port;
and when receiving result information returned by the port of the target tester, returning the result information to a test network formed by virtual equipment corresponding to the test case process according to the unique identifier in the result information.
2. The automated testing method of claim 1, wherein the returning the result information to a testing network formed by virtual devices corresponding to the test case process according to the unique identifier in the result information comprises:
determining a forwarding interface corresponding to the test case process according to the unique identifier in the result information;
and stripping the unique identifier in the result information, and forwarding the result information after the unique identifier is stripped to a test network formed by virtual equipment corresponding to the test case process through the forwarding interface.
3. The automated testing method of claim 2, wherein prior to listening for tester operation requests sent by test case processes, the method further comprises:
and when a connection request sent by the test case process is received, distributing the unique identifier for the test case process.
4. The automated testing method of claim 1 or 2, wherein prior to listening for tester operation requests sent by test case processes, the method further comprises:
and when receiving the connection request of the test case process, distributing a target tester port for the test case process, and establishing a monitoring relation with the test case process by adopting an idle monitoring address and a monitoring port.
5. The automated testing method of claim 1 or 2, wherein the method further comprises:
configuring an access address of a tester, a port which the tester can be accessed to, and a monitoring address and a monitoring port which are used for monitoring the process of a test case;
connecting a tester through the tester access address, and binding a port which can be accessed by the tester to generate a tester management object;
and monitoring the monitoring port on the monitoring address, and waiting for a connection request of a test case process.
6. An automated testing device, applied to automated testing equipment, comprising: the monitoring module and the processing module;
the monitoring module is used for monitoring the tester operation request sent by the test case process;
the processing module is used for operating the target tester port according to the tester operation request if the target tester port is not operated currently when the tester operation request sent by the test case process is monitored; if the target tester port is currently operated, waiting for the completion of the sequential operation of all the tester operation requests which are monitored in advance and aim at the target tester port, and then operating the target tester port according to the tester operation requests; the target tester port is a tester port which is allocated for the test case process in advance;
the operation request of the tester carries the unique identification of the test case process;
the processing module is further configured to send the unique identifier to the target tester port when the target tester port is operated according to the tester operation request, and return result information to a test network formed by virtual devices corresponding to the test case process according to the unique identifier in the result information when result information returned by the target tester port is received.
7. An automated test apparatus, comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the automated testing method of any of claims 1 to 5.
8. A readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the automated testing method of any one of claims 1 to 5.
CN202011514633.6A 2020-12-18 2020-12-18 Automatic testing method, device, equipment and readable storage medium Active CN112653598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011514633.6A CN112653598B (en) 2020-12-18 2020-12-18 Automatic testing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011514633.6A CN112653598B (en) 2020-12-18 2020-12-18 Automatic testing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112653598A CN112653598A (en) 2021-04-13
CN112653598B true CN112653598B (en) 2022-02-22

Family

ID=75358566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011514633.6A Active CN112653598B (en) 2020-12-18 2020-12-18 Automatic testing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112653598B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691415B (en) * 2021-07-27 2023-07-18 曙光网络科技有限公司 Calling method, device and equipment of network tester and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385709A (en) * 2001-05-11 2002-12-18 株式会社鼎新 Multiple virtual logic tester supported semiconductor test system
US6697750B1 (en) * 2001-01-11 2004-02-24 Ciena Corporation Method and apparatus for performing parallel asynchronous testing of optical modules
CN102571818A (en) * 2012-02-16 2012-07-11 华为数字技术有限公司 Testing instrument multiplexing method, equipment and system
CN102769665A (en) * 2012-06-28 2012-11-07 大唐移动通信设备有限公司 Radio frequency test instrument sharing system and application method thereof
WO2013062692A1 (en) * 2011-10-28 2013-05-02 Teradyne, Inc. Test instrument having a configurable interface
CN107222270A (en) * 2017-05-03 2017-09-29 京信通信技术(广州)有限公司 Method of testing, test system and the test equipment of communication equipment
CN108153670A (en) * 2017-11-30 2018-06-12 北京奇艺世纪科技有限公司 A kind of interface test method, device and electronic equipment
CN110445681A (en) * 2019-07-31 2019-11-12 新华三技术有限公司合肥分公司 A kind of multiport parallel test method, device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7099791B2 (en) * 2004-05-21 2006-08-29 Credence Systems Corporation System and method for linking and loading compiled pattern data
US7574319B2 (en) * 2007-04-23 2009-08-11 Tektronix, Inc. Instrument architecture with circular processing queue
US9003254B2 (en) * 2010-04-25 2015-04-07 Ssu-Pin Ma Methods and systems for testing electronic circuits
US20140310604A1 (en) * 2013-04-12 2014-10-16 Fluke Corporation Network test instrument

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697750B1 (en) * 2001-01-11 2004-02-24 Ciena Corporation Method and apparatus for performing parallel asynchronous testing of optical modules
CN1385709A (en) * 2001-05-11 2002-12-18 株式会社鼎新 Multiple virtual logic tester supported semiconductor test system
WO2013062692A1 (en) * 2011-10-28 2013-05-02 Teradyne, Inc. Test instrument having a configurable interface
CN102571818A (en) * 2012-02-16 2012-07-11 华为数字技术有限公司 Testing instrument multiplexing method, equipment and system
CN102769665A (en) * 2012-06-28 2012-11-07 大唐移动通信设备有限公司 Radio frequency test instrument sharing system and application method thereof
CN107222270A (en) * 2017-05-03 2017-09-29 京信通信技术(广州)有限公司 Method of testing, test system and the test equipment of communication equipment
CN108153670A (en) * 2017-11-30 2018-06-12 北京奇艺世纪科技有限公司 A kind of interface test method, device and electronic equipment
CN110445681A (en) * 2019-07-31 2019-11-12 新华三技术有限公司合肥分公司 A kind of multiport parallel test method, device and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
The research on a new implementation scheme of the portable general purpose Automatic Test System;Yonghui Xu等;《2014 IEEE AUTOTEST》;20141017;全文 *
基于网络的分布式虚拟仪器测试系统;宋莉等;《仪表技术与传感器》;20020925(第09期);全文 *
综合测试仪中交互资源共享的方案设计;王春卉 等;《电子测量技术》;20100815;第33卷(第8期);全文 *

Also Published As

Publication number Publication date
CN112653598A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN108549580B (en) Method for automatically deploying Kubernets slave nodes and terminal equipment
CN107566541B (en) Container network resource allocation method, system, storage medium and electronic device
CN107431651B (en) Life cycle management method and equipment for network service
US9244817B2 (en) Remote debugging in a cloud computing environment
CN103677858A (en) Method, system and device for managing virtual machine software in cloud environment
US20100115070A1 (en) Method for generating manipulation requests of an initialization and administration database of server cluster, data medium and corresponding a server cluster, data medium and corresponding service cluster
CN110677383B (en) Firewall wall opening method and device, storage medium and computer equipment
CN112653598B (en) Automatic testing method, device, equipment and readable storage medium
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
CN111064786B (en) Account identifier management method and device
CN102316117A (en) Resource processing method and device
CN105786732A (en) Data access method and apparatus
CN107861821B (en) Mining method and device for module call relation and computer readable medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN113094431A (en) Read-write separation method and device and server
CN113342456A (en) Connection method, device, equipment and storage medium
CN111522617A (en) Method and device for maintaining system and electronic equipment
CN108696557B (en) Information processing system, method and device
CN115333933A (en) Automatic management method, medium and equipment for server on rack in machine room
CN114221971B (en) Data synchronization method, device, server, storage medium and product
CN107515725B (en) Method and device for sharing disk by core network virtualization system and network management MANO system
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN114297083A (en) Agent test method, device, electronic equipment and readable medium
CN114584545A (en) Data management method, device, system, storage medium and electronic equipment
CN114553771A (en) Method for loading virtual router and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant