CN103856911A - Method and device for performing push message test in mobile terminal, and mobile terminal - Google Patents

Method and device for performing push message test in mobile terminal, and mobile terminal Download PDF

Info

Publication number
CN103856911A
CN103856911A CN201210500025.9A CN201210500025A CN103856911A CN 103856911 A CN103856911 A CN 103856911A CN 201210500025 A CN201210500025 A CN 201210500025A CN 103856911 A CN103856911 A CN 103856911A
Authority
CN
China
Prior art keywords
mobile terminal
push message
message
result
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210500025.9A
Other languages
Chinese (zh)
Other versions
CN103856911B (en
Inventor
段启智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210500025.9A priority Critical patent/CN103856911B/en
Publication of CN103856911A publication Critical patent/CN103856911A/en
Application granted granted Critical
Publication of CN103856911B publication Critical patent/CN103856911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention proposes a method and device for performing push message test in a mobile terminal, and the mobile terminal. The method includes the following steps: the mobile terminal receiving a plurality of kinds of test samples; the mobile terminal generating a plurality of kinds of push messages according to the plurality of kinds of test samples; the mobile terminal ranking the plurality of kinds of push messages according to preset sequence; the mobile terminal analyzing the plurality of kinds of push messages which are ranked so as to generate a practical analysis result; and the mobile terminal comparing an expected analysis result and the actual analysis result so as to generate a test result of the plurality of kinds of push messages. According to the method for performing the push message test in the mobile terminal, the mobile terminal automatically generates different kinds of push messages according to the different kinds of test samples and under a condition of separation from a network of an operator, the correctness of the analysis of the push messages is verified independently in the local of the mobile terminal so that test efficiency is high and manpower cost is reduced.

Description

In mobile terminal, carry out the method for PUSH message test, device and mobile terminal
Technical field
The present invention relates to mobile device manufacturing technology field, relate in particular to a kind of method of carrying out PUSH message test in mobile terminal, device and mobile terminal.
Background technology
The PUSH message that short message service center sends to mobile terminal, can comprise three types: service indication message, service download message and buffer memory are selected message etc.Mobile terminal is being received after PUSH message, need to resolve for dissimilar PUSH message according to agreement, and make corresponding response according to analysis result.But mobile terminal, because the restriction of self performance may not correctly be resolved, now needs whether can correctly resolve PUSH message to mobile terminal and tests.
At present, conventional method of testing mainly contains following two kinds: a kind of is the testing server providing by operator or third party, tester manually sends one or more of PUSH messages to testing server, another kind is debugging and the log information for PUSH message by mobile terminal, and the correctness of PUSH message is resolved in judgement.
The problem of existence is at present, needs tester to carry out more manual operation, and testing efficiency is low.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, first object of the present invention is to propose a kind of method of carrying out PUSH message test in mobile terminal, the correctness that the method is resolved at the local individual authentication PUSH message of mobile terminal, and testing efficiency is high, reduces human cost.
Second object of the present invention is to propose a kind of device that carries out PUSH message test in mobile terminal.
The 3rd object of the present invention is to propose a kind of mobile terminal.
To achieve these goals, comprise the following steps according to the method for carrying out PUSH message test in mobile terminal of the embodiment of first aspect present invention: a, mobile terminal receive multiple test sample book, wherein, every kind of test sample book is to there being one to expect analysis result; B, described mobile terminal generate polytype PUSH message according to described multiple test sample book; C, described mobile terminal sort according to preset order to described polytype PUSH message; D, described mobile terminal resolve to generate actual resolved result to the polytype PUSH message after described sequence; And e, described mobile terminal compare described expectation analysis result and described actual resolved result to generate the test result of described polytype PUSH message.
According to the method for carrying out PUSH message test in mobile terminal of the embodiment of the present invention, mobile terminal generates dissimilar PUSH message automatically according to dissimilar test sample book, can be in the situation that departing from carrier network, the correctness of automatically resolving at the local individual authentication PUSH message of mobile terminal, and whether PUSH message processing module in checking mobile terminal normally works, testing efficiency is high, saves human cost.
To achieve these goals, comprise according to the device that carries out PUSH message test in mobile terminal of the embodiment of second aspect present invention: the first receiver module, be used for receiving multiple test sample book, wherein, every kind of test sample book is to there being one to expect analysis result; Generation module, for generating polytype PUSH message according to described multiple test sample book; Order module, for sorting according to preset order to described polytype PUSH message; Parsing module, for resolving to generate actual resolved result to the polytype PUSH message after described sequence; And comparing module, for described expectation analysis result and described actual resolved result being compared to generate the test result of described polytype PUSH message.
According to the device that carries out PUSH message test in mobile terminal of the embodiment of the present invention, automatically generate dissimilar PUSH message by generation module according to dissimilar test sample book, can be in the situation that departing from carrier network, the correctness of automatically resolving at the local individual authentication PUSH message of mobile terminal, and whether PUSH message processing module in checking mobile terminal normally works, testing efficiency is high, saves human cost.
To achieve these goals, comprise the device that carries out PUSH message test in mobile terminal described in second aspect present invention embodiment according to the mobile terminal of the embodiment of third aspect present invention.
According to the mobile terminal of the embodiment of the present invention, by carry out the device of PUSH message test in mobile terminal, can automatically generate dissimilar PUSH message according to dissimilar test sample book, can be in the situation that departing from carrier network, the correctness of automatically resolving at the local individual authentication PUSH message of mobile terminal, and whether PUSH message processing module in checking mobile terminal normally work, testing efficiency is high, saves human cost.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Brief description of the drawings
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein,
Fig. 1 is the flow chart that carries out according to an embodiment of the invention the method for PUSH message test in mobile terminal;
Fig. 2 is the flow chart that carries out the method for PUSH message test in mobile terminal of a specific embodiment according to the present invention;
Fig. 3 is the flow chart that carries out the method for PUSH message test in mobile terminal of another specific embodiment according to the present invention;
Fig. 4 is the structural representation that carries out according to an embodiment of the invention the device of PUSH message test in mobile terminal; And
Fig. 5 is the structural representation that carries out in accordance with another embodiment of the present invention the device of PUSH message test in mobile terminal.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise all changes, amendment and the equivalent within the scope of spirit and the intension that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing object, and can not be interpreted as instruction or hint relative importance.In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connects integratedly; Can be mechanical connection, can be also electrical connection; Can be to be directly connected, also can indirectly be connected by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition,, in description of the invention, except as otherwise noted, the implication of " multiple " is two or more.
Any process of otherwise describing in flow chart or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Device and mobile terminal are described according to the method for carrying out PUSH message test in mobile terminal of the embodiment of the present invention below with reference to accompanying drawing.
A method of carrying out PUSH message test in mobile terminal, comprises the following steps: a, mobile terminal receive multiple test sample book, and wherein, every kind of test sample book is to there being one to expect analysis result; B, mobile terminal generate polytype PUSH message according to multiple test sample book; C, mobile terminal sort according to preset order to polytype PUSH message; D, mobile terminal resolve to generate actual resolved result to the polytype PUSH message after sequence; And e, mobile terminal will expect that analysis result and actual resolved result compare to generate the test result of polytype PUSH message.
Fig. 1 is the flow chart that carries out according to an embodiment of the invention the method for PUSH message test in mobile terminal.
The method of as shown in Figure 1, carrying out PUSH message test in mobile terminal comprises the steps.
Step S101, mobile terminal receives multiple test sample book, and wherein, every kind of test sample book is to there being one to expect analysis result.
Step S102, mobile terminal generates polytype PUSH message according to multiple test sample book.
Wherein, the type of PUSH message can comprise service instruction Service Indication message, Service Loading message is downloaded in service and buffer memory is selected Cache Option message etc.Concrete, service indication message is that server sends a message to mobile terminal by gateway, mobile terminal is resolved and is stored, and is then prompted to user.Service download message is after receiving the message of server transmission, same mobile terminal also can resolve and store, and point out user, be that with service indication message difference mobile terminal can initiatively call browser and open subsidiary linking in service indication message.
In one embodiment of the invention, test sample book comprises medium type and attribute information, and wherein attribute information comprises link href attribute information, creation-time created attribute information, term of validity si-expires attribute information and action action attribute information etc.
Particularly, medium type is for distinguishing dissimilar message, and for example, service indication message medium type is text/vnd.wap.si or application/vnd.wap.si; The medium type of service download message is text/vnd.wap.sl or application/vnd.wap.sl; It is text/vnd.wap.co or application/vnd.wap.co that buffer memory is selected the medium type of message.
More specifically, the address that link href attribute information is used to indicate client and can obtains the URL of service; Creation-time created attribute information is for defining the creation-time of service indication message; Term of validity si-expires attribute information is for defining the term of validity of service indication message; Action action attribute information is made the action of response to service indication message for defining client.The attribute information difference that each dissimilar message comprises, for example, service indication message can comprise: href attribute, created attribute, si-expires attribute and action attribute etc., service download message selects message similar with buffer memory, and service download message can comprise href attribute and action attribute etc.Wherein, the value of herf attribute is a URL address, and the value of action attribute is respectively execute-low(user and selects not redirect browser), execute-high(user selects redirect browser) and cache(be stored in buffer memory).
Wherein, tester can arrange test sample book for different types and corresponding attribute information thereof, by different attributes is adjusted, for example, revises property value, can construct dissimilar sample.Also in order to cover all test scenes, some are designed and have not met the sample of protocol specification, to verify the treating method of the parsing to PUSH message of mobile terminal after makeing mistakes.
Wherein, it can be based on XML(extensible markup language that service indication message, service download message and buffer memory are selected message, extend markup language) language description, in actual transmitting procedure, the text-converted of extend markup language can be become to binary WBXML(WAPBinary XML) language, to improve the efficiency of transmission of PUSH message.
Step S103, mobile terminal sorts according to preset order to polytype PUSH message.
Wherein, mobile terminal sorts and can improve the efficiency that PUSH message is resolved PUSH message.
Step S104, mobile terminal resolves to generate actual resolved result to the polytype PUSH message after sequence.
Step S105, mobile terminal is compared expectation analysis result and actual resolved result to generate the test result of polytype PUSH message.
In one embodiment of the invention, mobile terminal checking expects that whether whether medium type and property value in analysis result identical with medium type and property value in actual resolved result.
According to the method for carrying out PUSH message test in mobile terminal of the embodiment of the present invention, mobile terminal generates dissimilar PUSH message automatically according to dissimilar test sample book, can be in the situation that departing from carrier network, the correctness of automatically resolving at the local individual authentication PUSH message of mobile terminal, and whether PUSH message processing module in checking mobile terminal normally works, testing efficiency is high, saves human cost.
Fig. 2 is the flow chart that carries out the method for PUSH message test in mobile terminal of a specific embodiment according to the present invention.
Step S201, mobile terminal receives multiple test sample book, and wherein, every kind of test sample book is to there being one to expect analysis result.
Step S202, mobile terminal generates polytype PUSH message according to multiple test sample book.
Wherein, the type of PUSH message can comprise service instruction Service Indication message, Service Loading message is downloaded in service and buffer memory is selected Cache Option message etc.Concrete, service indication message is that server sends a message to mobile terminal by gateway, mobile terminal is resolved and is stored, and is then prompted to user.Service download message is after receiving the message of server transmission, same mobile terminal also can resolve and store, and point out user, be that with service indication message difference mobile terminal can initiatively call browser and open subsidiary linking in service indication message.
In one embodiment of the invention, test sample book comprises medium type and attribute information, and wherein attribute information comprises link href attribute information, creation-time created attribute information, term of validity si-expires attribute information and action action attribute information etc.
Particularly, medium type is for distinguishing dissimilar message, and for example, service indication message medium type is text/vnd.wap.si or application/vnd.wap.si; The medium type of service download message is text/vnd.wap.sl or application/vnd.wap.sl; It is text/vnd.wap.co or application/vnd.wap.co that buffer memory is selected the medium type of message.
More specifically, the address that link href attribute information is used to indicate client and can obtains the URL of service; Creation-time created attribute information is for defining the creation-time of service indication message; Term of validity si-expires attribute information is for defining the term of validity of service indication message; For defining client, service indication message is made the action of response with action action attribute information.The attribute information difference that each dissimilar message comprises, for example, service indication message can comprise: href attribute, created attribute, si-expires attribute and action attribute etc.Service download message is similar with buffered message, and service download message can comprise href attribute and action attribute etc.Wherein, the value of herf attribute is a URL address, and the value of action attribute is respectively execute-low(user and selects not redirect browser), execute-high(user selects redirect browser) and cache(be stored in buffer memory).Wherein, tester can arrange test sample book for different types and corresponding attribute information thereof, by different attributes is adjusted, for example, revises property value, can construct dissimilar sample.Also in order to cover all test scenes, some are designed and have not met the sample of protocol specification, to verify the treating method of the parsing to PUSH message of mobile terminal after makeing mistakes.
Wherein, service indication message, service download message and buffer memory select the message can be based on XML(extend markup language) language description, in actual transmitting procedure, the text-converted of extend markup language can be become to binary WBXML(WAP Binary XML) language, to improve the efficiency of transmission of PUSH message.
Step S203, mobile terminal to polytype PUSH message in order or parallel mode sort.
Step S204, mobile terminal resolves to generate actual resolved result to the polytype PUSH message after sequence.
Step S205, mobile terminal is compared expectation analysis result and actual resolved result to generate the test result of polytype PUSH message.
In one embodiment of the invention, mobile terminal checking expects that whether whether medium type and property value in analysis result identical with medium type and property value in actual resolved result.
According to the method for carrying out PUSH message test in mobile terminal of the embodiment of the present invention, mobile terminal, by polytype PUSH message is sorted, has improved the efficiency that test sample book is resolved.
Fig. 3 is the flow chart that carries out the method for PUSH message test in mobile terminal of another specific embodiment according to the present invention.
Step S301, mobile terminal receives multiple test sample book, and wherein, every kind of test sample book is to there being one to expect analysis result.
Step S302, mobile terminal generates polytype PUSH message according to multiple test sample book.
Wherein, the type of PUSH message can comprise service instruction Service Indication message, Service Loading message is downloaded in service and buffer memory is selected Cache Option message etc.Concrete, service indication message is that server sends a message to mobile terminal by gateway, mobile terminal is resolved and is stored, and is then prompted to user.Service download message is after receiving the message of server transmission, same mobile terminal also can resolve and store, and point out user, be that with service indication message difference mobile terminal can initiatively call browser and open subsidiary linking in service indication message.
In one embodiment of the invention, test sample book comprises medium type and attribute information, and wherein attribute information comprises link href attribute information, creation-time created attribute information, term of validity si-expires attribute information and action action attribute information etc.
Particularly, medium type is for distinguishing dissimilar message, and for example, service indication message medium type is text/vnd.wap.si or application/vnd.wap.si; The medium type of service download message is text/vnd.wap.sl or application/vnd.wap.sl; It is text/vnd.wap.co or application/vnd.wap.co that buffer memory is selected the medium type of message.
More specifically, the address that link href attribute information is used to indicate client and can obtains the URL of service; Creation-time created attribute information is for defining the creation-time of service indication message; Term of validity si-expires attribute information is for defining the term of validity of service indication message; For defining client, service indication message is made the action of response with action action attribute information.The attribute information difference that each dissimilar message comprises, for example, service indication message can comprise: href attribute, created attribute, si-expires attribute and action attribute etc.Service download message is similar with buffered message, and service download message can comprise href attribute and action attribute etc.Wherein, the value of herf attribute is a URL address, and the value of action attribute is respectively execute-low(user and selects not redirect browser), execute-high(user selects redirect browser) and cache(be stored in buffer memory).
Wherein, tester can arrange test sample book for different types and corresponding attribute information thereof, by different attributes is adjusted, for example, revises property value, can construct dissimilar sample.Also in order to cover all test scenes, some are designed and have not met the sample of protocol specification, to verify the treating method of the parsing to PUSH message of mobile terminal after makeing mistakes.
Wherein, service indication message, service download message and buffer memory select the message can be based on XML(extend markup language) language description, in actual transmitting procedure, the text-converted of extend markup language can be become to binary WBXML(WAP Binary XML) language, to improve the efficiency of transmission of PUSH message.
Step S303, mobile terminal to polytype PUSH message in order or parallel mode sort.
Step S304, mobile terminal resolves to generate actual resolved result to the polytype PUSH message after sequence.
Step S305, mobile terminal Receipt Validation information.
Step S306, mobile terminal is compared expectation analysis result and actual resolved result, verify for the practical operation of the ID of si-expires in actual resolved result and/or action property value and/or ServiceIndication according to authorization information, and generate the result, and the result is joined and in comparing result, generates test result.
Concrete, authorization information can comprise following four kinds: a. judges that according to si-expires in actual resolved result PUSH message is out of date, authorization information is for whether checking is by PUSH message write into Databasce or deletion, wherein, judge that according to the system time of mobile terminal whether si-expires attribute information is expired.B. judge that according to actual resolved result the ID of Service Indication exists, authorization information is whether checking deletes the Service Indication having stored, wherein, for the message with same services Indication message ID, only preserve the up-to-date message of creation-time.If when c. the action property value in actual resolved result is delete, whether authorization information deletes PUSH message for verifying.If d. the action property value in actual resolved result is not empty, whether authorization information points out user's PUSH message to arrive for verifying.Mobile terminal checking all test sample books that receive after, by the result gather and output display to tester.
According to the method for carrying out PUSH message test in mobile terminal of the embodiment of the present invention, some are not met to the sample of protocol specification, can depart from carrier network in the situation that, automatically at the local individual authentication of mobile terminal the PUSH message correctness of resolving.
In order to realize above-described embodiment, the present invention also proposes a kind of device that carries out PUSH message test in mobile terminal.
A device that carries out PUSH message test in mobile terminal, comprising: the first receiver module, and for receiving multiple test sample book, wherein, every kind of test sample book is to there being one to expect analysis result; Generation module, for generating polytype PUSH message according to multiple test sample book; Order module, for sorting according to preset order to polytype PUSH message; Parsing module, for resolving to generate actual resolved result to the polytype PUSH message after sequence; And comparing module, for expecting that analysis result and actual resolved result compare to generate the test result of polytype PUSH message.
Fig. 4 is the structural representation that carries out according to an embodiment of the invention the device of PUSH message test in mobile terminal.
As shown in Figure 4, the device that carries out PUSH message test in mobile terminal comprises: the first receiver module 100, generation module 200, order module 300, parsing module 400 and comparing module 500.
Particularly, the first receiver module 100 is for receiving multiple test sample book, and wherein, every kind of test sample book is to there being one to expect analysis result.Generation module 200 is for generating polytype PUSH message according to multiple test sample book.Wherein, the type of PUSH message can comprise service instruction Service Indication message, Service Loading message is downloaded in service and buffer memory is selected Cache Option message etc.Service indication message is that server sends a message to mobile terminal by gateway, and mobile terminal is resolved and stored, and is then prompted to user; Service download message is after receiving the message of server transmission, same mobile terminal also can resolve and store, and point out user, be that with service indication message difference mobile terminal can initiatively call browser and open subsidiary linking in service indication message.
In one embodiment of the invention, test sample book comprises medium type and attribute information, and wherein attribute information comprises link href attribute information, creation-time created attribute information, term of validity si-expires attribute information and action action attribute information etc.Particularly, medium type is for distinguishing dissimilar message, and for example, service indication message medium type is text/vnd.wap.si or application/vnd.wap.si; The medium type of service download message is text/vnd.wap.sl or application/vnd.wap.sl; It is text/vnd.wap.co or application/vnd.wap.co that buffer memory is selected the medium type of message.More specifically, the address that link href attribute information is used to indicate client and can obtains the URL of service; Creation-time created attribute information is for defining the creation-time of service indication message; Term of validity si-expires attribute information is for defining the term of validity of service indication message; Action action attribute information is made the action of response to service indication message for defining client.The attribute information difference that each dissimilar message comprises, for example, service indication message can comprise: href attribute, created attribute, si-expires attribute and action attribute etc., service download message selects message similar with buffer memory, and service download message can comprise href attribute and action attribute etc.Wherein, the value of herf attribute is a URL address, and the value of action attribute is respectively execute-low(user and selects not redirect browser), execute-high(user selects redirect browser) and cache(be stored in buffer memory).
Wherein, tester can arrange test sample book for different types and corresponding attribute information thereof, and the first receiver module 100 receives the test sample book that tester arranges, by different attributes is adjusted, for example revise property value, can construct dissimilar sample.Also in order to cover all test scenes, some are designed and have not met the sample of protocol specification, to verify the treating method of the parsing to PUSH message of mobile terminal after makeing mistakes.
Wherein, it can be based on XML(extensible markup language that service indication message, service download message and buffer memory are selected message, extend markup language) language description, in actual transmitting procedure, the text-converted of extend markup language can be become to binary WBXML(WAPBinary XML) language, to improve the efficiency of transmission of PUSH message.
Order module 300 is for sorting according to preset order to polytype PUSH message.
Parsing module 400 is for resolving to generate actual resolved result to the polytype PUSH message after sequence.
Comparing module 500 is for expecting that analysis result and actual resolved result compare to generate the test result of polytype PUSH message.
According to the method for carrying out PUSH message test in mobile terminal of the embodiment of the present invention, automatically generate dissimilar PUSH message by generation module according to dissimilar test sample book, can be in the situation that departing from carrier network, the correctness of automatically resolving at the local individual authentication PUSH message of mobile terminal, and whether PUSH message processing module in checking mobile terminal normally works, testing efficiency is high, saves human cost.
In one embodiment of the invention, order module 300 also for to polytype PUSH message in order or parallel mode sort.Thus, by order module, polytype PUSH message is sorted, improved the efficiency that test sample book is resolved.
In one embodiment of the invention, comparing module 500 also expects for verifying whether the medium type of analysis result and property value expect that with reality whether medium type and property value in analysis result be identical.
Fig. 5 is the structural representation that carries out in accordance with another embodiment of the present invention the device of PUSH message test in mobile terminal.
As shown in Figure 5, on basis embodiment illustrated in fig. 4, the device that carries out PUSH message test in mobile terminal also comprises: the second receiver module 600 and authentication module 700.
Particularly, the second receiver module 600 is for Receipt Validation information.
Authentication module 700 is for verifying for the practical operation of the ID of actual resolved result si-expires and/or action property value and/or Service Indication according to authorization information, and generates the result.The result that wherein, authentication module 700 can also be obtained joins in the comparing result that comparing module 500 generates to generate test result.
Concrete, authorization information can comprise following four kinds: a. judges that according to si-expires in actual resolved result PUSH message is out of date, authorization information is for whether checking is by PUSH message write into Databasce or deletion, wherein, judge that according to the system time of mobile terminal whether si-expires attribute information is expired.B. judge that according to actual resolved result the ID of Service Indication exists, authorization information is whether checking deletes the Service Indication having stored, wherein, for the message with same services Indication message ID, only preserve the up-to-date message of creation-time.If when c. the action property value in actual resolved result is delete, whether authorization information deletes PUSH message for verifying.If d. the action property value in actual resolved result is not empty, whether authorization information points out user's PUSH message to arrive for verifying.Mobile terminal checking all test sample books that receive after, by the result gather and output display to tester.
According to the device that carries out PUSH message test in mobile terminal of the embodiment of the present invention, some are not met to the sample of protocol specification, can depart from carrier network in the situation that, automatically at the local individual authentication of mobile terminal the PUSH message correctness of resolving.
In order to realize above-described embodiment, the present invention proposes again a kind of mobile terminal.
A kind of mobile terminal comprises the device that carries out PUSH message test in mobile terminal described in any one embodiment of the present invention.
According to the mobile terminal of the embodiment of the present invention, by carry out the device of PUSH message test in mobile terminal, can automatically generate dissimilar PUSH message according to dissimilar test sample book, can be in the situation that departing from carrier network, the correctness of automatically resolving at the local individual authentication PUSH message of mobile terminal, and whether PUSH message processing module in checking mobile terminal normally work, testing efficiency is high, saves human cost.
Should be appreciated that in an embodiment of the present invention, mobile terminal can be the hardware device that mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in memory and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, amendment, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.

Claims (15)

1. a method of carrying out PUSH message test in mobile terminal, is characterized in that, comprises the following steps:
A, mobile terminal receive multiple test sample book, and wherein, every kind of test sample book is to there being one to expect analysis result;
B, described mobile terminal generate polytype PUSH message according to described multiple test sample book;
C, described mobile terminal sort according to preset order to described polytype PUSH message;
D, described mobile terminal resolve to generate actual resolved result to the polytype PUSH message after described sequence; And
E, described mobile terminal are compared described expectation analysis result and described actual resolved result to generate the test result of described polytype PUSH message.
2. method according to claim 1, is characterized in that, described step c specifically comprises the following steps:
Described mobile terminal to described polytype PUSH message in order or parallel mode sort.
3. method according to claim 1 and 2, is characterized in that, described type comprises service instruction Service Indication message, Service Loading message is downloaded in service and buffer memory is selected CacheOption message.
4. according to the method described in claim 1-3 any one, it is characterized in that, described test sample book comprises medium type and attribute information, and wherein said attribute information comprises link href attribute information, creation-time created attribute information, term of validity si-expires attribute information and action action attribute information.
5. method according to claim 4, is characterized in that, described step e specifically comprises the following steps:
Described mobile terminal verifies that whether whether described medium type and the described property value in described expectation analysis result identical with described medium type and described property value in described actual resolved result.
6. method according to claim 4, is characterized in that, further comprising the steps of:
Described mobile terminal Receipt Validation information; And
Described mobile terminal is verified for the practical operation of the ID of si-expires described in described actual resolved result and/or action property value and/or described Service Indication according to described authorization information, and is generated the result.
7. method according to claim 6, is characterized in that, described authorization information comprises:
If judge that according to si-expires described in described actual resolved result described PUSH message is out of date, described authorization information is for whether checking is by described PUSH message write into Databasce or deletion;
If judge that according to described actual resolved result the ID of described Service Indication exists, described authorization information is whether checking deletes the described Service Indication having stored;
If when the described action property value in described actual resolved result is delete, described authorization information is for whether checking is by described PUSH message deletion; And
If the described action property value in described actual resolved result is not empty, whether described authorization information is pointed out PUSH message described in user for checking and is arrived.
8. a device that carries out PUSH message test in mobile terminal, is characterized in that, comprising:
The first receiver module, for receiving multiple test sample book, wherein, every kind of test sample book is to there being one to expect analysis result;
Generation module, for generating polytype PUSH message according to described multiple test sample book;
Order module, for sorting according to preset order to described polytype PUSH message;
Parsing module, for resolving to generate actual resolved result to the polytype PUSH message after described sequence; And
Comparing module, for comparing described expectation analysis result and described actual resolved result to generate the test result of described polytype PUSH message.
9. device according to claim 8, is characterized in that, described order module also for:
To described polytype PUSH message in order or parallel mode sort.
10. device according to claim 8 or claim 9, is characterized in that, described type comprises service instruction Service Indication message, Service Loading message is downloaded in service and buffer memory is selected CacheOption message.
Device described in 11. according to Claim 8-10 any one, it is characterized in that, described test sample book comprises medium type and attribute information, and wherein said attribute information comprises link href attribute information, creation-time created attribute information, term of validity si-expires attribute information and action action attribute information.
12. devices according to claim 11, is characterized in that, described comparing module also for:
Verify that whether whether described medium type and described property value in described expectation analysis result identical with described medium type and described property value in described actual resolved result.
13. devices according to claim 11, is characterized in that, also comprise:
The second receiver module, for Receipt Validation information; And
Authentication module, for verifying for the practical operation of the ID of si-expires described in described actual resolved result and/or action property value and/or described Service Indication according to described authorization information, and generates the result.
14. devices according to claim 13, is characterized in that, described authorization information comprises:
If judge that according to si-expires described in described actual resolved result described PUSH message is out of date, described authorization information is for whether checking is by described PUSH message write into Databasce or deletion;
If judge that according to described actual resolved result the ID of described Service Indication exists, described authorization information is whether checking deletes the described Service Indication having stored;
If when the described action property value in described actual resolved result is delete, described authorization information is for whether checking is by described PUSH message deletion; And
If the described action property value in described actual resolved result is not empty, whether described authorization information is pointed out PUSH message described in user for checking and is arrived.
15. 1 kinds of mobile terminals, is characterized in that, comprise the device that carries out PUSH message test in mobile terminal described in claim 8-14 any one.
CN201210500025.9A 2012-11-29 2012-11-29 Method and device for performing push message test in mobile terminal, and mobile terminal Active CN103856911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210500025.9A CN103856911B (en) 2012-11-29 2012-11-29 Method and device for performing push message test in mobile terminal, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210500025.9A CN103856911B (en) 2012-11-29 2012-11-29 Method and device for performing push message test in mobile terminal, and mobile terminal

Publications (2)

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

Family

ID=50864034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210500025.9A Active CN103856911B (en) 2012-11-29 2012-11-29 Method and device for performing push message test in mobile terminal, and mobile terminal

Country Status (1)

Country Link
CN (1) CN103856911B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050227739A1 (en) * 1998-11-17 2005-10-13 Dowling Eric M Geographical web browser, methods, apparatus and systems
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050227739A1 (en) * 1998-11-17 2005-10-13 Dowling Eric M Geographical web browser, methods, apparatus and systems
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
CN103856911B (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN108427646B (en) Android App automatic test framework construction method and device based on Apium
CN103152400B (en) The method, system and the cloud server that log in is carried out by mobile terminal
CN105303112B (en) The detection method and device of component call loophole
CN103118326A (en) Information pushing method, information pushing device and information pushing system based on geographical location information
CN111782546B (en) Automatic interface testing method and device based on machine learning
CN110928770B (en) Software testing method, device, system, storage medium and electronic equipment
CN106502883A (en) The database synchronization method and system of client and service end during automatic test
CN110321669A (en) Method, apparatus, equipment and the storage medium that application program is signed again
CN109669717A (en) Data processing method, device, equipment and storage medium based on deployment platform
CN107948942A (en) A kind of short message service automated testing method and device
CN106059860A (en) Method and device for testing network cards
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN115309660A (en) Interface testing method and device, storage medium and computer equipment
US10111120B2 (en) Apparatus and method for diagnosing anomaly in mobile communication network
CN115426624B (en) Automatic login method, device, equipment and storage medium
CN103856911A (en) Method and device for performing push message test in mobile terminal, and mobile terminal
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
CN114721969A (en) Method and device for separating interface automation test data and test codes
CN114205325A (en) Message sending method, device, server and storage medium
CN113886221A (en) Test script generation method and device, storage medium and electronic equipment
CN107291610A (en) Testing case management and device
CN110737426A (en) Program block creating method, program block creating device, computer equipment and storage medium
CN110855526A (en) Method and device for detecting data source connection, storage medium and electronic equipment
CN110287436A (en) Detect page load time method, apparatus, equipment and storage medium
CN116204418A (en) Test method and device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant