CN100389627C - Testing equipment of short message interface - Google Patents

Testing equipment of short message interface Download PDF

Info

Publication number
CN100389627C
CN100389627C CNB2005101169130A CN200510116913A CN100389627C CN 100389627 C CN100389627 C CN 100389627C CN B2005101169130 A CNB2005101169130 A CN B2005101169130A CN 200510116913 A CN200510116913 A CN 200510116913A CN 100389627 C CN100389627 C CN 100389627C
Authority
CN
China
Prior art keywords
module
test
sample
short message
parameter
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.)
Expired - Fee Related
Application number
CNB2005101169130A
Other languages
Chinese (zh)
Other versions
CN1753542A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CNB2005101169130A priority Critical patent/CN100389627C/en
Publication of CN1753542A publication Critical patent/CN1753542A/en
Application granted granted Critical
Publication of CN100389627C publication Critical patent/CN100389627C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a testing device of a short message interface, which comprises a parameter input module which is connected with data input and output devices, a parameter storage module which is connected with the parameter input module, a sample generating module which is connected with the parameter storage module, a sample storage module which is connected with the sample generating module, a message receiving and sending module which is connected with the data input and output devices and the sample storage module, a service processing unit which is connected with the sample generating module and the message receiving and sending module, and a result output module which is connected with the data input and output devices and the service processing unit. The present invention makes automatic test of an SP short message server and interfaces of a mobile network realized, testing devices have good expandability, and the SP can carry out the test for developing interface programs according to requirements. The testing device has automatic analyse function and can make a testing report generated, and therefore, the SP can amend program codes of the interfaces according to the wrong intimation of the testing report to greatly improve the testing efficiency.

Description

Testing equipment of short message interface
Technical field
The present invention relates to a kind of short message interface testing equipment, especially a kind of short message server and the interface of mobile communications network equipment of carrying out automatic test to the service provider.
Background technology
At present, all service providers (Service Provider is called for short SP) are to provide various short message services by mobile communications network for the mobile subscriber.Owing to exist some differences between the employed short message interface program of each different SP, therefore, in the interface routine development process of short message service, relate to when communicating, often because produce code error not in full conformity with interface protocol with different Short Message Service Gateway.Therefore, before the short message server of SP is connected to mobile communications network, need at first the interface of the Short Message Service Gateway in short message server and the mobile communications network to be tested, when having only short message server interface as SP to meet the SMS gateway protocol to require, just can be connected on the Short Message Service Gateway of real network, for the user provides short message service.
In the prior art, the work that the interface of short message server and Short Message Service Gateway is tested is all by manually finishing.Test process is connected to Short Message Service Gateway in the simulated environment for the SP short message server that at first will need to test.Then, the tester is by the manual note that sends, and the interface of short message server and Short Message Service Gateway carried out actual transmission test, if mistake, the tester can only analyze this mistake according to the test experience of self.
Existing manual testing's mode exists test speed and the low defective of testing efficiency, and is not easy to SP in the interface code development process, according to needs separately, the code of having developed is carried out error correction and debugging.In addition, the test process of short message server needs SP to cooperate with Short Message Service Gateway provider, therefore is subjected to time-related restriction easily.Along with the continuous development of SP, various short message services will get more and more, and this makes that test job is more and more heavier, cause the manual testing can not satisfy the substantive test requirements of one's work.
Summary of the invention
The objective of the invention is at the existing in prior technology defective, a kind of testing equipment of short message interface is provided, this equipment can be tested the interface of short message server and mobile communications network automatically, and can analyze automatically test result, and the report test result.
To achieve these goals, the invention provides a kind of testing equipment of short message interface, comprising:
Data input-output equipment;
Parameter input module is connected with described data input-output equipment, is used for input test parameter;
Parameter memory module is connected with described parameter input module, is used to store described test parameter;
The sample generation module is connected with described parameter memory module, is used for generating test sample book according to described test parameter;
The sample storage module is connected with described sample generation module, is used to store described test sample book;
The message sink sending module, be connected with described data input-output equipment and sample storage module, be used for sending test post and being used to receive the message that described service provider's short message server sends to service provider's short message server according to described test sample book;
Service Processing Unit is connected with described sample storage module and message sink sending module, is used for analyzing the message that described service provider's short message server sends according to described test sample book, and generates test report; And
Output module is as a result stated data input-output equipment and Service Processing Unit is connected with described, is used to export described test report.
Technical scheme of the present invention has realized the automatic test to SP short message server and short message network interface; This testing equipment is with good expansibility; SP can test the interface of exploitation at any time according to the needs of oneself, and can need select the project of test by input test parameter; This equipment can be analyzed the information that the SP short message server sends automatically, and generates test report, SP can be made amendment to code according to test report, thereby improved testing efficiency greatly.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the structure chart of testing equipment of short message interface of the present invention.
Fig. 2 is the structure chart of the Service Processing Unit of testing equipment of short message interface of the present invention.
Fig. 3 is the structure chart of the sample generation module of testing equipment of short message interface of the present invention.
Embodiment
Testing equipment of short message interface provided by the invention is used for the interface of automatic test SP short message server and mobile communications network.
Referring to Fig. 1, the testing equipment of short message interface that the present invention proposes comprises: data input-output equipment, parameter input module 1, parameter memory module 2, sample generation module 3, sample storage module 4, message sink sending module 5, Service Processing Unit 6 and output module 7 as a result.
Parameter input module 1 is connected with data input-output equipment, is used for input test parameter.Test parameter comprises: SP short message server address, configuration service code, service code.Wherein, configuration service code and service code are disposed by mobile network management person, other parameters are by SP tester (hereinafter to be referred as the tester) input, because the same network equipment may be supported various protocols, therefore also should import protocol type in the fan-in network device type.Patterned interface is adopted in the input of parameter, and easy to operate.
Parameter memory module 2 is connected with parameter input module 1, is used to store test parameter; After the tester passed through parameter input module 1 input test parameter, parameter input module 1 sent to parameter memory module 2 with test parameter, and parameter memory module 2 receives also stores this test parameter.
Sample generation module 3 is connected with parameter memory module 2, is used for generating test sample book according to test parameter; After test sample book generated, sample generation module 3 sent to sample storage module 4 with test sample book.
Sample storage module 4 is connected with sample generation module 3 and message sink sending module 5, is used to store test sample book, and provides test sample book for message sink sending module 5.
Message sink sending module 5 is connected with data input-output equipment and sample storage module 4, is used for sending test post and being used to receive the message that equipment under test sends to equipment under test according to test sample book.
Service Processing Unit 6, with sample storage module 4, message sink sending module 5 and as a result output module 7 be connected, be used for analyzing the message that equipment under test sends according to test sample book, generate test report and test report sent to output module 7 as a result;
Output module 7 as a result, are connected with data input-output equipment and Service Processing Unit 6, are used to export test report, make SP revise error code by test report.When the tester signed in to testing equipment by the Internet or local area network (LAN), output module 7 sent to the tester by data input-output equipment, the Internet or local area network (LAN) with test report as a result.
Test has this locality and network (web) dual mode, and the tester can also can operate by internet or local area network (LAN) login testing equipment directly at the enterprising line operate of testing equipment.When adopting network mode to test, be provided with by the keeper backstage, equipment has the control that SP user is inserted, and control comprises the control to IP address and user account, have only specific I P address and user could login this equipment of use, this controlled function is finished by parameter input module.
Test is divided into parameter input and testing of equipment two parts.When the tester tests the SP short message server, at first by data input-output equipment, parameter input module 1 input SP short message server address, afterwards, parameter input module 1 sends to parameter memory module 2 with the test of tester's input automatically, and parameter memory module 2 is stored after receiving test parameter.
After parameter was provided with, the tester can trigger the test to the SP short message server by the feeler switch on the click parameter inputting interface.Before the tester initiates test, also to open the port that the SP short message server is communicated by letter with testing equipment.
The testing of equipment process is divided into sample generative process and measuring executing process two parts again.Behind tester's hit testing key, at first enter the sample generative process, parameter memory module 2 sends to test parameter sample generation module 3 automatically, and sample generation module 3 generates test sample book according to test parameter, and test sample book is sent to sample storage module 4.Test sample book comprises the reference format of testing all required message, promptly comprises the intelligence sample that intelligence sample that the mobile network sends to the SP short message server and SP short message server return to network.After test sample book generated, sample generation module 3 sent to sample storage module 4 with test sample book and stores, and afterwards, enters measuring executing process.
Test to the SP short message server mainly contains up test and descending test two aspects, and up test simulation network side is to the process of SP short message server transmission message, and descending test simulation SP short message server sends the process of message to network side.
Descending test is initiated by the SP short message server, and the SP short message server sends message to testing equipment, after the message sink sending module 5 of testing equipment receives message, sends it to Service Processing Unit 6; After Service Processing Unit 6 receives message, this message is unpacked and the field parsing, and compare, generate test report according to comparative result then from the corresponding intelligence sample of sample storage module 4 extractions.
When carrying out up test, information receiving and transmitting module 5 is extracted from sample storage module 4 and is sent intelligence sample, sends to the SP short message server by the Internet, and waits for the return messages of SP short message server.After SP short message server return messages, message sink sending module 5 receives the message of returning, and sends to Service Processing Unit 6.The message that 6 pairs of SP short message servers of Service Processing Unit return is unpacked and field is resolved, and from the sample storage module, extract the return messages sample, with the field analysis result with return sample and compare, and compared result analyzes, and generates test report then.
When the tester tested on testing equipment, directly by output module 7 is to the output of data input-output equipment as a result, confession the tester checked test report.As tester during by the Internet or local area network (LAN) login testing equipment, test report sends to the tester by input module 7 as a result by data input-output equipment and the Internet or local area network (LAN).
The foregoing description has been realized the automatic test to SP short message server and short message network interface; Test is not subjected to the restriction of time, and SP can test the interface of exploitation at any time according to the needs of oneself; This equipment can be analyzed the information that the SP short message server sends automatically, and generates test report, SP can be made amendment to code according to the error message that test report is returned, thereby improved testing efficiency greatly.
As shown in Figure 2, the Service Processing Module 6 in the foregoing description can specifically comprise message read module 61, resolves comparison module 62 and results analyses module 63.Message read module 61 is connected with message sink sending module 5 and parsing comparison module 62, resolve comparison module 62 and be connected with message read module 61 and sample storage module 4, results analyses module 63 and parsing comparison module 62 and as a result output module 7 be connected.Message read module 61 receives the message that message sink sending module 5 sends, and message is unpacked, and the message after will unpacking then sends to resolves comparison module 62; The message of resolving after 62 pairs of comparison modules are unpacked is carried out the field parsing, and extracts the corresponding message samples from sample storage module 4, compares, and the result that will compare sends to results analyses module 63 then; Results analyses module 63 compared result are analyzed, and generate test report, and test report is sent to output module 7 as a result.
In the reality of SP short message server and mobile communications network is mutual, may communicate with multiple network equipment, each network equipment may adopt different communication protocol, and an equipment may be supported various protocols, for example, the SP short message server will communicate with Short Message Service Gateway, thereby realization is communicated by letter with mobile phone, meanwhile, mobile operator will manage the SP note, therefore the SP short message server also will communicate with Mobile Information Service Center (Mobile Information Service Center is called for short MISC); The SP short message server is followed CMPP2.0 or CMPP3.0 agreement with communicating by letter of Short Message Service Gateway, and the SP short message server is followed the MISC1.6 agreement with communicating by letter of MISC.Therefore, in test parameter, add test-types and protocol type, test-types is used to illustrate the SP short message server with which communicating by letter of the class network equipment to be tested, protocol type is used to illustrate concrete protocol type.
After adding above-mentioned test parameter, the tester can test according to the needs of oneself, for example, can be only to the test of SP short message server and Short Message Service Gateway communication interface, also can both carry out the test with the Short Message Service Gateway communication interface, also carry out test with the MISC communication interface.
As shown in Figure 3, when the test parameter of tester input comprises: when SP short message server address, test-types and protocol type, the sample generation module 3 in the foregoing description can comprise specifically that test selects module 31, first sample to generate submodule 32 and second sample generates submodule 33.Test selects module 31 to be connected with parameter memory module, and first sample generates submodule 32 and second sample generation submodule 33 all selects module 31 and sample storage module 4 to be connected with test.First sample generates submodule 32 and second sample generation submodule 33 can be according to SP short message server address, parameters such as protocol type, configuration service code and service code generate test sample book, for example, first sample generates submodule 32 and generates the test sample book that test SP short message server is communicated by letter with certain network equipment according to test parameter, and second sample generates submodule 33 and generates the test sample book that test SP short message server is communicated by letter with the another kind of network equipment according to test parameter.Can add more sample and generate submodule according to the test needs, for example, when needs are tested the communication interface of SP short message server and three kinds of network equipments, can add a sample again and generate submodule, be used to generate required test sample book.
In the sample generative process, test selects module 31 to select first sample to generate submodule 32 according to the test-types parameter and/or second sample generates submodule 33 work, and test parameter is sent to the module of selection; Selecteed sample generates submodule and generates test sample book according to test parameter, and test sample book is outputed to the sample storage module.
When the Short Message Service Gateway in SP short message server and the mobile communications network and MISC communicate by letter, it is that the Short Message Service Gateway test sample book generates submodule that first sample generation submodule can be set, be used to generate the test sample book that the SP short message server is communicated by letter with Short Message Service Gateway, second sample is set generates submodule, be used to generate the test sample book that the SP short message server is communicated by letter with MISC for the MISC test sample book generates submodule.The tester can be by the input test type parameter, select test and Short Message Service Gateway communication interface and/or with the communication interface of MISC.Test selects module 31 to select the Short Message Service Gateway test sample book to generate submodule according to the test-types parameter and/or the MISC test sample book generates submodule work, generates required test sample book, and exports to sample storage module 4.
This modular expansion that is beneficial to testing equipment that is configured with when the communication interface of needs tests and other type network equipment, only needs to add respective sample and generates submodule, and corresponding adjustment test parameter.
In addition, in mobile communications network, a kind of network equipment may comprise many concrete device types, when the SP short message server network equipment is communicated by letter, except following communication protocol, also to follow some specific rules, for example, in the mobile communications network, Short Message Service Gateway comes from different producers, and the Short Message Service Gateway of each producer is under the prerequisite of following CMPP2.0 or CMPP3.0, its application programming interfaces (Application Program Interface, be called for short API) can be different, when the SP short message server is connected to certain Short Message Service Gateway, under the prerequisite of following CMPP2.0 or CMPP3.0, also to meet the API definition of this Short Message Service Gateway.Therefore, in test parameter, can further add device category, be used for illustrating that the interface of test is the communication interface of which kind of particular type equipment of SP short message server and a kind of network equipment, correspondingly, when certain network equipment has a plurality of concrete kind time-likes, the sample that is used to generate the test sample book that the SP short message server communicates by letter with this network equipment generate submodule can be subdivided into more next stage submodule again, if each sample is generated submodule to be called primary sample and to generate submodule, described next stage submodule can be called secondary sample so and generate submodule.
Like this, if added a kind of equipment of newtype in certain network equipment of mobile communications network, the API of the API of this equipment and homogeneous networks equipment is different, so only need in the one-level submodule corresponding, to add corresponding secondary submodule, just can generate required test sample book with this kind network equipment.Thereby, the further refinement of sample generation submodule is helped the expansion of testing equipment.
When parameter is imported, also can add the selection of test item, for example, selecting to carry out up test still is descending test, and like this, the tester can carry out the test of corresponding contents according to the development progress of oneself.
Should be noted that at last: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; Although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the field should be appreciated that still and can make amendment or the part technical characterictic is equal to replacement the specific embodiment of the present invention; And not breaking away from the spirit of technical solution of the present invention, it all should be encompassed in the middle of the technical scheme scope that the present invention asks for protection.

Claims (8)

1. a testing equipment of short message interface comprises data input-output equipment, it is characterized in that also comprising:
Parameter input module is connected with described data input-output equipment, is used for input test parameter;
Parameter memory module is connected with described parameter input module, is used to store described test parameter;
The sample generation module is connected with described parameter memory module, is used for generating test sample book according to described test parameter;
The sample storage module is connected with described sample generation module, is used to store described test sample book;
The message sink sending module, be connected with described data input-output equipment and sample storage module, be used for sending test post to tested service provider's short message server, be used to receive the message that described service provider's short message server sends simultaneously according to described test sample book;
Service Processing Unit is connected with described sample storage module and message sink sending module, is used for analyzing the message that described service provider's short message server sends according to described test sample book, and generates test report; And
Output module is connected with described data input-output equipment and Service Processing Unit as a result, is used to export described test report.
2. testing equipment according to claim 1, it is characterized in that: described Service Processing Unit comprises: with the message read module that described message sink sending module is connected, be used for reading message that described service provider's short message server sends and the message that described service provider's short message server sends being unpacked from described message sink sending module; The parsing comparison module that is connected with described sample storage module and message read module, be used for that the message that described service provider's short message server sends is carried out field and resolve, and the corresponding test sample book of storing in analysis result and the described sample storage module is compared; With the results analyses module that described parsing comparison module is connected, be used to analyze the result of described comparison, and generate test report.
3. testing equipment according to claim 1 and 2, it is characterized in that: described sample generation module comprises: module is selected in the test that is connected with described parameter memory module, second sample generation submodule that first sample that is connected with described test selection module and sample storage module generates submodule and selects module and sample storage module to be connected with described test; Test selects module to be used for selecting described first sample to generate submodule and/or the work of second sample generation submodule according to described test parameter, and sends test parameter to selecteed sample generation submodule; Selecteed sample generates submodule and is used for generating test sample book and test sample book being outputed to described sample storage module according to test parameter.
4. testing equipment according to claim 3 is characterized in that: described first sample generates submodule and generates submodule for the Short Message Service Gateway protocol sample.
5. testing equipment according to claim 3 is characterized in that: described second sample generates submodule and generates submodule for the Mobile Information Service Center protocol sample.
6. testing equipment according to claim 3 is characterized in that: described first sample generates submodule and/or second sample generation submodule comprises a plurality of secondary submodules.
7. testing equipment according to claim 1, it is characterized in that: described data input-output equipment is connected with internet or local area network (LAN), described parameter input module is connected with computer by described data input-output equipment and described internet or local area network (LAN), and described computer is used for by the Internet or local area network (LAN) to described parameter input module input test parameter.
8. testing equipment according to claim 1, it is characterized in that: described data input-output equipment is connected with internet or local area network (LAN), described output module as a result is connected with computer by described data input-output equipment and described internet or local area network (LAN), and described computer is used to receive the test report that described output module as a result sends.
CNB2005101169130A 2005-10-25 2005-10-25 Testing equipment of short message interface Expired - Fee Related CN100389627C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101169130A CN100389627C (en) 2005-10-25 2005-10-25 Testing equipment of short message interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101169130A CN100389627C (en) 2005-10-25 2005-10-25 Testing equipment of short message interface

