[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115373927B - Product testing method, device, electronic equipment and computer readable medium - Google Patents

Product testing method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115373927B
CN115373927B CN202211308957.3A CN202211308957A CN115373927B CN 115373927 B CN115373927 B CN 115373927B CN 202211308957 A CN202211308957 A CN 202211308957A CN 115373927 B CN115373927 B CN 115373927B
Authority
CN
China
Prior art keywords
test
controlling
server
response
command
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
CN202211308957.3A
Other languages
Chinese (zh)
Other versions
CN115373927A (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.)
Shenzhen Yilian Unlimited Technology Co ltd
Original Assignee
Shenzhen Yilian Unlimited 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 Shenzhen Yilian Unlimited Technology Co ltd filed Critical Shenzhen Yilian Unlimited Technology Co ltd
Priority to CN202211308957.3A priority Critical patent/CN115373927B/en
Publication of CN115373927A publication Critical patent/CN115373927A/en
Application granted granted Critical
Publication of CN115373927B publication Critical patent/CN115373927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The disclosure relates to the field of production testing of communication terminal products, and provides a product testing method, a device, electronic equipment and a computer readable medium. The method comprises the following steps: controlling a test server to initialize; starting and accessing a test program; accessing a tested product, and controlling the test server to initialize the tested product; controlling the test server to be connected with the tested product and logging in; issuing at least one test command to the tested product; and controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test. The test method realizes one-to-many test by improving the encapsulation of hardware and software interfaces, decouples the connection problem of the function of the test program and the tested interface, improves the production line changing efficiency and the production efficiency, and reduces the development and maintenance difficulty of test software.

Description

Product testing method, device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of production testing of communication terminal products, and in particular, to a product testing method, apparatus, electronic device, and computer readable medium.
Background
In the production process of communication terminal products, each product needs to be tested for various functions and performance indexes, and only qualified products can be packaged and put in storage. The communication terminal products, which commonly comprise wireless routers, optical cats, switches and the like, have differences in hardware interfaces and software interfaces of product tests due to differences in the products. For example, on a hardware interface, common split serial ports and network ports; and on the software interface, the software interfaces are divided into Telnet, SSH and URL interfaces. The test programs for testing the products are all run on a computer, so that the connecting cables are required to be replaced repeatedly when different products are produced, and software of different interfaces is required to be replaced. Meanwhile, due to the requirement of production test on test efficiency, the requirement that one computer can test a plurality of tested products simultaneously is needed. Since the IP addresses of the products under test are often the same, one-to-many connections cannot be made simply through the switch. There are two currently common implementations: firstly, connecting a plurality of physical network cards on a computer, testing and connecting a tested device by each network card, setting different IP addresses by each network card, and connecting the tested products in a directional way; second, each virtual network card is mapped to the network port of one switch by the virtual network card+vlan switch, namely one IP and Vlan. In either way, the configuration is cumbersome and unstable, and for different products, reconfiguration is required, and if the configuration is slightly wrong, repeated debugging is required to solve the problem, so that the efficiency is low. Even after successful configuration, the operation process is easy to be abnormal, and the production efficiency is affected. In addition, the test software needs to consider the difference of the connection types, realizes the adaptation of interfaces, couples the interfaces and test functions, has the advantages of complex program development difficulty, long development period, greatly improved probability of program defects and easy mass production quality accidents.
Therefore, how to improve the packaging of hardware and software interfaces, realize one-to-many test, decouple the function of the test program and the connection problem of the tested interface, improve the production line changing efficiency and the production efficiency, and reduce the development and maintenance difficulty of the test software is a technical problem to be solved by the technicians in the field.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a product testing method, apparatus, electronic device, and computer readable medium, so as to solve the problem that one-to-many testing cannot be implemented in the prior art.
In a first aspect of an embodiment of the present disclosure, a method for testing a product is provided, including: detecting a power-on starting signal of a test server, and controlling the test server to initialize; in response to detecting the end of initialization, starting and accessing a test program; responding to the completion of the test program access, accessing a tested product, and controlling the test server to initialize the tested product; in response to detecting that the initialization of the tested product is finished, controlling the test server to be connected with the tested product and logging in; responding to the received login success signal, and issuing at least one test command to the tested product; and controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test.
In one possible implementation, the initiating and accessing the test procedure in response to detecting the end of the initialization includes: detecting a power-on starting signal of the test server, controlling the test server to finish detection of the communication module and load a driving program, and confirming whether the interface works normally; controlling the test server to start a test service management module in response to the normal operation of the confirmation interface, wherein the service management module comprises a Tn interface module, a display and control management module and a Ts interface module; in response to detecting that the test service management module is started, controlling the Tn interface module to establish a TCPSocket server and bind an uplink interface, and waiting for a connection request of a test program; and starting and accessing a test program.
In one possible implementation, the initiating and accessing the test program in response to detecting the end of the initialization further includes: starting a test program and establishing connection with a test server; the control test program creates a TCPSocket client and initiates a connection request to the test service; in response to successful connection, continuing to execute downwards; in response to failure or timeout, the present operation is repeated after waiting 1 second.
In one possible implementation manner, the responding to the completion of the test program access, accessing a tested product, controlling the test server to initialize the tested product, includes: confirming the type of the cable based on the special effect of the test interface of the tested product; responding to the completion of the test program access, and controlling the cable connection of the tested product and the test server; and controlling the test server to initialize the tested product in response to the connection completion.
In a possible implementation manner, the controlling the test server to connect to the tested product and log in response to detecting that the tested product is initialized, further includes: in response to detecting that the initialization of the tested product is finished, controlling the test program to send a command for connecting the tested product and logging in to the test server; and responding to the command that the test server receives and logs in the tested product, and controlling the test server to connect the tested product and log in a test account.
In one possible implementation manner, the issuing at least one test command to the tested product in response to receiving a login success signal includes: responding to a received login success signal, controlling the test program to issue at least one test command to the test server; and in response to the test server receiving the at least one test command, controlling the test server to issue the at least one test command to the tested product.
In one possible implementation manner, the controlling the product under test to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test includes: controlling the tested product to execute the at least one test command, and acquiring a character string returned by the tested product to the test server; the control test program analyzes the character string and returns an execution result and data; and circularly executing the test command, outputting an execution result and data corresponding to each test command in at least one test command, and ending the test.
In a second aspect of the disclosed embodiments, there is provided a product testing apparatus comprising: the server starting unit is used for detecting a power-on starting signal of the test server and controlling the test server to initialize; the program access unit is used for starting and accessing a test program in response to the detection of the end of initialization; the product access unit is used for accessing a tested product in response to the completion of the access of the test program, and controlling the test server to initialize the tested product; the login unit is used for controlling the test server to connect with the tested product and log in response to the fact that the initialization of the tested product is finished; the command issuing unit is used for issuing at least one test command to the tested product in response to receiving the login success signal; and the output unit is used for controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command and ending the test.
In a third aspect of the disclosed embodiments, an electronic device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a fourth aspect of the disclosed embodiments, a computer-readable storage medium is provided, which stores a computer program which, when executed by a processor, implements the steps of the above-described method.
Compared with the prior art, the embodiment of the disclosure has the beneficial effects that: firstly, detecting a power-on starting signal of a test server, and controlling the test server to initialize; secondly, starting and accessing a test program in response to the detection of the end of initialization; then, responding to the completion of the test program access, accessing a tested product, and controlling the test server to initialize the tested product; then, in response to detecting that the initialization of the tested product is finished, controlling the test server to be connected with the tested product and logging in; then, responding to the received login success signal, and issuing at least one test command to the tested product; and finally, controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test. The test method realizes one-to-many test by improving the encapsulation of hardware and software interfaces, decouples the connection problem of the function of the test program and the tested interface, improves the production line changing efficiency and the production efficiency, and reduces the development and maintenance difficulty of test software.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required for the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a flow diagram of a product testing method according to the present disclosure;
FIG. 2 is a schematic structural view of a product testing device according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow diagram of a product testing method according to the present disclosure. As shown in fig. 1, the product testing method includes:
step S1: and detecting a power-on starting signal of the test server, and controlling the test server to initialize.
In some embodiments, detecting a power-on start signal of the test server, and creating and initializing a tested product connection object according to the maximum tested product concurrency number (test port number); the serial ports of the connection object extend a plurality of ports by using SPI, so that 1 serial port is dragged more; for the condition of network connection, a plurality of network ports are created by utilizing the flexible configuration function of the embedded system, and 1 binding of the plurality of ports is realized by utilizing the Vlan function of the switching chip and the starting script, and the automatic configuration is completed without manual intervention; and starting a test server monitoring module to monitor connection requests from the test program.
Step S2: in response to detecting the end of initialization, a test procedure is initiated and accessed.
In some embodiments, detecting a power-on starting signal of the test server, controlling the test server to finish detection of the communication module and load a driving program, and confirming whether the interface works normally; controlling the test server to start a test service management module in response to the normal operation of the confirmation interface, wherein the service management module comprises a Tn interface module, a display and control management module and a Ts interface module; in response to detecting that the test service management module is started, controlling the Tn interface module to establish a TCPSocket server and bind an uplink interface, and waiting for a connection request of a test program; and starting and accessing a test program.
In some embodiments, a test program is initiated and a connection is established with a test server; the control test program creates a TCPSocket client and initiates a connection request to the test service; in response to successful connection, continuing to execute downwards; in response to failure or timeout, the present operation is repeated after waiting 1 second.
In an alternative to some embodiments, a connection object is created and initialized and an attempt is made to connect to a test server; after the connection is in error, the system waits for a certain time and then reconnects again until the connection is successful.
Step S3: and responding to the completion of the test program access, accessing a tested product, and controlling the test server to initialize the tested product.
In some embodiments, the cable type is confirmed based on the test interface special effects of the product under test; responding to the completion of the test program access, and controlling the cable connection of the tested product and the test server; and controlling the test server to initialize the tested product in response to the connection completion.
In some embodiments, the product under test completes the initialization of the test interface hardware, software to test the connection of the server.
Step S4: and in response to detecting that the initialization of the tested product is finished, controlling the test server to be connected with the tested product and logging in.
In some embodiments, in response to detecting that the initialization of the product under test is completed, controlling the test program to issue a command to the test server to connect the product under test and log in; and responding to the command of receiving the tested product connection and logging in by the test server, controlling the test server to connect the tested product and finishing logging in authentication.
In some embodiments, the test program issues a command to the test server to connect to the product under test and log in, and carries port number, connection type, and log in information.
Step S5: and in response to receiving the login success signal, issuing at least one test command to the tested product.
In some embodiments, controlling the test program to issue at least one test command to the test server in response to receiving a login success signal; and in response to the test server receiving the at least one test command, controlling the test server to issue the at least one test command to the tested product.
In some embodiments, the test server loops detecting whether the port is connected to the product under test according to the port number and the connection type; once the connection of the tested product is detected, circularly detecting whether the software connection of the tested product is ready according to the connection type; once the software connection is detected to be ready, establishing a software connection with the product to be tested; after the software connection is successful, the login information provided by the test program is followed, the login of the software interface of the tested product is completed, and the test command channel is established to be ready.
Step S6: and controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test.
In some embodiments, the at least one test command is controlled to be executed by the tested product, and a character string returned by the tested product to the test server is obtained; the control test program analyzes the character string and returns an execution result and data; and circularly executing the test command, outputting an execution result and data corresponding to each test command in at least one test command, and ending the test.
In some embodiments, the test program issues a test command (command line string) to the test server and specifies a port number; the test server receives the command and sends the command to the tested product through the corresponding tested product connection object according to the port number; after the tested product receives the test command, executing the corresponding command and sending the information of the return display to the test server; the server receives the feedback character string of the tested product and forwards the feedback character string to the test program; the test program analyzes and judges whether the command execution is successful or failed according to the character string sent back by the test server, and the corresponding data is extracted through the corresponding rule of the data to be extracted; a command test command execution is completed.
In some embodiments, S6 and S7 are repeated until all test items of the product under test are executed or the information returned by the product under test indicates that the product test is not passed. Judging that all the executed products are good products if the products are finished, and prompting the products of the corresponding ports to pass the test by the test system; if the product which does not pass the test command is judged to be a defective product, the test system prompts that the product test of the corresponding port fails.
Compared with the prior art, the embodiment of the disclosure has the beneficial effects that: firstly, detecting a power-on starting signal of a test server, and controlling the test server to initialize; secondly, starting and accessing a test program in response to the detection of the end of initialization; then, responding to the completion of the test program access, accessing a tested product, and controlling the test server to initialize the tested product; then, in response to detecting that the initialization of the tested product is finished, controlling the test server to be connected with the tested product and logging in; then, responding to the received login success signal, and issuing at least one test command to the tested product; and finally, controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test. The test method realizes one-to-many test by improving the encapsulation of hardware and software interfaces, decouples the connection problem of the function of the test program and the tested interface, improves the production line changing efficiency and the production efficiency, and reduces the development and maintenance difficulty of test software. According to the testing method, through integration of the serial port and the network port on the hardware design of the testing server, the operation that one port is suitable for network port connection and also compatible with serial port connection is realized, and connection replacement is avoided according to the difference of product interfaces in the production process; meanwhile, because the serial port, telnet, SSH and URL of the test service team are compatible and packaged, the test program is no longer related to the connection of the tested product, only a connection command is required to be issued to the test server, and the connection mode is designated, so that the complexity of the test program is reduced, and the high-cohesion low-coupling principle of the system design is fully embodied; the test server completes the adaptation of hardware and software connection of the tested product, realizes 1-to-many concurrent design (1-to-16 design is adopted in the example), and exchanges commands and echo data between the high-efficiency socket connection and the test program, so that the test efficiency of the test program is obviously improved. When the similar router products are changed in line, the serial port communication and the network port communication are changed in line, the arrangement time of the line change (line change, namely, the line change from the production test A product to the production test B product is called line change) in one station test environment is shortened by more than 70%; when the test is carried out by 1-to-16, the test time is 20% higher than that of the traditional test carried out by 1-to-multiple environment; the production test program shortens the development time of the test function of a new product by 30 percent (the problem of no relation to the connection of the tested equipment and the problems of command sending and back display receiving only needs to call the packaged interface function).
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method of the present disclosure.
Fig. 2 is a schematic structural view of a product testing device according to the present disclosure. As shown in fig. 2, the product testing apparatus includes: the system comprises a server starting unit, a program access unit, a product access unit, a login unit, a command issuing unit and an output unit, wherein:
the server starting unit is used for detecting a power-on starting signal of the test server and controlling the test server to initialize;
the program access unit is used for starting and accessing a test program in response to the detection of the end of initialization;
the product access unit is used for accessing a tested product in response to the completion of the access of the test program, and controlling the test server to initialize the tested product;
the login unit is used for controlling the test server to connect with the tested product and log in response to the fact that the initialization of the tested product is finished;
the command issuing unit is used for issuing at least one test command to the tested product in response to receiving the login success signal;
and the output unit is used for controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command and ending the test.
Referring now to fig. 3, a schematic diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure is shown. The server illustrated in fig. 3 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 3, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM 403 are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
In general, the following devices may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tape, hard disk, etc.; a communication device. The communication means may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via a communications device, or installed from a memory device, or installed from a ROM. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by a processing device.
It should be noted that, in some embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with 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"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be embodied in the apparatus; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: detecting a power-on starting signal of a test server, and controlling the test server to initialize; in response to detecting the end of initialization, starting and accessing a test program; responding to the completion of the test program access, accessing a tested product, and controlling the test server to initialize the tested product; in response to detecting that the initialization of the tested product is finished, controlling the test server to be connected with the tested product and logging in; responding to the received login success signal, and issuing at least one test command to the tested product; and controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a server startup unit, a program access unit, a product access unit, a login unit, a command issuing unit, and an output unit. The names of these units do not in some cases limit the unit itself, for example, the server start-up unit may also be described as "detecting a power-on start signal of a test server, and controlling the test server to initialize".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (8)

1. A method of testing a product, comprising:
detecting a power-on starting signal of a test server, and controlling the test server to initialize;
in response to detecting the end of initialization, starting and accessing a test program;
responding to the completion of the test program access, accessing a tested product, and controlling the test server to initialize the tested product;
in response to detecting that the initialization of the tested product is finished, controlling the test server to be connected with the tested product and logging in;
responding to the received login success signal, and issuing at least one test command to the tested product;
controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test;
the response to detecting the end of initialization, starting and accessing a test program, including:
detecting a power-on starting signal of the test server, controlling the test server to finish detection of the communication module and load a driving program, and confirming whether the interface works normally;
controlling the test server to start a test service management module in response to the normal operation of the confirmation interface, wherein the service management module comprises a Tn interface module, a display and control management module and a Ts interface module;
in response to detecting that the test service management module is started, controlling the Tn interface module to establish a TCPSocket server and bind an uplink interface, and waiting for a connection request of a test program;
starting and accessing a test program;
the response to detecting the initialization ending, after starting and accessing the test program, comprises:
starting a test program and establishing connection with a test server;
the control test program creates a TCPSocket client and initiates a connection request to the test service;
in response to successful connection, continuing to execute downwards;
in response to failure or timeout, the present operation is repeated after waiting 1 second.
2. The method of claim 1, wherein said controlling the test server to initialize the product under test in response to the completion of the test program access, comprises:
confirming the type of the cable based on the special effect of the test interface of the tested product;
responding to the completion of the test program access, and controlling the cable connection of the tested product and the test server;
and controlling the test server to initialize the tested product in response to the connection completion.
3. The method of claim 1, wherein controlling the test server to connect to the product under test and log in response to detecting that the initialization of the product under test is complete comprises:
in response to detecting that the initialization of the tested product is finished, controlling the test program to send a command for connecting the tested product and logging in to the test server;
and responding to the command that the test server receives and logs in the tested product, and controlling the test server to connect the tested product and log in a test account.
4. The method of claim 1, wherein issuing at least one test command to the product under test in response to receiving a login success signal comprises:
responding to a received login success signal, controlling the test program to issue at least one test command to the test server;
and in response to the test server receiving the at least one test command, controlling the test server to issue the at least one test command to the tested product.
5. The method for testing a product according to claim 1, wherein controlling the product under test to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test comprises:
controlling the tested product to execute the at least one test command, and acquiring a character string returned by the tested product to the test server;
the control test program analyzes the character string and returns an execution result and data;
and circularly executing the test command, outputting an execution result and data corresponding to each test command in at least one test command, and ending the test.
6. A product testing device, comprising:
the server starting unit is used for detecting a power-on starting signal of the test server and controlling the test server to initialize;
the program access unit is used for starting and accessing a test program in response to the detection of the end of initialization;
the product access unit is used for accessing a tested product in response to the completion of the access of the test program, and controlling the test server to initialize the tested product;
the login unit is used for controlling the test server to connect with the tested product and log in response to the fact that the initialization of the tested product is finished;
the command issuing unit is used for issuing at least one test command to the tested product in response to receiving the login success signal;
the output unit is used for controlling the tested product to execute the at least one test command, outputting an execution result and data corresponding to each test command in the at least one test command, and ending the test;
wherein, in response to detecting the end of initialization, initiating and accessing a test procedure comprises:
detecting a power-on starting signal of the test server, controlling the test server to finish detection of the communication module and load a driving program, and confirming whether the interface works normally;
controlling the test server to start a test service management module in response to the normal operation of the confirmation interface, wherein the service management module comprises a Tn interface module, a display and control management module and a Ts interface module;
in response to detecting that the test service management module is started, controlling the Tn interface module to establish a TCPSocket server and bind an uplink interface, and waiting for a connection request of a test program;
starting and accessing a test program;
in response to detecting the end of initialization, after initiating and accessing the test program, comprising:
starting a test program and establishing connection with a test server;
the control test program creates a TCPSocket client and initiates a connection request to the test service;
in response to successful connection, continuing to execute downwards;
in response to failure or timeout, the present operation is repeated after waiting 1 second.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 5.
CN202211308957.3A 2022-10-25 2022-10-25 Product testing method, device, electronic equipment and computer readable medium Active CN115373927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211308957.3A CN115373927B (en) 2022-10-25 2022-10-25 Product testing method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211308957.3A CN115373927B (en) 2022-10-25 2022-10-25 Product testing method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN115373927A CN115373927A (en) 2022-11-22
CN115373927B true CN115373927B (en) 2023-04-21

Family

ID=84073841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211308957.3A Active CN115373927B (en) 2022-10-25 2022-10-25 Product testing method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115373927B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844395A (en) * 2017-11-16 2018-03-27 郑州云海信息技术有限公司 A kind of reboot test control methods and system
CN110198247A (en) * 2018-02-26 2019-09-03 腾讯科技(深圳)有限公司 Interface test method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105652124B (en) * 2016-02-18 2018-09-07 清华大学苏州汽车研究院(吴江) A kind of automobile batteries management test system and method based on Labview
CN106326116B (en) * 2016-08-17 2019-03-05 北京奇虎科技有限公司 The method and apparatus of product test
CN113495848B (en) * 2020-04-08 2024-07-30 慧荣科技股份有限公司 Flash memory device, card opening method of flash memory device and computer readable storage medium
CN112579452A (en) * 2020-12-22 2021-03-30 平安银行股份有限公司 Software automation test method, device, equipment and storage medium
CN113238943A (en) * 2021-05-14 2021-08-10 北京百度网讯科技有限公司 Method and device for continuous integration test

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844395A (en) * 2017-11-16 2018-03-27 郑州云海信息技术有限公司 A kind of reboot test control methods and system
CN110198247A (en) * 2018-02-26 2019-09-03 腾讯科技(深圳)有限公司 Interface test method and system

Also Published As

Publication number Publication date
CN115373927A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN110166432A (en) The access method of internal net destination service provides the method for Intranet destination service
US20170163479A1 (en) Method, Device and System of Renewing Terminal Configuration In a Memcached System
CN112291079B (en) Network service configuration method and network management equipment
US11792865B2 (en) Device binding method and apparatus, and electronic device
US11461206B2 (en) Cloud simulation and validation system
CN113553257B (en) Test method, device, storage medium and electronic equipment
US9307008B2 (en) Method and apparatus of performing remote command dispatching
US8234393B2 (en) Generic network protocol scripting
CN108337163B (en) Method and apparatus for aggregating links
CN115373927B (en) Product testing method, device, electronic equipment and computer readable medium
EP2445171A1 (en) File transfer protocol client and implementing method thereof
EP3896931B1 (en) Spark shuffle-based remote direct memory access system and method
CN115442206B (en) Method and system for remote deployment of GO micro-services in cloud environment
US11489817B2 (en) Computing system with gateway data transfer based upon device data flow characteristics and related methods
CN111541958A (en) Optical interface rate self-adaption method, equipment, device and readable storage medium
CN109871288A (en) Execute method, apparatus, equipment and the medium of android system order
CN111343010B (en) Method and equipment for configuring storage IP network port
CN116418791A (en) Firmware upgrading method, firmware upgrading system, server and storage medium
US8355630B1 (en) Polarity inversion detection for an optical circuit switch
US20030093536A1 (en) Support interface module
CN116795406B (en) Terminal equipment software upgrading method, device, equipment and computer readable medium
US11824917B2 (en) Computing system with data transfer based upon device data flow characteristics and related methods
US11947971B2 (en) Remote resource configuration mechanism
CN117081970A (en) Ethernet physical layer outer loop testing method and device and electronic 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
CB02 Change of applicant information

Address after: 518000 Room 501, block a, building 8, Shenzhen International Innovation Valley, Dashi Road, Xili community, Xili street, Nanshan District, Shenzhen, Guangdong

Applicant after: Shenzhen Yilian Unlimited Technology Co.,Ltd.

Address before: 518000 Room 501, block a, building 8, Shenzhen International Innovation Valley, Dashi Road, Xili community, Xili street, Nanshan District, Shenzhen, Guangdong

Applicant before: SHENZHEN COMNECT TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant