CN107817433A - Test system, method, equipment and the computer-readable recording medium of smart card - Google Patents
Test system, method, equipment and the computer-readable recording medium of smart card Download PDFInfo
- Publication number
- CN107817433A CN107817433A CN201711027706.7A CN201711027706A CN107817433A CN 107817433 A CN107817433 A CN 107817433A CN 201711027706 A CN201711027706 A CN 201711027706A CN 107817433 A CN107817433 A CN 107817433A
- Authority
- CN
- China
- Prior art keywords
- smart card
- test script
- tested
- functional test
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/2832—Specific tests of electronic circuits not provided for elsewhere
- G01R31/2834—Automated test systems [ATE]; using microprocessors or computers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of test system of smart card, including module is recorded, for prerecording the functional test script of smart card;Execution module, for treating testing smart card perform function test script;Judge module, whether it is finished for arbitration functions test script, if, execution module is then triggered to next smart card perform function test script to be tested, until execution module has been performed both by functional test script to all smart cards to be tested, if it is not, Time delay module;Time delay module, for the time lengthening by execution module to current smart card perform function test script to be tested, so that execution module continues to current smart card perform function test script to be tested.The present invention replaces manually, reducing time test period, improving project efficiency, reduce project cost with automatic.The invention also discloses a kind of test system of smart card, equipment and computer-readable recording medium, has above-mentioned beneficial effect.
Description
Technical field
The present invention relates to field of intelligent cards, more particularly to a kind of test system of smart card, method, equipment and computer
Readable storage medium storing program for executing.
Background technology
In the development process of smart card, test is essential in engineering project.Surveyed currently for intelligent card function
Examination is broadly divided into independent development test script and the instrument test of purchase third-party testing.Above two method has an identical point
Just have to be by manually understanding testing tool or the configuration of manual test script to test smart card, but pass through for a long time
The work for manually going operation to repeat, not only test period length, is lavished labor on, and reduces project development efficiency, but also add
The big time of engineering project, resource, personnel cost.
Therefore, how to provide a kind of scheme for solving above-mentioned technical problem is that those skilled in the art need to solve at present
Problem.
The content of the invention
It is an object of the invention to provide a kind of test system of smart card, replaces manually, reducing test period with automatic
Time, project efficiency is improved, reduce project cost;It is a further object of the present invention to provide a kind of test system of smart card
System, equipment and computer-readable recording medium.
In order to solve the above technical problems, the invention provides a kind of test system of smart card, including:
Module is recorded, for prerecording the functional test script of smart card;
Execution module, the functional test script is performed for treating testing smart card;
Judge module, for judging whether the functional test script is finished, if so, then triggering the execution module
The functional test script is performed to next smart card to be tested, until the execution module is to all intelligence to be tested
Card has been performed both by the functional test script, if it is not, Time delay module;
The time delay module, for the execution module to be performed into the functional test script to current smart card to be tested
Time lengthening, so that the execution module continues to perform the functional test script to current smart card to be tested.
Preferably, the recording module is QMacro instrument.
Preferably, the system also includes development module, for developing PC system interfaces in advance, so that the recording module is pre-
First record the functional test script of smart card.
Preferably, the system also includes distribute module, needs for having allocated every smart card to be tested in advance
Test resource, so that execution module is treated when performing the functional test script to the smart card to be tested described in automatic loading
Test resource needed for testing smart card.
In order to solve the above technical problems, present invention also offers a kind of method of testing of smart card, including:
Prerecord the functional test script of smart card;
Treat testing smart card and perform the functional test script;
Judge whether the functional test script is finished, if so, described in then being performed to next smart card to be tested
Functional test script, until the functional test script has been performed both by all smart cards to be tested, if it is not, then will be to working as
Preceding smart card to be tested performs the time lengthening of the functional test script, to continue to perform institute to current smart card to be tested
State functional test script.
Preferably, the process of the functional test script for prerecording smart card is specially:
The functional test script of smart card is prerecorded by QMacro instrument.
Preferably, before the functional test script for prerecording smart card, this method also includes:
Exploitation PC system interfaces in advance, to prerecord the functional test script of smart card.
Preferably, after the functional test script for prerecording smart card, treat testing smart card and perform the work(
Before energy test script, this method also includes:
The test resource that every smart card to be tested needs is allocated in advance, so as to the smart card to be tested
Automatically the test resource needed for the smart card to be tested is loaded when performing the functional test script.
In order to solve the above technical problems, present invention also offers a kind of test equipment of smart card, including:
Memory, for storing computer program;
Processor, the step of the method for testing as described in above-mentioned any one is realized during for performing the computer program
Suddenly.
In order to solve the above technical problems, present invention also offers a kind of computer-readable recording medium, the computer can
Read to be stored with computer program in storage medium, realized when the computer program is executed by processor such as above-mentioned any one institute
The step of method of testing stated.
The invention provides a kind of test system of smart card, including module is recorded, for prerecording the work(of smart card
Can test script;Execution module, for treating testing smart card perform function test script;Judge module, for arbitration functions
Whether test script is finished, if so, execution module is then triggered to next smart card perform function test script to be tested,
Until execution module has been performed both by functional test script to all smart cards to be tested, if it is not, Time delay module;Be delayed mould
Block, for the time lengthening by execution module to current smart card perform function test script to be tested, so as to execution module after
Continue to current smart card perform function test script to be tested.
It can be seen that in actual applications, using the solution of the present invention, testing smart card is treated by the test system of automation
Perform function test script, automatically to next intelligence to be tested after the complete functional test script of execution to a smart card to be tested
Energy card perform function test script, replace manually, reducing time test period, improving project efficiency, reduce with automatic
Project cost.
Present invention also offers a kind of test system of smart card, equipment and computer-readable recording medium, have and on
State method of testing identical beneficial effect.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to institute in prior art and embodiment
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of structural representation of the test system of smart card provided by the present invention;
Fig. 2 is a kind of flow chart of the method for testing of smart card provided by the present invention.
Embodiment
The core of the present invention is to provide a kind of test system of smart card, replaces manually, reducing test period with automatic
Time, project efficiency is improved, reduce project cost;Another core of the present invention is to provide a kind of test system of smart card
System, equipment and computer-readable recording medium.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is refer to, Fig. 1 is a kind of structural representation of the test system of smart card provided by the present invention, including:
Module 1 is recorded, for prerecording the functional test script of smart card;
Specifically, the present invention recorded functional test pin according to multiple functions to smart card the step of test
This, is illustrated with any one sheet smart card, because a sheet smart card may have multiple functions, so the function of a sheet smart card is surveyed
Training originally can be one, or multiple, if the functional test script that this sheet smart card is recorded is one, the function is surveyed
Training sheet includes institute's functional testing procedure on smart card, if the functional test script that this sheet smart card is recorded is multiple,
Represent that the testing procedure of each function on this sheet smart card is both needed to record One function test script, wherein, the functional test
Script is applied to any one sheet smart card.
Certainly, recording mode can also be other modes except that can be two kinds of the example above, and the present invention is not done herein
Limit.
Execution module 2, for treating testing smart card perform function test script;
Specifically, any one sheet smart card, possibly as smart card to be tested, one sheet smart card of any selection, which is used as, to be treated
Testing smart card, test system start to treat testing smart card perform function test script, replace manually, reducing survey with automatic
Cycle time is tried, improves project efficiency.
Judge module 3, whether it is finished for arbitration functions test script, if so, then triggering execution module 2 to next
Smart card perform function test script to be tested is opened, until execution module 2 has been performed both by function survey to all smart cards to be tested
Training sheet, if it is not, Time delay module 4;
Time delay module 4, for execution module 2 to be prolonged to the time of current smart card perform function test script to be tested
It is long, so that execution module 2 continues to current smart card perform function test script to be tested.
Specifically, it is necessary to which lasting test next smart card perform function to be tested during automated execution
Script, to reach the effect of automation, but it must assure that each smart card to be tested tested can be held again
Go functional test script, so this programme also contemplates the state to each smart card perform function test script to be tested,
If the functional test script that is over is performed to the smart card to be tested currently tested, then judge module 3 can be held in triggering automatically
Row module 2, so that execution module 2 is automatically to next smart card perform function test script to be tested, until execution module 2 is right
All smart cards to be tested have been performed both by functional test script.If the functional test script being currently executing has not performed also,
The so meeting Time delay of judge module 3 module 4, time delay module 4 is by current smart card perform function test script to be tested
Time lengthening is performed, to ensure that execution module 2 continues to current smart card perform function test script to be tested.Prior art with
Manually each smart card is tested, human factor is critically important, and this programme is realized with automatic flow, unified test
Standard effect, the more resource such as reasonable employment PROJECT TIME, personnel, assets, reduce cost.
The invention provides a kind of test system of smart card, including module is recorded, for prerecording the work(of smart card
Can test script;Execution module, for treating testing smart card perform function test script;Judge module, for arbitration functions
Whether test script is finished, if so, execution module is then triggered to next smart card perform function test script to be tested,
Until execution module has been performed both by functional test script to all smart cards to be tested, if it is not, Time delay module;Be delayed mould
Block, for the time lengthening by execution module to current smart card perform function test script to be tested, so as to execution module after
Continue to current smart card perform function test script to be tested.
It can be seen that in actual applications, using the solution of the present invention, testing smart card is treated by the test system of automation
Perform function test script, automatically to next intelligence to be tested after the complete functional test script of execution to a smart card to be tested
Energy card perform function test script, replace manually, reducing time test period, improving project efficiency, reduce with automatic
Project cost.
On the basis of above-described embodiment:
As a kind of preferred embodiment, recording module 1 is QMacro instrument., should as a kind of preferred embodiment
System also includes development module, and for developing PC system interfaces in advance, the function that smart card is prerecorded to record module 1 is surveyed
Training sheet.
Specifically, QMacro instrument is the software of a analog mouse keyboard action, by making script, can allow by
Key spirit replaces both hands, performs a series of mouse-keyboard actions automatically, and QMacro instrument is easy to use, it is not necessary to any programming
Knowledge can makes powerful script.As long as the action that can be with the hands completed before computer, QMacro all may be used
Completed with substituting.The step of present invention is tested the function of smart card by the simulation of QMacro instrument, it is easy to operation, into
This is relatively low.The present invention also selects simultaneously develops to PC system interfaces (such as OS api interfaces, OS messenger services interface), auxiliary
QMacro instrument is helped to record the functional test script of smart card.
Certainly, except can select aforesaid way record smart card functional test script, other modes can also be used,
The present invention does not limit herein.
As a kind of preferred embodiment, the system also includes distribute module, for having allocated every intelligence to be tested in advance
The test resource needed can be blocked, automatic loading is treated when treating testing smart card perform function test script so as to execution module 2
Test resource needed for testing smart card.
Specifically, before testing smart card perform function test script is treated, the present invention has also carried out resource point in advance
Match somebody with somebody, wherein, resource includes the version number of smart card, the functional test script of smart card, activates individualized script, test machine etc.
Deng when test system automatic operating, automatically loading and current smart card to be tested carried out testing required resource, automatically
Change more efficient.
It is understood that smart card itself has identity code, can be arrived by the identity code with automatic identification
The functional test script tested, and activate smart card.
Accordingly, the present invention also determined return state of the functional test script for resource loading procedure, if loading
Resource show identification intelligent clamp part mistake, then carrying out the distribute module of resource allocation will be stopped.
Fig. 2 is refer to, Fig. 2 is a kind of flow chart of the method for testing of smart card provided by the present invention, including:
Step 1:Prerecord the functional test script of smart card;
Step 2:Treat testing smart card perform function test script;
Step 3:Whether arbitration functions test script is finished, if so, into step 4, if it is not, into step 5;
Step 4:To next smart card perform function test script to be tested, until being held to all smart cards to be tested
Functional test script is gone;
Step 5:By to the time lengthening of current smart card perform function test script to be tested, to continue to currently treating
Testing smart card perform function test script.
As a kind of preferred embodiment, the process for prerecording the functional test script of smart card is specially:
The functional test script of smart card is prerecorded by QMacro instrument.
As a kind of preferred embodiment, before the functional test script for prerecording smart card, this method also includes:
Exploitation PC system interfaces in advance, to prerecord the functional test script of smart card.
As a kind of preferred embodiment, after the functional test script for prerecording smart card, testing smart card is treated
Before perform function test script, this method also includes:
The test resource that every smart card to be tested needs is allocated in advance, to treat testing smart card perform function
Automatically the test resource needed for smart card to be tested is loaded during test script.
Present invention also offers a kind of test equipment of smart card, including:
Memory, for storing computer program;
Processor, the step of method of testing such as above-mentioned any one is realized during for performing computer program.
Present invention also offers a kind of computer-readable recording medium, computer is stored with computer-readable recording medium
Program, when computer program is executed by processor the step of the realization such as method of testing of above-mentioned any one.
Introduction for a kind of test system of smart card provided by the present invention, equipment and computer-readable recording medium
Above-described embodiment is refer to, the present invention will not be repeated here.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (10)
- A kind of 1. test system of smart card, it is characterised in that including:Module is recorded, for prerecording the functional test script of smart card;Execution module, the functional test script is performed for treating testing smart card;Judge module, for judging whether the functional test script is finished, if so, then triggering the execution module under One smart card to be tested performs the functional test script, until the execution module is equal to all smart cards to be tested The functional test script is performed, if it is not, Time delay module;The time delay module, for the execution module is performed to current smart card to be tested the functional test script when Between extend, so that the execution module continues to perform the functional test script to current smart card to be tested.
- 2. test system according to claim 1, it is characterised in that the recording module is QMacro instrument.
- 3. test system according to claim 2, it is characterised in that the system also includes development module, for opening in advance PC system interfaces are sent out, so that the recording module prerecords the functional test script of the smart card.
- 4. according to the test system described in claim 1-3 any one, it is characterised in that the system also includes distribute module, The test resource needed for having allocated every smart card to be tested in advance, so that execution module is to the intelligence to be tested The test resource loaded automatically when performing the functional test script needed for the smart card to be tested can be blocked.
- A kind of 5. method of testing of smart card, it is characterised in that including:Prerecord the functional test script of smart card;Treat testing smart card and perform the functional test script;Judge whether the functional test script is finished, if so, then performing the function to next smart card to be tested Test script, until the functional test script has been performed both by all smart cards to be tested, if it is not, then will be to currently treating Testing smart card performs the time lengthening of the functional test script, to continue to perform the work(to current smart card to be tested Can test script.
- 6. method of testing according to claim 5, it is characterised in that the functional test script for prerecording smart card Process be specially:The functional test script of smart card is prerecorded by QMacro instrument.
- 7. method of testing according to claim 5, it is characterised in that the functional test script for prerecording smart card Before, this method also includes:Exploitation PC system interfaces in advance, to prerecord the functional test script of the smart card.
- 8. according to the method for testing described in claim 5-7 any one, it is characterised in that the work(for prerecording smart card After energy test script, before treating the testing smart card execution functional test script, this method also includes:The test resource that every smart card to be tested needs is allocated in advance, to be performed to the smart card to be tested Automatically the test resource needed for the smart card to be tested is loaded during the functional test script.
- A kind of 9. test equipment of smart card, it is characterised in that including:Memory, for storing computer program;Processor, the method for testing as described in Claims 1-4 any one is realized during for performing the computer program Step.
- 10. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the step of the method for testing as described in Claims 1-4 any one is realized when the computer program is executed by processor Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711027706.7A CN107817433A (en) | 2017-10-27 | 2017-10-27 | Test system, method, equipment and the computer-readable recording medium of smart card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711027706.7A CN107817433A (en) | 2017-10-27 | 2017-10-27 | Test system, method, equipment and the computer-readable recording medium of smart card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107817433A true CN107817433A (en) | 2018-03-20 |
Family
ID=61603279
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711027706.7A Pending CN107817433A (en) | 2017-10-27 | 2017-10-27 | Test system, method, equipment and the computer-readable recording medium of smart card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107817433A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101175284A (en) * | 2006-11-01 | 2008-05-07 | 联想移动通信科技有限公司 | Function testing method of portable electronic apparatus |
CN102799511A (en) * | 2012-06-30 | 2012-11-28 | 成都西可科技有限公司 | Android-based automatic test method and system |
CN103514088A (en) * | 2012-06-19 | 2014-01-15 | 珠海世纪鼎利通信科技股份有限公司 | Function regression testing method for terminal application software |
CN104008047A (en) * | 2013-02-27 | 2014-08-27 | 腾讯科技(深圳)有限公司 | Intelligent terminal program testing method and system |
CN104679649A (en) * | 2013-11-29 | 2015-06-03 | 腾讯科技(深圳)有限公司 | Software fluency testing method and device |
CN105138436A (en) * | 2015-08-07 | 2015-12-09 | 天津市康凯特软件科技有限公司 | Terminal offline test method and apparatus |
CN105302700A (en) * | 2014-06-13 | 2016-02-03 | 阿里巴巴集团控股有限公司 | Method and equipment for recording user operation on touch terminal |
CN106649092A (en) * | 2016-10-21 | 2017-05-10 | 郑州云海信息技术有限公司 | Test script generation method, web page testing method, device and system |
-
2017
- 2017-10-27 CN CN201711027706.7A patent/CN107817433A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101175284A (en) * | 2006-11-01 | 2008-05-07 | 联想移动通信科技有限公司 | Function testing method of portable electronic apparatus |
CN103514088A (en) * | 2012-06-19 | 2014-01-15 | 珠海世纪鼎利通信科技股份有限公司 | Function regression testing method for terminal application software |
CN102799511A (en) * | 2012-06-30 | 2012-11-28 | 成都西可科技有限公司 | Android-based automatic test method and system |
CN104008047A (en) * | 2013-02-27 | 2014-08-27 | 腾讯科技(深圳)有限公司 | Intelligent terminal program testing method and system |
CN104679649A (en) * | 2013-11-29 | 2015-06-03 | 腾讯科技(深圳)有限公司 | Software fluency testing method and device |
CN105302700A (en) * | 2014-06-13 | 2016-02-03 | 阿里巴巴集团控股有限公司 | Method and equipment for recording user operation on touch terminal |
CN105138436A (en) * | 2015-08-07 | 2015-12-09 | 天津市康凯特软件科技有限公司 | Terminal offline test method and apparatus |
CN106649092A (en) * | 2016-10-21 | 2017-05-10 | 郑州云海信息技术有限公司 | Test script generation method, web page testing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109815252A (en) | Test data generating method, device, computer equipment and readable storage medium storing program for executing | |
CN110046101B (en) | Page automatic testing method and device and computer storage medium | |
US10146668B1 (en) | Modeling code coverage in software life cycle | |
CN110525823A (en) | A kind of method, apparatus and system that monitoring rubbish is put on by classification | |
CN108399132A (en) | A kind of scheduling tests method, apparatus and storage medium | |
US8448151B2 (en) | Method for binarizing initial script on operating system and operating method of binary script | |
Dahmann et al. | Implications of systems of systems on system design and engineering | |
EP3619611A1 (en) | Conditional debugging of server-side production code | |
CN105302717A (en) | Detection method and apparatus for big data platform | |
CN107045475B (en) | Test method and device | |
CN106919398A (en) | A kind of software distribution method and device | |
CN105718307B (en) | Process management method and management of process device | |
CN110162730A (en) | Information processing method, device, computer equipment and storage medium | |
CN108874649A (en) | Generation method, device and its computer equipment of automatic test script | |
CN105760300B (en) | A kind of automated testing method and test macro of STK/UTK business | |
CN105739481B (en) | The test method of industrial control software, apparatus and system | |
CN110347735A (en) | The data forwarding of configurationization mends processing method, device and readable storage medium storing program for executing extremely | |
CN109284194A (en) | Collecting method, reference main equipment, computer equipment and storage medium | |
CN105550103A (en) | Custom test script based automated testing method | |
CN109446762A (en) | Cloud platform access method, device, computer equipment and storage medium | |
CN107817433A (en) | Test system, method, equipment and the computer-readable recording medium of smart card | |
CN108572892A (en) | A kind of off-line test method and apparatus based on PowerPC multi-core processors | |
CN104834643B (en) | A kind of quick common gateway interface file analysis method and apparatus | |
CN106055935A (en) | Process control method and device and electronic equipment | |
CN109739511A (en) | A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180320 |