CN103856911B - A method for testing push message in a mobile terminal, the mobile terminal apparatus and - Google Patents

A method for testing push message in a mobile terminal, the mobile terminal apparatus and Download PDF

Info

Publication number
CN103856911B
CN103856911B CN 201210500025 CN201210500025A CN103856911B CN 103856911 B CN103856911 B CN 103856911B CN 201210500025 CN201210500025 CN 201210500025 CN 201210500025 A CN201210500025 A CN 201210500025A CN 103856911 B CN103856911 B CN 103856911B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
mobile terminal
message
push
actual
service
Prior art date
Application number
CN 201210500025
Other languages
Chinese (zh)
Other versions
CN103856911A (en )
Inventor
段启智
Original Assignee
北京百度网讯科技有限公司
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
Grant date

Links

Abstract

本发明提出一种在移动终端中进行推送消息测试的方法,装置和移动终端,其中所述方法包括以下步骤:移动终端接收多种测试样本;移动终端根据多种测试样本生成多种类型的推送消息;移动终端对多种类型的推送消息按照预设顺序进行排序;移动终端对排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及移动终端将期望解析结果与实际解析结果进行比对以生成多种类型的推送消息的测试结果。 The present invention provides a method, apparatus and a mobile terminal for testing push message in a mobile terminal, wherein the method comprises the steps of: the mobile terminal receiving a plurality of test sample; generating a plurality of types of a mobile terminal according to various push test sample message; push messages to the mobile terminals of various types are sorted according to a preset order; push messages to the mobile terminal after sorting a plurality of types of analyzing the actual analysis result to generate; and mobile terminal analysis results desired and actual analysis results of the aligned to generate a plurality of types of test results push message. 根据本发明实施例的方法,移动终端根据不同类型的测试样本自动生成不同类型的推送消息,在脱离运营商网络的情况下,在移动终端的本地独立验证推送消息解析的正确性,测试效率高,减少人力成本。 The method according to embodiments of the present invention, the mobile terminal automatically generate different types of push messages according to different types of test samples, in the case from the carrier network, the local mobile terminal independent verification of the correctness push message parsing, test efficiency and reduce labor costs.

Description

在移动终端中进行推送消息测试的方法,装置和移动终端 A method for testing push message in a mobile terminal, the mobile terminal apparatus and

技术领域 FIELD

[0001] 本发明涉及移动设备制造技术领域,尤其涉及一种在移动终端中进行推送消息测试的方法,装置和移动终端。 [0001] The present invention relates to a method of manufacturing technical field of mobile devices and more particularly relates to a push message in a mobile terminal of the test apparatus and the mobile terminal.

背景技术 Background technique

[0002] 短消息中心向移动终端发送的推送消息,可以包括三种类型:服务指示消息、服务下载消息和缓存选择消息等。 [0002] The push message center transmits the short message to the mobile terminal, it may include three types: service indicating message, the message download and cache service selection messages. 移动终端在收到推送消息后,需要根据协议针对不同类型的推送消息进行解析,并根据解析结果作出相应的响应。 The mobile terminal after receiving the push message, the need for analyzing the different types of push message according to a protocol, and to respond accordingly based on the analysis results. 但是,移动终端由于自身性能的限制可能不能正确解析,此时需要对移动终端是否能够正确解析推送消息进行测试。 However, due to limitations of the mobile terminal itself may not be correctly parse performance, then the mobile terminal needs to resolve whether the push message can be correctly tested.

[0003]目前,常用的测试方法主要有以下两种:一种是通过运营商或第三方提供的测试服务器,测试者手动发送一条或者多条推送消息到测试服务器,另一种是通过移动终端针对推送消息的调试和日志信息,判断解析推送消息的正确性。 [0003] At present, the commonly used test methods are the following two kinds: one is the test server provided by the operator or third party, or to send a test manually push the plurality of test messages to the server, and the other is a mobile terminal by for debugging and logging information push messages, parsing the correctness of the judgment push message.

[0004]目前存在的问题是,需要测试者进行较多的手动操作,测试效率低。 [0004] current problem is the need to conduct more tests were manually operated, low test efficiency.

发明内容 SUMMARY

[0005] 本发明旨在至少解决上述技术问题之一。 [0005] The present invention aims to solve at least one of the technical problems described above.

[0006] 为此,本发明的第一个目的在于提出一种在移动终端中进行推送消息测试的方法,该方法在移动终端的本地独立验证推送消息解析的正确性,测试效率高,减少人力成本。 [0006] For this purpose, a first object of the present invention is to provide a method for testing a push message in a mobile terminal, the push message authentication method is independent of the correctness of the analytical local mobile terminal, test efficiency, reduce manpower cost.

[0007] 本发明的第二个目的在于提出一种在移动终端中进行推送消息测试的装置。 [0007] A second object of the present invention is to provide a device for testing push message in a mobile terminal.

[0008] 本发明的第三个目的在于提出一种移动终端。 [0008] A third object of the present invention is to provide a mobile terminal.

[0009] 为了实现上述目的,根据本发明第一方面的实施例的在移动终端中进行推送消息测试的方法包括以下步骤:a、移动终端接收多种测试样本,其中,每种测试样本对应有一个期望解析结果;b、所述移动终端根据所述多种测试样本生成多种类型的推送消息;C、所述移动终端对所述多种类型的推送消息按照预设顺序进行排序;d、所述移动终端对所述排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及e、所述移动终端将所述期望解析结果与所述实际解析结果进行比对以生成所述多种类型的推送消息的测试结果。 [0009] To achieve the above object, according to the method of testing a push message in a mobile terminal according to a first aspect of embodiments of the present invention comprises the following steps: a, the mobile terminal receives a plurality of test samples, wherein each test sample has a corresponding a desired analysis result; b, a plurality of types of mobile terminal generates a push message according to the plurality of test samples; C, the mobile terminal of the plurality of types of push messages sorted in a predetermined order; d, push messages to the mobile terminal after the plurality of types of sorting parsing to produce actual analysis result; and e, the mobile terminal the desired results with the actual analysis result of the analyzing are aligned to generate the the test results of a plurality of types of push message.

[0010] 根据本发明实施例的在移动终端中进行推送消息测试的方法,移动终端根据不同类型的测试样本自动生成不同类型的推送消息,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证推送消息解析的正确性,以及验证移动终端中的推送消息处理模块是否正常工作,测试效率高,节约人力成本。 [0010] According to an embodiment of the present invention is a method of push message tested in a mobile terminal, the mobile terminal automatically generate different types of push messages according to different types of test samples can be automatically moving in the case from the carrier network Terminating local independent verification push message parsing accuracy, and authenticate the mobile terminal in the push message processing module is working properly, test efficiency, save manpower cost.

[0011] 为了实现上述目的,根据本发明第二方面的实施例的在移动终端中进行推送消息测试的装置包括:第一接收模块,用于接收多种测试样本,其中,每种测试样本对应有一个期望解析结果;生成模块,用于根据所述多种测试样本生成多种类型的推送消息;排序模块,用于对所述多种类型的推送消息按照预设顺序进行排序;解析模块,用于对所述排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及比对模块,用于将所述期望解析结果与所述实际解析结果进行比对以生成所述多种类型的推送消息的测试结果。 [0011] To achieve the above object, in a mobile terminal according to an embodiment of the second aspect of the present invention, the test device of the push message comprises: a first receiving module, configured to receive a plurality of test sample, wherein the test sample corresponding to each a desired analysis result; generating module, for generating a push message according to a plurality of types of the plurality of test samples; a sorting module configured to push messages of said plurality of types of sorting according to a preset order; parsing module, means for parsing a plurality of types of push messages after the analysis result to produce actual sorting; and comparison means for analyzing the actual desired result and the result of the analysis performed to generate the plurality of ratio the test results push message type.

[0012] 根据本发明实施例的在移动终端中进行推送消息测试的装置,通过生成模块根据不同类型的测试样本自动生成不同类型的推送消息,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证推送消息解析的正确性,以及验证移动终端中的推送消息处理模块是否正常工作,测试效率高,节约人力成本。 [0012] means push message tested in a mobile terminal in an embodiment of the present invention to automatically generate different types of push messages according to different types of test samples by generating module, may be the case from the operator network, automatically in the mobile terminal local independent push message parsing correctness verification, and the verification of the mobile terminal in the push message processing module is working properly, test efficiency, save manpower cost.

[0013] 为了实现上述目的,根据本发明第三方面的实施例的移动终端包括本发明第二方面实施例所述的在移动终端中进行推送消息测试的装置。 [0013] To achieve the above object, embodiments of the second aspect of the embodiment of the present invention means a test push message in a mobile terminal in a mobile terminal according to an embodiment of the third aspect of the present invention comprises.

[0014] 根据本发明实施例的移动终端,通过在移动终端中进行推送消息测试的装置,可以根据不同类型的测试样本自动生成不同类型的推送消息,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证推送消息解析的正确性,以及验证移动终端中的推送消息处理模块是否正常工作,测试效率高,节约人力成本。 [0014] The mobile terminal according to embodiments of the present invention, by means push message tested in a mobile terminal can automatically generate different types of push messages according to different types of test samples may be the case from the operator network, automatically in the local mobile terminal authentication independently push message parsing accuracy, and authenticate the mobile terminal in the push message processing module is working properly, test efficiency, save manpower cost.

[0015] 本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。 [0015] Additional aspects and advantages of the invention will be set forth in part in the description which follows, from the following description in part be apparent from, or learned by practice of the present invention.

附图说明 BRIEF DESCRIPTION

[0016] 本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中, The above-described invention and / or additional aspects and advantages of the drawings from the following description of embodiments will become apparent and more readily appreciated [0016] present, wherein,

[0017]图1是根据本发明一个实施例的在移动终端中进行推送消息测试的方法的流程图; [0017] FIG. 1 is a flowchart of a method for testing push message in a mobile terminal according to one embodiment of the present invention;

[0018]图2是根据本发明一个具体实施例的在移动终端中进行推送消息测试的方法的流程图; [0018] FIG 2 is a flowchart of a method for testing push message in a mobile terminal according to one embodiment of the present invention;

[0019]图3是根据本发明另一个具体实施例的在移动终端中进行推送消息测试的方法的流程图; [0019] FIG. 3 is another embodiment according to the present invention the push message flowchart of a method of testing is performed in the mobile terminal;

[0020]图4是根据本发明一个实施例的在移动终端中进行推送消息测试的装置的结构示意图;以及 [0020] FIG. 4 is a block diagram of an apparatus for testing a push message in a mobile terminal according to one embodiment of the invention; and

[0021]图5是根据本发明另一个实施例的在移动终端中进行推送消息测试的装置的结构示意图。 [0021] FIG. 5 is a schematic diagram of the apparatus were tested push message in a mobile terminal according to another embodiment of the present invention.

具体实施方式 detailed description

[0022]下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 [0022] Example embodiments of the present invention is described in detail below, exemplary embodiments of the embodiment shown in the accompanying drawings, wherein same or similar reference numerals designate the same or similar elements or elements having the same or similar functions. 下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。 By following with reference to the embodiments described are exemplary only for explaining the present invention and should not be construed as limiting the present invention. 相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。 In contrast, embodiments of the present invention includes all variations that fall within the appended claims the spirit and terms, modifications and equivalents thereof.

[0023] 在本发明的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。 [0023] In the description of the present invention, it is to be understood that the terms "first," "second," and the like for illustrative purposes only, and not intended to indicate or imply relative importance. 在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。 In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the term "coupled", "connected" are to be broadly understood, for example, may be a fixed connection, the connection may be detachable or integrally connected; may be a mechanical connector, it may be electrically connected; may be directly connected, can also be connected indirectly through an intermediary. 对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。 Those of ordinary skill in the art, be appreciated that the specific circumstances of the specific meanings in the present invention. 此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。 Further, in the description of the present invention, unless otherwise specified, the meaning of "more" is two or more.

[0024] 流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。 [0024] In the flowchart in any process or method or otherwise described in this description may be understood as representing modules comprises one or more steps for implementing specific logical functions or processes executable instructions, fragment or portion, and the scope of the preferred embodiment of the present invention includes other implementations, which may be shown or discussed in order not press, comprising a substantially simultaneous manner or in reverse order, depending upon the functionality to perform the functions involved it should be understood that embodiments skilled in the art of the present invention.

[0025]下面参考附图描述根据本发明实施例的在移动终端中进行推送消息测试的方法,装置和移动终端。 [0025] The method described with reference to the following figures for the test push message in a mobile terminal in an embodiment of the present invention, apparatus and a mobile terminal.

[0026] —种在移动终端中进行推送消息测试的方法,包括以下步骤:a、移动终端接收多种测试样本,其中,每种测试样本对应有一个期望解析结果;b、移动终端根据多种测试样本生成多种类型的推送消息;C、移动终端对多种类型的推送消息按照预设顺序进行排序;d、移动终端对排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及e、移动终端将期望解析结果与实际解析结果进行比对以生成多种类型的推送消息的测试结果。 [0026] - Species tested for push message in a mobile terminal, comprising the steps of: a, the mobile terminal receives a plurality of test samples, wherein each test sample corresponding to a desired analysis result; B, the mobile terminal according to various generating a plurality of types of test specimen push message; C, the mobile terminal a plurality of types of push messages sorted in a predetermined order; d, push messages to the mobile terminal after sorting a plurality of types of analyzing the analysis result to generate the actual; and e, a desired analysis result of the mobile terminal with the actual analysis results of the comparison to generate a plurality of types of test results push message.

[0027]图1是根据本发明一个实施例的在移动终端中进行推送消息测试的方法的流程图。 [0027] FIG. 1 is a flowchart of a method for testing push message in a mobile terminal according to one embodiment of the present invention.

[0028] 如图1所示,在移动终端中进行推送消息测试的方法包括下述步骤。 Method [0028] As shown in FIG. 1, a test push message in a mobile terminal includes the following steps.

[0029] 步骤SlOl,移动终端接收多种测试样本,其中,每种测试样本对应有一个期望解析结果。 [0029] Step the SLOL, the mobile terminal receives a plurality of test samples, wherein each test sample corresponding to a desired analysis result.

[0030] 步骤S102,移动终端根据多种测试样本生成多种类型的推送消息。 [0030] Step S102, the mobile terminal generates a plurality of types of push message according to various test specimens.

[0031] 其中,推送消息的类型可以包括服务指示Service Indicat1n消息、服务下载Service Loading消息和缓存选择Cache Opt1n消息等。 [0031] wherein the push message may include type of service indication Service Indicat1n message service message and Download Service Loading message buffer selected Cache Opt1n like. 具体的,服务指示消息是服务器通过网关将消息发送到移动终端,移动终端进行解析并储存,然后提示给用户。 Specifically, the service indicating message is a message through the gateway server sends to the mobile terminal, the mobile terminal parsed and stored, and then presented to the user. 服务下载消息是在接收到服务器发送的消息之后,同样移动终端也会进行解析并存储,并提示用户,与服务指示消息区别在于移动终端会主动调用浏览器打开服务指示消息中附带的链接。 Download news service after receiving the message sent by the server, the same mobile terminal will be parsed and stored, and prompts the user with a message indicating the service difference is that the mobile terminal will automatically call the browser to open the service instructions that came with the message link.

[0032] 在本发明的一个实施例中,测试样本包括媒体类型和属性信息,其中属性信息包括链接href属性信息、创建时间created属性信息、有效期s1-expires属性信息和动作act1n属性信息等。 [0032] In one embodiment of the present invention, the test sample comprises a media type and attribute information, wherein the attribute information includes a link href attribute information, attribute information created creation time, validity s1-expires attribute information and attribute information act1n operation.

[0033] 具体地,媒体类型用于区分不同类型的消息,例如,服务指示消息媒体类型为text/vnd.wap.si 或applicat1n/vnd.wap.si ;服务下载消息的媒体类型为text/vnd.wap.slSapplicat1n/vnd.wap.si ;缓存选择消息的媒体类型为text/vnd.wap.co或applicat1n/vnd.wap.co。 [0033] In particular, the type of media used to distinguish different types of messages, for example, the media service indicating message of type text / vnd.wap.si or applicat1n / vnd.wap.si; media message service download type text / vnd .wap.slSapplicat1n / vnd.wap.si; message buffer selected media type is text / vnd.wap.co or applicat1n / vnd.wap.co.

[0034] 更具体地,链接href属性信息用于指示客户端可以获取服务的URL的地址;创建时间created属性信息用于定义服务指示消息的创建时间;有效期s1-expires属性信息用于定义服务指示消息的有效期;动作act1n属性信息用于定义客户端对服务指示消息做出响应的动作。 [0034] More specifically, the link href attribute information indicating clients can obtain the URL address of the service; creation time attribute information used to create the created service defined time indication message; s1-expires validity attribute information for defining a service indicating valid message; act1n attribute information for defining the operation of the client service an indication to respond to the message of the operation. 每个不同类型的消息包括的属性信息不同,例如,服务指示消息可以包括:href属性、created属性、s1-expires属性以及act 1n属性等,服务下载消息和缓存选择消息相似,服务下载消息可以包括了href属性和act1n属性等。 Each different type of message information comprises different attributes, e.g., the service indication message may include: href attribute, Created properties, s1-expires properties and act 1n attributes, messages and services download buffer selection message similar to message may include a download service the href attribute and act1n attributes. 其中,herf属性的值是一个URL地址,act1n属性的值分别为execute-low (用户选择不跳转浏览器)、execute_high (用户选择跳转浏览器)以及cache (储存到缓存里)。 Wherein the value of the attribute is herf a URL address, act1n respective value of the property (the user chooses not Skip browser) to execute-low, execute_high (the user selects the browser jumps) and Cache (stored in the cache).

[0035] 其中,测试者可以针对不同的类型及其对应的属性信息设置测试样本,通过对不同的属性进行调整,例如修改属性值,可以构造出不同类型的样本。 [0035] wherein, the tester can set the attribute information for different types of test samples and corresponding, by adjusting different properties, for example, modify the property value, can be constructed of different types of samples. 还为了覆盖所有的测试场景,设计了一些不符合协议规范的样本,以验证移动终端的对推送消息的解析出错之后的处理办法。 Also to cover all the test scenarios, some sample does not meet the design specifications of the protocol, to verify the analytical approach of the mobile terminal after the push message error.

[0036] 其中,服务指示消息、服务下载消息以及缓存选择消息可以是基于XML(extensible markup language,可扩展标记语言)语言描述的,在实际的传输过程中,会将可扩展标记语言的文本转换成二进制的WBXML (WAPBinary XML)语言,以提高推送消息的传输效率。 [0036] wherein the service indicating message, the message download and cache service message may be selected based on XML (extensible markup language, Extensible Markup Language) language description, the actual transfer process, will be extensible markup language text converter into binary WBXML (WAPBinary XML) language, to improve the transmission efficiency of the push message.

[0037] 步骤S103,移动终端对多种类型的推送消息按照预设顺序进行排序。 [0037] Step S103, the mobile terminal of the plurality of types of push messages are sorted according to a preset order.

[0038] 其中,移动终端对推送消息进行排序可以提高推送消息解析的效率。 [0038] wherein the push message to the mobile terminal can be improved push message sorting resolution efficiency.

[0039] 步骤S104,移动终端对排序之后的多种类型的推送消息进行解析以生成实际解析结果。 [0039] In step S104, the push message to the mobile terminal after sorting a plurality of types of analyzing the actual analysis result to generate.

[0040] 步骤S105,移动终端将期望解析结果与实际解析结果进行比对以生成多种类型的推送消息的测试结果。 [0040] step S105, the mobile terminal a desired analysis result and the actual result of the analysis for comparison to generate a plurality of types of test results push message.

[0041] 在本发明的一个实施例中,移动终端验证期望解析结果中的媒体类型和属性值是否与实际解析结果中的媒体类型和属性值是否相同。 [0041] In one embodiment of the invention, the mobile terminal verifies whether the desired media type and an attribute value is the same as in the analysis results with the actual analysis results of the media type and attribute values.

[0042] 根据本发明实施例的在移动终端中进行推送消息测试的方法,移动终端根据不同类型的测试样本自动生成不同类型的推送消息,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证推送消息解析的正确性,以及验证移动终端中的推送消息处理模块是否正常工作,测试效率高,节约人力成本。 [0042] According to an embodiment of the present invention is a method of push message tested in a mobile terminal, the mobile terminal automatically generate different types of push messages according to different types of test samples can be automatically moving in the case from the carrier network Terminating local independent verification push message parsing accuracy, and authenticate the mobile terminal in the push message processing module is working properly, test efficiency, save manpower cost.

[0043]图2是根据本发明一个具体实施例的在移动终端中进行推送消息测试的方法的流程图。 [0043] FIG 2 is a flowchart of a method for testing push message in a mobile terminal according to one embodiment of the present invention.

[0044] 步骤S201,移动终端接收多种测试样本,其中,每种测试样本对应有一个期望解析结果。 [0044] step S201, the mobile terminal receives a plurality of test samples, wherein each test sample corresponding to a desired analysis result.

[0045] 步骤S202,移动终端根据多种测试样本生成多种类型的推送消息。 [0045] step S202, the mobile terminal generates a plurality of types of push message according to various test specimens.

[0046] 其中,推送消息的类型可以包括服务指示Servi ce Indi cat 1n消息、服务下载Service Loading消息和缓存选择Cache Opt1n消息等。 [0046] wherein the push message may include a type of service indicating message Servi ce Indi cat 1n, and Service Download Service Loading message selection cache Cache Opt1n messages. 具体的,服务指示消息是服务器通过网关将消息发送到移动终端,移动终端进行解析并储存,然后提示给用户。 Specifically, the service indicating message is a message through the gateway server sends to the mobile terminal, the mobile terminal parsed and stored, and then presented to the user. 服务下载消息是在接收到服务器发送的消息之后,同样移动终端也会进行解析并存储,并提示用户,与服务指示消息区别在于移动终端会主动调用浏览器打开服务指示消息中附带的链接。 Download news service after receiving the message sent by the server, the same mobile terminal will be parsed and stored, and prompts the user with a message indicating the service difference is that the mobile terminal will automatically call the browser to open the service instructions that came with the message link.

[0047] 在本发明的一个实施例中,测试样本包括媒体类型和属性信息,其中属性信息包括链接href属性信息、创建时间created属性信息、有效期s1-expires属性信息和动作act1n属性信息等。 [0047] In one embodiment of the present invention, the test sample comprises a media type and attribute information, wherein the attribute information includes a link href attribute information, attribute information created creation time, validity s1-expires attribute information and attribute information act1n operation.

[0048] 具体地,媒体类型用于区分不同类型的消息,例如,服务指示消息媒体类型为text/vnd.wap.si 或applicat1n/vnd.wap.si ;服务下载消息的媒体类型为text/vnd.wap.si 或app Ii cat 1n/vnd.wap.si ;缓存选择消息的媒体类型为text/vnd.wap.co 或applicat1n/vnd.wap.co。 [0048] In particular, the type of media used to distinguish different types of messages, for example, the media service indicating message of type text / vnd.wap.si or applicat1n / vnd.wap.si; media message service download type text / vnd .wap.si or app Ii cat 1n / vnd.wap.si; message buffer selected media type is text / vnd.wap.co or applicat1n / vnd.wap.co.

[0049] 更具体地,链接href属性信息用于指示客户端可以获取服务的URL的地址;创建时间created属性信息用于定义服务指示消息的创建时间;有效期s1-expires属性信息用于定义服务指示消息的有效期;和动作act1n属性信息用于定义客户端对服务指示消息做出响应的动作。 [0049] More specifically, the link href attribute information indicating clients can obtain the URL address of the service; creation time attribute information used to create the created service defined time indication message; s1-expires validity attribute information for defining a service indicating valid message; act1n operation and is used to define the attribute information of the client service indicating message responding operation. 每个不同类型的消息包括的属性信息不同,例如,服务指示消息可以包括:href属性、created属性、s1-expires属性以及act 1n属性等。 Different types of attribute information of each message includes, for example, the service indication message may include: href attribute, Created properties, s1-expires act 1n property and the like properties. 服务下载消息和缓存消息相似,服务下载消息可以包括了href属性和act1n属性等。 Service messages and downloading cache information similar download service message may include the href attribute and act1n attributes. 其中,herf属性的值是一个URL地址,act1n属性的值分别为execute-low (用户选择不跳转浏览器)、execute_high (用户选择跳转浏览器)以及cache (储存到缓存里)。 Wherein the value of the attribute is herf a URL address, act1n respective value of the property (the user chooses not Skip browser) to execute-low, execute_high (the user selects the browser jumps) and Cache (stored in the cache). 其中,测试者可以针对不同的类型及其对应的属性信息设置测试样本,通过对不同的属性进行调整,例如修改属性值,可以构造出不同类型的样本。 Wherein the tester can set the attribute information for different types of test samples and corresponding, by adjusting different properties, for example, modify the property value, it can be constructed of different types of samples. 还为了覆盖所有的测试场景,设计了一些不符合协议规范的样本,以验证移动终端的对推送消息的解析出错之后的处理办法。 Also to cover all the test scenarios, some sample does not meet the design specifications of the protocol, to verify the analytical approach of the mobile terminal after the push message error.

[0050] 其中,服务指示消息、服务下载消息以及缓存选择消息可以是基于XML (可扩展标记语言)语言描述的,在实际的传输过程中,会将可扩展标记语言的文本转换成二进制的WBXMLCffAP Binary XML)语言,以提高推送消息的传输效率。 [0050] wherein the service indicating message, the message download and cache service message may be selected based on XML (eXtensible Markup Language) language description, the actual transfer process, the Extensible Markup Language will convert the text into binary WBXMLCffAP Binary XML) language, in order to improve the transmission efficiency push message.

[0051] 步骤S203,移动终端对多种类型的推送消息按照顺序或者并行的方式进行排序。 [0051] Step S203, the mobile terminal of the plurality of types of push messages sorted in order or in parallel fashion.

[0052] 步骤S204,移动终端对排序之后的多种类型的推送消息进行解析以生成实际解析结果。 [0052] Step S204, the push message to the mobile terminal after sorting a plurality of types of analyzing the actual analysis result to generate.

[0053] 步骤S205,移动终端将期望解析结果与实际解析结果进行比对以生成多种类型的推送消息的测试结果。 [0053] Step S205, the mobile terminal a desired analytical results with the actual analysis results for comparison to generate a plurality of types of test results push message.

[0054] 在本发明的一个实施例中,移动终端验证期望解析结果中的媒体类型和属性值是否与实际解析结果中的媒体类型和属性值是否相同。 [0054] In one embodiment of the invention, the mobile terminal verifies whether the desired media type and an attribute value is the same as in the analysis results with the actual analysis results of the media type and attribute values.

[0055] 根据本发明实施例的在移动终端中进行推送消息测试的方法,移动终端通过对多种类型的推送消息进行排序,提高了测试样本解析的效率。 [0055] The method of testing a push message in a mobile terminal in an embodiment of the present invention, a mobile terminal by sorting the various types of push messages, the test sample to improve the resolution efficiency.

[0056]图3是根据本发明另一个具体实施例的在移动终端中进行推送消息测试的方法的流程图。 [0056] FIG. 3 is a flowchart of a method performed tests push message in a mobile terminal according to another specific embodiment of the present invention.

[0057] 步骤S301,移动终端接收多种测试样本,其中,每种测试样本对应有一个期望解析结果。 [0057] step S301, the mobile terminal receives a plurality of test samples, wherein each test sample corresponding to a desired analysis result.

[0058] 步骤S302,移动终端根据多种测试样本生成多种类型的推送消息。 [0058] step S302, the mobile terminal generates a plurality of types of push message according to various test specimens.

[0059] 其中,推送消息的类型可以包括服务指示Service Indicat1n消息、服务下载Service Loading消息和缓存选择Cache Opt1n消息等。 [0059] wherein the push message may include type of service indication Service Indicat1n message service message and Download Service Loading message buffer selected Cache Opt1n like. 具体的,服务指示消息是服务器通过网关将消息发送到移动终端,移动终端进行解析并储存,然后提示给用户。 Specifically, the service indicating message is a message through the gateway server sends to the mobile terminal, the mobile terminal parsed and stored, and then presented to the user. 服务下载消息是在接收到服务器发送的消息之后,同样移动终端也会进行解析并存储,并提示用户,与服务指示消息区别在于移动终端会主动调用浏览器打开服务指示消息中附带的链接。 Download news service after receiving the message sent by the server, the same mobile terminal will be parsed and stored, and prompts the user with a message indicating the service difference is that the mobile terminal will automatically call the browser to open the service instructions that came with the message link.

[0060] 在本发明的一个实施例中,测试样本包括媒体类型和属性信息,其中属性信息包括链接href属性信息、创建时间created属性信息、有效期s1-expires属性信息和动作act1n属性信息等。 [0060] In one embodiment of the present invention, the test sample comprises a media type and attribute information, wherein the attribute information includes a link href attribute information, attribute information created creation time, validity s1-expires attribute information and attribute information act1n operation.

[0061] 具体地,媒体类型用于区分不同类型的消息,例如,服务指示消息媒体类型为text/vnd.wap.si 或applicat1n/vnd.wap.si ;服务下载消息的媒体类型为text/vnd.wap.si 或app Ii cat 1n/vnd.wap.si ;缓存选择消息的媒体类型为text/vnd.wap.co 或applicat1n/vnd.wap.co。 [0061] In particular, the type of media used to distinguish different types of messages, for example, the media service indicating message of type text / vnd.wap.si or applicat1n / vnd.wap.si; media message service download type text / vnd .wap.si or app Ii cat 1n / vnd.wap.si; message buffer selected media type is text / vnd.wap.co or applicat1n / vnd.wap.co.

[0062] 更具体地,链接href属性信息用于指示客户端可以获取服务的URL的地址;创建时间created属性信息用于定义服务指示消息的创建时间;有效期s1-expires属性信息用于定义服务指示消息的有效期;和动作act1n属性信息用于定义客户端对服务指示消息做出响应的动作。 [0062] More specifically, the link href attribute information indicating clients can obtain the URL address of the service; creation time attribute information used to create the created service defined time indication message; s1-expires validity attribute information for defining a service indicating valid message; act1n operation and is used to define the attribute information of the client service indicating message responding operation. 每个不同类型的消息包括的属性信息不同,例如,服务指示消息可以包括:href属性、created属性、s1-expires属性以及act 1n属性等。 Different types of attribute information of each message includes, for example, the service indication message may include: href attribute, Created properties, s1-expires act 1n property and the like properties. 服务下载消息和缓存消息相似,服务下载消息可以包括了href属性和act1n属性等。 Service messages and downloading cache information similar download service message may include the href attribute and act1n attributes. 其中,herf属性的值是一个URL地址,act1n属性的值分别为execute-low (用户选择不跳转浏览器)、execute_high (用户选择跳转浏览器)以及cache (储存到缓存里)。 Wherein the value of the attribute is herf a URL address, act1n respective value of the property (the user chooses not Skip browser) to execute-low, execute_high (the user selects the browser jumps) and Cache (stored in the cache).

[0063] 其中,测试者可以针对不同的类型及其对应的属性信息设置测试样本,通过对不同的属性进行调整,例如修改属性值,可以构造出不同类型的样本。 [0063] wherein, the tester can set the attribute information for different types of test samples and corresponding, by adjusting different properties, for example, modify the property value, can be constructed of different types of samples. 还为了覆盖所有的测试场景,设计了一些不符合协议规范的样本,以验证移动终端的对推送消息的解析出错之后的处理办法。 Also to cover all the test scenarios, some sample does not meet the design specifications of the protocol, to verify the analytical approach of the mobile terminal after the push message error.

[0064] 其中,服务指示消息、服务下载消息以及缓存选择消息可以是基于XML (可扩展标记语言)语言描述的,在实际的传输过程中,会将可扩展标记语言的文本转换成二进制的WBXMLCffAP Binary XML)语言,以提高推送消息的传输效率。 [0064] wherein the service indicating message, the message download and cache service message may be selected based on XML (eXtensible Markup Language) language description, the actual transfer process, the Extensible Markup Language will convert the text into binary WBXMLCffAP Binary XML) language, in order to improve the transmission efficiency push message.

[0065] 步骤S303,移动终端对多种类型的推送消息按照顺序或者并行的方式进行排序。 [0065] Step S303, the mobile terminal of the plurality of types of push messages sorted in order or in parallel fashion.

[0066] 步骤S304,移动终端对排序之后的多种类型的推送消息进行解析以生成实际解析结果。 [0066] step S304, the push message to the mobile terminal after sorting a plurality of types of analyzing the actual analysis result to generate.

[0067] 步骤S305,移动终端接收验证信息。 [0067] step S305, the mobile terminal receives authentication information.

[0068] 步骤S306,移动终端将期望解析结果与实际解析结果进行比对,根据验证信息针对实际解析结果中s1-expires和/或act 1n属性值和/或ServiceIndicat 1n的ID的实际操作进行验证,并生成验证结果,以及将验证结果加入到对比结果中生成测试结果。 [0068] step S306, the mobile terminal a desired analysis results with the actual analysis results for comparison, verify the actual analysis result s1-expires and / or act 1n attribute values ​​and / or actual operation ServiceIndicat 1n the ID based on the verification information and generates a verification result and the verification result is added to the comparison result to generate test results.

[0069] 具体的,验证信息可以包括以下四种:a.根据实际解析结果中s1-expires判断推送消息已过期,则验证信息为验证是否将推送消息写入数据库或者删除,其中,根据移动终端的系统时间判断s1-expires属性信息是否过期。 [0069] Specifically, the verification information may include the following four:. A result of the analysis in the actual determination s1-expires push message has expired, the authentication information to verify whether the push message written to the database or deleting, wherein the mobile terminal Analyzing system time s1-expires attribute information has expired. b.根据实际解析结果判断ServiceIndicat1n的ID已存在,则验证信息为验证是否将已经存储的Service Indicat1n删除,其中对于具有相同服务指示消息ID的消息,只保存创建时间最新的消息。 b. According to the actual analysis result of judgment ServiceIndicat1n ID already exists, the authentication information to verify that you have stored Service Indicat1n deleted, for messages with the same service indication message ID, creation time only save the latest news. c.如果实际解析结果中的act1n属性值为delete时,则验证信息为验证是否将推送消息删除。 c. In act1n If the actual property value of the analysis result delete, the authentication information to verify whether the push message is deleted. d.如果实际解析结果中的act1n属性值不为空,则验证信息为验证是否提示用户推送消息到达。 d. If the actual property value act1n analysis result is not empty, the verification information to verify whether the user is prompted to push messages arrive. 移动终端在验证所有接收到的测试样本后,将验证结果进行汇总并输出显示给测试者。 After verifying all the mobile terminal receives the test sample, the verification result output display and aggregated to the tester.

[0070] 根据本发明实施例的在移动终端中进行推送消息测试的方法,对一些不符合协议规范的样本,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证了推送消息解析的正确性。 [0070] According to an embodiment of the present invention is a method of push message tested in a mobile terminal, some of the samples do not meet the protocol specification, may be the case from the operator network, automatically in the mobile terminal local independently verified the push message correctness resolution.

[0071] 为了实现上述实施例,本发明还提出一种在移动终端中进行推送消息测试的装置。 [0071] In order to achieve the above-described embodiments, the present invention proposes a device for testing push message in a mobile terminal.

[0072] —种在移动终端中进行推送消息测试的装置,包括:第一接收模块,用于接收多种测试样本,其中,每种测试样本对应有一个期望解析结果;生成模块,用于根据多种测试样本生成多种类型的推送消息;排序模块,用于对多种类型的推送消息按照预设顺序进行排序;解析模块,用于对排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及比对模块,用于将期望解析结果与实际解析结果进行比对以生成多种类型的推送消息的测试结果。 [0072] - a mobile terminal types in the push message testing apparatus, comprising: a first receiving module, configured to receive a plurality of test samples, wherein each test sample corresponding to a desired analysis result; generating module, according to generating a plurality of test samples of various types of push message; a sorting module configured to push messages of various types are sorted in a predetermined order; parsing module configured to push messages of various types after sorting to form parsed actual analysis results; and comparison means for parsing the desired results with the actual analysis results of the comparison to generate a plurality of types of test results push message.

[0073]图4是根据本发明一个实施例的在移动终端中进行推送消息测试的装置的结构示意图。 [0073] FIG. 4 is a block diagram of an apparatus for testing a push message in a mobile terminal according to one embodiment of the present invention.

[0074]如图4所示,在移动终端中进行推送消息测试的装置包括:第一接收模块100、生成模块200、排序模块300、解析模块400和比对模块500。 Means [0074] As shown, a test 4 push message in a mobile terminal comprising: a first receiving module 100, a generation module 200, sorting module 300, analysis module 400 and a comparison module 500.

[0075]具体地,第一接收模块100用于接收多种测试样本,其中,每种测试样本对应有一个期望解析结果。 [0075] Specifically, a first receiving module 100 for receiving a plurality of test samples, wherein each test sample corresponding to a desired analysis result. 生成模块200用于根据多种测试样本生成多种类型的推送消息。 Generating module 200 for generating a push message according to a plurality of types of various test samples. 其中,推送消息的类型可以包括服务指示Service Indicat1n消息、服务下载Service Loading消息和缓存选择Cache Opt1n消息等。 Among them, the type of push message may include an indication Service Indicat1n messaging service, service to download Service Loading message and select Cache Cache Opt1n messages. 服务指示消息是服务器通过网关将消息发送到移动终端,移动终端进行解析并储存,然后提示给用户;服务下载消息是在接收到服务器发送的消息之后,同样移动终端也会进行解析并存储,并提示用户,与服务指示消息区别在于移动终端会主动调用浏览器打开服务指示消息中附带的链接。 Service indicating message is a message through the gateway server sends to the mobile terminal, the mobile terminal parsed and stored, and then presented to the user; service message is downloaded after receiving the message sent by the server, the mobile terminal will similarly parsed and stored, and the user is prompted with a message indicating the service difference is that the mobile terminal will automatically call the browser to open the service instructions that came with the message link.

[0076] 在本发明的一个实施例中,测试样本包括媒体类型和属性信息,其中属性信息包括链接href属性信息、创建时间created属性信息、有效期s1-expires属性信息和动作act1n属性信息等。 [0076] In one embodiment of the present invention, the test sample comprises a media type and attribute information, wherein the attribute information includes a link href attribute information, attribute information created creation time, validity s1-expires attribute information and attribute information act1n operation. 具体地,媒体类型用于区分不同类型的消息,例如,服务指示消息媒体类型为text/vnd.wap.si或applicat1n/vnd.wap.si ;服务下载消息的媒体类型为text/vnd.wap.si 或app Ii cat 1n/vnd.wap.si ;缓存选择消息的媒体类型为text/vnd.wap.co 或applicat1n/vnd.wap.co。 In particular, the type of media used to distinguish different types of messages, for example, the media service indicating message of type text / vnd.wap.si or applicat1n / vnd.wap.si; media message service download type text / vnd.wap. si or app Ii cat 1n / vnd.wap.si; message buffer selected media type is text / vnd.wap.co or applicat1n / vnd.wap.co. 更具体地,链接href属性信息用于指示客户端可以获取服务的URL的地址;仓Il建时间created属性信息用于定义服务指示消息的创建时间;有效期s1-expires属性信息用于定义服务指示消息的有效期;动作act1n属性信息用于定义客户端对服务指示消息做出响应的动作。 More specifically, the link href attribute information is used to instruct the client can obtain the URL address of the service; Il warehouse built in time created attribute information is used to define the service indicating message creation time; period s1-expires attribute information is used to define the service indicating message Validity; act1n attribute information for defining the operation of the client to the service indicating message responding operation. 每个不同类型的消息包括的属性信息不同,例如,服务指示消息可以包括:href属性、created属性、s1-expires属性以及act 1n属性等,服务下载消息和缓存选择消息相似,服务下载消息可以包括了href属性和act 1n属性等。 Each different type of message information comprises different attributes, e.g., the service indication message may include: href attribute, Created properties, s1-expires properties and act 1n attributes, messages and services download buffer selection message similar to message may include a download service the href attribute and act 1n attributes. 其中,herf属性的值是一个URL地址,301:;[011属性的值分别为616011丨6-10¥ (用户选择不跳转浏览器)、execute-high (用户选择跳转浏览器)以及cache (储存到缓存里)。 Wherein the value of the attribute is herf a URL address, 301:; value [011 each attribute (the user chooses not Skip browser) to 616,011 Shu 6-10 ¥, execute-high (the user selects the browser jumps) cache and (stored in the cache).

[0077] 其中,测试者可以针对不同的类型及其对应的属性信息设置测试样本,第一接收模块100接收到测试者设置的测试样本,通过对不同的属性进行调整,例如修改属性值,可以构造出不同类型的样本。 [0077] wherein the test may, of the first receiving module 100 receives the attribute information set for different types of test samples and the test sample corresponding to a set of testers, by adjustment of different properties, for example, to modify an attribute value, can constructed of different types of samples. 还为了覆盖所有的测试场景,设计了一些不符合协议规范的样本,以验证移动终端的对推送消息的解析出错之后的处理办法。 Also to cover all the test scenarios, some sample does not meet the design specifications of the protocol, to verify the analytical approach of the mobile terminal after the push message error.

[0078] 其中,服务指示消息、服务下载消息以及缓存选择消息可以是基于XML(extensible markup language,可扩展标记语言)语言描述的,在实际的传输过程中,会将可扩展标记语言的文本转换成二进制的WBXML (WAPBinary XML)语言,以提高推送消息的传输效率。 [0078] wherein the service indicating message, the message download and cache service message may be selected based on XML (extensible markup language, Extensible Markup Language) language description, the actual transfer process, will be extensible markup language text converter into binary WBXML (WAPBinary XML) language, to improve the transmission efficiency of the push message.

[0079] 排序模块300用于对多种类型的推送消息按照预设顺序进行排序。 [0079] module 300 for sorting a plurality of types of push messages are sorted according to a preset order.

[0080] 解析模块400用于对排序之后的多种类型的推送消息进行解析以生成实际解析结果O [0080] The parsing module 400 is used to push messages after sorting a plurality of types of analyzing the analysis result to generate the actual O

[0081]比对模块500用于将期望解析结果与实际解析结果进行比对以生成多种类型的推送消息的测试结果。 [0081] The comparison module 500 is used to resolve the desired results with the actual analysis results of the comparison to generate a plurality of types of test results push message.

[0082] 根据本发明实施例的在移动终端中进行推送消息测试的方法,通过生成模块根据不同类型的测试样本自动生成不同类型的推送消息,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证推送消息解析的正确性,以及验证移动终端中的推送消息处理模块是否正常工作,测试效率高,节约人力成本。 [0082] The method for push message tested in a mobile terminal in an embodiment of the present invention, to automatically generate different types of push messages according to different types of test samples by generating module, may be the case from the operator network, automatically in the mobile terminal local independent push message parsing correctness verification, and the verification of the mobile terminal in the push message processing module is working properly, test efficiency, save manpower cost.

[0083] 在本发明的一个实施例中,排序模块300还用于对多种类型的推送消息按照顺序或者并行的方式进行排序。 [0083] In one embodiment of the present invention, the sorting module 300 is further configured to push messages of various types are sorted in the order or in parallel fashion. 由此,通过排序模块对多种类型的推送消息进行排序,提高了测试样本解析的效率。 Thus, push messages are sorted by sorting a plurality of types of module, the test sample to improve the resolution efficiency.

[0084] 在本发明的一个实施例中,比对模块500还用于验证期望解析结果中的媒体类型和属性值是否与实际期望解析结果中的媒体类型和属性值是否相同。 [0084] In one embodiment of the present invention, the comparing module 500 is further configured to verify whether the desired media type and an attribute value in the analysis results with the actual analysis results in the desired media types and attribute values ​​are identical.

[0085]图5是根据本发明另一个实施例的在移动终端中进行推送消息测试的装置的结构示意图。 [0085] FIG. 5 is a schematic diagram of the apparatus were tested push message in a mobile terminal according to another embodiment of the present invention.

[0086] 如图5所示,在图4所示实施例的基础上,在移动终端中进行推送消息测试的装置还包括:第二接收模块600和验证模块700。 [0086] As shown in FIG 5, in the mobile terminal on the basis of the embodiment shown in FIG. 4 push message test apparatus further comprises: a second receiving module 600 and verification module 700.

[0087]具体地,第二接收模块600用于接收验证信息。 [0087] Specifically, the second receiving module 600 is configured to receive the authentication information.

[0088] 验证模块700用于根据验证信息针对实际解析结果中s1-expires和/或act 1n属性值和/或Service Indicat1n的ID的实际操作进行验证,并生成验证结果。 [0088] authentication module 700 for authentication for the actual analysis result s1-expires and / or act 1n attribute values ​​and / or actual operation of the Service Indicat1n ID based on the verification information, and generates the verification result. 其中,还可以将验证模块700得到的验证结果加入到比对模块500生成的对比结果中以生成测试结果。 Wherein the verification result may also be obtained authentication module 700 is added to the result of the comparison ratio of the generated module 500 to generate test results.

[0089] 具体的,验证信息可以包括以下四种:a.根据实际解析结果中s1-expires判断推送消息已过期,则验证信息为验证是否将推送消息写入数据库或者删除,其中,根据移动终端的系统时间判断s1-expires属性信息是否过期。 [0089] Specifically, the verification information may include the following four:. A result of the analysis in the actual determination s1-expires push message has expired, the authentication information to verify whether the push message written to the database or deleting, wherein the mobile terminal Analyzing system time s1-expires attribute information has expired. b.根据实际解析结果判断ServiceIndicat1n的ID已存在,则验证信息为验证是否将已经存储的Service Indicat1n删除,其中对于具有相同服务指示消息ID的消息,只保存创建时间最新的消息。 b. According to the actual analysis result of judgment ServiceIndicat1n ID already exists, the authentication information to verify that you have stored Service Indicat1n deleted, for messages with the same service indication message ID, creation time only save the latest news. c.如果实际解析结果中的act1n属性值为delete时,则验证信息为验证是否将推送消息删除。 c. In act1n If the actual property value of the analysis result delete, the authentication information to verify whether the push message is deleted. d.如果实际解析结果中的act1n属性值不为空,则验证信息为验证是否提示用户推送消息到达。 d. If the actual property value act1n analysis result is not empty, the verification information to verify whether the user is prompted to push messages arrive. 移动终端在验证所有接收到的测试样本后,将验证结果进行汇总并输出显示给测试者。 After verifying all the mobile terminal receives the test sample, the verification result output display and aggregated to the tester.

[0090] 根据本发明实施例的在移动终端中进行推送消息测试的装置,对一些不符合协议规范的样本,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证了推送消息解析的正确性。 [0090] According to an embodiment of the present invention means push message tested in a mobile terminal, some of the samples do not meet the protocol specification, may be the case from the operator network, automatically in the mobile terminal local independently verified the push message correctness resolution.

[0091] 为了实现上述实施例,本发明又提出一种移动终端。 [0091] In order to achieve the above-described embodiments, the present invention further provides a mobile terminal.

[0092] —种移动终端包括本发明任一项实施例所述的在移动终端中进行推送消息测试的装置。 [0092] - a mobile terminal comprising a species according to any embodiment of the present invention, apparatus for testing push message in a mobile terminal according to embodiments.

[0093] 根据本发明实施例的移动终端,通过在移动终端中进行推送消息测试的装置,可以根据不同类型的测试样本自动生成不同类型的推送消息,可以在脱离运营商网络的情况下,自动地在移动终端本地独立验证推送消息解析的正确性,以及验证移动终端中的推送消息处理模块是否正常工作,测试效率高,节约人力成本。 [0093] The mobile terminal according to an embodiment of the present invention, by means push message tested in a mobile terminal can automatically generate different types of push messages according to different types of test samples may be the case from the operator network, automatically in the local mobile terminal authentication independently push message parsing accuracy, and authenticate the mobile terminal in the push message processing module is working properly, test efficiency, save manpower cost.

[0094] 应当理解,在本发明的实施例中,移动终端可以是手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。 [0094] It should be understood that in the embodiment of the present invention, the mobile terminal may be a mobile phone, a tablet computer, a personal digital assistant, an electronic book with various operating systems and other hardware devices.

[0095] 应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。 [0095] It should be understood that various portions of the present invention may be implemented in hardware, software, firmware or a combination thereof to achieve. 在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。 In the above-described embodiment, a plurality of steps or methods may be implemented in software or firmware and executed by a suitable system executing instructions stored in a memory with. 例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA)JIg可编程门阵列(FPGA)等。 For example, if implemented in hardware, as in another embodiment, the present technique may be any one of the following well-known in the art, or their combination thereof: a logic gate circuit for implementing logic functions upon data signals discrete logic circuits having appropriate combinational logic gate circuit ASIC, a programmable gate array (PGA) JIg programmable gate array (FPGA) and the like.

[0096] 在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。 [0096] In the description of the present specification, reference to the term "one embodiment," "some embodiments", "an example", "a specific example", or "some examples" means that a description of the exemplary embodiment or embodiments described a particular feature, structure, material, or characteristic is included in at least one embodiment of the present invention, embodiments or examples. 在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。 In the present specification, a schematic representation of the above terms necessarily referring to the same embodiment or example. 而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。 Furthermore, the particular features, structures, materials, or characteristics described embodiments or examples may be at any one or more in a proper manner.

[0097]尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同限定。 [0097] While there has been illustrated and described embodiments of the present invention, those of ordinary skill in the art, to be understood that various changes may be made to these embodiments without departing from the principles and spirit of the present invention, modifications, substitutions and modifications, the scope of the invention being indicated by the appended claims and their equivalents.

Claims (15)

  1. 1.一种在移动终端中进行推送消息测试的方法,其特征在于,包括以下步骤: a、移动终端接收多种测试样本,其中,每种测试样本对应有一个期望解析结果; b、所述移动终端根据所述多种测试样本生成多种类型的推送消息; C、所述移动终端对所述多种类型的推送消息按照预设顺序进行排序; d、所述移动终端对所述排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及e、所述移动终端将所述期望解析结果与所述实际解析结果进行比对以生成所述多种类型的推送消息的测试结果。 1. A method of testing a push message in a mobile terminal, characterized by comprising the steps of: a, the mobile terminal receives a plurality of test samples, wherein each test sample corresponding to a desired analysis result; B, the the mobile terminal generates a plurality of test samples according to the various types of push messages; C, the mobile terminal of the plurality of types of push messages sorted in a predetermined order; d, the mobile terminal after the ordering various types of push message is parsed to generate an actual analysis result; and e, the mobile terminal the desired results with the actual analysis results of said analyzing test results comparing to generate the plurality of types of push messages .
  2. 2.根据权利要求1所述的方法,其特征在于,所述步骤c具体包括以下步骤: 所述移动终端对所述多种类型的推送消息按照顺序或者并行的方式进行排序。 2. The method according to claim 1, wherein said step c comprises the steps of: the mobile terminal of the plurality of types of push messages sorted in order or in parallel fashion.
  3. 3.根据权利要求1或2所述的方法,其特征在于,所述类型包括服务指示ServiceIndicat1n消息、服务下载Service Loading消息和缓存选择Cache Opt1n消息。 3. The method of claim 1 or claim 2, wherein said indication includes a service type ServiceIndicat1n message service message and Download Service Loading message cache Cache Opt1n selection.
  4. 4.根据权利要求3所述的方法,其特征在于,所述测试样本包括媒体类型和属性信息,其中所述属性信息包括链接href属性信息、仓Il建时间created属性信息、有效期s1-expires属性信息和动作ac ti on属性信息。 4. The method according to claim 3, wherein said test sample comprises a media type and the attribute information, wherein the attribute information includes information of link href attribute, created time bins built Il attribute information, attribute validity s1-expires information and action ac ti on attribute information.
  5. 5.根据权利要求4所述的方法,其特征在于,所述步骤e具体包括以下步骤: 所述移动终端验证所述期望解析结果中的所述媒体类型和所述属性值是否与所述实际解析结果中的所述媒体类型和所述属性值是否相同。 5. The method as claimed in claim 4, wherein said step e comprises the steps of: the mobile terminal to verify whether the desired analysis result of the media type and the property value and the actual analytical results of the media type and the attribute values ​​are identical.
  6. 6.根据权利要求4所述的方法,其特征在于,还包括以下步骤: 所述移动终端接收验证信息;以及所述移动终端根据所述验证信息针对所述实际解析结果中所述s1-expires和/或act1n属性值和/或所述Service Indicat1n的ID的实际操作进行验证,并生成验证结果。 6. The method according to claim 4, characterized by further comprising the steps of: receiving authentication information of said mobile terminal; and the information of the mobile terminal s1-expires for the actual analysis result based on the verification and / or act1n attribute values ​​and / or actual operation of the Service Indicat1n an ID for authentication, and generate a verification result.
  7. 7.根据权利要求6所述的方法,其特征在于,所述验证信息包括: 如果根据所述实际解析结果中所述s1-expires判断所述推送消息已过期,则所述验证信息为验证是否将所述推送消息写入数据库或者删除; 如果根据所述实际解析结果判断所述Service Indicat1n的ID已存在,则所述验证信息为验证是否将已经存储的所述Service Indicat1n删除; 如果所述实际解析结果中的所述act1n属性值为delete时,则所述验证信息为验证是否将所述推送消息删除;以及如果所述实际解析结果中的所述act1n属性值不为空,则所述验证信息为验证是否提示用户所述推送消息到达。 7. The method according to claim 6, wherein the authentication information comprises: if the push message has expired based on the analysis result of the actual s1-expires determination, the verification information to verify whether the the push message written to the database or deleted; if it is determined in the Service Indicat1n ID already exists according to the actual result of the analysis, if the Service Indicat1n the verification information to verify whether deleting already stored; if the actual when the analysis result act1n attribute value delete, if the verification information to verify whether the push message is deleted; and if the actual value of the attribute act1n analysis result is not empty, then the verification information to prompt the user to verify whether the push message arrival.
  8. 8.—种在移动终端中进行推送消息测试的装置,其特征在于,包括: 第一接收模块,用于接收多种测试样本,其中,每种测试样本对应有一个期望解析结果; 生成模块,用于根据所述多种测试样本生成多种类型的推送消息; 排序模块,用于对所述多种类型的推送消息按照预设顺序进行排序; 解析模块,用于对所述排序之后的多种类型的推送消息进行解析以生成实际解析结果;以及比对模块,用于将所述期望解析结果与所述实际解析结果进行比对以生成所述多种类型的推送消息的测试结果。 8.- kinds of testing apparatus for push message in a mobile terminal, characterized by comprising: a first receiving module, configured to receive a plurality of test samples, wherein each test sample corresponding to a desired analysis result; generating module, generating a push message according to a plurality of types of the plurality of test samples; a sorting module configured to push the plurality of types of messages are sorted according to a preset order; parsing module is configured to sort the plurality of after types of push message parsed to produce actual analysis result; and a comparison module, for the desired results with the actual analysis results of said analyzing test results comparing to generate the plurality of types of push message.
  9. 9.根据权利要求8所述的装置,其特征在于,所述排序模块还用于: 对所述多种类型的推送消息按照顺序或者并行的方式进行排序。 9. The apparatus according to claim 8, wherein said ordering module further configured to: for the plurality of types of push messages sorted in order or in parallel fashion.
  10. 10.根据权利要求8或9所述的装置,其特征在于,所述类型包括服务指示ServiceIndicat1n消息、服务下载Service Loading消息和缓存选择Cache Opt1n消息。 10. The apparatus of claim 8 or claim 9, wherein said indication includes a service type ServiceIndicat1n message service message and Download Service Loading message cache Cache Opt1n selection.
  11. 11.根据权利要求10所述的装置,其特征在于,所述测试样本包括媒体类型和属性信息,其中所述属性信息包括链接href属性信息、仓Il建时间created属性信息、有效期s 1-expires属性信息和动作act 1n属性信息。 11. The apparatus according to claim 10, wherein said test sample comprises a media type and the attribute information, wherein the attribute information includes information of link href attribute, created time bins built Il attribute information, validity s 1-expires attribute information and actions act 1n attribute information.
  12. 12.根据权利要求11所述的装置,其特征在于,所述比对模块还用于: 验证所述期望解析结果中的所述媒体类型和所述属性值是否与所述实际解析结果中的所述媒体类型和所述属性值是否相同。 12. The apparatus according to claim 11, wherein the comparing module is further configured to: verify whether the desired analysis result of the media type and the actual property value of the analysis result of the media type and the attribute values ​​are identical.
  13. 13.根据权利要求11所述的装置,其特征在于,还包括: 第二接收模块,用于接收验证信息;以及验证模块,用于根据所述验证信息针对所述实际解析结果中所述s1-expires和/或act1n属性值和/或所述Service Indicat1n的ID的实际操作进行验证,并生成验证结果。 13. The apparatus according to claim 11, characterized in that, further comprising: a second receiving module, configured to receive the authentication information; and an authentication module for authentication of the information for the analysis result in the actual s1 -expires validation and / or act1n attribute values ​​and / or actual operation of the Service Indicat1n an ID, and generates a verification result.
  14. 14.根据权利要求13所述的装置,其特征在于,所述验证信息包括: 如果根据所述实际解析结果中所述s1-expires判断所述推送消息已过期,则所述验证信息为验证是否将所述推送消息写入数据库或者删除; 如果根据所述实际解析结果判断所述Service Indicat1n的ID已存在,则所述验证信息为验证是否将已经存储的所述Service Indicat1n删除; 如果所述实际解析结果中的所述act1n属性值为delete时,则所述验证信息为验证是否将所述推送消息删除;以及如果所述实际解析结果中的所述act1n属性值不为空,则所述验证信息为验证是否提示用户所述推送消息到达。 14. The apparatus according to claim 13, wherein the authentication information comprises: if the push message has expired based on the analysis result of the actual s1-expires determination, the verification information to verify whether the the push message written to the database or deleted; if it is determined in the Service Indicat1n ID already exists according to the actual result of the analysis, if the Service Indicat1n the verification information to verify whether deleting already stored; if the actual when the analysis result act1n attribute value delete, if the verification information to verify whether the push message is deleted; and if the actual value of the attribute act1n analysis result is not empty, then the verification information to prompt the user to verify whether the push message arrival.
  15. 15.一种移动终端,其特征在于,包括权利要求8-14任一项所述的在移动终端中进行推送消息测试的装置。 15. A mobile terminal, characterized in that the means for testing push message in a mobile terminal according to any one of claims 8-14, including the claims.
CN 201210500025 2012-11-29 2012-11-29 A method for testing push message in a mobile terminal, the mobile terminal apparatus and CN103856911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210500025 CN103856911B (en) 2012-11-29 2012-11-29 A method for testing push message in a mobile terminal, the mobile terminal apparatus and

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210500025 CN103856911B (en) 2012-11-29 2012-11-29 A method for testing push message in a mobile terminal, the mobile terminal apparatus and

Publications (2)

Publication Number Publication Date
CN103856911A true CN103856911A (en) 2014-06-11
CN103856911B true CN103856911B (en) 2017-05-10

Family

ID=50864034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210500025 CN103856911B (en) 2012-11-29 2012-11-29 A method for testing push message in a mobile terminal, the mobile terminal apparatus and

Country Status (1)

Country Link
CN (1) CN103856911B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340694A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Message processing capability test method and system for mobile terminal
CN101453711A (en) * 2007-12-06 2009-06-10 中兴通讯股份有限公司 Automatic test system and test method for mobile phone short message
CN201360353Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Test system of mobile terminals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6522875B1 (en) * 1998-11-17 2003-02-18 Eric Morgan Dowling Geographical web browser, methods, apparatus and systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453711A (en) * 2007-12-06 2009-06-10 中兴通讯股份有限公司 Automatic test system and test method for mobile phone short message
CN101340694A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Message processing capability test method and system for mobile terminal
CN201360353Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 Test system of mobile terminals

Also Published As

Publication number Publication date Type
CN103856911A (en) 2014-06-11 application

Similar Documents

Publication Publication Date Title
US7770785B2 (en) Apparatus and methods for detection and management of unauthorized executable instructions on a wireless device
US20060010226A1 (en) Controlling content communication in a communication system
US20080301647A1 (en) Delivering Malformed Data for Fuzz Testing to Software Applications
US20050166053A1 (en) Method and system for associating a signature with a mobile device
US8433953B1 (en) Automatic configuration of a test environment
US20080104575A1 (en) Agent for implementing automated compatibility test
US20060205398A1 (en) Apparatus and methods for product acceptance testing on a wireless device
US7644163B2 (en) Plug and play mobile services
US20100197299A1 (en) Method for testing a mobile radio device
Mulliner et al. Injecting SMS messages into smart phones for security analysis
CN102541700A (en) Terminal test method, test device and terminal agency
US20070058555A1 (en) Method and apparatus for low overhead network protocol performance assessment
CN1959710A (en) Automatic test system and method
CN102468985A (en) Method and system for carrying out penetration test on network safety equipment
US8413117B1 (en) Systems and methods for focusing product testing based on areas of change within the product between product builds
CN101232661A (en) System and method for testing protocol consistency for base station
CN101437260A (en) System and method for automatization test of WCDMA physical layer
US20090013378A1 (en) Method for Testing Safety Access Protocol Conformity of Access Point and Apparatus Thereof
CN101014061A (en) Method and apparatus for generating testing script and testing method and apparatus and system
CN103049367A (en) Automatic testing method for software
US20120324302A1 (en) Integrated circuit for testing using a high-speed input/output interface
CN103560932A (en) Wireless sensor network remote protocol conformance testing system and method
KR20100053895A (en) Testing method and its apparatus of digital substation merging unit
US20070136416A1 (en) Method and system for testing audio server
US9225840B2 (en) System and method for providing a communication endpoint information service

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01