CN110149241A - A kind of automated testing method and storage medium based on IMS equipment - Google Patents

A kind of automated testing method and storage medium based on IMS equipment Download PDF

Info

Publication number
CN110149241A
CN110149241A CN201910280573.7A CN201910280573A CN110149241A CN 110149241 A CN110149241 A CN 110149241A CN 201910280573 A CN201910280573 A CN 201910280573A CN 110149241 A CN110149241 A CN 110149241A
Authority
CN
China
Prior art keywords
test
devices
data
testing method
ims equipment
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.)
Granted
Application number
CN201910280573.7A
Other languages
Chinese (zh)
Other versions
CN110149241B (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.)
GAOKE COMMUNICATION TECHNOLOGY Co Ltd GUANGZHOU CITY
Original Assignee
GAOKE COMMUNICATION TECHNOLOGY Co Ltd GUANGZHOU CITY
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 GAOKE COMMUNICATION TECHNOLOGY Co Ltd GUANGZHOU CITY filed Critical GAOKE COMMUNICATION TECHNOLOGY Co Ltd GUANGZHOU CITY
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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of automated testing method and storage medium based on IMS equipment, comprising: establish and communicate with Devices to test side;The communication steps of establishing include: to send L 2 broadcast packet to Devices to test side, receive temporary ip address and MAC Address that each Devices to test of Devices to test side is sent;Test data is carried out with Devices to test side to interact;It sends test request data corresponding with each Devices to test respectively to each Devices to test, receives the test result data that each Devices to test returns.The present invention by testing tool with the foundation of Devices to test side by communicating and carrying out data interaction, tester only needs to set test command, Devices to test will automatically parse order and test according to function items, report test result data, the automatic test for realizing Devices to test solves the problems, such as that the error of manual testing's low efficiency is more.

Description

A kind of automated testing method and storage medium based on IMS equipment
Technical field
The present invention relates to equipment testing fields, and in particular to a kind of automated testing method and storage based on IMS equipment Medium.
Background technique
IMS speech processes transmission device (hereinafter referred to as IMS equipment), give user using preceding need to its function carry out Test, checks whether qualification, and sort out substandard product and send to helpdesk, the qualified bar code that just sticks is sent to client. Since IMS device category and function are various, and can be designed according to being customized of requirement of client.So in test process In, ten multiple functions such as memory, key, WIFI, network interface, FXS-FXO mouthfuls will be divided into several parts, be dispatched to multiple tests Personnel carry out flowing water test.Each tester need to test for function one one, it is ensured that these test items of equipment There is no problem is just submitted to next bit tester for equipment.
This artificial test has following problem: 1. human factors lead to the leakage item of apparatus function test item, wrong item, Problematic equipment may be by wrong when intact equipment uses, and vice versa.2. between frequent manual operation and tester Interaction cause efficiency reduce .3. can not be complete and the record concentrated equipment test case is seen by the gross, test environment can not be saved To re-start test to the equipment repaired.4. the test function item of distinct device type, different batches requires inconsistent, need Tester is wanted additionally to go to remember miscellaneous test process, it is more error-prone.
Therefore, it is necessary to a kind of schemes of automatic test to substitute manual testing, reach and improve efficiency, and reduce the mesh of mistake 's.
Summary of the invention
In view of the above technical problem, the purpose of the present invention is to provide a kind of automated testing methods based on IMS equipment And storage medium, it realizes the automatic test of Devices to test, solves the problems, such as that the error of manual testing's low efficiency is more.
The invention adopts the following technical scheme:
A kind of automated testing method based on IMS equipment, comprising the following steps:
It establishes and communicates with Devices to test side;The communication steps of establishing include: to send L 2 broadcast packet to Devices to test side, Receive temporary ip address and MAC Address that each Devices to test of Devices to test side is sent;
Test data is carried out with Devices to test side to interact;It is sent respectively to each Devices to test corresponding with each Devices to test Test request data receive the test result data that each Devices to test returns;The test request data be device under test into The order data of row functional test, the test result data are that Devices to test is parsed and run based on test request data Test result data afterwards.
Further, the temporary ip address carries out random only with low 24.
Further, the random step of low 24 progress includes:
3 arbitrary numbers positioned at 0-255 are respectively adopted as low 24 three interval numbers of temporary ip address;The arbitrary number It is obtained by following steps: random number being generated by srand function, and the random number of generation is subjected to modular arithmetic to 256, obtains 0- Arbitrary number in 255.
Further, the L 2 broadcast packet setting is as follows: the target MAC (Media Access Control) address of L 2 broadcast packet is set as broadcast ground Location, protocol type are fixed as 0x9955.
Further, further comprising the steps of:
After communicating with the foundation of Devices to test side, its unique virtual sequence is set for each Devices to test in Devices to test side Number.
Further, the virtual sequence number include the MAC Address of PC machine where testing tool, the current testing time and from Increment.
Further, the test request data and test result data interacted between testing tool side and Devices to test side are equal Using the telescopic TCP packet of length, the TCP packet includes: origin identification, total length and an at least order data.
Further, according to Devices to test type and test request, test template data are formulated for test request data.
Further, further comprising the steps of: the Various types of data generated in test process being carried out by persistence tool Persistence processing.
A kind of automated testing method based on IMS equipment, comprising the following steps:
It establishes and communicates with testing tool side;The communication steps of establishing include: to receive two layers that testing tool side is sent extensively Packet is broadcast, and sends the temporary ip address and MAC Address of Devices to test side to testing tool side;
Test data is carried out with testing tool side to interact;Each Devices to test receives test request number corresponding thereto respectively According to processing test request data simultaneously return to test result data to testing tool side;
Each Devices to test is based on its test mode and issues signal prompt.
A kind of computer storage medium, is stored thereon with computer program, and the computer program is being executed by processor When, realize the automated testing method based on IMS equipment.
Compared with prior art, the beneficial effects of the present invention are:
By communicating testing tool with the foundation of Devices to test side and carrying out data interaction, tester only needs the present invention Test command is set, Devices to test will automatically parse order and test according to function items, report test result data, realize The automatic test of Devices to test solves the problems, such as that the error of manual testing's low efficiency is more.
Further, persistence processing, test are carried out to the Various types of data generated in test process by persistence tool Result data can not only be shown to tester and check, and the entire testing process data of the Devices to test can with persistence with The phase checks after an action of the bowels.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of one embodiment of automated testing method based on IMS equipment of the present invention;
Fig. 2 is the schematic diagram that testing tool side of the present invention is communicated with the foundation of Devices to test side;
Fig. 3 is the structural schematic diagram of L 2 broadcast packet of the present invention;
Fig. 4 is the structural schematic diagram of the elongated TCP packet of the present invention;
Fig. 5 is testing tool side of the present invention and persistence instrument communications schematic diagram;
Fig. 6 is the test interface schematic diagram of testing tool of the present invention;
Fig. 7 is a kind of flow diagram of another embodiment of automated testing method based on IMS equipment of the invention;
Fig. 8 is a kind of system structure diagram of the automated testing method based on IMS equipment of the present invention.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example:
Embodiment:
It please refers to shown in Fig. 1-8, a kind of automated testing method based on IMS equipment, as shown in Figure 1, including following step It is rapid:
Step S100: it establishes and communicates with Devices to test side;The communication steps of establishing include: to send two to Devices to test side Layer broadcast packet receives temporary ip address and MAC Address that each Devices to test of Devices to test side is sent;
Fig. 2 is the schematic diagram that testing tool side of the present invention is communicated with the foundation of Devices to test side, testing tool side of the invention It may include one or more testing tool, the PC machine of tester, testing tool conduct of the invention can be used in testing tool Server-side passively receives reporting for Devices to test using TCP connection.Devices to test side of the invention includes at least one to be measured to set Standby, Devices to test of the invention is IMS equipment.
Before not yet being tested due to IMS equipment, there is no cured IP address and MAC Address for management network port.Therefore, in order to Testing tool and Devices to test stabilized communication can be enabled within certain test period, Devices to test will generate at random works as The preceding IP address used and MAC Address.Wherein, IP address carries out random only with low 24, and is aided with the subnet of 255.0.0.0 Mask.For example, Devices to test generates IP in the form of 140.x.x.x, then just there is kind of a different IP combination to set for be measured Serious forgiveness standby to be selected, that IP conflicts when also just greatly improving more IMS equipment while testing.Meanwhile 255.0.0.0 under the auxiliary of subnet, the network segment for also having only taken up 140.x.x.x is used as test network segment, will not for other network segments It is impacted.
The temporary ip address carries out random only with low 24.
Described low 24 carry out random step and include:
3 arbitrary numbers positioned at 0-255 are respectively adopted as low 24 three interval numbers of temporary ip address;The arbitrary number It is obtained by following steps: random number being generated by srand function, and the random number of generation is subjected to modular arithmetic to 256, obtains 0- Arbitrary number in 255.
In order to know Devices to test and the IP address of connecting test tool, testing tool is by the period to current Test network segment send carry IP address and TCP port L 2 broadcast packet.The structural schematic diagram of L 2 broadcast packet of the present invention is such as Shown in Fig. 3, the L 2 broadcast packet setting is as follows: the target MAC (Media Access Control) address of L 2 broadcast packet is set as broadcast address, protocol type It is fixed as 0x9955.IMS equipment generates temporary ip address and MAC Address is communicated with testing tool after receiving broadcast packet, It is communicated in this way, testing tool side is established with Devices to test side.
Preferably, the invention also includes following steps: being each in Devices to test side after communicating with the foundation of Devices to test side Platform Devices to test sets its unique virtual sequence number.The virtual sequence number include testing tool where PC machine MAC Address, when Preceding testing time and certainly increment.One Devices to test is produced from it to being dealt into client's hand, therebetween may be by repeatedly surveying Examination.But for testing tool, a certain Devices to test is all not have to can recognize mark before solidifying actual sequence number, Even if i.e. Devices to test reports, testing tool does not know the Devices to test before either with or without testing yet, and how is test result. For this purpose, can determine the uniqueness of every Devices to test by setting virtual sequence mode.
Specifically, in actual test environment, tester is to be measured by the carrying using the PC machine of oneself as testing tool The IMS equipment of examination will also connect this PC machine, meanwhile, there are multiple testers while testing.In order to guarantee each to Measurement equipment mark be all it is unique, then with PC machine MAC where current testing tool, (MAC of PC machine is mutual exclusion, to protect Card communication will not be disorderly)+current testing time (uniqueness for guaranteeing different periods in same PC machine)+from increment (by test work Tool management.Initial value is 0, often reports a Devices to test then to add 1, guarantees the uniqueness of Devices to test in the same time).With this We term it virtual sequence number, which once takes unique mark that kind mode generates, can be by it It is cured in local FLASH and saves, it is all later all to report the virtual sequence number with testing tool interaction.Test Tool will also be come using the virtual sequence number to the identification code as the Devices to test.
The following are the citings of three groups of virtual sequences number:
00195B7F2A4B 190CF23B 00001
00195B7F2A4B 190EB24A 00050
00195B7F2A4B 190EEC75 00112
For convenience, virtual sequence number is divided into three sections according to MAC Address, testing time, self-propagation.First segment is current The MAC Address (16 system) of PC machine, the current testing time is mainly subject to the time that Devices to test reports, and by 32 of script The 2 system times (millisecond rank) change into 8 16 systems, to shorten the length of virtual sequence number.Third section is then adopted from increment With 5 10 system counting modes.Three sections are spliced in the way of character string finally and forms virtual sequence number.
Step S200: test data is carried out with Devices to test side and is interacted;It sends to each Devices to test and to be measured is set with each respectively Standby corresponding test request data receive the test result data that each Devices to test returns.The test request data are pair Devices to test carries out the order data of functional test, and the test result data is that Devices to test is carried out based on test request data Parsing and postrun test result data.
Preferably, test data is interacted using the telescopic TCP packet of length, institute between testing tool side and Devices to test side Stating telescopic TCP packet is elongated TCP packet, comprising: origin identification, total length and at least an order data, form can refer to Shown in Fig. 4, each order data includes command id, command code and command parameter column, and the command parameter column include several The parameter length and parameter value of parameter.
Testing tool assembles the command code for indicating test request data in a manner described, and is handed down to and is needed Measurement equipment.The forms of test request data is carried out reversed dismantling order by Devices to test, and is initialized according to parameter value to be measured The test environment of equipment itself, to the end of its test, test result data is also fed back to survey by Devices to test in the form of TCP packet Trial work tool.Test request data specifically may include test result and test associated description information etc..
If Devices to test and testing tool communication are normal, testing tool fills test instruction together with test parameter Fill the command parameter part of testing data.After Devices to test parsing and test request is handled, until subitem test terminates, to Measurement equipment sets the result for these test items completed and its description in test result according to the requirement filling of the elongated packet of TCP Command parameter part, and be reported to testing tool.Test result only includes two states: success, failure.The case where failure Under, as a result description is accompanied with failure information and checks for tester.
Preferably, test method of the invention can be test request data system according to Devices to test type and test request Determine test template data.Due to the scalability of the elongated TCP packet, testing tool can be assembled easily according to function respectively Kind test command.For such convenience, testing tool has opened test template function.Tester to be measured can set to different Standby type, different test request flexible choice testing functionality, and it is customized to a template, by testing tool persistence pipe Reason, to reuse later.
Specifically, function items to be tested generally comprise the following:
1) memory
2)FLASH
3)USB/SD
4) key
5) FXS/FXO mouthfuls
6) network interface
7) optical port
8)WIFI
9)SIM/LTE
10) software version
11) target user
12) automatic upgrading
13) MAC/SN is distributed
14) total inspection
Wherein it should be noted that
1) there are interactive process, (i.e. the mouth issues data to WIFI, network interface, optical port and FXS/FXO mouthfuls of test process, exists Recipient receives data and feeds back).When therefore testing these functions, need additional Devices to test as recipient.
2) MAC/SN distribution and total inspection can only be completed in other tests and just can be carried out test after success.
3) automatic upgrading needs TFTP/HTTP server to realize the transmission of upgrade file.
4) test of key needs tester to be manually pressed by the key to be tested of the need on Devices to test
5) other test items only need to transfer to voluntarily to be tested inside Devices to test.
Tester can be selected in above-mentioned function items several as the testing process currently tested, or it is this is several Item is stored as template and uses for later or other testers.
For example, for IMS equipment, standing function include memory, FLASH, key, FXS/FXO mouthfuls, network interface this five , universal test template can be formed by this five to cope with the basic test requirement of IMS equipment.
For another example, software version, target user, upgrade this three automatically as basic maintenance item, client may be to be measured The version of equipment, currently used user name, patch etc. have frequent change.For this purpose, can be by the common dimension of this three compositions Item template is protected, to cope with frequent maintenance needs.
And MAC/SN distribution, total inspection are just carried out after the success of all of above item.Two completions, also represent Devices to test will be sent to client's use.For this purpose, this two composition last test templates can be said, make last produce initially Chemical industry is made.
MAC/SN distribution will solidify Devices to test actual sequence number and MAC Address, and (actual sequence number and MAC Address can be with Change).Testing tool will be counted in the secondary test period during Devices to test reports test result each time except MAC/SN The other function item successful instance of distribution and total inspection (if comprising the function items), once meeting the requirements, testing tool will Open MAC/SN is dispensed into confession tester and inputs actual sequence number, while going PC machine respective paths via the actual sequence number Under file in (tester has been prepared in advance) find corresponding MAC Address, be issued on Devices to test, and jump and set Next can distribute on the Devices to test of MAC/SN.Such process, it is only necessary to which tester carries out swepting slip shape code (comprising practical The bar code of sequence number) this movement, it can device under test progress MAC/SN distribution.Compared with former, continuous weight is eliminated The process of mouse and keyboard is operated again.
Total inspection is the final step of entire testing process (if comprising the function items).MAC/SN at the distribution of work it Afterwards, total inspection will initialize all data of Devices to test, to achieve the purpose that use to client.
As another preferred embodiment, the invention also includes following steps: by persistence tool to producing in test process Raw Various types of data carries out persistence processing.
Fig. 8 be the automated testing method based on IMS equipment system structure diagram, if including several Devices to test and Dry testing tool, several Devices to test are communicated with a testing tool, and the process that each testing tool tests these, which passes through, holds Long chemical industry tool carries out persistence operation.
Due to needing Devices to test to be tested all will be using virtual sequence number as its unique identification.Certain Devices to test is from production It comes out to during issuing client, multiple test may be will do it.It can be good at recording entire Devices to test using unique identification Test career.The process that testing tool tests these carries out persistence operation by persistence tool, so as to tester Inquiry at any time.
Specifically, the persistence tool that testing tool uses can be MySql database.MySql database is a kind of typical case Relevant database, it realizes the read-writes of data by parsing SQL statement.Generally it is divided into execution SQL statement Three layers:
1. articulamentum: being responsible for providing connection protocol, authentication function identity information provides special connection thread.
2.SQL layers: being responsible for verification, parsing and optimization SQL statement, submit to next layer of processing.Either receive next layer The data submitted up.
3. storage engines layer: extracting data according to the requirement of SQL layer, and hand over a SQL layer again.
SQL statement and result set are transmitted between testing tool and MySql by TCP connection, as shown in Figure 5.
SQL statement generallys use the form of character string, such as obtains a certain column data from MySql table: select < param1>from<table>.Result set is binary stream, can be parsed the binary stream by the resolver inside testing tool At the data of needs.Similarly, the data for needing persistence can also be deposited into the disk of MySql management by Sql sentence, such as Following sentence: insert into<table><param1><param2>... values<value1><value2>..., meeting By the value 1 of parameter 1, the value 2 of parameter 2 is merged into a record storage.IMS equipment needs are upgraded in many cases, Respective version could be communicated and be tested with testing tool.
A kind of automated testing method based on IMS equipment, please refers to shown in Fig. 7, and in Fig. 7, equipment refers both to be measured set It is standby, comprising the following steps:
Step S1000: it establishes and communicates with testing tool side;The communication steps of establishing include: to receive testing tool side hair The L 2 broadcast packet sent, and to testing tool side send Devices to test side temporary ip address and MAC Address;
Step S2000: test data is carried out with testing tool side and is interacted;Each Devices to test receives corresponding thereto respectively Test request data handle test request data and return to test result data to testing tool side;
Step S3000: each Devices to test is based on its test mode and issues signal prompt.
Specifically, its test mode passes through comprising to be tested, test, tests not through three kinds of states.IMS equipment is reported to The sequence of testing tool be it is random, since tester may test more Devices to test simultaneously, in test process In, the Devices to test of a few either different conditions can very easily be positioned by needing a kind of mode.For tester For, intuitive way is Devices to test bright light the most.In entire test process, a certain group of lamp of IMS equipment (concrete condition view Depending on Devices to test type, but the quantity for participating in the lamp that state determines can be more than three) table can be carried out according to following methods Show different conditions:
1) this group of lamp of Devices to test to be tested goes out entirely;
2) this group of lamp period light on and off of Devices to test passed through are tested;
3) unacceptable this group of lamp all light of Devices to test is tested;
4) group etc. is immediately glittering when selecting the Devices to test.
Manner described above can be fine and easy picks specified Devices to test for tester.
In concrete application, the information that the test interface of testing tool is shown be can refer to shown in Fig. 6, including equipment viewing area, Test result viewing area and test result Statistical Area, equipment viewing area show each supplemental characteristic of Devices to test, and test result is aobvious Show that area shows test result data, test result only includes two states: success, failure.In the case where failure, test result number It is checked according to failure information is accompanied with including description for tester.
A kind of computer storage medium is stored thereon with computer program, when the computer program is executed by processor, It is able to achieve above-mentioned method.If method of the invention is realized in the form of SFU software functional unit and sells as independent product Or it in use, can store in the computer storage medium.Based on this understanding, the present invention realizes above-described embodiment method In all or part of the process, relevant hardware can also be instructed to complete by computer program, the computer journey Sequence can be stored in a computer storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each method The step of embodiment.Wherein, the computer program includes computer program code, and the computer program code can be source Code form, object identification code form, executable file or certain intermediate forms etc..The computer storage medium may include: Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, meter of the computer program code can be carried Calculation machine memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer storage medium The content for including can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as in certain departments Method administrative area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer storage medium.
It will be apparent to those skilled in the art that can make various other according to the above description of the technical scheme and ideas Corresponding change and deformation, and all these changes and deformation all should belong to the protection scope of the claims in the present invention Within.