Publications (2)

Publication Number Publication Date
CN1753542A CN1753542A (en) 2006-03-29
CN100389627C true CN100389627C (en) 2008-05-21

Family

ID=36680183

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101169130A Expired - Fee Related CN100389627C (en) 2005-10-25 2005-10-25 Testing equipment of short message interface

Country Status (1)

Country Link
CN (1) CN100389627C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026257B (en) * 2009-09-18 2013-08-14 鼎桥通信技术有限公司 Automatic test and analysis method for communication protocols
CN102378130B (en) * 2010-08-20 2016-01-20 中兴通讯股份有限公司 Multimedia message transmitting-receiving method of testing and test terminal
CN108809998A (en) * 2018-06-19 2018-11-13 北京易途客信息技术有限公司 A kind of interface access method and device
CN112969150B (en) * 2021-01-29 2022-05-31 百果园技术(新加坡)有限公司 Short message gateway experimental method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004004218A1 (en) * 2002-06-28 2004-01-08 Deutsche Telekom Ag Method and devices for testing sms functionality of fixed network telephones and for testing smsc functionality for the fixed network
CN1553738A (en) * 2003-05-26 2004-12-08 华为技术有限公司 Method and system for testing short message central function
CN1571571A (en) * 2003-07-17 2005-01-26 中兴通讯股份有限公司 A short message sending-receiving method for simulative mobile terminal and simulative sending-receiving method
US20050209861A1 (en) * 2002-07-19 2005-09-22 Gerald Hewes Integrated interactive messaging system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004004218A1 (en) * 2002-06-28 2004-01-08 Deutsche Telekom Ag Method and devices for testing sms functionality of fixed network telephones and for testing smsc functionality for the fixed network
US20050209861A1 (en) * 2002-07-19 2005-09-22 Gerald Hewes Integrated interactive messaging system and method
CN1553738A (en) * 2003-05-26 2004-12-08 华为技术有限公司 Method and system for testing short message central function
CN1571571A (en) * 2003-07-17 2005-01-26 中兴通讯股份有限公司 A short message sending-receiving method for simulative mobile terminal and simulative sending-receiving method

Also Published As

Publication number Publication date
CN1753542A (en) 2006-03-29

Similar Documents

Publication Publication Date Title
US8141043B2 (en) Automated business process testing that spans multiple platforms or applications
Cacciari et al. Controllability and observability in distributed testing
US7617174B2 (en) Method and system for automatic service composition
CN106802859A (en) A kind of method and device of client software test
EP2782311A1 (en) Methods of testing a firewall, and apparatus therefor
CN109450743A (en) Platform of internet of things pressure testing system, method, apparatus and server
CN107291608B (en) Test script generation method, interface subscription/registration method and device
CN100389627C (en) Testing equipment of short message interface
CN109344075A (en) Configuration method, test method, configuration server and service node device
CN102098702A (en) Performance testing system, method and equipment
US7225117B1 (en) Method for generating a simulated network using a graphical user interface
CN111935767B (en) Network simulation system
CN116346660A (en) Data processing method, device, equipment and medium based on dependent replacement service
CN103457957B (en) A kind of network penetration test macro and method with adaptation function
CN115833964A (en) Performance test method and performance test system of dual-mode communication module
CN106301833A (en) A kind of transformer station schedule information method of testing
CN112532482B (en) Shunting equipment testing method and device
CN106789225A (en) A kind of method and device of interface operation port mapping configuration
Bekmann et al. SPEAR: Security protocol engineering and analysis resources
CN103678054B (en) Test method and device used for BACnet equipment
CN115242895B (en) DPDK-based local access method and device
Rozi et al. Implementation OSPFv3 For Internet Protocol Verses 6 (IPv6) Based On Juniper Routers Use Emulator Virtual Engine–Next Generation (Eve-NG)
Chen et al. A scalable framework of testbed for sdn simulation with multiple controllers
Mariño et al. The PROFIBUS formal specification: a comparison between two FDTs
CN112615745B (en) Method and system for accessing Internet of things card platform to upstream through parameter configuration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080521

Termination date: 20201025

CF01 Termination of patent right due to non-payment of annual fee