CN1753542A - Testing equipment of short message interface - Google Patents
Testing equipment of short message interface Download PDFInfo
- Publication number
- CN1753542A CN1753542A CN 200510116913 CN200510116913A CN1753542A CN 1753542 A CN1753542 A CN 1753542A CN 200510116913 CN200510116913 CN 200510116913 CN 200510116913 A CN200510116913 A CN 200510116913A CN 1753542 A CN1753542 A CN 1753542A
- 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.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
This invention relates to a test device for short message interfaces including: a parameter input module connected with a data input and output device, a parameter storage module connected with a parameter input module, a sample generating module connected with the parameter storage module, a sample storage module connected with the sample generating module, an information T-R module connected with the data input-output device and the sample storage module, a service process unit connected with the sample generating module and the information T-R module, a result output module connected with the data input and output device and the service process unit, which realizes the automatic test of SP short message server and mobile network interfaces, SP can test the developed interface programs, the test device of which has automatic analysis functions and generates test reports and SP can modify the interface program codes based on the prompt to the error to increase the test efficiency.
Description
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 generation 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.
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.
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 61, 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 generates submodule and can be subdivided into more next stage submodule again.Be called primary sample generation submodule if each sample is generated 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 kind of 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 generation 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 test parameter is sent to the module of selection; Described first sample generates submodule and second sample generation submodule 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 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.
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 true CN1753542A (en) | 2006-03-29 |
CN100389627C 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026257A (en) * | 2009-09-18 | 2011-04-20 | 鼎桥通信技术有限公司 | Automatic test and analysis method for communication protocols |
CN102378130A (en) * | 2010-08-20 | 2012-03-14 | 中兴通讯股份有限公司 | Multimedia receiving-transmitting testing method and testing terminal |
CN108809998A (en) * | 2018-06-19 | 2018-11-13 | 北京易途客信息技术有限公司 | A kind of interface access method and device |
CN112969150A (en) * | 2021-01-29 | 2021-06-15 | 百果园技术(新加坡)有限公司 | Short message gateway experimental method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10229136A1 (en) * | 2002-06-28 | 2004-01-29 | Deutsche Telekom Ag | Methods and devices for testing SMS functionalities of fixed network telephones and for testing SMSC functionalities for the fixed network |
WO2004010593A2 (en) * | 2002-07-19 | 2004-01-29 | M-Qube, Inc. | Integrated interactive messaging system and method |
CN100407836C (en) * | 2003-05-26 | 2008-07-30 | 华为技术有限公司 | Method and system for testing short message central function |
CN1330211C (en) * | 2003-07-17 | 2007-08-01 | 中兴通讯股份有限公司 | A short message sending-receiving method for simulative mobile terminal and simulative sending-receiving method |
-
2005
- 2005-10-25 CN CNB2005101169130A patent/CN100389627C/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026257A (en) * | 2009-09-18 | 2011-04-20 | 鼎桥通信技术有限公司 | Automatic test and analysis method for communication protocols |
CN102026257B (en) * | 2009-09-18 | 2013-08-14 | 鼎桥通信技术有限公司 | Automatic test and analysis method for communication protocols |
CN102378130A (en) * | 2010-08-20 | 2012-03-14 | 中兴通讯股份有限公司 | Multimedia receiving-transmitting testing method and testing terminal |
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 |
CN112969150A (en) * | 2021-01-29 | 2021-06-15 | 百果园技术(新加坡)有限公司 | Short message gateway experimental method and device |
Also Published As
Publication number | Publication date |
---|---|
CN100389627C (en) | 2008-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7617174B2 (en) | Method and system for automatic service composition | |
CN101425938B (en) | Method and apparatus for network apparatus test | |
CN1777127A (en) | Protocol conformance measuring device and method | |
US20160277357A1 (en) | Firewall testing | |
CN1386355A (en) | Method of surveilling intennet communication | |
CN1852178A (en) | Protocol testing apparatus and method thereof | |
CN110515827A (en) | Automated testing method, device, computer equipment and storage medium | |
CN111226210B (en) | Search engine optimization technique | |
CN1753542A (en) | Testing equipment of short message interface | |
CN1577277A (en) | Managing program applications | |
CN113901083A (en) | Heterogeneous data source operation resource analysis positioning method and equipment based on multiple analyzers | |
CN103581041A (en) | Method for setting MTU value and electronic device | |
US20080263572A1 (en) | Fuzzing system and method of distributed computing environment (dce) remote procedure call (rpc) | |
CN104079682B (en) | A kind of address conversion method and device based on domain name system DNS | |
CN106649110A (en) | Software test method and system | |
CN112532482B (en) | Shunting equipment testing method and device | |
CN1921489A (en) | Secure communication equipment for processing send data packets | |
US20060190928A1 (en) | Device and method for managing communication equipment | |
CN106506268B (en) | Server access method and system | |
CN101217413A (en) | A centralized debugging system and centralized debugging method of extensible unit in the extensible system | |
CN114721969A (en) | Method and device for separating interface automation test data and test codes | |
CN111639079A (en) | Office data checking method and device for content charging service | |
CN1282917A (en) | Software simulation test method | |
CN102083118A (en) | Large-telephone-traffic test device, system and method | |
CN114221808B (en) | Security policy deployment method and device, computer equipment and readable storage medium |
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 |