CN110149241B - Automatic testing method based on IMS equipment and storage medium - Google Patents

Automatic testing method based on IMS equipment and storage medium Download PDF

Info

Publication number
CN110149241B
CN110149241B CN201910280573.7A CN201910280573A CN110149241B CN 110149241 B CN110149241 B CN 110149241B CN 201910280573 A CN201910280573 A CN 201910280573A CN 110149241 B CN110149241 B CN 110149241B
Authority
CN
China
Prior art keywords
test
tested
equipment
data
ims
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
CN201910280573.7A
Other languages
Chinese (zh)
Other versions
CN110149241A (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.)
Guangzhou Gaoke Communications Technology Co ltd
Original Assignee
Guangzhou Gaoke Communications 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 Guangzhou Gaoke Communications Technology Co ltd filed Critical Guangzhou Gaoke Communications Technology Co ltd
Priority to CN201910280573.7A priority Critical patent/CN110149241B/en
Publication of CN110149241A publication Critical patent/CN110149241A/en
Application granted granted Critical
Publication of CN110149241B publication Critical patent/CN110149241B/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/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses an automatic testing method and a storage medium based on IMS equipment, comprising the following steps: establishing communication with a device side to be tested; the establishing communication step comprises: sending a two-layer broadcast packet to a device side to be tested, and receiving a temporary IP address and an MAC address sent by each device to be tested on the device side to be tested; performing test data interaction with the side of the equipment to be tested; and respectively sending test requirement data corresponding to each device to be tested, and receiving test result data returned by each device to be tested. According to the invention, the communication and data interaction are established between the test tool and the side of the equipment to be tested, so that a tester only needs to set a test command, the equipment to be tested automatically analyzes the command and tests according to the functional items, and test result data is reported, so that the automatic test of the equipment to be tested is realized, and the problem of low manual test efficiency and more errors is solved.

Description

Automatic testing method based on IMS equipment and storage medium
Technical Field
The invention relates to the field of equipment testing, in particular to an automatic testing method and a storage medium based on IMS equipment.
Background
The IMS voice processing transmission equipment (hereinafter referred to as IMS equipment) needs to test the functions of the IMS voice processing transmission equipment before being used by a user, check whether the IMS voice processing transmission equipment is qualified or not, sort out unqualified products and send the unqualified products to a maintenance place, and stick bar codes to the qualified products and send the qualified products to a client. The IMS device has various types and functions, and can be customized according to the requirements of customers. Therefore, in the testing process, more than ten functions such as the memory, the keys, the WIFI, the network port, the FXS-FXO port and the like are divided into a plurality of parts and assigned to a plurality of testers for running test. Each tester needs to test one item for each function, and the equipment is handed over to the next tester only when the test items of the equipment have no problems.
This manual test has several problems: 1. human factors lead to missing items and wrong items of functional test items of the equipment, and the equipment with problems can be used by the equipment which is wrong and intact, and vice versa. 2. 3. failure to record the entire batch of equipment test conditions completely and centrally, failure to save the test environment to retest the repaired equipment. 4. The requirements of the test function items of different equipment types and different batches are inconsistent, and a tester needs to additionally memorize various test processes, so that errors are more prone to occur.
Therefore, an automated testing scheme is needed to replace manual testing, so as to achieve the purposes of improving efficiency and reducing errors.
Disclosure of Invention
In view of the above technical problems, an object of the present invention is to provide an automatic testing method and a storage medium based on IMS, which implement automatic testing of a device under test and solve the problems of low manual testing efficiency and many errors.
The invention adopts the following technical scheme:
an automatic test method based on IMS equipment comprises the following steps:
establishing communication with a device side to be tested; the establishing communication step comprises: sending a two-layer broadcast packet to a device side to be tested, and receiving a temporary IP address and an MAC address sent by each device to be tested on the device side to be tested;
performing test data interaction with the side of the equipment to be tested; respectively sending test requirement data corresponding to each device to be tested, and receiving test result data returned by each device to be tested; the test requirement data is command data for performing a function test on the equipment to be tested, and the test result data is test result data after the equipment to be tested is analyzed and operated based on the test requirement data.
Further, the temporary IP address is randomized using only the lower 24 bits.
Further, the step of randomizing the lower 24 bits includes:
respectively adopting 3 random numbers between 0 and 255 as the lower 24-bit three-interval number of the temporary IP address; the arbitrary number is obtained by the following steps: and generating a random number through a srand function, and performing modulo operation on the generated random number to 256 to obtain any number from 0 to 255.
Further, the two-layer broadcast packet is set as follows: the destination MAC address of the two-layer broadcast packet is set as a broadcast address, and the protocol type is fixed to 0x 9955.
Further, the method also comprises the following steps:
after communication is established with the side of the equipment to be tested, the unique virtual serial number of each piece of equipment to be tested in the side of the equipment to be tested is set.
Further, the virtual serial number includes a MAC address of a PC where the test tool is located, a current test time, and a self-increment value.
Further, the interactive test requirement data and test result data between the test tool side and the device to be tested side both adopt TCP packets with a scalable length, and the TCP packets include: a start identification, a total length, and at least one command data.
And further, according to the type of the equipment to be tested and the test requirement, establishing test template data for the test requirement data.
Further, the method also comprises the following steps: and carrying out persistence processing on various types of data generated in the testing process through a persistence tool.
An automatic test method based on IMS equipment comprises the following steps:
establishing communication with a testing tool side; the establishing communication step comprises: receiving a two-layer broadcast packet sent by a testing tool side, and sending a temporary IP address and an MAC address of a device to be tested to the testing tool side;
performing test data interaction with a test tool side; each device to be tested receives the corresponding test requirement data, processes the test requirement data and returns test result data to the test tool side;
and each device to be tested sends out a signal prompt based on the test state of the device to be tested.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method for automated testing of IMS-based devices.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, the communication and data interaction are established between the test tool and the side of the equipment to be tested, so that a tester only needs to set a test command, the equipment to be tested automatically analyzes the command and tests according to the functional items, and test result data is reported, so that the automatic test of the equipment to be tested is realized, and the problem of low manual test efficiency and more errors is solved.
Furthermore, various data generated in the test process are subjected to persistence processing through a persistence tool, test result data can be displayed for a tester to check, and the whole test flow data of the equipment to be tested can be persisted so as to be checked later.
Drawings
Fig. 1 is a schematic flow chart of an embodiment of an automated testing method based on an IMS device according to the present invention;
FIG. 2 is a schematic diagram of the communication between the testing tool side and the device under test side according to the present invention;
FIG. 3 is a diagram illustrating a two-layer broadcast packet structure according to the present invention;
FIG. 4 is a diagram illustrating a structure of a variable length TCP packet according to the present invention;
FIG. 5 is a schematic diagram of the communication between the test tool side and the persistence tool of the present invention;
FIG. 6 is a schematic view of a test interface of the test tool of the present invention;
fig. 7 is a schematic flowchart of another embodiment of an automated testing method based on an IMS device according to the present invention;
fig. 8 is a schematic diagram of a system structure of an IMS device-based automatic test method according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
example (b):
referring to fig. 1-8, an automated testing method based on an IMS device, as shown in fig. 1, includes the following steps:
s100, establishing communication with a device to be tested; the establishing communication step comprises: sending a two-layer broadcast packet to a device side to be tested, and receiving a temporary IP address and an MAC address sent by each device to be tested on the device side to be tested;
fig. 2 is a schematic diagram of the communication between the test tool side and the device to be tested according to the present invention, where the test tool side may include one or more test tools, the test tool may be a PC of a tester, and the test tool of the present invention serves as a server and passively receives a report of the device to be tested by using TCP connection. The device to be tested comprises at least one device to be tested, and the device to be tested is IMS device.
Before the IMS device is tested, the management network port of the IMS device does not have a solidified IP address and a solidified MAC address. Therefore, in order to enable the test tool and the device under test to stably communicate within a certain test period, the device under test will randomly generate the currently used IP address and MAC address. The IP address is randomized with only the lower 24 bits, and is supplemented with a subnet mask of 255.0.0.0. For example, the device to be tested generates the IP in a form of 140.x.x.x, so that different IP combinations are provided for the device to be tested to select, and the fault tolerance of IP collision when multiple IMS devices are tested simultaneously is greatly improved. Meanwhile, with the aid of a 255.0.0.0 subnet, only the network segment of 140.x.x.x is occupied as a test network segment, and other network segments are not affected.
The temporary IP address is randomized using only the lower 24 bits.
The step of randomizing the lower 24 bits includes:
respectively adopting 3 random numbers between 0 and 255 as the lower 24-bit three-interval number of the temporary IP address; the arbitrary number is obtained by the following steps: and generating a random number through a srand function, and performing modulo operation on the generated random number to 256 to obtain any number from 0 to 255.
In order to enable the device to be tested to know and connect the IP address of the test tool, the test tool periodically sends a two-layer broadcast packet carrying the IP address and the TCP port to the current test network segment. The schematic structural diagram of the two-layer broadcast packet of the present invention is shown in fig. 3, and the two-layer broadcast packet is set as follows: the destination MAC address of the two-layer broadcast packet is set as a broadcast address, and the protocol type is fixed to 0x 9955. After receiving the broadcast packet, the IMS device generates a temporary IP address and an MAC address to communicate with the test tool, so that the test tool side and the device to be tested establish communication.
Preferably, the present invention further comprises the steps of: after communication is established with the side of the equipment to be tested, the unique virtual serial number of each piece of equipment to be tested in the side of the equipment to be tested is set. The virtual serial number comprises the MAC address of the PC where the test tool is located, the current test time and the self-increment value. A device under test is produced from it to the customer, possibly over multiple tests. However, for the test tool, a certain device under test does not have an identifiable identifier before the actual serial number is solidified, that is, even if the device under test is reported, the test tool does not know whether the device under test has been tested before, and how the test result is. For this purpose, the uniqueness of each device under test can be determined by setting a virtual serial number.
Specifically, in an actual test environment, a tester will use its own PC as a load of a test tool, and the IMS device to be tested will also be connected to the PC, and meanwhile, a plurality of testers will perform tests simultaneously. In order to ensure that the identifier of each device to be tested is unique, the MAC of the PC where the current testing tool is located is mutually exclusive, so that the communication is ensured not to be disordered) + the current testing time (the uniqueness of different time periods on the same PC is ensured) + the self-increment value (the initial value is 0 and 1 is added to each device to be tested reported so as to ensure the uniqueness of the device to be tested in the same time). The unique mark generated in this way is called a virtual serial number, once the device to be tested with the virtual serial number is taken, the device to be tested with the virtual serial number is solidified into a local FLASH to be stored, and then all interactions with the testing tool report the virtual serial number. The test tool will also use the virtual serial number as the identification code of the device under test.
The following are examples of three groups of virtual sequence numbers:
00195B7F2A4B 190CF23B 00001
00195B7F2A4B 190EB24A 00050
00195B7F2A4B 190EEC75 00112
for convenience, the virtual serial number is divided into three segments according to the MAC address, the test time and the self-increment. The first segment is the MAC address (16 system) of the current PC, the current test time is mainly based on the time reported by the equipment to be tested, and the original 32-bit 2 system time (millisecond level) is converted into 8-bit 16 system, so as to shorten the length of the virtual serial number. The self-increment value of the third section adopts a 5-bit 10-system counting mode. And finally, splicing the three sections in a character string mode to form a virtual serial number.
S200, performing test data interaction with a device to be tested; and respectively sending test requirement data corresponding to each device to be tested, and receiving test result data returned by each device to be tested. The test requirement data is command data for performing a function test on the equipment to be tested, and the test result data is test result data after the equipment to be tested is analyzed and operated based on the test requirement data.
Preferably, the test data interaction between the test tool side and the device to be tested adopts a TCP packet with a scalable length, and the scalable TCP packet is a variable length TCP packet, and includes: the command data includes a command identifier, a command code, and a command parameter column, wherein the command parameter column includes parameter lengths and parameter values of a plurality of parameters.
The test tool assembles the command codes representing the test requirement data according to the mode and issues the command codes to all the devices to be tested. The device to be tested carries out reverse disassembly command on the form of the test required data, initializes the test environment of the device to be tested according to the parameter values, and feeds back the test result data to the test tool in the form of TCP packets after the test of the device to be tested is finished. The test requirement data may specifically include test results, test-related description information, and the like.
If the device under test and the test tool communicate normally, the test tool loads the test instructions along with the test parameters into the command parameter portion of the data under test. After the device to be tested analyzes and processes the test requirements, when the partial item test is finished, the device to be tested loads the command parameter part in the test results according to the requirements of the TCP variable-length packet and the results and the description of the test items, and reports the command parameter part to the test tool. The test results contained only two states: success and failure. In the event of a failure, the result description is accompanied by failure information for the tester to review.
Preferably, the test method of the present invention may formulate test template data for the test requirement data according to the type of the device to be tested and the test requirements. Due to the scalability of the variable length TCP packet, the test tool can easily assemble various test commands according to the function. For such convenience, the test tool opens up the function of the test template. The tester can flexibly select the test functionality according to different types and different test requirements of the equipment to be tested, and the test functionality is customized into a template which is persistently managed by the test tool so as to be reused later.
Specifically, the functional items to be tested generally include the following points:
1) memory device
2)FLASH
3)USB/SD
4) Push-button
5) FXS/FXO port
6) Net mouth
7) Light port
8)WIFI
9)SIM/LTE
10) Software version
11) Target user
12) Automatic upgrade
13) MAC/SN allocation
14) General inspection
Wherein it is noted that
1) An interactive process exists in the testing process of the WIFI, the network port, the optical port and the FXS/FXO port (namely, the port sends data, and a receiver receives and feeds back the data). Therefore, when testing these several functions, an additional device under test is required as a receiver.
2) MAC/SN allocation and gross inspection can only be tested after other tests are completed and successful.
3) Automatic upgrade requires a TFTP/HTTP server to enable the transfer of the upgrade file.
4) The test of the key-press requires the tester to manually press the key-press to be tested on the device to be tested
5) Other test items only need to be sent to the interior of the equipment to be tested for testing.
The tester can select several items from the above function items as the test flow of the current test, or store the several items as templates for use by other testers or later.
For example, for an IMS device, the stock functions include five items, namely, a memory, a FLASH, a key, an FXS/FXO port, and a network port, and the five items can be combined into a general test template to meet basic test requirements of the IMS device.
For another example, the three items of software version, target user, and automatic upgrade are basic maintenance items, and a client may frequently change the version, currently used user name, patch, and the like of the device under test. For this reason, these three items can be combined into a common maintenance item template to cope with frequent maintenance needs.
And the MAC/SN allocation and the total check are carried out after all the items are successful. The completion of these two terms also represents the device under test to be sent to the customer for use. Therefore, the two items can be said to form a final test template for final production initialization.
The MAC/SN assignment will solidify the actual serial number and MAC address of the device under test (the actual serial number and MAC address may change). The test tool counts success conditions of other function items except MAC/SN distribution and general inspection (if the function items are included) in the test period every time the device to be tested reports the test result, once the requirements are met, the test tool opens an MAC/SN distribution inlet for a tester to input an actual serial number, and meanwhile searches a corresponding MAC address in a file (the tester is prepared in advance) under a corresponding path of a PC through the actual serial number, sends the MAC address to the device to be tested, and jumps to the next device to be tested which can distribute the MAC/SN. In the process, only one action of scanning the bar code (the bar code containing the actual serial number) is needed by a tester, and the MAC/SN distribution can be carried out on the device to be tested. Compared with the prior art, the process of continuously and repeatedly operating the mouse and the keyboard is avoided.
The final step of the overall test flow (if including the function item). After the MAC/SN is successfully distributed, the general inspection initializes all data of the equipment to be tested so as to achieve the purpose of being used by a client.
As another preferred embodiment, the present invention further comprises the steps of: and carrying out persistence processing on various types of data generated in the testing process through a persistence tool.
Fig. 8 is a schematic diagram of a system structure of an IMS device-based automated testing method, which includes a plurality of devices under test and a plurality of testing tools, where the devices under test communicate with one testing tool, and each testing tool performs a persistence operation on the testing process through a persistence tool.
The device to be tested which needs to be tested takes the virtual serial number as the unique identification of the device. A device under test may be tested multiple times from production to delivery to a customer. The test life of the whole device to be tested can be well recorded by using the unique identifier. The testing tool conducts persistence operation on the testing process through the persistence tool so as to facilitate query of testing personnel at any time.
Specifically, the persistence tool used by the testing tool may be a MySql database. The MySql database is a typical relational database, and realizes reading and writing of data by analyzing SQL statements. Generally, the execution of the SQL statement is divided into three layers:
1. and the connection layer is responsible for providing a connection protocol, verifying functional identity information and providing a special connection thread.
And the SQL layer is responsible for verifying, analyzing and optimizing the SQL statement and submitting the SQL statement to the next layer for processing. Or receive data from the next layer delivery.
3. And the storage engine layer extracts data according to the requirements of the SQL layer and re-submits the data to the SQL layer.
The SQL statement and result set are transmitted between the test tool and MySql through a TCP connection, as shown in FIG. 5.
SQL statements usually take the form of strings, e.g., a column of data is obtained from the MySql table, select < param1> from < table >. The result set is a binary stream that can be parsed into the required data by a parser internal to the test tool. Similarly, the Sql statement may also store data that needs to be persisted in a disk managed by MySql, for example, the following statements: insert < table > < param1> < param 2.. values < value1> < value 2.. values 1 for parameter 1 and values 2 for parameter 2 are combined into a record and stored. In many cases, an IMS device needs to be upgraded to a corresponding version to communicate and test with the test tool.
Referring to fig. 7, an automated testing method based on IMS devices is shown, where in fig. 7, the devices are all devices under test, and the method includes the following steps:
step S1000, establishing communication with a testing tool side; the establishing communication step comprises: receiving a two-layer broadcast packet sent by a testing tool side, and sending a temporary IP address and an MAC address of a device to be tested to the testing tool side;
s2000, carrying out test data interaction with a test tool side; each device to be tested receives the corresponding test requirement data, processes the test requirement data and returns test result data to the test tool side;
and S3000, sending out a signal prompt by each device to be tested based on the test state of the device to be tested.
Specifically, the test states include three states of being tested, passing the test, and failing the test. The sequence of reporting IMS devices to a test tool is random, and since a tester may test multiple devices under test at the same time, a way to conveniently locate a certain number of devices under test or devices under test in different states is needed in the test process. For the tester, the most intuitive way is to light the device to be tested. In the whole test process, a certain group of lamps of the IMS device (the specific situation depends on the type of the device to be tested, but the number of lamps participating in the state determination may exceed three) may represent different states in the following ways:
1) the group of lamps of the equipment to be tested is completely extinguished;
2) the group of lamps of the equipment to be tested passing the test are periodically turned on and off;
3) the group of lamps of the equipment to be tested which is not passed through the test is fully lighted;
4) the group of equi-horses flash when the device to be tested is selected.
The method can be used for the tester to pick the specified device to be tested well and conveniently.
In specific applications, the information displayed on the test interface of the test tool can be as shown in fig. 6, and includes an equipment display area, a test result display area, and a test result statistical area, where the equipment display area displays parameter data of the device to be tested, the test result display area displays test result data, and the test result only includes two states: success and failure. In the event of a failure, the test result data includes a description with failure information attached for review by the tester.
A computer storage medium having stored thereon a computer program which, when executed by a processor, is capable of carrying out the above-mentioned method. The method of the present invention, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in the computer storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer storage medium and used by a processor to implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer storage media may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer storage media that does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (8)

1. An automatic test method based on IMS equipment is characterized by comprising the following steps:
establishing communication with a device side to be tested; the establishing communication step comprises: sending a two-layer broadcast packet to a device side to be tested, and receiving a temporary IP address and an MAC address sent by each device to be tested on the device side to be tested;
performing test data interaction with the side of the equipment to be tested; respectively sending test requirement data corresponding to each device to be tested, and receiving test result data returned by each device to be tested; the test requirement data is command data for performing a function test on the equipment to be tested, and the test result data is test result data after the equipment to be tested is analyzed and operated based on the test requirement data;
after communication is established with the side of the equipment to be tested, setting a unique virtual serial number for each piece of equipment to be tested in the side of the equipment to be tested; the virtual serial number comprises an MAC address of a PC (personal computer) where the test tool is located, current test time and self-increment;
converting the original 32-bit 2-system time (millisecond level) into an 8-bit 16-system time to shorten the length of the virtual serial number; the self-increment value of the third section adopts a 5-bit 10-system counting mode;
the device to be tested carries out reverse disassembly command on the form of the test requirement data and initializes the test environment of the device to be tested according to the parameter values;
the method comprises the following steps that a universal test template is formed by five items including a memory, a FLASH, a key, an FXS/FXO port and a network port to meet the basic test requirements of IMS equipment;
the three items of the software version, the target user and the automatic upgrade are taken as basic maintenance items to form a common maintenance item template;
when the MAC/SN is distributed, the actual serial number is sent to a file under a corresponding path of the PC, a corresponding MAC address is searched, the MAC address is sent to the equipment to be tested, and the next equipment to be tested capable of distributing the MAC/SN is skipped.
2. The IMS device-based automated testing method according to claim 1, wherein the temporary IP address is randomized with only the lower 24 bits; the step of randomizing the lower 24 bits includes:
respectively adopting 3 random numbers between 0 and 255 as the lower 24-bit three-interval number of the temporary IP address; the arbitrary number is obtained by the following steps: and generating a random number through a srand function, and performing modulo operation on the generated random number to 256 to obtain any number from 0 to 255.
3. The IMS device based automatic test method according to claim 1, wherein the layer two broadcast packet is set as follows: the destination MAC address of the two-layer broadcast packet is set as a broadcast address, and the protocol type is fixed to 0x 9955.
4. The IMS device-based automated testing method according to claim 1, wherein the test requirement data and the test result data interacted between the test tool side and the device under test each use a TCP packet with a scalable length, and the TCP packet includes: a start identification, a total length, and at least one command data.
5. The IMS device-based automated testing method of claim 1, wherein test template data is formulated for the test requirement data according to the device type and test requirements to be tested.
6. The IMS device-based automated testing method of any of claims 1 to 5, further comprising the steps of: and carrying out persistence processing on various types of data generated in the testing process through a persistence tool.
7. An automatic test method based on IMS equipment is characterized by comprising the following steps:
establishing communication with a testing tool side; the establishing communication step comprises: receiving a two-layer broadcast packet sent by a testing tool side, and sending a temporary IP address and an MAC address of each device to be tested of a device side to be tested to the testing tool side;
performing test data interaction with a test tool side; each device to be tested receives the corresponding test requirement data, processes the test requirement data and returns test result data to the test tool side;
converting the original 32-bit 2-system time (millisecond level) into an 8-bit 16-system time to shorten the length of the virtual serial number; the self-increment value of the third section adopts a 5-bit 10-system counting mode;
the device to be tested carries out reverse disassembly command on the form of the test requirement data and initializes the test environment of the device to be tested according to the parameter values;
the method comprises the following steps that a universal test template is formed by five items including a memory, a FLASH, a key, an FXS/FXO port and a network port to meet the basic test requirements of IMS equipment;
the three items of the software version, the target user and the automatic upgrade are taken as basic maintenance items to form a common maintenance item template;
when the MAC/SN is distributed, the actual serial number is sent to a file under a corresponding path of the PC, a corresponding MAC address is searched, the MAC address is sent to the equipment to be tested, and the next equipment to be tested capable of distributing the MAC/SN is skipped.
And each device to be tested sends out a signal prompt based on the test state of the device to be tested.
8. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of automated testing based on IMS devices of any of claims 1 to 7.
CN201910280573.7A 2019-04-09 2019-04-09 Automatic testing method based on IMS equipment and storage medium Active CN110149241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910280573.7A CN110149241B (en) 2019-04-09 2019-04-09 Automatic testing method based on IMS equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910280573.7A CN110149241B (en) 2019-04-09 2019-04-09 Automatic testing method based on IMS equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110149241A CN110149241A (en) 2019-08-20
CN110149241B true CN110149241B (en) 2021-08-24

Family

ID=67588956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910280573.7A Active CN110149241B (en) 2019-04-09 2019-04-09 Automatic testing method based on IMS equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110149241B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677317B (en) * 2019-09-17 2022-11-01 京信网络系统股份有限公司 Test method, test device, test equipment and storage medium
CN111367746A (en) * 2020-03-16 2020-07-03 纳瓦电子(上海)有限公司 Test method of wireless complete machine
CN111537862B (en) * 2020-04-21 2023-03-31 青岛矽昌通信技术有限公司 PCBA test method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227744A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 System and method for implementing IMS network field multipartite voice business
US8254268B2 (en) * 2008-09-29 2012-08-28 At&T Intellectual Property I, L.P. Methods and apparatus to perform quality testing in internet protocol multimedia subsystem based communication systems
CN103684813A (en) * 2012-09-03 2014-03-26 中兴通讯股份有限公司 ENUM-DNS disaster recovery method and system used in IMS network
CN107454045A (en) * 2016-06-01 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and system of the certification of user's IMS registration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100531194C (en) * 2004-09-07 2009-08-19 华为技术有限公司 Service signal processing system and method for group domain
US7809368B2 (en) * 2006-06-09 2010-10-05 Alcatel-Lucent Usa Inc. Architecture for location independent, automated integration testing and quality assurance of next generation IMS services
CN102118283B (en) * 2011-03-30 2013-03-13 大唐移动通信设备有限公司 Method and device for testing communication equipment
CN105472083B (en) * 2015-12-08 2018-09-04 北京奇虎科技有限公司 The test method and system of wireless terminal
CN106534289B (en) * 2016-11-03 2019-12-10 京信通信系统(中国)有限公司 Automatic testing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227744A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 System and method for implementing IMS network field multipartite voice business
US8254268B2 (en) * 2008-09-29 2012-08-28 At&T Intellectual Property I, L.P. Methods and apparatus to perform quality testing in internet protocol multimedia subsystem based communication systems
CN103684813A (en) * 2012-09-03 2014-03-26 中兴通讯股份有限公司 ENUM-DNS disaster recovery method and system used in IMS network
CN107454045A (en) * 2016-06-01 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and system of the certification of user's IMS registration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Building an IMS Client test bed with open source tools;M. Vignesh Karthik;《2007 International Conference on IP Multimedia Subsystem Architecture and Applications》;20080709;全文 *
IMS网络安全威胁及测试方法研究;陈慧敏;《现代电信科技》;20130225;全文 *

Also Published As

Publication number Publication date
CN110149241A (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN110149241B (en) Automatic testing method based on IMS equipment and storage medium
CN102073640B (en) Method, system and server for testing structured query language (SQL) statements
CN105787364B (en) Automatic testing method, device and system for tasks
CN106571981A (en) DNS (Domain Name System) server automated testing method and system
CN109165170B (en) Method and system for automatic request test
CN106802859A (en) A kind of method and device of client software test
CN111782635B (en) Data processing method and device, storage medium and electronic device
CN112579007A (en) Method and device for acquiring full storage link and electronic equipment
CN111338869A (en) Configuration parameter management method, device, equipment and storage medium
EP1780946A1 (en) Consensus testing of electronic system
CN112274913B (en) Method and device for merging game servers, storage medium and electronic device
CN112749915A (en) Virtual material information burning method, system, equipment and storage medium
CN109857654A (en) A kind of method, apparatus and system of the timing flow chart automatically generating test case
CN112486532A (en) Method and device for managing configuration file, electronic equipment and storage medium
CN115391231B (en) Automatic interface testing method
CN101661428B (en) Method for evaluating a production rule for a memory management analysis
CN115510454A (en) Game testing method and device, electronic equipment and storage medium
CN115048359A (en) Universal data processing architecture design method for multi-type access data sources
CN110765016B (en) Game test instruction processing method, game test instruction processing system, server and storage device
CN112131128A (en) Data testing method, device, storage medium and electronic device
CN111309370B (en) Version number directed graph ordering auditing method and system for multi-project multi-system environment
CN115878448A (en) Database test method, distributed database and storage medium
CN110032500B (en) Multi-layer nested data analysis method and device
CN109116263B (en) Multi-power supply product load test equipment and test method
CN106992873B (en) Protection group processing method and device

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