CN109766272A - Test method, device, terminal and the storage medium of self-service withdrawal application software - Google Patents

Test method, device, terminal and the storage medium of self-service withdrawal application software Download PDF

Info

Publication number
CN109766272A
CN109766272A CN201811605222.0A CN201811605222A CN109766272A CN 109766272 A CN109766272 A CN 109766272A CN 201811605222 A CN201811605222 A CN 201811605222A CN 109766272 A CN109766272 A CN 109766272A
Authority
CN
China
Prior art keywords
test
current
self
application software
alternative flows
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.)
Pending
Application number
CN201811605222.0A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811605222.0A priority Critical patent/CN109766272A/en
Publication of CN109766272A publication Critical patent/CN109766272A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses test method, device, terminal and the storage mediums of a kind of self-service withdrawal application software, the method includes current event stream is obtained from the basic flow of self-service withdrawal application software, alternative flows in current event stream are traversed, obtain the current alternative flows traversed, test logical code corresponding with current alternative flows is matched from logic deposit code set, and current test case corresponding with current alternative flows is generated based on the test logical code matched;Current test case is programmed into preset electronic table, finally determines the test script of self-service withdrawal application software, test script is called to test the current test case in preset electronic table.The present invention does not need for test scene to be sent into data test model, even if service logic changes, without the corresponding test script of manual change service logic, and then can be improved testing efficiency.

Description

