Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Although the step in the present invention is arranged with label, it is not used to limit the precedence of step, unless
Based on specify that the order of step or the execution of certain step and needing other steps, otherwise the relative rank of step is
It is adjustable.
Fig. 1 for an embodiment expense control interactive terminal open an account functional test method indicative flowchart;Suitable for taking
Control interactive terminal.Expense control interactive terminal is made up of communication unit, display unit, main control unit and user's card interface unit etc., can
Realize that the long-range of electric energy meter is controlled to expense opens an account, supplements with money and the function such as parameter updates, and is provided simultaneously with alarm, communication forwarding, looks into
Ask the terminal device of the functions such as display.
As shown in figure 1, the expense control interactive terminal in the present embodiment is opened an account, the method for functional test includes step:
S1, detection default at least two is opened an account the swiping card information of each card of opening an account in card, is swiped the card according to described
Operation information acquisition is respectively opened an account the parameter information of card.
Usually, the card of opening an account opened an account for electric energy meter can be IC-card or radio-frequency card, and record has card recognition letter thereon
The parameter informations such as breath, user account information, electric energy meter information.It should be understood that the swiping card information includes contact brush
Card operation information and contactless swiping card information, contact swiping card such as plug-in card are operated, contactless swiping card
Can be based on swiping the card that any near-field communication technology (bluetooth, NFC and other video techniques) is realized.
In an alternative embodiment, expense control interactive terminal open an account functional test method also include step:Default at least two
Individual card of opening an account, described at least two open an account card including parameter error open an account card and parameter is correctly opened an account card.
S2, obtains the expense control interactive terminal according to the parameter information of card of respectively opening an account to opening an account that corresponding electric energy meter is sent
Order.
In an alternative embodiment, the electric energy meter is the electric energy meter that server end is simulated in advance, described to take control interaction eventually
End is connected with the signal of the electric energy meter of the simulation.The true electric energy of different conditions can be simulated by the electric energy meter of the simulation
Table, for example, simulate the electric energy meter that response is normal and opens of opening an account, or the open an account electric energy meter that response is abnormal or closes, Huo Zhemo
The electric energy meter of "on" position is drawn up, or simulate the electric energy meter of tripped condition etc..The state that true electric energy meter is likely to occur,
It can be simulated by the electric energy meter of the simulation.Thus the comprehensive of test is improved;It is by the software of server end simultaneously
Simulated electric energy table status can be changed, without connecting various real electric energy meters, be also beneficial to control testing cost with this.
S4, obtains the expense control interactive terminal and is receiving the response message that electric energy meter is opened an account after response message.
Under normal circumstances, electric energy meter, can be by it to the life of opening an account after the order of opening an account that expense control interactive terminal is issued is received
The execution information of order return to it is described expense control interactive terminal, so as to take control interactive terminal show the described of electric energy meter perform letter
Breath, is easy to user to know situation of actually opening an account.
S4, judges that expense control interactive terminal is opened an account according to the parameter information, open an account order and the response message
Whether function is qualified.
, can the Function detection mould of opening an account based on the expense control interactive terminal for learning to obtain in advance in an alternative embodiment
Type analysis state parameter information, open an account order and the response message, and the Function detection model of opening an account can be by split
Function qualified expense control interactive terminal in family carries out the model that machine learning is obtained, and the model is with card parameter information of opening an account, finger of opening an account
It is input to make response message described in information, and whether the function of opening an account of controlling interactive terminal with the expense is qualified for output.
In another alternative embodiment, with reference to shown in Fig. 2, according to the parameter information, the order and described of opening an account
Response message judges that the expense control interactive terminal whether qualified implementation of function of opening an account can also be:
L1, detects whether the parameter information is correct, if incorrect, and whether order of being opened an account described in detection is empty, if not
Sky, then judge that the expense control interactive terminal function of opening an account is unqualified, if it is empty, perform step L3;If the parameter information is correct,
Perform step L 2;
Whether L2, order of opening an account described in detection is correct;If the order of opening an account is incorrect, the expense control interaction is judged eventually
Hold function of opening an account unqualified, if the order of opening an account is correct, perform step L 3;
L3, the response message is compared with default with reference to response message, if both are inconsistent, judges described
Expense control interactive terminal function of opening an account is unqualified;If both are inconsistent, judge that expense control interactive terminal function of opening an account is qualified.Wherein, institute
State and opened an account the response after response message with reference to the response message qualified expense control interactive terminal of function that represents to open an account receiving electric energy meter
Information.
In an alternative embodiment, the parameter information of the card of respectively opening an account of acquisition may include:Electric energy meter table number information, card of opening an account
Sequence number, Customs Assigned Number and/or power purchase number information.Preferably, parameter error both includes parameters format error itself
Or the corresponding relation mistake between setup parameter scope or parameter, such as electric energy meter table number information, card of opening an account
The corresponding relation mistake of sequence number, Customs Assigned Number between any two.
As can be seen here, by the test mode of above-described embodiment, can also test fee control interactive terminal parameter error is opened
Identifying whether for family card is qualified, if for example, recognize the card of opening an account of parameter error, the control interactive terminal of taking will not be to corresponding
Electric energy meter sends instruction of opening an account, or sends a do-nothing instruction, thus can prevent from stealing situation about swiping the card;Only recognize parameter just
It is true open an account card when, the expense control interactive terminal just sends instruction of effectively opening an account to corresponding electric energy meter.
In an alternative embodiment, the response message includes:Card of opening an account, which is returned, writes execution information and/or electric energy meter is opened an account shape
State record information.Expense control interactive terminal sends instruction instruction of opening an account to electric energy meter according to correct card of opening an account, not only can be local
This response message of opening an account is preserved and shows, the response message of opening an account that can be also returned according to electric energy meter is carried out to the card of opening an account
Return and write, such as the more new account state, renewal power purchase number of times more information that are preserved in card of opening an account.In addition, can also be repaiied by returning to write
Change user profile.
In an alternative embodiment, the swiping card letter of each card of opening an account in card is opened an account in detection default at least two
Before breath, in addition to step:The expense control interactive terminal is set time under formal key state, and takes control friendship to described
Mutual terminal is initialized.
In an alternative embodiment, the swiping card letter of each card of opening an account in card is opened an account in detection default at least two
Before breath, in addition to step:It is that each card of opening an account sets up a corresponding card archives of opening an account in the expense control interactive terminal,
And/or, each electric energy meter for expense control interactive terminal connection sets up an electric energy meter archives.Can effectively it be managed by the card archives of opening an account
The history of the same card information of opening an account of reason is opened an account information;Pass through opening an account that the electric energy meter archives can manage that each electric energy meter returns every time
Response message.
Further, respectively opened an account according to the swiping card acquisition of information after the parameter information of card, in addition to step:Will
The parameter information writes corresponding card archives of opening an account.Obtain it is described expense control interactive terminal receive electric energy meter open an account response letter
After response message after breath, step may also include:Electric energy meter response message of opening an account is write into corresponding electric energy meter archives, with
And card archives of being opened an account according to updating the response message of the expense control interactive terminal.Due to the response for taking control interactive terminal
Information includes the fresh information of split family card parameter, therefore needs the corresponding card archives of opening an account of card of being opened an account described in synchronized update.
In addition, by the card archives of opening an account, electric energy meter archives, also facilitating the history for obtaining the expense control interactive terminal to open
Family information, by studying history open an account information architecture or improve expense control interactive terminal Function detection model of opening an account.
Further, the method for functional test of being opened an account below to the expense control interactive terminal of above-described embodiment carries out exemplary theory
It is bright.Idiographic flow is as follows:
Step 1:Under formal key state, open an account card archives and simulation table archives, progress are set in expense control interactive terminal
Pair when;
Step 2:The expense control interactive terminal is initialized.The control control interactive terminal of taking enters formal key shape
State, brushes the card of opening an account of a certain parameter error, it is assumed that electric energy meter response is normal, acquisition takes control interaction on the expense control interactive terminal
The situation and the responsive status according to electric energy meter response of the following orders of opening an account of terminal;Thus detect the expense control interactive terminal in ginseng
Miscount mistake open an account card when functional test of opening an account whether pass through.
Step 3:The card of opening an account of a certain parameter error is brushed on the expense control interactive terminal, it is assumed that electric energy meter response is abnormal
(can not reply), obtains the situation and the responsive status according to electric energy meter response of the expense control following orders of opening an account in interactive terminal;By
This detection expense control interactive terminal parameter error open an account card and electric energy meter response exception when functional test of opening an account whether lead to
Cross.
Step 4:Brush parameter is correctly opened an account card on the expense control interactive terminal, it is assumed that electric energy meter response is normal, acquisition
The situation and the responsive status according to electric energy meter response of the expense control following orders of opening an account in interactive terminal;The responsive status includes opening an account
State, the renewal of card power purchase of opening an account message file, electric energy meter customer number, power purchase record etc..Thus the expense control interaction is detected eventually
Hold whether functional test of being opened an account when parameter correctly opens an account card and normal electric energy meter response passes through.
Step 5:The detection case of checking step 2~4, it is described to take control interactive terminal if either step detection does not pass through
The overall test conclusion for function of opening an account be " unqualified ", only when 3 steps detect by when, just draw it is described expense control interaction eventually
The overall test conclusion for holding function of opening an account is " qualified ".
Opened an account the method for functional test, opened an account by default at least two by the expense control interactive terminal of above-described embodiment
Card, including parameter error open an account card and parameter is correctly opened an account card;When swiping the card, the parameter information for card of respectively opening an account is read, is obtained
The order of opening an account that the expense control interactive terminal is sent according to the parameter information for card of respectively opening an account to corresponding electric energy meter;Obtain the expense
Control interactive terminal is receiving the response message that electric energy meter is opened an account after response message;According to the parameter information, the life of opening an account
Order and the response message judge whether expense controls interactive terminal function of opening an account qualified.Thereby, it is possible to obtain expense control interactive terminal
For the response condition of the function of opening an account of different cards of opening an account, expense control interactive terminal is drawn according to the response message under different situations
Open an account functional test results, therefore ensure that the objectivity of test result, and improve testing efficiency.
It should be noted that for foregoing each method embodiment, for simplicity description, it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to
According to the present invention, some steps can use other orders or carry out simultaneously.
Based on the method identical thought for functional test of being opened an account with the expense control interactive terminal in above-described embodiment, the present invention is also
There is provided expense control interactive terminal to open an account the device of functional test, the device can be used for performing above-mentioned expense control interactive terminal and open an account function survey
The method of examination.For convenience of description, expense control interactive terminal open an account functional test device embodiment structural representation in, only
The part related to the embodiment of the present invention is shown, it will be understood by those skilled in the art that schematic structure not structure twin installation
Restriction, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Fig. 3 for one embodiment of the invention expense control interactive terminal open an account functional test device schematic diagram, should
Device can apply to any expense control interactive terminal.The functional test as shown in figure 3, the expense control interactive terminal of the present embodiment is opened an account
Device includes:
Swipe the card detection module 301, for detecting default at least two swiping cards for opening an account each card of opening an account in card
Information, the parameter information for card of respectively being opened an account according to the swiping card acquisition of information.
Order detection module 302, for obtaining the parameter information for controlling interactive terminal according to card of respectively opening an account that takes to correspondence
Electric energy meter send order of opening an account.
Execution information detection module 303, opens an account response message receiving electric energy meter for obtaining the expense control interactive terminal
Response message afterwards.
Judge module 304, for according to the parameter information, open an account order and the response message judgement expense control
Whether interactive terminal function of opening an account is qualified.
In an alternative embodiment, the open an account device of functional test of the expense control interactive terminal also includes:Card of opening an account is set
Module, opens an account card for presetting at least two, described at least two open an account card including parameter error open an account card and parameter it is correct
Card of opening an account.
In an alternative embodiment, the judge module 304, for performing following steps:
L1, detects whether the parameter information is correct, if incorrect, and whether order of being opened an account described in detection is empty, if not
Sky, then judge that the expense control interactive terminal function of opening an account is unqualified, if it is empty, perform step L3;If the parameter information is correct,
Perform step L 2;
Whether L2, order of opening an account described in detection is correct;If the order of opening an account is incorrect, the expense control interaction is judged eventually
Hold function of opening an account unqualified, if the order of opening an account is correct, perform step L 3;
L3, the response message is compared with default with reference to response message, if both are inconsistent, judges described
Expense control interactive terminal function of opening an account is unqualified;If both are inconsistent, judge that expense control interactive terminal function of opening an account is qualified.
In an alternative embodiment, the open an account device of functional test of the expense control interactive terminal also includes:Initialization module,
Carried out initially for being set time in advance under formal key state to expense control interactive terminal, and to the control interactive terminal of taking
Change.And/or, module for managing files, in advance it is described expense control interactive terminal be each card of opening an account set up one it is corresponding
Open an account card archives, and branch sets up an electric energy meter archives for each electric energy meter of expense control interactive terminal connection.
Further, the module for managing files can be additionally used in after the parameter information for card of respectively opening an account is obtained, will be described
Parameter information writes corresponding card archives of opening an account;For electric energy meter response message of opening an account to be write into corresponding electric energy meter archives, with
And card archives of being opened an account according to updating the response message of the expense control interactive terminal.
It should be noted that the expense control interactive terminal of above-mentioned example is opened an account in the embodiment of the device of functional test, respectively
The contents such as information exchange, implementation procedure between module, due to being based on same design, its band with preceding method embodiment of the present invention
The technique effect come is identical with preceding method embodiment of the present invention, and particular content can be found in chatting in the inventive method embodiment
State, here is omitted.
In addition, the expense control interactive terminal of above-mentioned example is opened an account in the embodiment of the device of functional test, each program module
Logical partitioning be merely illustrative of, can be as needed in practical application, for example the configuration requirement for corresponding hardware or
The convenient consideration of the realization of software, above-mentioned functions are distributed and completed by different program modules, described will take control interactive terminal
The internal structure of device of functional test of opening an account is divided into different program modules, described above all or part of to complete
Function.
It will appreciated by the skilled person that realizing all or part of flow in above-described embodiment method, being can
To instruct the hardware of correlation to complete by computer program, described program can be stored in embodied on computer readable storage Jie
In matter, as independent production marketing or use.Described program upon execution, can perform the complete of such as embodiment of above-mentioned each method
Portion or part steps.In addition, the storage medium also can be set with a kind of computer equipment, also being wrapped in the computer equipment
When including the program in processor, storage medium described in the computing device, can realize above-mentioned each method embodiment it is complete
Portion or part steps.Wherein, described storage medium can be magnetic disc, CD, read-only memory (Read-Only
Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.It is appreciated that wherein used term " first ", " second " etc. are at this
It is used to distinguish object in text, but these objects should not be limited by these terms.
Embodiment described above only expresses the several embodiments of the present invention, it is impossible to be interpreted as to the scope of the claims of the present invention
Limitation.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise,
Various modifications and improvements can be made, these belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention
It should be determined by the appended claims.