Claims (10)

1. a kind of automated testing method based on IMS equipment, which comprises the following steps:
It establishes and communicates with Devices to test side;The communication steps of establishing include: to send L 2 broadcast packet to Devices to test side, are received The temporary ip address and MAC Address that each Devices to test of Devices to test side is sent;
Test data is carried out with Devices to test side to interact;Send test corresponding with each Devices to test respectively to each Devices to test It is required that data, receive the test result data that each Devices to test returns;The test request data are that device under test carries out function Can test order data, the test result data be Devices to test be based on test request data carry out parsing and it is postrun Test result data.
2. the automated testing method according to claim 1 based on IMS equipment, which is characterized in that the temporary IP Location carries out random only with low 24;Described low 24 carry out random step and include:
3 arbitrary numbers positioned at 0-255 are respectively adopted as low 24 three interval numbers of temporary ip address;The arbitrary number by with Lower step obtains: generating random number by srand function, and the random number of generation is carried out modular arithmetic to 256, obtain 0-255 In arbitrary number.
3. the automated testing method according to claim 1 based on IMS equipment, which is characterized in that the L 2 broadcast Packet setting is as follows: the target MAC (Media Access Control) address of L 2 broadcast packet is set as broadcast address, and protocol type is fixed as 0x9955.
4. the automated testing method according to claim 1 based on IMS equipment, which is characterized in that further include following step It is rapid:
After communicating with the foundation of Devices to test side, its unique virtual sequence number is set for each Devices to test in Devices to test side.
5. the automated testing method according to claim 4 based on IMS equipment, which is characterized in that the virtual sequence It number include the MAC Address of PC machine where testing tool, current testing time and from rising in value.
6. the automated testing method according to claim 1 based on IMS equipment, which is characterized in that testing tool side with The test request data and test result data of interaction are all made of the telescopic TCP packet of length, the TCP between Devices to test side Packet includes: origin identification, total length and an at least order data.
7. the automated testing method according to claim 1 based on IMS equipment, which is characterized in that according to Devices to test Type and test request formulate test template data for test request data.
8. the automated testing method according to any one of claims 1 to 7 based on IMS equipment, which is characterized in that also wrap It includes following steps: persistence processing is carried out to the Various types of data generated in test process by persistence tool.
9. a kind of automated testing method based on IMS equipment, which comprises the following steps:
It establishes and communicates with testing tool side;The communication steps of establishing include: the L 2 broadcast packet for receiving testing tool side and sending, And the temporary ip address and MAC Address of each Devices to test in Devices to test side are sent to testing tool side;
Test data is carried out with testing tool side to interact;Each Devices to test receives test request data corresponding thereto respectively, It handles test request data and returns to test result data to testing tool side;
Each Devices to test is based on its test mode and issues signal prompt.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is in quilt When processor executes, the automated testing method as described in any one of claim 1 to 9 based on IMS equipment is realized.
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 true CN110149241A (en) 2019-08-20
CN110149241B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677317A (en) * 2019-09-17 2020-01-10 京信通信系统(中国)有限公司 Test method, test device, test equipment and storage medium
CN111367746A (en) * 2020-03-16 2020-07-03 纳瓦电子(上海)有限公司 Test method of wireless complete machine
CN111537862A (en) * 2020-04-21 2020-08-14 青岛矽昌通信技术有限公司 PCBA test method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211695A1 (en) * 2004-09-07 2007-09-13 Youzhu Shi System and method for processing packet domain signal
CN101227744A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 System and method for implementing IMS network field multipartite voice business
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
CN102118283A (en) * 2011-03-30 2011-07-06 大唐移动通信设备有限公司 Method and device for testing communication equipment
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
CN105472083A (en) * 2015-12-08 2016-04-06 北京奇虎科技有限公司 Testing method and system for wireless terminals
CN106534289A (en) * 2016-11-03 2017-03-22 京信通信技术(广州)有限公司 Automatic testing method, device and system
CN107454045A (en) * 2016-06-01 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and system of the certification of user's IMS registration

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211695A1 (en) * 2004-09-07 2007-09-13 Youzhu Shi System and method for processing packet domain signal
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
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
CN102118283A (en) * 2011-03-30 2011-07-06 大唐移动通信设备有限公司 Method and device for testing communication equipment
CN103684813A (en) * 2012-09-03 2014-03-26 中兴通讯股份有限公司 ENUM-DNS disaster recovery method and system used in IMS network
CN105472083A (en) * 2015-12-08 2016-04-06 北京奇虎科技有限公司 Testing method and system for wireless terminals
CN107454045A (en) * 2016-06-01 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and system of the certification of user's IMS registration
CN106534289A (en) * 2016-11-03 2017-03-22 京信通信技术(广州)有限公司 Automatic testing method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M. VIGNESH KARTHIK: "Building an IMS Client test bed with open source tools", 《2007 INTERNATIONAL CONFERENCE ON IP MULTIMEDIA SUBSYSTEM ARCHITECTURE AND APPLICATIONS》 *
陈慧敏: "IMS网络安全威胁及测试方法研究", 《现代电信科技》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677317A (en) * 2019-09-17 2020-01-10 京信通信系统(中国)有限公司 Test method, test device, test equipment and storage medium
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
CN111537862A (en) * 2020-04-21 2020-08-14 青岛矽昌通信技术有限公司 PCBA test method and system

Also Published As

Publication number Publication date
CN110149241B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN104065528B (en) For analyzing and examining functional method and apparatus of multiple network equipments
CN103365770B (en) Mobile terminal software test macro and method for testing software
CN110149241A (en) A kind of automated testing method and storage medium based on IMS equipment
CN105279090A (en) Test script generating method and test script generating device applied in financial field
CN106155906B (en) A kind of bank&#39;s host close beta system and method
CN105404519A (en) Version control method, code testing method and system
CN107329888A (en) Intelligent contract command code coverage rate computational methods and system
CN108345532A (en) A kind of automatic test cases generation method and device
CN107608902A (en) Routine interface method of testing and device
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN104007957A (en) Graphical user interface editor that displays live data during editing
CN106549810A (en) Cloud service platform redaction issues front method of testing, device and system
CN106603259B (en) The configuration data method of calibration and device of network element, network management device
CN103530209B (en) A kind of code keypad automated testing method
CN105117345A (en) Interface testing method and device for application program
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN108876283A (en) A kind of automatic auditing system and method
CN101888318A (en) System and method for testing performance index of communication system
CN111309624B (en) Test method, test device, test equipment and storage medium
CN106557419A (en) The method of testing and device of program
CN106933712A (en) Networking remote test system and method based on B/S frameworks
CN107943901A (en) Automation of transformation substations information point table management method
CN111966665A (en) Data migration test method and device
CN107977201A (en) A kind of comprehensively monitoring HMI automatic generation methods
CN103457957B (en) A kind of network penetration test macro and method with adaptation function

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