CN105405221A - Method and device for automated test - Google Patents

Method and device for automated test Download PDF

Info

Publication number
CN105405221A
CN105405221A CN201510713264.6A CN201510713264A CN105405221A CN 105405221 A CN105405221 A CN 105405221A CN 201510713264 A CN201510713264 A CN 201510713264A CN 105405221 A CN105405221 A CN 105405221A
Authority
CN
China
Prior art keywords
type
service
test
possum
test cases
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
CN201510713264.6A
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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201510713264.6A priority Critical patent/CN105405221A/en
Publication of CN105405221A publication Critical patent/CN105405221A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/209Monitoring, auditing or diagnose of functioning of ATMs

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

Embodiments of the invention disclose a method and a device for automated tests. The method comprises: obtaining operation data of a self-service device in a preset region; according to a data automated generation test case, sending the test case to the self-service device, so that the self-service device performs an automated test according to the test case, the test case comprising testing test information corresponding to at least a business type; obtaining a result of the automated test, and generating a test report. In the method, data in different application scenarios is obtained from an actual used environment, and a set of automated test system is used to perform dynamic and intelligently adjusted tests after the self-service device is produced. Thus, real situation in practical use environment is simulated as much as possible, and accuracy and pertinence are improved. Since artificial intervention is reduced, a process of manual data analysis is reduced, so as to preferably ensure product quality of the self-service device.

Description