Test method, device, terminal and the storage medium of self-service withdrawal application software
Technical field
The present invention relates to software test field more particularly to a kind of test method of self-service withdrawal application software, device, Terminal and storage medium.
Background technique
Self-service automatic teller machine is the electronic equipment that a kind of client carries out Self-Service, it have deposit, withdraw the money, transferring accounts, It queries the balance, the functions such as Modify password, is a kind of novel bank computer terminal.User when using self-service automatic teller machine, Due to being related to the privacy and the fund amount of money of user, it is therefore necessary to guarantee the withdrawal built in self-service automatic teller machine using soft as far as possible Part is without any problem loophole, and preventing user as far as possible, there is a phenomenon where transaction exceptions using when self-service automatic teller machine, on card Money buckled but do not spat paper money, by retain card phenomena such as, avoid causing economic loss to user.Therefore self-service automatic teller machine is related Responsible software test personnel need periodically to built in self-service automatic teller machine withdrawal application software carry out software test.
Now with being increasing for business demand, customer service requirement etc., so that the survey of self-service withdrawal application software Examination hall scape can become more and more, and withdrawal application software becomes more complicated, so that test script early development cost Higher, data file maintenance is cumbersome and then causes script maintenance not very convenient, so affect the working efficiency of tester.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of test method of self-service withdrawal application software, device, terminal and Storage medium, it is intended to which the built-in application Software maintenance process for solving self-service automatic teller machine at present is cumbersome, the work of dependence test personnel Make inefficient problem.
To achieve the above object, the present invention provides a kind of test method of self-service withdrawal application software, it is described include with Lower step:
Current event stream is obtained from the basic flow of self-service withdrawal application software to be tested, the basic flow characterizes institute The basic process completing deposit when self-service withdrawal application software is used or withdrawing the money is stated, the basic process includes at least one Flow of event, a flow of event are characterized as a process in the basic process;
Alternative flows in the current event stream are traversed, the current alternative flows traversed are obtained, it is described current standby Stream is selected to be characterized as the test scene in the current event stream;
Test logical code corresponding with the current alternative flows is matched from logic deposit code set, and based on matching Test logical code out generates current test case corresponding with the current alternative flows;
The current test case is programmed into preset electronic table;
The test script for determining the self-service withdrawal application software, calls the test script to the preset electronic table Current test case in lattice is tested.
Preferably, described to match test logic generation corresponding with the current alternative flows from logic deposit code set Code, and before generating current test case step corresponding with the current alternative flows based on the test logical code that matches, Further include:
Current test corresponding with the current alternative flows is generated in conjunction with the current alternative flows and the current event stream Scene;
It is described to match test logical code corresponding with the current alternative flows from logic deposit code set, and be based on The test logical code that matches generates current test case corresponding with the current alternative flows, specifically includes:
Match test logical code corresponding with the present test field scape from logic deposit code set, and based on The test logical code allotted generates current test case corresponding with the present test field scape.
Preferably, described that the current test case is programmed into preset electronic table, it specifically includes:
The current test case is resolved into multiple code keywords, obtained multiple code keywords are programmed into pre- If forming the table data of the current test case in electrical form.
Preferably, the test script of the determination self-service withdrawal application software, calls the test script to institute The current test case stated in preset electronic table is tested, and is specifically included:
It determines the test script of the self-service withdrawal application software, is based on the test script and the current alternative flows Determine the corresponding trigger event of the current alternative flows;
The table data of the current test case are chosen from the preset electronic table according to the trigger event;
The table data of the current test case are called to carry out the current alternative flows of the self-service withdrawal application software Test.
Preferably, the trigger event includes test desired value;
Current alternative flows of the table data for calling the current test case to the self-service withdrawal application software It is tested, further includes:
Judge whether is difference between the test result of the current alternative flows and the test desired value of the trigger event In default error threshold range;
If so, discriminating test success, if it is not, then discriminating test fails.
Preferably, described to match test logical code corresponding with the current alternative flows from logic deposit code set Before, further includes:
Receive the test logical code inputted for the different alternative flows of each flow of event;
Each test logical code is saved in the logic deposit code set.
Preferably, the preset electronic table is Excel table;
The test script of the determination self-service withdrawal application software, calls the test script to the default electricity After current test case in sub-table is tested, further includes:
The test result of the self-service withdrawal application software is shown in the Excel table.
In addition, I realizes above-mentioned purpose, the present invention also proposes a kind of test device of self-service withdrawal application software, described Test device includes:
Module is obtained, for obtaining current event stream, institute from the basic flow of self-service withdrawal application software to be tested It states basic flow and characterizes the basic process completing deposit when the self-service withdrawal application software is used or withdrawing the money, the basic mistake Journey is made of at least one flow of event, and a flow of event is characterized as a process in the basic process;
Spider module, for being traversed to the alternative flows in the current event stream, obtain traverse it is current alternative Stream, the alternative flows are characterized as the test scene in the current event stream;
Matching module, for matching test logic generation corresponding with the current alternative flows from logic deposit code set Code, and current test case corresponding with the current alternative flows is generated based on the test logical code that matches;
Module is write, for the current test case to be programmed into preset electronic table;
Test module calls the test script pair for determining the test script of the self-service withdrawal application software Current test case in the preset electronic table is tested.
In addition, I realizes above-mentioned purpose, the present invention also proposes a kind of test terminal, the test terminal include: memory, Processor and the survey for self-service withdrawal application software that is stored on the memory and can run on the processor Program is tried, the test program of the self-service withdrawal application software is arranged for carrying out self-service withdrawal application software as described above Test method the step of.
In addition, I realizes that above-mentioned purpose, the present invention also propose a kind of storage medium, be stored with and be directed on the storage medium The test program of self-service withdrawal application software, the test program for self-service withdrawal application software are executed by processor Shi Shixian as described above the test method of self-service withdrawal application software the step of.
The present invention obtains current event stream from the basic flow of self-service withdrawal application software, to standby in current event stream It selects stream to be traversed, obtains the current alternative flows traversed, matched from logic deposit code set corresponding with current alternative flows Test logical code, and current test case corresponding with current alternative flows is generated based on the test logical code that matches; Current test case is programmed into preset electronic table;It determines the test script of self-service withdrawal application software, calls test Script tests the current test case in preset electronic table.The present invention does not need test scene being sent into data test In model, after the test script for determining the self-service withdrawal application software, call the test script to preset electronic table Current test case in lattice is tested, corresponding without manual change service logic even if service logic changes Test script, and then can be improved testing efficiency.
Detailed description of the invention
Fig. 1 is the hardware running environment that the embodiment of the present invention is related to for self-service withdrawal application software testing The structural schematic diagram of terminal;
Fig. 2 is a kind of flow diagram of the test method first embodiment of self-service withdrawal application software of the present invention;
Fig. 3 is a kind of flow diagram of the test method second embodiment of self-service withdrawal application software of the present invention;
Fig. 4 is a kind of structural block diagram of the test device of self-service withdrawal application software of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is that applying for self-service withdrawal for the hardware running environment that the embodiment of the present invention is related to is soft The terminal structure schematic diagram of part test.
As shown in Figure 1, the test terminal may include: processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Test interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to the test terminal, it can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, may include operating system, Subscriber Interface Module SIM and self-service withdrawal in the memory 1005 The test program of application software.
In terminal shown in Fig. 1, test interface 1004 is mainly used for being attached with self-service automatic teller machine, tester When wanting to detect the application software built in self-service automatic teller machine, it is used to carry out with self-service automatic teller machine by test interface 1004 Connection, can test self-service withdrawal application software by the terminal;User interface 1003 is mainly used for connection and surveys The control equipment (such as mouse, keyboard light) of the interaction of examination personnel or developer;Processor 1001 in terminal of the present invention is deposited Reservoir 1005 can be set in the test terminal, and the test terminal is called in memory 1005 by processor 1001 and deposited The test program for self-service withdrawal application software of storage, and execute the test side for being directed to self-service withdrawal application software The step of method.
It is a kind of first embodiment stream of the test method for self-service withdrawal application software of the present invention referring to Fig. 2, Fig. 2 Journey schematic diagram, the test method the following steps are included:
Step S10: obtaining current event stream from the basic flow of self-service withdrawal application software to be tested, described basic Flow table levies the basic process completing deposit when the self-service withdrawal application software is used or withdrawing the money, and the basic process includes At least one flow of event, a flow of event are characterized as a process in the basic process.
Step S20: traversing the alternative flows in the current event stream, obtains the current alternative flows traversed, institute State the test scene that current alternative flows are characterized as in the current event stream;
It should be noted that the executing subject of the present embodiment is the above-mentioned terminal for self-service withdrawal application software testing Processor.
It will be appreciated that user is to complete the deposit or taking-up of cash using the final purpose of self-service automatic teller machine, because " basic flow " described in this is defined as: complete to deposit or withdraw the money according to its bottom normal process sequence by the withdrawal program One basic process executes the corresponding bottom code of each process specially to realize the deposit or taking-up of cash.
Correspondingly, " flow of event " is defined as a process in " basic flow ", i.e., " basic flow " this basic process is by more A " flow of event " composition.One " flow of event " is an indispensable sport technique segment in " basic flow ".
Further, correspondence is preset with multiple " alternative flows " in one " flow of event ", and one " alternative flows " can be regarded as base The special circumstances of one " flow of event " in this stream, each alternative flows is by an alternative flows ID and scenario key institute group At the corresponding multiple and different alternative flows of each flow of event;
The present embodiment, it is self-service to deposit for withdraw the money operation using self-service automatic teller machine by user as " basic flow " Its bottom code in execution of withdrawal application software realizes that this basic process of withdrawing the money can be divided into 7 flows of event:
Flow of event 1: magnetic card is inserted into self-service automatic teller machine by client, and self-service automatic teller machine verifies magnetic card, verifies magnetic Block corresponding account information, to determine whether the magnetic card belongs to the magnetic card that bank is authorized.Assuming that the corresponding alternative flows of flow of event 1 It is 1 for ID, i.e., alternative flows 1, keyword are " bank card is invalid ";The alternative flows that so ID is 1 are recorded as default storage format: Flow of event 1+ alternative flows 1+ " bank card is invalid ".
Flow of event 2: self-service automatic teller machine prompt user inputs magnetic card identification code PIN, and self-service automatic teller machine is defeated according to user The magnetic card identification code PIN entered determines whether the card information is effective.Assuming that it is 2 that the corresponding alternative flows of flow of event 2, which are ID, i.e., it is standby Choosing stream 2, keyword are " PIN code is invalid ";The alternative flows that so ID is 2 are recorded as default storage format: flow of event 2+ is alternative It flows 2+ " PIN code is invalid ";
Flow of event 3: self-service automatic teller machine shows respective information option corresponding with the magnetic card, and selected by response " withdrawal " option.
Flow of event 4: the withdrawal " amount of money " of client's input is received;
Assuming that the corresponding alternative flows ID of flow of event 4 is 3, i.e. alternative flows 3, the keyword of alternative flows 3 is " withdrawal option It is not available ";The alternative flows that so ID is 3 are recorded as default storage format: flow of event 4+ alternative flows 3+ " withdrawal option without Method use ";
Meanwhile the corresponding another alternative flows ID of flow of event 4 is 4, i.e. alternative flows 4,4 keyword of alternative flows is " more than bank card Volume is insufficient ";The alternative flows that so ID is 4 are recorded as default storage format: " bank card remaining sum is or not flow of event 4+ alternative flows 4+ Foot ";)
Meanwhile the corresponding another alternative flows ID of flow of event 4 is 5, i.e. alternative flows 5, the keyword of alternative flows 5 is " cash dispenser It is short of cash ";The alternative flows that so ID is 5 are recorded as default storage format: " cash dispenser cash is or not flow of event 4+ alternative flows 5+ Foot ".
Flow of event 5: self-service automatic teller machine generates one according to bank card ID, magnetic card identification code PIN, the amount of money and account information Transaction request is sent to banking system to start verification process.For this flow of event, banking system is on line state, and Banking system carries out timely responding to handle to the transaction request, and withdrawal process is completed in approval, and updates account balance accordingly.
Correspondingly, the corresponding alternative flows ID of flow of event 5 is 6, i.e., alternative flows 6, keyword are that " customer bank card is limited System ", then the alternative flows that ID is 6 are recorded as default storage format: flow of event 5+ alternative flows 6+ " customer bank card is limited ".
Flow of event 6: cash dispenser receives banking system and returns to cash granting instruction, the withdrawal of cash dispenser pop-up and user's input " amount of money " consistent cash bills.
The corresponding alternative flows ID of flow of event 6 is 7, i.e., alternative flows 7, keyword are " withdrawal cash bills are stuck ", The alternative flows that so ID is 7 are recorded as default storage format: flow of event 6+ alternative flows 7+ " banknote is stuck ".
The present embodiment, each alternative flows are made of an alternative flows ID and scenario key, each flow of event It is corresponding to a different alternative flows, each alternative flows are stored in advance in an alternative flows set
Step S30: matching test logical code corresponding with the current alternative flows from logic deposit code set, and Current test case corresponding with the current alternative flows is generated based on the test logical code that matches;
Specifically, this programme can in a certain order test flow of event each in basic flow,.And in we Before case is real-time, relevant software test personnel can be to the above-mentioned terminal input pair for self-service withdrawal application software testing The test logical code answered, it is described test terminal can receive for the self-service withdrawal application software each flow of event not With the test logical code of alternative flows input, each test logical code is saved in the logic deposit code set.
It will be appreciated that software test personnel need to write a variety of test logical codes for different event stream in advance, often The alternative flows of the corresponding flow of event of kind test logical code, the test logical code are characterized as bottom relevant to the alternative flows The service logic of layer identification code, finally will be in each test logical code storage logic deposit code collection.
Before the step S30, further includes: in conjunction with the current alternative flows and the current event stream generate with it is described The corresponding present test field scape of current alternative flows;Then it executes and is matched and the present test field from logic deposit code set The corresponding test logical code of scape, and work as corresponding with the present test field scape, is generated based on the test logical code matched The step of preceding test case.
For example, being traversed to the alternative flows in flow of event 1 when being directed to flow of event 1, obtaining the storage format traversed In include character string " flow of event 1 " alternative flows, when traversing alternative flows 1, according to the string keys of alternative flows 1 " silver Row card is invalid ", binding events stream 4 generates scene corresponding with alternative flows 1, matches and the field from logic deposit code set The corresponding test logical code of scape, characterization are as follows: " magnetic card that bank is authorized is not belonging to for the magnetic card in verification result, then bank Cash dispenser can pop up magnetic card, and carry out related prompt ".
When being directed to flow of event 2, the alternative flows in flow of event 2 are traversed, obtains in the storage format traversed and wraps The alternative flows for including character string " flow of event 2 ", when traversing alternative flows 2, according to the string keys of alternative flows 2 " PIN code without Effect ", binding events stream 2 generate scene corresponding with alternative flows 2, match from logic deposit code set corresponding with the scene Test logical code, characterization are as follows: " verification result be in banking system search less than letter corresponding with the PIN code of input When breath, then bank debits chance pops up magnetic card, and prompts PIN code invalid ".
When being directed to flow of event 4, alternative flows in flow of event 4 are traversed, obtains in the storage format traversed and includes The alternative flows of character string " flow of event 4 ", there are three the alternative flows comprising number of characters " flow of event 4 " altogether for last, respectively alternatively Flow 3, alternative flows 4, alternative flows 5:
When traversing alternative flows 3, according to the string key " withdrawal option is not available " of alternative flows 3, knot It closes flow of event 4 and generates scene corresponding with alternative flows 3, match test corresponding with the scene from logic deposit code set Logical code, characterization are as follows:, can be into when in the withdrawal Programmable detection to cash dispenser inside cash dispenser without enough cashes Row: the function prompt that " withdrawal " option is not available.
When traversing alternative flows 4, according to the symbol string keyword " Sorry, your ticket has not enough value for bank card " of word alternative flows 4, binding events Stream 4 generates scene corresponding with alternative flows 4, matches test logic generation corresponding with the scene from logic deposit code set Code, is characterized as, and it is remaining that the amount of money that the withdrawal Programmable detection inside cash dispenser to user inputs is greater than customer bank card account The amount of money when, will do it related prompt and tell client that can not take out the corresponding cash of the amount of money of this time input.
When traversing alternative flows 5, according to the string key " cash dispenser is short of cash " of alternative flows 5, binding events Stream 4 generates scene corresponding with alternative flows 5, matches test logic generation corresponding with the scene from logic deposit code set Code, is characterized as, when the amount of money that the withdrawal Programmable detection inside cash dispenser to user inputs is greater than the amount of money inside cash dispenser, Will do it related prompt tells client that can not take out the corresponding cash of the amount of money of this time input.
In short, determine according to basic flow and every alternative flows and simultaneously generate different scenes, according to different scenes from preparatory Corresponding test logical code is matched in the logic deposit code set write, it is then corresponding for logic-based written in code Scrnario testing use-case, specific test case writes mode and existing test case to write mode unanimous on the whole, i.e., based on patrolling Volume code needs writing for the parameter inputted, operation, service logic and the setting of various environment and expected result according to user One specific set, forms a test case.
Step S40: the current test case is programmed into preset electronic table;
Step S50: it determines the test script of the self-service withdrawal application software, calls the test script to described pre- If the current test case in electrical form is tested.
It will be appreciated that all including data corresponding with test scene in general test model, and foot is tested accordingly There is service logic and test scene in this, so just need tester manual when the test scene in script changes Again test script is edited, therefore test script just needs to put into more exploitation script, test script dimension in early period Shield maintenance and management just seems relatively difficult cumbersome.
The present embodiment does not need for test scene to be sent into data test model, and the preset electronic table is with Excel table For lattice, test logical code corresponding with the current alternative flows is matched from logic deposit code set, and based on matching After test logical code out generates current test case corresponding with the current alternative flows, directly by current test case It is programmed into Excel table, is equivalent to and service logic and contextual data corresponding with the service logic are all concentrated and be programmed into In Excel table, finally determines the test script of the self-service withdrawal application software, call the test script to described pre- If the current test case in electrical form is tested, even if service logic changes, patrolled without manual change business Corresponding test script is collected, and then can be improved testing efficiency.
Referring to Fig. 3, a kind of second embodiment process signal of test method of self-service withdrawal application software of Fig. 3 present invention Figure proposes the present invention for the second embodiment of the test method of self-service withdrawal application software based on above-mentioned Fig. 2;
In the present embodiment, the step S40 is specifically included:
Step S401: resolving into multiple code keywords for the current test case, by obtained multiple codes key Word is programmed into the table data that the current test case is formed in preset electronic table.
Intelligible, test script is the script write to carry out automatic test.Writing for test script is necessary Corresponding corresponding test case.Specifically, since the corresponding current test case of the current alternative flows of this implementation is based on matching Test logical code out generates, therefore be can will be right for the key of the design of the test script of self-service withdrawal application software The service logic answered is abstracted as the table data of keyword composition.
Correspondingly, the step S50 is specifically included:
Step S501: determining the test script of the self-service withdrawal application software, based on the test script and described Current alternative flows determine the corresponding trigger event of the current alternative flows;
Step S502: the table of the current test case is chosen from the preset electronic table according to the trigger event Data;
Determine that current alternative flows are corresponding based on the test script and current alternative flows of the self-service withdrawal application software Trigger event, trigger event characterization to simulate the thing that self-service withdrawal occurs on special scenes boundary, by event come The generation for triggering some movement, observes the final result of event, to be used to the problem of finding demand.
Step S503: call the table data of the current test case to the current standby of the self-service withdrawal application software Stream is selected to be tested.
Specifically, the trigger event includes test desired value;The table data of current test case are being called to deposit to self-service After the current alternative flows of withdrawal application software are tested, the test of the test result and trigger event of current alternative flows is judged Whether the difference between desired value is in default error threshold range;If so, discriminating test success, if it is not, then discriminating test Failure.
The preset electronic table is Excel table;After step S50, further includes: right in the Excel table The test result of the self-service withdrawal application software is shown.
It will be appreciated that the trigger event needs a check post, check post is the key that judge whether to run succeeded. Check post can consist of three parts, characterization are as follows: check post=Authentication-Type+verifying element+test desired value.Wherein Authentication-Type Indicate which kind of verification mode used, verification mode mainly has element textual value, interface title, comparison element attribute value and data Library value.The interface element that verifying element needs to verify.Test desired value is generally the value intentionally got in test case, if It is not much different between the obtained result data of test and the value that intentionally gets of data, then shows to be successfully tested, and it is described current The relevant bottom code of alternative flows does not have logical problem or code vulnerabilities;If testing obtained result data and data being wished To value between differ larger, then show test crash, software developer needs the bottom source code to the test application It carries out further perfect.
The present embodiment determines the test script of the self-service withdrawal application software, based on the test script and described works as Preceding alternative flows determine the corresponding trigger event of the current alternative flows, further according to choosing trigger event from the preset electronic table The middle table data for choosing the current test case;The table data of current test case are finally called currently alternatively to flow into described Row test, and then the complexity of test can be simplified, can allow not is that very senior tester also can flexibly use institute It states test terminal to test self-service withdrawal application software built-in in self-service withdrawal, improves the operation of tester Experience.
In addition, Fig. 4 is a kind of structural block diagram of the test device of self-service withdrawal application software of the present invention, institute with reference to Fig. 4 Stating test device includes:
Module 10 is obtained, for obtaining current event stream from the basic flow of self-service withdrawal application software to be tested, The basic flow characterizes the basic process completing deposit when the self-service withdrawal application software is used or withdrawing the money, described basic Process includes at least one flow of event, and a flow of event is characterized as a process in the basic process;
Spider module 20, for being traversed to the alternative flows in the current event stream, obtain traverse it is current standby Choosing stream, the current alternative flows are characterized as the test scene in the current event stream;
Matching module 30, for matching test logic corresponding with the current alternative flows from logic deposit code set Code, and current test case corresponding with the current alternative flows is generated based on the test logical code that matches;
Module 40 is write, for the current test case to be programmed into preset electronic table;
Test module 50 calls the test script for determining the test script of the self-service withdrawal application software Current test case in the preset electronic table is tested.
It will be appreciated that the test device of the self-service withdrawal application software of the present embodiment can be a kind of be used for self-service The test software that withdrawal application software is tested is loaded into above-mentioned test terminal.
Above-mentioned test terminal is attached by test interface 1004 and self-service automatic teller machine, and tester uses above-mentioned survey When trying terminal, test terminal calls the test device to survey the self-service withdrawal application software built in self-service automatic teller machine Examination.
The specific embodiment of the test device of the present embodiment please refers to above-mentioned test method embodiment, and the present embodiment is herein It will not go into details.
In addition, the embodiment of the present invention also proposes a kind of storage medium, it is stored on the storage medium for self-service access The test program of money application software is realized such as when the test program for self-service withdrawal application software is executed by processor The step of upper test program method for being directed to self-service withdrawal application software.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer is whole End, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of test method of self-service withdrawal application software, which is characterized in that the test method the following steps are included:
Current event stream is obtained from the basic flow of self-service withdrawal application software to be tested, the basic flow characterization is described certainly The basic process completing deposit when withdrawal application software being helped to be used or withdrawing the money, the basic process includes at least one event Stream, a flow of event are characterized as a process in the basic process;
Alternative flows in the current event stream are traversed, the current alternative flows traversed, the current alternative flows are obtained The test scene being characterized as in the current event stream;
Match test logical code corresponding with the current alternative flows from logic deposit code set, and based on matching It tests logical code and generates current test case corresponding with the current alternative flows;
The current test case is programmed into preset electronic table;
The test script for determining the self-service withdrawal application software, calls the test script in the preset electronic table Current test case tested.
2. the method as described in claim 1, which is characterized in that it is described matched from logic deposit code set with it is described current The corresponding test logical code of alternative flows, and it is corresponding with the current alternative flows based on the test logical code generation matched Before current test case step, further includes:
Present test field scape corresponding with the current alternative flows is generated in conjunction with the current alternative flows and the current event stream;
It is described to match test logical code corresponding with the current alternative flows from logic deposit code set, and based on matching Test logical code out generates current test case corresponding with the current alternative flows, specifically includes:
Test logical code corresponding with the present test field scape is matched from logic deposit code set, and is based on matching Test logical code generate corresponding with the present test field scape current test case.
3. the method as described in claim 1, which is characterized in that described that the current test case is programmed into preset electronic table In lattice, specifically include:
The current test case is resolved into multiple code keywords, obtained multiple code keywords are programmed into default electricity The table data of the current test case are formed in sub-table.
4. method as claimed in claim 3, which is characterized in that the test foot of the determination self-service withdrawal application software This, calls the test script to test the current test case in the preset electronic table, specifically includes:
The test script for determining the self-service withdrawal application software is determined based on the test script and the current alternative flows The corresponding trigger event of the current alternative flows;
The table data of the current test case are chosen from the preset electronic table according to the trigger event;
The table data of the current test case are called to test the current alternative flows of the self-service withdrawal application software.
5. method as claimed in claim 4, which is characterized in that the trigger event includes test desired value;
The table data for calling the current test case carry out the current alternative flows of the self-service withdrawal application software Test, further includes:
Judge whether the difference between the test result of the current alternative flows and the test desired value of the trigger event is in Default error threshold range;
If so, discriminating test success, if it is not, then discriminating test fails.
6. method as claimed in claim 4, which is characterized in that it is described matched from logic deposit code set with it is described current Before the corresponding test logical code of alternative flows, further includes:
Receive the test logical code inputted for the different alternative flows of each flow of event;
Each test logical code is saved in the logic deposit code set.
7. as the method according to claim 1 to 6, which is characterized in that the preset electronic table is Excel table;
The test script of the determination self-service withdrawal application software, calls the test script to the preset electronic table After current test case in lattice is tested, further includes:
The test result of the self-service withdrawal application software is shown in the Excel table.
8. a kind of test device of self-service withdrawal application software, which is characterized in that the test device includes:
Module is obtained, for obtaining current event stream, the base from the basic flow of self-service withdrawal application software to be tested This flow table levy when the self-service withdrawal application software is used complete deposit or withdraw the money basic process, the basic process by At least one flow of event composition, a flow of event are characterized as a process in the basic process;
Spider module obtains the current alternative flows traversed, institute for traversing to the alternative flows in the current event stream State the test scene that alternative flows are characterized as in the current event stream;
Matching module, for matching test logical code corresponding with the current alternative flows from logic deposit code set, And current test case corresponding with the current alternative flows is generated based on the test logical code that matches;
Module is write, for the current test case to be programmed into preset electronic table;
Test module calls the test script to described for determining the test script of the self-service withdrawal application software Current test case in preset electronic table is tested.
9. a kind of test terminal, which is characterized in that the test terminal includes: memory, processor and is stored in the storage On device and the test program for self-service withdrawal application software that can run on the processor, the self-service withdrawal are answered The survey of the self-service withdrawal application software as described in any one of claims 1 to 7 is arranged for carrying out with the test program of software The step of method for testing.
10. a kind of storage medium, which is characterized in that be stored with the survey for self-service withdrawal application software on the storage medium Program is tried, is realized when the test program for self-service withdrawal application software is executed by processor as in claim 1 to 7 The step of test method of any one self-service withdrawal application software.
CN201811605222.0A 2018-12-26 2018-12-26 Test method, device, terminal and the storage medium of self-service withdrawal application software Pending CN109766272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811605222.0A CN109766272A (en) 2018-12-26 2018-12-26 Test method, device, terminal and the storage medium of self-service withdrawal application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811605222.0A CN109766272A (en) 2018-12-26 2018-12-26 Test method, device, terminal and the storage medium of self-service withdrawal application software