A kind of method of automatic test and device
Technical field
The embodiment of the present invention relates to the technical field of self-help terminal equipment, particularly relates to a kind of method and device of automatic test.
Background technology
At present, in the automatic test of self-help terminal equipment, the business that can only realize specifying according to the test script file woven in advance is tested.Namely generally mechanical repetitive operation can only be carried out, such as: after certain operation flow (also referred to as business scenario) is recorded or set, just test according to original flow process.For ATM, if the execution scene of original setting is: inquire about, withdraw the money, transfer accounts, change close, then when subsequent playback, also only can according to this set flow performing action.
This test scene and actual Possum actual motion environmentally the actual scene performed be inconsistent.That is, under Possum actual motion environment, can not occur that each holder operates according to above-mentioned set flow process.But to withdraw the money, deposit, transfer accounts, change the business processing such as close, inquiry be random, the parameter of each business such as such as withdraw funds etc. neither be changeless.Use the scene of above-mentioned setting to carry out pressure (aging) test, cannot simulate accurately and scene like Possum actual motion environmental classes, thus the result obtained under making the result that obtains under the test environment and Possum actual motion environment is inconsistent, even can produce huge difference, impact test effect.
In addition, for different ATM types, its function neither be identical.Such as circulation type can carry out depositing, without business such as card deposits, and type of withdrawing the money does not have these business.If therefore fix certain business processing flow, obviously cannot adapt to carry out different business on different types.
Moreover, if perform the use-case of some business processing exception, branch in program existing walk regular traffic flow process branch, also the branch of abnormality processing is had, the probability that these branches are performed differs greatly, how to utilize limited test resource and test duration, the pressure test of abundant these flow chart branches of guarantee, namely when pressure test, make the probability that performs in normal operation with this program in each branch of program tested, thus farthest test mass is ensured in the limited test duration, save testing cost, related known technology is not also had to be realized at present.
Summary of the invention
The object of the embodiment of the present invention is the method and the device that propose a kind of automatic test, is intended to solve the problem how making to combine with actual running environment to the test of self-aided terminal.
For reaching this object, the embodiment of the present invention by the following technical solutions:
First aspect, a kind of method of automatic test, described method comprises:
Obtain the data that the Possum in the region pre-set runs;
According to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one;
Obtain the result after automatic test, and generate test report.
Preferably, described acquisition pre-set the Possum in region run data, comprising:
Obtain by Internet Transmission the data that described Possum carries out business operation, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Or,
The data that the described Possum after according to the rule encryption pre-set carries out business operation are obtained by mobile memory medium; Or,
The data that the Possum extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
Preferably, described described test cases is sent to described Possum, comprising:
Judge that the type of service to be tested that described test cases comprises, described type of service comprise deposit, withdraw the money, transfer accounts, inquire about or change close, described test cases comprises the test cases combined by least one type of service;
Described test cases is sent on the Possum performing described type of service;
The data corresponding with described type of service inputted according to the user got and described test cases carry out emulation testing.
Preferably, described acquisition, after the data pre-setting the operation of the Possum in region, also comprises:
When described user uses described self-aided terminal to carry out business operation, record traffic type and the card number information corresponding with described type of service and/or serial number information.
Preferably, described method also comprises:
The test cases be all suitable for the Possum of different types of transaction is stored in common test case library according to the storage means pre-set.
Preferably, described according to described datamation creating test case, and after described test cases is sent to described Possum, also comprise:
After described self-aided terminal tests a test cases, more random another test cases of selecting from test cases storehouse is tested;
Describedly from test cases storehouse, select another test cases to test at random, comprising:
Judge the type of transaction of described self-aided terminal, described type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw;
According to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set.
Preferably, described according to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set, comprising:
Send the detecting information that the single type of service prestored is tested to described self-aided terminal according to the single module operational mode pre-set;
Described method also comprises:
If when the test result of testing the single type of service prestored on described self-aided terminal and correct test result exceed the threshold value pre-set, then send information to tester.
Preferably, described according to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set, comprising:
Receive according to the completely the same operational mode pre-set the data that user carries out business operation on the Possum identical with the type of transaction of Possum to be tested, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Described data are sent to described Possum to be tested, the second data result that the first data result that more described data are run on described Possum to be tested runs on the Possum identical with the type of transaction of described Possum to be tested with described data; If when the difference between described first data result and described second data result exceedes the threshold value pre-set, then send information to tester; Or,
According to the fuzzy matching pattern acquiring pre-set, Possum carries out the probability associated between the probability of various different business operation and business under practical service environment; According to the probability associated between type of service and described business that upper is tested, obtain the type of service of the maximum probability associated with a described upper type of service of testing; The test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; Or,
Obtain the condition pre-set of described self-aided terminal to be tested according to the reference settings operational mode that pre-sets, described in the condition that pre-sets be included in the type of service that described self-aided terminal to be tested need test; Only send the detecting information with the single type of service of the described Condition Matching pre-set to described self-aided terminal to be tested; Or, when get with described on the type of service of the maximum probability that associates of type of service of testing, the type of service of the maximum probability associated with a described upper type of service of testing described in further judgement whether mate described in the condition that pre-sets, if so, then the test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; If not, then next type of service of the probable value rank that associates with a described upper type of service of testing is obtained; Or,
According to the random adjust operation pattern pre-set according to described type of transaction, from described test cases storehouse, Stochastic choice one can be used for the test cases of described self-aided terminal; If the problem pre-set appears in the test cases of Stochastic choice when running on described self-aided terminal to be tested, then improve the probability of the test cases of described Stochastic choice; Or,
The test cases of described self-aided terminal is can be used for according to the order pre-set or the single module operational mode pre-set according to random way selection, completely the same operational mode, fuzzy matching pattern, reference settings operational mode or random adjust operation model selection one.
Second aspect, a kind of device of automatic test, described device comprises:
First acquisition module, the data that the Possum for obtaining in the region pre-set runs;
Sending module, for according to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one;
Second acquisition module, for obtaining the result after automatic test, and generates test report.
Preferably, described first acquisition module, comprising:
First acquiring unit, for being obtained the data that described Possum carries out business operation by Internet Transmission, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Or,
Second acquisition unit, carries out the data of business operation for being obtained the described Possum after according to the rule encryption pre-set by mobile memory medium; Or,
Extraction unit, the data that Possum for extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
Preferably, described sending module, comprising:
Judging unit, for judging the type of service to be tested that described test cases comprises, described type of service comprises deposit, it is close to withdraw the money, transfer accounts, inquire about or change, and described test cases comprises the test cases combined by least one type of service;
Transmitting element, for sending to the Possum performing described type of service by described test cases;
Test cell, for according to get user input the data corresponding with described type of service and described test cases carry out emulation testing.
Preferably, described device also comprises:
Logging modle, during for using described self-aided terminal to carry out business operation described user, record traffic type and the card number information corresponding with described type of service and/or serial number information.
Preferably, described device also comprises:
Memory module, for being stored in the test cases be all suitable for the Possum of different types of transaction in common test case library according to the storage means pre-set.
Preferably, described device also comprises:
Select module, after test a test cases on described self-aided terminal, more random another test cases of selecting from test cases storehouse is tested;
Described selection module, comprising:
Judging unit, for judging the type of transaction of described self-aided terminal, described type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw;
Selection unit, for according to described type of transaction, can be used for the test cases of described self-aided terminal from described test cases storehouse according to the algorithms selection one pre-set.
Preferably, described selection unit, for:
Send the detecting information that the single type of service prestored is tested to described self-aided terminal according to the single module operational mode pre-set;
Described device also comprises:
Sending module, if when the test result of testing the single type of service prestored on described self-aided terminal and correct test result exceed the threshold value pre-set, then send information to tester.
Preferably, described selection unit, for:
Receive according to the completely the same operational mode pre-set the data that user carries out business operation on the Possum identical with the type of transaction of Possum to be tested, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Described data are sent to described Possum to be tested, the second data result that the first data result that more described data are run on described Possum to be tested runs on the Possum identical with the type of transaction of described Possum to be tested with described data; If when the difference between described first data result and described second data result exceedes the threshold value pre-set, then send information to tester; Or,
According to the fuzzy matching pattern acquiring pre-set, Possum carries out the probability associated between the probability of various different business operation and business under practical service environment; According to the probability associated between type of service and described business that upper is tested, obtain the type of service of the maximum probability associated with a described upper type of service of testing; The test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; Or,
Obtain the condition pre-set of described self-aided terminal to be tested according to the reference settings operational mode that pre-sets, described in the condition that pre-sets be included in the type of service that described self-aided terminal to be tested need test; Only send the detecting information with the single type of service of the described Condition Matching pre-set to described self-aided terminal to be tested; Or, when get with described on the type of service of the maximum probability that associates of type of service of testing, the type of service of the maximum probability associated with a described upper type of service of testing described in further judgement whether mate described in the condition that pre-sets, if so, then the test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; If not, then next type of service of the probable value rank that associates with a described upper type of service of testing is obtained; Or,
According to the random adjust operation pattern pre-set according to described type of transaction, from described test cases storehouse, Stochastic choice one can be used for the test cases of described self-aided terminal; If the problem pre-set appears in the test cases of Stochastic choice when running on described self-aided terminal to be tested, then improve the probability of the test cases of described Stochastic choice; Or,
The test cases of described self-aided terminal is can be used for according to the order pre-set or the single module operational mode pre-set according to random way selection, completely the same operational mode, fuzzy matching pattern, reference settings operational mode or random adjust operation model selection one.
The embodiment of the present invention obtains the data that the Possum in the region pre-set runs; According to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one; Obtain the result after automatic test, and generate test report, from the environment that reality uses, first obtain the data under different application scene, and after producing Possum, use that a set of automatization test system carries out dynamically, the test of adjustment, thus the real situation simulated as much as possible under practical service environment, improve accuracy and the specific aim of test.And owing to decreasing artificial intervention, decrease the artificial process analyzing data, thus better ensured the product quality of Possum.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method first embodiment of embodiment of the present invention automatic test;
Fig. 2 is the schematic flow sheet of method second embodiment of embodiment of the present invention automatic test;
Fig. 3 is the schematic flow sheet of method the 3rd embodiment of embodiment of the present invention automatic test;
Fig. 4 is the schematic flow sheet of method the 4th embodiment of embodiment of the present invention automatic test;
Fig. 5 is a kind of transition state figure that the embodiment of the present invention provides;
Fig. 6 is the high-level schematic functional block diagram of the device of embodiment of the present invention automatic test;
Fig. 7 is the high-level schematic functional block diagram of the embodiment of the present invention first acquisition module 601;
Fig. 8 is the high-level schematic functional block diagram of embodiment of the present invention sending module;
Fig. 9 is the high-level schematic functional block diagram of the device of embodiment of the present invention automatic test;
Figure 10 is the high-level schematic functional block diagram of the device of embodiment of the present invention automatic test;
Figure 11 is the high-level schematic functional block diagram of the device of embodiment of the present invention automatic test;
Figure 12 is the high-level schematic functional block diagram that the embodiment of the present invention selects module 606.
Embodiment
Below in conjunction with drawings and Examples, the embodiment of the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the embodiment of the present invention, but not the restriction to the embodiment of the present invention.It also should be noted that, for convenience of description, illustrate only the part relevant to the embodiment of the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
It is the schematic flow sheet of method first embodiment of embodiment of the present invention automatic test with reference to figure 1, Fig. 1.
In embodiment one, the method for described automatic test comprises:
Step 101, obtains the data that the Possum in the region pre-set runs;
Preferably, described acquisition pre-set the Possum in region run data, comprising:
Obtain by Internet Transmission the data that described Possum carries out business operation, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Or,
The data that the described Possum after according to the rule encryption pre-set carries out business operation are obtained by mobile memory medium; Or,
Concrete, the data that Possum runs under actual motion environment are collected, guarantee the authentic and valid of data, when Data Collection, tackle typical application scenarios (i.e. specific place) to collect, typical application scenarios should comprise supermarket, market, community, school etc.;
What is called is collected the data that Possum runs under Possum actual motion environment, the various signals of the user's input namely obtained in each self-service process of service execution, namely obtain the existing self-service service parameter received in operational system, comprise user to insert/card taking, key-press input, getting/put banknote, extracting the user such as strip when carrying out self-service business, mutual action parameter is carried out with Possum, and the interval time of each parameter.
Further, in step 101, Possum is carried out to the acquisition process of data, data acquisition system (DAS) works in equipment operating mode, after completing certain transaction, automatically relevant data can be recorded.When under Possum meets own resources information and hardware information and test environment, wherein a kind of machine information is consistent, automatic trigger data acquisition function is carried out the acquisition operations of data, concrete what collection mechanism that triggers comprises:
1a), Possum is when detecting that mobile memory medium accesses, and the data automatically will collected, after encryption, name with certain rule and be sent on mobile memory medium.
1b), Possum after receiving the legal control information that front-end system or supervisory system send, automatically the data collected are sent on the testing server of specifying.
The data that the Possum extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
Concrete, further, carry out analyzing and processing to the Possum data message collected in step 101, concrete processing mode and mechanism comprise:
2a), can process the file data type of different-format, comprise the file to journal file, text and database file and some specific format.
2b), the setting of data handling conditions can be carried out, content required for self, such as different types of transaction can be screened by conditional combination.
The conditional combination at this place refers to following but is not limited to following situation: the type of transaction belonging to the data collected, if software under testing does not have or do not provide or not open this kind of transaction, then casts out the collection of these data; If two of certain site machines are respectively deposit machine and cash dispenser, then the data centralization of these two machines is got up to collect, as the test cases of software under testing of circulation all-in-one machine laying this site.
2c), automatically can carry out analyzing and processing to the data message newly added, carry out backup filing to processed data, whole process completes automatically, without the need to manual intervention.
Analyzing and processing herein refers to and can obtain the consistency treatment that data carry out form, extracts the unified information content, preserves into database.
Step 102, according to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one;
Preferably, described described test cases is sent to described Possum, comprising:
Judge that the type of service to be tested that described test cases comprises, described type of service comprise deposit, withdraw the money, transfer accounts, inquire about or change close, described test cases comprises the test cases combined by least one type of service;
Described test cases is sent on the Possum performing described type of service;
The data corresponding with described type of service inputted according to the user got and described test cases carry out emulation testing.
Concrete, extract the test cases in test library, judge type of service described in this test cases;
3a), on the Possum that the software under testing that can provide this type of service is housed, perform this test cases, in this test cases process of execution, emulation input is carried out, to obtain testing effect the most really to user's input parameter and the time interval thereof;
3b), by the execution result of all Possums performing this test cases carry out tabulate statistics, draw the test report content of this test cases.
Step 103, obtains the result after automatic test, and generates test report.
Concrete, can be the generation of separate unit Possum automatic test report or the generation of batch Possum automatic test report.
After Possum completes all test cases preset, test report subsystem starts the collection and the work for the treatment of that process data, Possum test report subsystem according to relevant template and can arrange generation separate unit Possum test report, and according to the transmission information that imposes a condition to test owner or be sent on data acquisition server, provide data for batch testing report.
After separate unit Possum test report has generated and data has been sent to the data acquisition server of specifying, batch test report subsystem will process the data message on all separate unit Possums, and generate the final report of all Possums of present lot after automatic test, and related personnel is automatically sent to consult by the mode of mail.
The embodiment of the present invention obtains the data that the Possum in the region pre-set runs; According to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one; Obtain the result after automatic test, and generate test report, from the environment that reality uses, first obtain the data under different application scene, and after producing Possum, use that a set of automatization test system carries out dynamically, the test of adjustment, thus the real situation simulated as much as possible under practical service environment, improve accuracy and the specific aim of test.And owing to decreasing artificial intervention, decrease the artificial process analyzing data, thus better ensured the product quality of Possum.
Embodiment two
It is the schematic flow sheet of method second embodiment of embodiment of the present invention automatic test with reference to figure 2, Fig. 2.
On the basis of embodiment one, described acquisition, after the data pre-setting the operation of the Possum in region, also comprises:
Step 104, when described user uses described self-aided terminal to carry out business operation, record traffic type and the card number information corresponding with described type of service and/or serial number information.
Concrete, Possum automatization test system starts record tag information, wherein said label information is when using the user of Possum to carry out business operation, Possum operation system record all if identify the business information such as such as card number partial information, serial number information of each service feature, to facilitate in Possum automatization test system store data fast search and to search the data message relevant to this business, convenient statistical study and collection work are carried out to this business.
Embodiment three
It is the schematic flow sheet of method the 3rd embodiment of embodiment of the present invention automatic test with reference to figure 3, Fig. 3.
On the basis of embodiment one, described method also comprises:
Step 105, is stored in the test cases be all suitable for the Possum of different types of transaction in common test case library according to the storage means pre-set.
Concrete, can according to type, be whether that circulator is still only got machine and still only deposited machine, random from the test cases storehouse of this kind of type, extract a case or a case sequence is tested, close to actual operating state.
Described case sequence refer to gather in running environment deposit, withdraw the money, transfer accounts, inquire about, change the case group that one group of business of carrying out successively such as close forms.
If circulation type, then can provide the transaction test of withdrawing the money and depositing simultaneously; If for only to get type, then only provide and withdraw the money transaction test and shield credit transaction test; If for only depositing type, only providing credit transaction and shielding transaction test of withdrawing the money.
Certainly, above-mentioned three kinds of types all can provide except depositing and withdrawing other such as change close, inquire about, the business such as to transfer accounts, as long as this type has and these business open.
Pick out test cases or the test cases sequence of miscellaneous service corresponding to this type according to type, form the test cases storehouse of this type; The test cases be all suitable for for each type or test cases sequence, can put into common test case library.
Embodiment four
It is the schematic flow sheet of method the 4th embodiment of embodiment of the present invention automatic test with reference to figure 4, Fig. 4.
On the basis of embodiment one, described according to described datamation creating test case, and after described test cases is sent to described Possum, also comprise:
After described self-aided terminal tests a test cases, more random another test cases of selecting from test cases storehouse is tested;
Describedly from test cases storehouse, select another test cases to test at random, comprising:
Judge the type of transaction of described self-aided terminal, described type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw;
According to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set.
Preferably, described according to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set, comprising:
Send the detecting information that the single type of service prestored is tested to described self-aided terminal according to the single module operational mode pre-set;
Described method also comprises:
If when the test result of testing the single type of service prestored on described self-aided terminal and correct test result exceed the threshold value pre-set, then send information to tester.
Concrete, in this mode, first modules is carried out to the pressure test on basis, guarantee that each independently module is reliable and stable.For improving execution efficiency, the test of individual module can simultaneously concurrently be carried out, and list does not interfere with each other each other.Namely the test result of a module can not have influence on the test result of another one module.When certain module breaks down, other modules can also normally be run.
The number of run of modules, the result of each run, execution are tested the ratio passed through and all can be preserved according to certain form and be saved on data acquisition server.After the single operational mode of data acquisition server on this batch is run, after each module testing namely on Possum completes, will start data analytics subsystem, the automatic data to having gathered process by data analytics subsystem.After certain group data or certain index exceed the critical field of setting, analyze automatically providing warning information to related personnel.
Be very easy to find the batch defect of certain product or certain module in such a mode.When the function existing problems of this module, in test case library, functional test use-case will detect; When the stability existing problems of this module, under the pressure test environment of single operational mode, this module may will successively break down, thus can find fast in this mode and detect such problem.
Preferably, described according to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set, comprising:
Receive according to the completely the same operational mode pre-set the data that user carries out business operation on the Possum identical with the type of transaction of Possum to be tested, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Described data are sent to described Possum to be tested, the second data result that the first data result that more described data are run on described Possum to be tested runs on the Possum identical with the type of transaction of described Possum to be tested with described data; If when the difference between described first data result and described second data result exceedes the threshold value pre-set, then send information to tester; Or,
Concrete, completely the samely refer to that test environment imitates running environment, comprise information and the speed of user's input.As certain user withdraws the money on certain Possum, its card action, the Possum not being only its place received, and also can be transferred to test platform, makes the Possum on test platform immediately receive the order of plug-in card.
In this mode, the service condition under simulation test customer self-service equipment actual motion environment is mainly used in.Such as occur under Possum actual motion environment certain accidental problem cannot and cannot reappear time, by gathering the True Data under customer self-service equipment actual motion environment, and through the process of data analytics subsystem, after getting relevant data message, perform automatic test in this mode.
Under this pattern, need to modify process to various data.Such as, before every transaction, need the card data information using simulation client to use, need in operation to simulate the type of transaction selected by client and the amount of money; Need after closing the transaction again to change card data information to simulate the operation of next client.In this mode, because automatization test system is close to the complete all operations simulated under Possum actual motion environment, therefore problem that is accidental, that be difficult to reappear can be improved probability of occurrence.In addition, batch device uses this pattern simulate, also significantly can improve the probability of problem re-emerges.Have recorded detailed operation note daily record in whole test process, thus provide necessary Data support for solving problem analysis.
According to the fuzzy matching pattern acquiring pre-set, Possum carries out the probability associated between the probability of various different business operation and business under practical service environment; According to the probability associated between type of service and described business that upper is tested, obtain the type of service of the maximum probability associated with a described upper type of service of testing; The test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; Or,
Concrete, according to the data under practical service environment, calculating quantity and the ratio of different type of transaction, carrying out the test of corresponding proportion when testing at random.
First situation is in Possum actual motion environment, after user executes a business, performs the probability of which kind of business during next business.As in school, user executes a business of withdrawing the money, and the probability having 95% performs next business for querying the balance, and the probability of 2% is withdrawn the money for continuing, and the probability of 3% terminates for moving back card.
The second situation is when Possum is as a finite state machine, when being in a certain state, enters next shape probability of state.As being in the state of " banknote is sent to cash dispensing port and waits for that user gets paper money " when Possum, the probability having 90% is entered the state that next state is " user takes banknote Possum smoothly away and prints strip ", there is the probability of 7% that the state of " time-out and user do not take banknote away cause Possum to reclaim banknote success " occurs, the state of the generation of 3% " time-out and user do not take banknote away cause Possum to reclaim banknote failure ".
In order to simulate this probability, the probability added up in the realistic running environment making the test of Possum software more possible, thus must quantize the test trend of Possum.The test being is unlikely the phenomenon occurring following waste testing cost: the state transformation of original 90% probability trend, in test, actual trend only occurs 10%, and with actual substantial deviation, this can not get the test effect wanted.
First, the data of Possum running environment are gathered and Automatic analysis automatically.
Gather the relevant information of the environment that software under testing will put into operation, as this environment user service information (type of service, the sequential nature of service execution by user, the Annual distribution etc. of service execution by user as user), the input information of user among business procedure, and the time interval between each input action.
Secondly, in each test cases, a transition between states figure is formed.Often perform a step, multiple route can be had to select if follow-up, Stochastic choice route performs, and also can carry out the selection of route according to the probability of use of actual motion, with closing to reality operation more.
Such as, be a kind of transition state figure that the embodiment of the present invention provides with reference to figure 5, Fig. 5.
Route: A->B (10%), A->C (30%), A->D (40%), A->E (20%).
Wherein, test execution is to A point, and probability of use mode selects to perform B, C, D or E.
Possum is a finite state, and ABCDE is only a kind of state of this finite state machine.Perform than ATM and withdraw the money, from initial " waiting for user's plug-in card " state, to the state of " accept subscriber card, run through card data ", enter " waiting for that user inputs password " state.。。。。And so on.
Possum, under any one steady state (SS), executes the instruction that a software issues, and meeting switched and transferred, to another state (comprising original state), specifically can enter into which state corpse probability event.As above scheme, Possum, in A condition, executes an instruction, and being switched to B shape probability of state is 10%.
Again, a follow-up transaction is selected according to probability that is given or setting.
After A point is finished, select the principle of next execution point to select according to existing probability, but will follow the principle of randomness equally when selecting, namely the selected mode of next execution point is random again on the basis of probability.After a selected particular transaction, now the related data obtained needed for this transaction is performed test by automatic test subsystem.
Finally, the process of lower some mode of entrance.
If Possum automatic test subsystem is after the test completing B point, now, the mode of entrance of any needs again to recalculate, and its value recalculated again should adjust on basis again.Such as, in upper figure, B->A (10%), B->B (10%), B->C (20%), B->D (30%), B->E (30%).
Now after B point is finished, the probability of next execution point is again selected to change, run B point simultaneously after being finished, again repeating B point, with under equiprobable condition, B->A and B-B of such as this step, and B-D and B-E, now just need by the clooating sequence of specifying or the next execution point of random select progressively, now its probability of unselected route rises, and is declined by its probability of route selected.
Obtain the condition pre-set of described self-aided terminal to be tested according to the reference settings operational mode that pre-sets, described in the condition that pre-sets be included in the type of service that described self-aided terminal to be tested need test; Only send the detecting information with the single type of service of the described Condition Matching pre-set to described self-aided terminal to be tested; Or, when get with described on the type of service of the maximum probability that associates of type of service of testing, the type of service of the maximum probability associated with a described upper type of service of testing described in further judgement whether mate described in the condition that pre-sets, if so, then the test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; If not, then next type of service of the probable value rank that associates with a described upper type of service of testing is obtained; Or,
Concrete, at some in particular cases, such as the transaction of some noncash class does not need all devices in batch performs, and only needs to run on certain machine.The condition of given setting that now can be artificial, such as, in each transaction shared ratio, or use under shielding the situations such as some special deals.
In this mode, automatic test executive subsystem will preferentially use the condition of setting.Meeting under the condition set, then according to gathering and the data processed, from test cases storehouse, extracting test cases according to the data message obtained and probability and testing.For the transaction class shielded, the probable value that it is added up can be set to sky, but the probable value of other types of transaction remains unchanged simultaneously.If each transaction probability value is all given, be then as the criterion with given probable value.But the order of its execution point still the value of data analytics subsystem be as the criterion.
According to the random adjust operation pattern pre-set according to described type of transaction, from described test cases storehouse, Stochastic choice one can be used for the test cases of described self-aided terminal; If the problem pre-set appears in the test cases of Stochastic choice when running on described self-aided terminal to be tested, then improve the probability of the test cases of described Stochastic choice; Or,
Concrete, in this mode, the selection of all types of service, the selection of each business execution sequence are completely random; In addition, in the process of random test, dynamically adjust according to the result in actual test run process.Such as, when certain type of transaction or certain test cases do not pass through, even if the original shared ratio of this transaction or case is lower, owing to there occurs fault or not passing through, now automatization test system will improve the execution ratio of this business or case automatically, thus test other Possums more targetedly and whether also there will be same situation.
In this mode, if certain business or case test are by rear, even if its original shared ratio is higher, when perform pass through all smoothly, slowly can reduce the ratio that this business or case perform again.When after the even running of certain a period of time, automatically restore to original execution ratio; After breaking down, the execution probability of this business or case will be improved rapidly.
In this mode, the adjustment of mobilism can be carried out flexibly according to the real-time execution result of business and case, the test of robotization can be carried out more targetedly, thus realize more intelligent automatic test.
The test cases of described self-aided terminal is can be used for according to the order pre-set or the single module operational mode pre-set according to random way selection, completely the same operational mode, fuzzy matching pattern, reference settings operational mode or random adjust operation model selection one.
Concrete, can preset running mode be passed through, by above-mentioned operational mode in a certain order or random mode carry out selecting rear execution.According to the result of default operation, the result in practical implementation can be analyzed in addition, adopt the operational mode that the mode intelligent selection of priority is different, thus realize policy selection more initiatively.
Embodiment five
It is the high-level schematic functional block diagram of the device of embodiment of the present invention automatic test with reference to figure 6, Fig. 6.
In embodiment five, the device of described automatic test comprises:
First acquisition module 601, the data that the Possum for obtaining in the region pre-set runs;
Preferably, with reference to figure 7, Fig. 7 be the high-level schematic functional block diagram of the embodiment of the present invention first acquisition module 601.Described first acquisition module 601, comprising:
First acquiring unit 701, for being obtained the data that described Possum carries out business operation by Internet Transmission, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Or,
Second acquisition unit 702, carries out the data of business operation for being obtained the described Possum after according to the rule encryption pre-set by mobile memory medium; Or,
Concrete, the data that Possum runs under actual motion environment are collected, guarantee the authentic and valid of data, when Data Collection, tackle typical application scenarios (i.e. specific place) to collect, typical application scenarios should comprise supermarket, market, community, school etc.;
What is called is collected the data that Possum runs under Possum actual motion environment, the various signals of the user's input namely obtained in each self-service process of service execution, namely obtain the existing self-service service parameter received in operational system, comprise user to insert/card taking, key-press input, getting/put banknote, extracting the user such as strip when carrying out self-service business, mutual action parameter is carried out with Possum, and the interval time of each parameter.
Further, Possum is carried out to the acquisition process of data, data acquisition system (DAS) works in equipment operating mode, after completing certain transaction, automatically relevant data can be recorded.When under Possum meets own resources information and hardware information and test environment, wherein a kind of machine information is consistent, automatic trigger data acquisition function is carried out the acquisition operations of data, concrete what collection mechanism that triggers comprises:
1a), Possum is when detecting that mobile memory medium accesses, and the data automatically will collected, after encryption, name with certain rule and be sent on mobile memory medium.
1b), Possum after receiving the legal control information that front-end system or supervisory system send, automatically the data collected are sent on the testing server of specifying.
The data that the Possum extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
Extraction unit 703, the data that Possum for extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
Concrete, further, carry out analyzing and processing to the Possum data message collected, concrete processing mode and mechanism comprise:
2a), can process the file data type of different-format, comprise the file to journal file, text and database file and some specific format;
2b), the setting of data handling conditions can be carried out, content required for self, such as different types of transaction can be screened by conditional combination.
The conditional combination at this place refers to following but is not limited to following situation: the type of transaction belonging to the data collected, if software under testing does not have or do not provide or not open this kind of transaction, then casts out the collection of these data; If two of certain site machines are respectively deposit machine and cash dispenser, then the data centralization of these two machines is got up to collect, as the test cases of software under testing of circulation all-in-one machine laying this site.
2c), automatically can carry out analyzing and processing to the data message newly added, carry out backup filing to processed data, whole process completes automatically, without the need to manual intervention.
Analyzing and processing herein refers to and can obtain the consistency treatment that data carry out form, extracts the unified information content, preserves into database.
Sending module 602, for according to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one;
Preferably, with reference to figure 8, Fig. 8 be the high-level schematic functional block diagram of embodiment of the present invention sending module.
Described sending module 602, comprising:
Judging unit 801, for judging the type of service to be tested that described test cases comprises, described type of service comprises deposit, it is close to withdraw the money, transfer accounts, inquire about or change, and described test cases comprises the test cases combined by least one type of service;
Transmitting element 802, for sending to the Possum performing described type of service by described test cases;
Test cell 803, for according to get user input the data corresponding with described type of service and described test cases carry out emulation testing.
Concrete, extract the test cases in test library, judge type of service described in this test cases;
3a), on the Possum that the software under testing that can provide this type of service is housed, perform this test cases, in this test cases process of execution, emulation input is carried out, to obtain testing effect the most really to user's input parameter and the time interval thereof;
3b), by the execution result of all Possums performing this test cases carry out tabulate statistics, draw the test report content of this test cases.
Second acquisition module 603, for obtaining the result after automatic test, and generates test report.
Concrete, can be the generation of separate unit Possum automatic test report or the generation of batch Possum automatic test report.
After Possum completes all test cases preset, test report subsystem starts the collection and the work for the treatment of that process data, Possum test report subsystem according to relevant template and can arrange generation separate unit Possum test report, and according to the transmission information that imposes a condition to test owner or be sent on data acquisition server, provide data for batch testing report.
After separate unit Possum test report has generated and data has been sent to the data acquisition server of specifying, batch test report subsystem will process the data message on all separate unit Possums, and generate the final report of all Possums of present lot after automatic test, and related personnel is automatically sent to consult by the mode of mail.
The embodiment of the present invention obtains the data that the Possum in the region pre-set runs; According to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one; Obtain the result after automatic test, and generate test report, from the environment that reality uses, first obtain the data under different application scene, and after producing Possum, use that a set of automatization test system carries out dynamically, the test of adjustment, thus the real situation simulated as much as possible under practical service environment, improve accuracy and the specific aim of test.And owing to decreasing artificial intervention, decrease the artificial process analyzing data, thus better ensured the product quality of Possum.
Embodiment six
It is the high-level schematic functional block diagram of the device of embodiment of the present invention automatic test with reference to figure 9, Fig. 9.
On the basis of embodiment five, described device also comprises:
Logging modle 604, during for using described self-aided terminal to carry out business operation described user, record traffic type and the card number information corresponding with described type of service and/or serial number information.
Concrete, Possum automatization test system starts record tag information, wherein said label information is when using the user of Possum to carry out business operation, Possum operation system record all if identify the business information such as such as card number partial information, serial number information of each service feature, to facilitate in Possum automatization test system store data fast search and to search the data message relevant to this business, convenient statistical study and collection work are carried out to this business.
Embodiment seven
With reference to the high-level schematic functional block diagram that Figure 10, Figure 10 are the devices of embodiment of the present invention automatic test.
On the basis of embodiment five, described device also comprises:
Memory module 605, for being stored in the test cases be all suitable for the Possum of different types of transaction in common test case library according to the storage means pre-set.
Concrete, can according to type, be whether that circulator is still only got machine and still only deposited machine, random from the test cases storehouse of this kind of type, extract a case or a case sequence is tested, close to actual operating state.
Described case sequence refer to gather in running environment deposit, withdraw the money, transfer accounts, inquire about, change the case group that one group of business of carrying out successively such as close forms.
If circulation type, then can provide the transaction test of withdrawing the money and depositing simultaneously; If for only to get type, then only provide and withdraw the money transaction test and shield credit transaction test; If for only depositing type, only providing credit transaction and shielding transaction test of withdrawing the money.
Certainly, above-mentioned three kinds of types all can provide except depositing and withdrawing other such as change close, inquire about, the business such as to transfer accounts, as long as this type has and these business open.
Pick out test cases or the test cases sequence of miscellaneous service corresponding to this type according to type, form the test cases storehouse of this type; The test cases be all suitable for for each type or test cases sequence, can put into common test case library.
Embodiment eight
With reference to the high-level schematic functional block diagram that Figure 11, Figure 11 are the devices of embodiment of the present invention automatic test.
On the basis of embodiment five, described device also comprises:
Select module 606, after test a test cases on described self-aided terminal, more random another test cases of selecting from test cases storehouse is tested;
Preferably, reference Figure 12, Figure 12 is the high-level schematic functional block diagram that the embodiment of the present invention selects module 606.Described selection module 606, comprising:
Judging unit 1201, for judging the type of transaction of described self-aided terminal, described type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw;
Selection unit 1202, for according to described type of transaction, can be used for the test cases of described self-aided terminal from described test cases storehouse according to the algorithms selection one pre-set.
Preferably, described selection unit, for:
Send the detecting information that the single type of service prestored is tested to described self-aided terminal according to the single module operational mode pre-set;
Described device also comprises:
Sending module, if when the test result of testing the single type of service prestored on described self-aided terminal and correct test result exceed the threshold value pre-set, then send information to tester.
Concrete, in this mode, first modules is carried out to the pressure test on basis, guarantee that each independently module is reliable and stable.For improving execution efficiency, the test of individual module can simultaneously concurrently be carried out, and list does not interfere with each other each other.Namely the test result of a module can not have influence on the test result of another one module.When certain module breaks down, other modules can also normally be run.
The number of run of modules, the result of each run, execution are tested the ratio passed through and all can be preserved according to certain form and be saved on data acquisition server.After the single operational mode of data acquisition server on this batch is run, after each module testing namely on Possum completes, will start data analytics subsystem, the automatic data to having gathered process by data analytics subsystem.After certain group data or certain index exceed the critical field of setting, analyze automatically providing warning information to related personnel.
Be very easy to find the batch defect of certain product or certain module in such a mode.When the function existing problems of this module, in test case library, functional test use-case will detect; When the stability existing problems of this module, under the pressure test environment of single operational mode, this module may will successively break down, thus can find fast in this mode and detect such problem.
Preferably, described selection unit, for:
Receive according to the completely the same operational mode pre-set the data that user carries out business operation on the Possum identical with the type of transaction of Possum to be tested, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Described data are sent to described Possum to be tested, the second data result that the first data result that more described data are run on described Possum to be tested runs on the Possum identical with the type of transaction of described Possum to be tested with described data; If when the difference between described first data result and described second data result exceedes the threshold value pre-set, then send information to tester; Or,
Concrete, completely the samely refer to that test environment imitates running environment, comprise information and the speed of user's input.As certain user withdraws the money on certain Possum, its card action, the Possum not being only its place received, and also can be transferred to test platform, makes the Possum on test platform immediately receive the order of plug-in card.
In this mode, the service condition under simulation test customer self-service equipment actual motion environment is mainly used in.Such as occur under Possum actual motion environment certain accidental problem cannot and cannot reappear time, by gathering the True Data under customer self-service equipment actual motion environment, and through the process of data analytics subsystem, after getting relevant data message, perform automatic test in this mode.
Under this pattern, need to modify process to various data.Such as, before every transaction, need the card data information using simulation client to use, need in operation to simulate the type of transaction selected by client and the amount of money; Need after closing the transaction again to change card data information to simulate the operation of next client.In this mode, because automatization test system is close to the complete all operations simulated under Possum actual motion environment, therefore problem that is accidental, that be difficult to reappear can be improved probability of occurrence.In addition, batch device uses this pattern simulate, also significantly can improve the probability of problem re-emerges.Have recorded detailed operation note daily record in whole test process, thus provide necessary Data support for solving problem analysis.
According to the fuzzy matching pattern acquiring pre-set, Possum carries out the probability associated between the probability of various different business operation and business under practical service environment; According to the probability associated between type of service and described business that upper is tested, obtain the type of service of the maximum probability associated with a described upper type of service of testing; The test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; Or,
Concrete, according to the data under practical service environment, calculating quantity and the ratio of different type of transaction, carrying out the test of corresponding proportion when testing at random.
First situation is in Possum actual motion environment, after user executes a business, performs the probability of which kind of business during next business.As in school, user executes a business of withdrawing the money, and the probability having 95% performs next business for querying the balance, and the probability of 2% is withdrawn the money for continuing, and the probability of 3% terminates for moving back card.
The second situation is when Possum is as a finite state machine, when being in a certain state, enters next shape probability of state.As being in the state of " banknote is sent to cash dispensing port and waits for that user gets paper money " when Possum, the probability having 90% is entered the state that next state is " user takes banknote Possum smoothly away and prints strip ", there is the probability of 7% that the state of " time-out and user do not take banknote away cause Possum to reclaim banknote success " occurs, the state of the generation of 3% " time-out and user do not take banknote away cause Possum to reclaim banknote failure ".
In order to simulate this probability, the probability added up in the realistic running environment making the test of Possum software more possible, thus must quantize the test trend of Possum.The test being is unlikely the phenomenon occurring following waste testing cost: the state transformation of original 90% probability trend, in test, actual trend only occurs 10%, and with actual substantial deviation, this can not get the test effect wanted.
First, the data of Possum running environment are gathered and Automatic analysis automatically.
Gather the relevant information of the environment that software under testing will put into operation, as this environment user service information (type of service, the sequential nature of service execution by user, the Annual distribution etc. of service execution by user as user), the input information of user among business procedure, and the time interval between each input action.
Secondly, in each test cases, a transition between states figure is formed.Often perform a step, multiple route can be had to select if follow-up, Stochastic choice route performs, and also can carry out the selection of route according to the probability of use of actual motion, with closing to reality operation more.
Such as, be a kind of transition state figure that the embodiment of the present invention provides with reference to figure 5, Fig. 5.
Route: A->B (10%), A->C (30%), A->D (40%), A->E (20%).
Wherein, test execution is to A point, and probability of use mode selects to perform B, C, D or E.
Possum is a finite state, and ABCDE is only a kind of state of this finite state machine.Perform than ATM and withdraw the money, from initial " waiting for user's plug-in card " state, to the state of " accept subscriber card, run through card data ", enter " waiting for that user inputs password " state.。。。。And so on.
Possum, under any one steady state (SS), executes the instruction that a software issues, and meeting switched and transferred, to another state (comprising original state), specifically can enter into which state corpse probability event.As above scheme, Possum, in A condition, executes an instruction, and being switched to B shape probability of state is 10%.
Again, a follow-up transaction is selected according to probability that is given or setting.
After A point is finished, select the principle of next execution point to select according to existing probability, but will follow the principle of randomness equally when selecting, namely the selected mode of next execution point is random again on the basis of probability.After a selected particular transaction, now the related data obtained needed for this transaction is performed test by automatic test subsystem.
Finally, the process of lower some mode of entrance.
If Possum automatic test subsystem is after the test completing B point, now, the mode of entrance of any needs again to recalculate, and its value recalculated again should adjust on basis again.Such as, in upper figure, B->A (10%), B->B (10%), B->C (20%), B->D (30%), B->E (30%).
Now after B point is finished, the probability of next execution point is again selected to change, run B point simultaneously after being finished, again repeating B point, with under equiprobable condition, B->A and B-B of such as this step, and B-D and B-E, now just need by the clooating sequence of specifying or the next execution point of random select progressively, now its probability of unselected route rises, and is declined by its probability of route selected.
Obtain the condition pre-set of described self-aided terminal to be tested according to the reference settings operational mode that pre-sets, described in the condition that pre-sets be included in the type of service that described self-aided terminal to be tested need test; Only send the detecting information with the single type of service of the described Condition Matching pre-set to described self-aided terminal to be tested; Or, when get with described on the type of service of the maximum probability that associates of type of service of testing, the type of service of the maximum probability associated with a described upper type of service of testing described in further judgement whether mate described in the condition that pre-sets, if so, then the test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; If not, then next type of service of the probable value rank that associates with a described upper type of service of testing is obtained; Or,
Concrete, at some in particular cases, such as the transaction of some noncash class does not need all devices in batch performs, and only needs to run on certain machine.The condition of given setting that now can be artificial, such as, in each transaction shared ratio, or use under shielding the situations such as some special deals.
In this mode, automatic test executive subsystem will preferentially use the condition of setting.Meeting under the condition set, then according to gathering and the data processed, from test cases storehouse, extracting test cases according to the data message obtained and probability and testing.For the transaction class shielded, the probable value that it is added up can be set to sky, but the probable value of other types of transaction remains unchanged simultaneously.If each transaction probability value is all given, be then as the criterion with given probable value.But the order of its execution point still the value of data analytics subsystem be as the criterion.
According to the random adjust operation pattern pre-set according to described type of transaction, from described test cases storehouse, Stochastic choice one can be used for the test cases of described self-aided terminal; If the problem pre-set appears in the test cases of Stochastic choice when running on described self-aided terminal to be tested, then improve the probability of the test cases of described Stochastic choice; Or,
Concrete, in this mode, the selection of all types of service, the selection of each business execution sequence are completely random; In addition, in the process of random test, dynamically adjust according to the result in actual test run process.Such as, when certain type of transaction or certain test cases do not pass through, even if the original shared ratio of this transaction or case is lower, owing to there occurs fault or not passing through, now automatization test system will improve the execution ratio of this business or case automatically, thus test other Possums more targetedly and whether also there will be same situation.
In this mode, if certain business or case test are by rear, even if its original shared ratio is higher, when perform pass through all smoothly, slowly can reduce the ratio that this business or case perform again.When after the even running of certain a period of time, automatically restore to original execution ratio; After breaking down, the execution probability of this business or case will be improved rapidly.
In this mode, the adjustment of mobilism can be carried out flexibly according to the real-time execution result of business and case, the test of robotization can be carried out more targetedly, thus realize more intelligent automatic test.
The test cases of described self-aided terminal is can be used for according to the order pre-set or the single module operational mode pre-set according to random way selection, completely the same operational mode, fuzzy matching pattern, reference settings operational mode or random adjust operation model selection one.
Concrete, can preset running mode be passed through, by above-mentioned operational mode in a certain order or random mode carry out selecting rear execution.According to the result of default operation, the result in practical implementation can be analyzed in addition, adopt the operational mode that the mode intelligent selection of priority is different, thus realize policy selection more initiatively.
Below the know-why of the embodiment of the present invention is described in conjunction with specific embodiments.These describe the principle just in order to explain the embodiment of the present invention, and can not be interpreted as the restriction to embodiment of the present invention protection domain by any way.Based on explanation herein, those skilled in the art does not need to pay other embodiment that performing creative labour can associate the embodiment of the present invention, these modes all by fall into the embodiment of the present invention protection domain within.

Claims (16)

1. a method for automatic test, is characterized in that, described method comprises:
Obtain the data that the Possum in the region pre-set runs;
According to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one;
Obtain the result after automatic test, and generate test report.
2. method according to claim 1, is characterized in that, described acquisition pre-set the Possum in region run data, comprising:
Obtain by Internet Transmission the data that described Possum carries out business operation, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Or,
The data that the described Possum after according to the rule encryption pre-set carries out business operation are obtained by mobile memory medium; Or,
The data that the Possum extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
3. method according to claim 1, is characterized in that, described described test cases is sent to described Possum, comprising:
Judge that the type of service to be tested that described test cases comprises, described type of service comprise deposit, withdraw the money, transfer accounts, inquire about or change close, described test cases comprises the test cases combined by least one type of service;
Described test cases is sent on the Possum performing described type of service;
The data corresponding with described type of service inputted according to the user got and described test cases carry out emulation testing.
4. the method according to claims 1 to 3 any one, is characterized in that, described acquisition, after the data pre-setting the operation of the Possum in region, also comprises:
When described user uses described self-aided terminal to carry out business operation, record traffic type and the card number information corresponding with described type of service and/or serial number information.
5. the method according to claims 1 to 3 any one, is characterized in that, described method also comprises:
The test cases be all suitable for the Possum of different types of transaction is stored in common test case library according to the storage means pre-set.
6. the method according to claims 1 to 3 any one, is characterized in that, described according to described datamation creating test case, and after described test cases is sent to described Possum, also comprises:
After described self-aided terminal tests a test cases, more random another test cases of selecting from test cases storehouse is tested;
Describedly from test cases storehouse, select another test cases to test at random, comprising:
Judge the type of transaction of described self-aided terminal, described type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw;
According to described type of transaction, from described test cases storehouse, can be used for the test cases of described self-aided terminal according to the algorithms selection one pre-set.
7. method according to claim 6, is characterized in that, described according to described type of transaction, can be used for the test cases of described self-aided terminal, comprising from described test cases storehouse according to the algorithms selection one pre-set:
Send the detecting information that the single type of service prestored is tested to described self-aided terminal according to the single module operational mode pre-set;
Described method also comprises:
If when the test result of testing the single type of service prestored on described self-aided terminal and correct test result exceed the threshold value pre-set, then send information to tester.
8. method according to claim 6, is characterized in that, described according to described type of transaction, can be used for the test cases of described self-aided terminal, comprising from described test cases storehouse according to the algorithms selection one pre-set:
Receive according to the completely the same operational mode pre-set the data that user carries out business operation on the Possum identical with the type of transaction of Possum to be tested, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Described data are sent to described Possum to be tested, the second data result that the first data result that more described data are run on described Possum to be tested runs on the Possum identical with the type of transaction of described Possum to be tested with described data; If when the difference between described first data result and described second data result exceedes the threshold value pre-set, then send information to tester; Or,
According to the fuzzy matching pattern acquiring pre-set, Possum carries out the probability associated between the probability of various different business operation and business under practical service environment; According to the probability associated between type of service and described business that upper is tested, obtain the type of service of the maximum probability associated with a described upper type of service of testing; The test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; Or,
Obtain the condition pre-set of described self-aided terminal to be tested according to the reference settings operational mode that pre-sets, described in the condition that pre-sets be included in the type of service that described self-aided terminal to be tested need test; Only send the detecting information with the single type of service of the described Condition Matching pre-set to described self-aided terminal to be tested; Or, when get with described on the type of service of the maximum probability that associates of type of service of testing, the type of service of the maximum probability associated with a described upper type of service of testing described in further judgement whether mate described in the condition that pre-sets, if so, then the test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; If not, then next type of service of the probable value rank that associates with a described upper type of service of testing is obtained; Or,
According to the random adjust operation pattern pre-set according to described type of transaction, from described test cases storehouse, Stochastic choice one can be used for the test cases of described self-aided terminal; If the problem pre-set appears in the test cases of Stochastic choice when running on described self-aided terminal to be tested, then improve the probability of the test cases of described Stochastic choice; Or,
The test cases of described self-aided terminal is can be used for according to the order pre-set or the single module operational mode pre-set according to random way selection, completely the same operational mode, fuzzy matching pattern, reference settings operational mode or random adjust operation model selection one.
9. a device for automatic test, is characterized in that, described device comprises:
First acquisition module, the data that the Possum for obtaining in the region pre-set runs;
Sending module, for according to described datamation creating test case, and described test cases is sent to described Possum, to make described Possum carry out automatic test according to described test cases, described test cases comprises the detecting information corresponding to type of service of test at least one;
Second acquisition module, for obtaining the result after automatic test, and generates test report.
10. device according to claim 9, is characterized in that, described first acquisition module, comprising:
First acquiring unit, for being obtained the data that described Possum carries out business operation by Internet Transmission, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Or,
Second acquisition unit, carries out the data of business operation for being obtained the described Possum after according to the rule encryption pre-set by mobile memory medium; Or,
Extraction unit, the data that Possum for extracting different types of transaction stores when carrying out business operation in a different format, described different type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw, the specific format that described different form comprises daily record, text, database or pre-sets.
11. devices according to claim 9, is characterized in that, described sending module, comprising:
Judging unit, for judging the type of service to be tested that described test cases comprises, described type of service comprises deposit, it is close to withdraw the money, transfer accounts, inquire about or change, and described test cases comprises the test cases combined by least one type of service;
Transmitting element, for sending to the Possum performing described type of service by described test cases;
Test cell, for according to get user input the data corresponding with described type of service and described test cases carry out emulation testing.
12. devices according to claim 9 to 11 any one, it is characterized in that, described device also comprises:
Logging modle, during for using described self-aided terminal to carry out business operation described user, record traffic type and the card number information corresponding with described type of service and/or serial number information.
13. devices according to claim 9 to 11 any one, it is characterized in that, described device also comprises:
Memory module, for being stored in the test cases be all suitable for the Possum of different types of transaction in common test case library according to the storage means pre-set.
14. devices according to claim 9 to 11 any one, it is characterized in that, described device also comprises:
Select module, after test a test cases on described self-aided terminal, more random another test cases of selecting from test cases storehouse is tested;
Described selection module, comprising:
Judging unit, for judging the type of transaction of described self-aided terminal, described type of transaction comprises one of only withdrawing the money, only deposit or deposit and withdraw;
Selection unit, for according to described type of transaction, can be used for the test cases of described self-aided terminal from described test cases storehouse according to the algorithms selection one pre-set.
15. devices according to claim 14, is characterized in that, described selection unit, for:
Send the detecting information that the single type of service prestored is tested to described self-aided terminal according to the single module operational mode pre-set;
Described device also comprises:
Sending module, if when the test result of testing the single type of service prestored on described self-aided terminal and correct test result exceed the threshold value pre-set, then send information to tester.
16. devices according to claim 14, is characterized in that, described selection unit, for:
Receive according to the completely the same operational mode pre-set the data that user carries out business operation on the Possum identical with the type of transaction of Possum to be tested, described data comprise the interval time between action command that user triggers on the described Possum parameter corresponding with described action command and various action command; Described data are sent to described Possum to be tested, the second data result that the first data result that more described data are run on described Possum to be tested runs on the Possum identical with the type of transaction of described Possum to be tested with described data; If when the difference between described first data result and described second data result exceedes the threshold value pre-set, then send information to tester; Or,
According to the fuzzy matching pattern acquiring pre-set, Possum carries out the probability associated between the probability of various different business operation and business under practical service environment; According to the probability associated between type of service and described business that upper is tested, obtain the type of service of the maximum probability associated with a described upper type of service of testing; The test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; Or,
Obtain the condition pre-set of described self-aided terminal to be tested according to the reference settings operational mode that pre-sets, described in the condition that pre-sets be included in the type of service that described self-aided terminal to be tested need test; Only send the detecting information with the single type of service of the described Condition Matching pre-set to described self-aided terminal to be tested; Or, when get with described on the type of service of the maximum probability that associates of type of service of testing, the type of service of the maximum probability associated with a described upper type of service of testing described in further judgement whether mate described in the condition that pre-sets, if so, then the test cases of the type of service comprising the described maximum probability associated with a described upper type of service of testing is sent to described self-aided terminal; If not, then next type of service of the probable value rank that associates with a described upper type of service of testing is obtained; Or,
According to the random adjust operation pattern pre-set according to described type of transaction, from described test cases storehouse, Stochastic choice one can be used for the test cases of described self-aided terminal; If the problem pre-set appears in the test cases of Stochastic choice when running on described self-aided terminal to be tested, then improve the probability of the test cases of described Stochastic choice; Or,
The test cases of described self-aided terminal is can be used for according to the order pre-set or the single module operational mode pre-set according to random way selection, completely the same operational mode, fuzzy matching pattern, reference settings operational mode or random adjust operation model selection one.
CN201510713264.6A 2015-10-28 2015-10-28 Method and device for automated test Pending CN105405221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510713264.6A CN105405221A (en) 2015-10-28 2015-10-28 Method and device for automated test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510713264.6A CN105405221A (en) 2015-10-28 2015-10-28 Method and device for automated test

Publications (1)

Publication Number Publication Date
CN105405221A true CN105405221A (en) 2016-03-16

Family

ID=55470685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510713264.6A Pending CN105405221A (en) 2015-10-28 2015-10-28 Method and device for automated test

Country Status (1)

Country Link
CN (1) CN105405221A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204042A (en) * 2016-07-20 2016-12-07 深圳怡化电脑股份有限公司 The processing method of a kind of self-aided terminal business sensitive information and system
CN107454124A (en) * 2016-05-31 2017-12-08 阿里巴巴集团控股有限公司 Equipment automatization method and device
CN108268372A (en) * 2017-07-24 2018-07-10 深圳壹账通智能科技有限公司 Mock test processing methods, device, storage medium and computer equipment
CN109324968A (en) * 2018-09-26 2019-02-12 北京奇艺世纪科技有限公司 A kind of system detection method and device
CN109766272A (en) * 2018-12-26 2019-05-17 深圳壹账通智能科技有限公司 Test method, device, terminal and the storage medium of self-service withdrawal application software
CN111435227A (en) * 2018-12-25 2020-07-21 中移(杭州)信息技术有限公司 Smart home equipment testing method, device, equipment and medium
CN111865726A (en) * 2020-07-29 2020-10-30 中国工商银行股份有限公司 Service message testing method, device, computer system and storage medium
CN111984545A (en) * 2020-09-24 2020-11-24 北京百度网讯科技有限公司 Method and device for testing stability of detection unit, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377759A (en) * 2008-08-26 2009-03-04 中国工商银行股份有限公司 Automatic interface test system
CN102184135A (en) * 2011-04-19 2011-09-14 中国工商银行股份有限公司 Instruction script based test method and system in bank system
US20110321127A1 (en) * 2001-01-19 2011-12-29 C-Sam, Inc. Transactional services
CN102937932A (en) * 2011-08-16 2013-02-20 ***股份有限公司 Automated testing device and method of integrated heterogeneous testing tool
CN104461863A (en) * 2014-10-29 2015-03-25 中国建设银行股份有限公司 Service system testing method, device and system
CN104572433A (en) * 2013-10-29 2015-04-29 ***股份有限公司 Method and device for testing financial information system
CN104866424A (en) * 2015-05-22 2015-08-26 国云科技股份有限公司 Method for designing software test cases based on scenario analysis

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110321127A1 (en) * 2001-01-19 2011-12-29 C-Sam, Inc. Transactional services
CN101377759A (en) * 2008-08-26 2009-03-04 中国工商银行股份有限公司 Automatic interface test system
CN102184135A (en) * 2011-04-19 2011-09-14 中国工商银行股份有限公司 Instruction script based test method and system in bank system
CN102937932A (en) * 2011-08-16 2013-02-20 ***股份有限公司 Automated testing device and method of integrated heterogeneous testing tool
CN104572433A (en) * 2013-10-29 2015-04-29 ***股份有限公司 Method and device for testing financial information system
CN104461863A (en) * 2014-10-29 2015-03-25 中国建设银行股份有限公司 Service system testing method, device and system
CN104866424A (en) * 2015-05-22 2015-08-26 国云科技股份有限公司 Method for designing software test cases based on scenario analysis

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454124B (en) * 2016-05-31 2020-11-03 创新先进技术有限公司 Equipment automation method and device
CN107454124A (en) * 2016-05-31 2017-12-08 阿里巴巴集团控股有限公司 Equipment automatization method and device
CN106204042B (en) * 2016-07-20 2019-12-10 深圳怡化电脑股份有限公司 method and system for processing service sensitive information of self-service terminal
CN106204042A (en) * 2016-07-20 2016-12-07 深圳怡化电脑股份有限公司 The processing method of a kind of self-aided terminal business sensitive information and system
CN108268372A (en) * 2017-07-24 2018-07-10 深圳壹账通智能科技有限公司 Mock test processing methods, device, storage medium and computer equipment
CN109324968A (en) * 2018-09-26 2019-02-12 北京奇艺世纪科技有限公司 A kind of system detection method and device
CN109324968B (en) * 2018-09-26 2022-03-04 北京奇艺世纪科技有限公司 System testing method and device
CN111435227A (en) * 2018-12-25 2020-07-21 中移(杭州)信息技术有限公司 Smart home equipment testing method, device, equipment and medium
CN111435227B (en) * 2018-12-25 2023-07-21 中移(杭州)信息技术有限公司 Smart home equipment testing method, device, equipment and medium
CN109766272A (en) * 2018-12-26 2019-05-17 深圳壹账通智能科技有限公司 Test method, device, terminal and the storage medium of self-service withdrawal application software
CN111865726A (en) * 2020-07-29 2020-10-30 中国工商银行股份有限公司 Service message testing method, device, computer system and storage medium
CN111984545A (en) * 2020-09-24 2020-11-24 北京百度网讯科技有限公司 Method and device for testing stability of detection unit, electronic equipment and storage medium
CN111984545B (en) * 2020-09-24 2023-07-28 北京百度网讯科技有限公司 Method and device for testing stability of detection unit, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105405221A (en) Method and device for automated test
CN110399293B (en) System test method, device, computer equipment and storage medium
CN110515830A (en) Operation trace method for visualizing, device, equipment and storage medium
CN109560996B (en) Automatic testing system and method for terminal of Internet of things
CN107423181A (en) The automated testing method and device of a kind of uniform storage device
CN106294902A (en) Method, device and the electronic equipment of prediction mobile applications page performance
US20150169288A1 (en) System operation tracing method on distributed system
CN109559054B (en) Electric power engineering construction information processing system
CN111970151A (en) Flow fault positioning method and system for virtual and container network
CN109359019A (en) Application program capacity monitoring method, device, electronic equipment and storage medium
CN111061696A (en) Method and device for analyzing transaction message log
CN105868956A (en) Data processing method and device
CN113570468A (en) Enterprise payment wind control service platform
CN104122871A (en) Real-time monitoring system and real-time monitoring method of semiconductor test data
CN105405220A (en) Method and device for automated test
CN113592439B (en) Software project flow management system and method
CN105374131A (en) Method and device for automatic testing
CN104360939A (en) Method, equipment and system for positioning fault
CN114757637A (en) Credit approval method, credit approval device, credit approval equipment and credit approval storage medium based on decision engine
CN115248782B (en) Automatic testing method and device and computer equipment
CN111368413A (en) Tracking management method and system for clothing production plan
CN112965873A (en) Page processing method and device, storage medium and processor
CN112035366A (en) Test case generation method, device and equipment
CN112650796A (en) Automatic application data collection and storage management system
Su et al. Research and design of website user behavior data acquisition based on customized event tracking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316

RJ01 Rejection of invention patent application after publication