Publications (1)

Publication Number Publication Date
CN109766272A true CN109766272A (en) 2019-05-17

Family

ID=66452153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811605222.0A Pending CN109766272A (en) 2018-12-26 2018-12-26 Test method, device, terminal and the storage medium of self-service withdrawal application software

Country Status (1)

Country Link
CN (1) CN109766272A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727597A (en) * 2019-10-15 2020-01-24 杭州安恒信息技术股份有限公司 Method for completing use case based on log troubleshooting invalid codes

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140331212A1 (en) * 2011-02-22 2014-11-06 Zensar Technologies Ltd. Computer implemented system and method for indexing and annotating use cases and generating test scenarios therefrom
CN105405221A (en) * 2015-10-28 2016-03-16 深圳怡化电脑股份有限公司 Method and device for automated test
CN108491331A (en) * 2018-04-13 2018-09-04 平安普惠企业管理有限公司 Method for testing software, device, equipment and computer storage media

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140331212A1 (en) * 2011-02-22 2014-11-06 Zensar Technologies Ltd. Computer implemented system and method for indexing and annotating use cases and generating test scenarios therefrom
CN105405221A (en) * 2015-10-28 2016-03-16 深圳怡化电脑股份有限公司 Method and device for automated test
CN108491331A (en) * 2018-04-13 2018-09-04 平安普惠企业管理有限公司 Method for testing software, device, equipment and computer storage media

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王崇霞: "根据用例设计测试用例", 电脑开发与应用, no. 10 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727597A (en) * 2019-10-15 2020-01-24 杭州安恒信息技术股份有限公司 Method for completing use case based on log troubleshooting invalid codes
CN110727597B (en) * 2019-10-15 2023-03-10 杭州安恒信息技术股份有限公司 Method for checking invalid code completion case based on log

Similar Documents

Publication Publication Date Title
CN108664287B (en) Method, device, terminal and storage medium for guiding output operation
US9940221B2 (en) System and method for testing data representation for different mobile devices
CN109460279A (en) Forms pages development approach, device, equipment and storage medium based on small routine
US20120198280A1 (en) Test cases generation for different test types
CN109726105A (en) Test data building method, device, equipment and storage medium
CN106716436A (en) Information display method and system
US20130137498A1 (en) Electronic Gaming Machine Automated Testing
CN109840206A (en) Data test method, apparatus, terminal and storage medium
CN104598122B (en) A kind of terminal
CN110286974A (en) Application configuration method, apparatus, equipment and storage medium based on the H5 page
CN104246714A (en) Software defect verification
CN107705130A (en) A kind of on-line payment method
CN110908880B (en) Buried point code injection method, event reporting method and related equipment thereof
CN109828918A (en) Applied program testing method, device, computer equipment and storage medium
CN111538529A (en) Gray scale publishing method and device
CN111179066A (en) Batch processing method and device of service data, server and storage medium
CN110309099A (en) Interface managerial method, device, equipment and computer readable storage medium
CN109829277A (en) Terminal unlock method, device, computer equipment and storage medium
CN110442515A (en) Application testing method, device, equipment and readable storage medium storing program for executing
CN108564366A (en) Payment cipher remapping method, device and electronic equipment
CN109710214A (en) Construction method, device, terminal device and the storage medium of electronic signature software
US9405531B2 (en) Methods for building application intelligence into event driven applications through usage learning, and systems supporting such applications
CN113672520A (en) Test case generation method and device, electronic equipment and storage medium
US5828829A (en) System test support system and system test support method
CN109766272A (en) Test method, device, terminal and the storage medium of self-service withdrawal application software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination