CN110736920A - card testing method and system based on engineering management test script - Google Patents

card testing method and system based on engineering management test script Download PDF

Info

Publication number
CN110736920A
CN110736920A CN201910913995.3A CN201910913995A CN110736920A CN 110736920 A CN110736920 A CN 110736920A CN 201910913995 A CN201910913995 A CN 201910913995A CN 110736920 A CN110736920 A CN 110736920A
Authority
CN
China
Prior art keywords
test
script
scripts
card
engineering
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
CN201910913995.3A
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.)
Beijing WatchData System Co Ltd
Beijing WatchSmart Technologies Co Ltd
Original Assignee
Beijing WatchSmart Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing WatchSmart Technologies Co Ltd filed Critical Beijing WatchSmart Technologies Co Ltd
Priority to CN201910913995.3A priority Critical patent/CN110736920A/en
Publication of CN110736920A publication Critical patent/CN110736920A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/31816Soft error testing; Soft error rate evaluation; Single event testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a card test method based on engineering management test scripts, which comprises the steps of establishing a test project, showing the test project in a root node mode, establishing a test strategy, defining or more test strategies under the test project, showing the test strategies in a child node mode, adding a test script, adding or more types of test scripts under the test strategy, showing the test scripts in a leaf node mode, operating the test script, executing the test script in batches and generating a test report and/or a log of a system .

Description

card testing method and system based on engineering management test script
Technical Field
The invention relates to the technical field of card testing, in particular to card testing methods and systems based on engineering management test scripts.
Background
With the increasing popularity of smart life, portable card applications with attached or embedded integrated circuit chips are increasingly popular and have a wide variety of functions, such as identifying identity, recording financial information, recording medical information, disabling controls, as payment instruments, and so forth.
For card factories, in order to ensure that cards delivered from factories meet specifications and customer requirements, system testing is performed on the cards in a card development stage , and a card testing system is derived for the purpose of facilitating the testing.
With the increasing of the types of the cards, the testing scripts for testing are increased, the script management is difficult, the workload of script maintenance is large, the generated testing reports are different in form, and the working efficiency of card testing is seriously influenced.
Disclosure of Invention
The invention aims to provide card testing methods and systems based on engineering management test scripts to solve the problem that in the prior art, the work efficiency is seriously affected due to the fact that many test scripts are used, the management is difficult, and the maintenance workload is large.
According to the th aspect of the invention, card testing methods based on engineering management test scripts are provided, which comprise the following steps:
step S1, establishing a test project;
the test engineering is displayed in a root node mode;
step S2, establishing a test strategy;
defining one or more test strategies under the test engineering, wherein the test strategies are shown in a child node mode;
step S3, adding a test script;
adding or more types of test scripts under the test strategy, wherein the test scripts are displayed in a leaf node mode;
step S4, running a test script;
the test scripts are executed in batches to generate test reports and/or logs for system .
Preferably, the test project is stored in a file.
Preferably, in the step S2, in the step of establishing the test policy, at least any of a data directory, a code directory, a log directory and a report directory is generated when the test policy is established, where the data directory is used to store a data source called in the current test policy, the code directory is used to store all test scripts in the current test policy, the log directory is used to store all executed logs in the current test policy, and the report directory is used to store a test report after the current test policy is executed.
Preferably, the step S4 executes the test scripts to execute all or part of the test scripts under all the test strategies in the test engineering in batch, so as to generate the test report and/or log of the system .
Preferably, the step S4 executes the test scripts to execute all or part of the test scripts in test strategies in the test engineering in batch, so as to generate a test report and/or log of the system .
According to a second aspect of the invention, card test systems based on engineering management test scripts are provided, which comprise an engineering resource manager for managing test engineering, a strategy resource manager for managing test strategies, a script executor for executing scripts, calling algorithms and calling interfaces, and an interface module for providing an interface for the script executor to call, wherein the management of the test engineering comprises the creation, opening, closing, running, checking, addition, deletion and modification of test strategies, the management of the test strategies comprises the running and configuration of the test strategies and the addition, deletion and modification of the test scripts.
Preferably, the interface provided by the interface module comprises at least interfaces of card reader interface, instruction sending interface, algorithm interface, communication interface and mp300 interface.
Preferably, the card testing system further comprises a policy log browser, and the policy log browser is used for viewing the log and the result of the policy.
Preferably, the card testing system further comprises a script detail log module, and the script detail log module is used for viewing the log of a single test script.
Preferably, the card test system further comprises a script editor and a script debugger, wherein the script editor is used for providing script editing, and the script debugger is used for script syntax checking and script parsing.
Preferably, the card test system further comprises a run output module, and the run output module is used for checking debugging and executing output information.
According to a third aspect of the present invention, there is provided computer readable storage media having stored thereon computer program instructions which, when executed by or more processors, implement the operations of the project management test script based card testing method of any of above.
Compared with the prior art, the card testing method and system based on the engineering management test script provided by the invention have the following advantages:
the invention provides card testing methods based on engineering management test scripts, which establish a layered grouping framework of the test engineering, test strategy and test scripts, manage a large number of test scripts in an engineering management mode, and the test scripts can be operated in batches and maintained in batches and generate test reports and logs of a system , thereby reducing the workload of testers, facilitating unattended card testing and effectively improving the working efficiency.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. In the drawings:
FIG. 1 is a flow chart of the steps of a preferred embodiment card testing method based on project management test scripts provided by the invention;
FIG. 2 is a schematic diagram of a framework adopted by the card testing method based on the engineering management test script shown in FIG. 1;
FIG. 3 is a block diagram of preferred embodiments of the present invention, showing a card testing system based on engineering management test scripts.
Reference numerals:
1-card test system, 11-engineering resources manager,
12-policy resource manager, 13-script executor,
14-interface module, 15-policy log browser,
16-script detail log module, 17-script editor,
18-script debugger, 19-run output module.
Detailed Description
The following description is of embodiments of the invention claimed and other non-explicitly described implementations related to the claims are within the scope of the claims.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
Examples of well known computing systems, environments, and/or configurations that may be suitable for use with computer system/server include, but are not limited to, smart phones, personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computers, distributed cloud computing environments that include any of the above systems, and the like.
Generally, program modules can include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types.
The invention is further described with reference to the drawings and the detailed description.
As shown in fig. 1 and fig. 2, fig. 1 is a flowchart illustrating steps of an preferred embodiment card testing method based on an engineering management test script, and fig. 2 is a schematic diagram illustrating a framework adopted by the card testing method based on the engineering management test script shown in fig. 1.
The embodiment provides card testing methods based on engineering management test scripts, which comprise the following steps:
step S1, establishing a test project;
the test engineering is displayed in a root node mode;
step S2, establishing a test strategy;
defining one or more test strategies under the test engineering, wherein the test strategies are shown in a child node mode;
step S3, adding a test script;
adding or more types of test scripts under the test strategy, wherein the test scripts are displayed in a leaf node mode;
step S4, running a test script;
the test scripts are executed in batches to generate test reports and/or logs for system .
The invention provides card testing methods based on engineering management test scripts, which establish a layered grouping framework of the test engineering, test strategy and test scripts, manage a large number of test scripts in an engineering management mode, and the test scripts can be operated in batches and maintained in batches and generate test reports and logs of a system , thereby reducing the workload of testers, facilitating unattended card testing and effectively improving the working efficiency.
Specifically, each step will be described in detail below.
Step S1, establishing a test project;
the test engineering is displayed in a root node mode.
The test project is a management unit of the test, and the establishment of the test project is determined by the test target or the test project, of course, test projects may also establish a plurality of the test projects.
Preferably, the test projects are stored in a file form for easy reference and management.
Step S2, establishing a test strategy;
or more test strategies are defined under the test engineering, and the test strategies are represented in a child node mode.
When or more test strategies are defined under the test engineering, the defined reference may be freely defined according to the test habits, the test range, the test difficulty, etc., or may be freely defined according to the functions of the card, the requirements of the customer on the card, etc., without being limited thereto.
Preferably, in the step S2, in the step of establishing the test policy, at least any of the corresponding data directory, code directory, log directory and report directory is generated when the test policy is established, wherein,
the data directory is used for storing the data source called in the current test strategy;
the code directory is used for storing all test scripts in the current test strategy;
the log catalog is used for storing all executed logs in the current test strategy;
the report directory is used for storing the test report after the current test strategy is executed.
And storing the data information generated in the test strategy, so that the data information can be conveniently checked, modified, maintained and called at the later stage.
Step S3, adding a test script;
adding or more types of test scripts under the test strategy, wherein the test scripts are displayed in a leaf node mode.
The test strategy may contain or more test scripts, which are aggregate test methods for integrating or more types of unit tests.
Of course, the test strategy may also add or more test branches, further steps of layering, and add a or more types of test scripts under the test branches, whether to add a test branch, determined according to the number, type and test requirements of the test scripts.
The test script is the smallest unit in the whole project and refers to series of instructions of specific tests, which can be executed by an automatic test tool.
Step S4, running a test script;
the test scripts are executed in batches to generate test reports and/or logs for system .
Preferably, the step S4 executes the test scripts to execute all or part of the test scripts under all the test strategies in the test engineering in batch, and generates a test report and/or log of the system . when executing the test scripts in batch, the test engineering may be directly executed, all or part of the test scripts included in the test engineering under the test strategies may be executed in batch, or some of the test scripts may be selected to execute in batch, the output report and log may also be generated in batch, and the report and log of the system are convenient to view, thereby greatly reducing the workload.
Preferably, the step S4 executes the test scripts to execute all or part of the test strategies in the test engineering in batch, and generate a test report and/or log of the system . when the test scripts are executed in batch, one of the test strategies may also be directly executed, and all or part of the test scripts included in the test strategies may also be selected to be executed in batch, and selection is performed according to test requirements, which is more flexible and free.
Fig. 3 is a block diagram of a card testing system based on engineering management test scripts according to preferred embodiments of the present invention, as shown in fig. 3.
The invention also provides card test systems 1 based on engineering management test scripts, which include:
the engineering resource manager 11 is used for managing the test engineering, wherein the management of the test engineering comprises new construction, opening, closing, running and checking of the test engineering, and addition, deletion and modification of a test strategy;
the policy resource manager 12 is configured to manage the test policies, where the management of the test policies includes running and configuring the test policies and adding, deleting, and changing test scripts;
the script executor 13 is used for executing scripts, calling algorithms and calling interfaces;
and the interface module 14 is used for providing an interface for the script executor 13 to call.
The card testing system 1 establishes a testing project through the project resource manager 11, establishes a testing strategy under the testing project through the strategy resource manager 12, adds the testing script under the testing strategy, and completes the execution of the testing script through the script executor 13 and the interface module 14 to form a multi-stage architecture of the testing project, the testing strategy and the testing script, so that the testing script is managed in a project management manner, the management is convenient, and the workload of script maintenance is effectively reduced.
Preferably, the interface module 14 provides at least interfaces including card reader interface, command sending interface, algorithm interface, communication interface, and mp300 interface, the interface module 14 provides multiple interfaces for card testing.
Preferably, the card testing system 1 further includes a policy log browser 15, and the policy log browser 15 is configured to view a log of policies and results, so as to find out problems in time for maintenance.
Preferably, the card testing system 1 further includes a script detail log module 16, and the script detail log module 16 is configured to view a log of a single testing script, so as to facilitate modification and maintenance of the single testing script.
Preferably, the card testing system 1 further comprises a script editor 17 and a script debugger 18, wherein the script editor 17 is used for providing script editing, and the script debugger 18 is used for script syntax checking and script parsing. The script editing comprises the functions of copying, pasting, searching, replacing and the like of the script.
Preferably, the card testing system 1 further comprises a run output module 19, and the run output module 19 is used for viewing the debugging and executing output information.
The present invention also provides computer readable storage media having stored thereon computer program instructions that, when executed by or more processors, perform the operations of any of the project management test script based card testing methods described above.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, the invention can be implemented as a terminal that can include a memory and a processor coupled to the memory and configured to perform the method described above based on instructions stored in the memory.
In yet other possible embodiments, the invention may be implemented as a server that may include a memory and a processor coupled to the memory and configured to perform the method described above based on instructions stored in the memory.
In yet other possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a processor to perform the above-described methods when the program code is executed by the processor.
More specific examples (a non-exhaustive list) of the readable storage medium include an electrical connection having or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present invention, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code for carrying out operations of the present invention may be written in any combination of or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" language, or similar programming languages.
Additionally or alternatively, some steps may be omitted, steps may be combined into steps, and/or steps may be broken down into steps.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim.

Claims (12)

1, card test method based on project management test script, characterized in that, it includes the following steps:
step S1, establishing a test project;
the test engineering is displayed in a root node mode;
step S2, establishing a test strategy;
defining one or more test strategies under the test engineering, wherein the test strategies are shown in a child node mode;
step S3, adding a test script;
adding or more types of test scripts under the test strategy, wherein the test scripts are displayed in a leaf node mode;
step S4, running a test script;
the test scripts are executed in batches to generate test reports and/or logs for system .
2. The card testing method based on project management test script of claim 1, wherein the test project is stored in a file.
3. The card testing method based on project management test script of claim 1, wherein the step S2 is used to establish a test strategy, and when the test strategy is established, at least any of corresponding data catalog, code catalog, log catalog and report catalog are generated, wherein,
the data directory is used for storing the data source called in the current test strategy;
the code directory is used for storing all test scripts in the current test strategy;
the log catalog is used for storing all executed logs in the current test strategy;
the report directory is used for storing the test report after the current test strategy is executed.
4. The card testing method based on project management test scripts of claim 1, wherein the step S4 runs the test scripts to execute all or part of the test scripts under all the test strategies in the test project in batches, and generates the test report and/or log of the system .
5. The card testing method based on project management test scripts of claim 1, wherein the step S4 runs the test scripts to execute all or part of test scripts of test strategies in the test project in batch, and generates a test report and/or log of the system .
6, kind of card test system based on engineering management test script, its characterized in that, it includes:
the engineering resource manager (11) is used for managing the test engineering, wherein the management of the test engineering comprises the steps of new construction, opening, closing, running and checking of the test engineering and the addition, deletion and modification of a test strategy;
the policy resource manager (12) is used for managing the test policies, and the management of the test policies comprises the running and the configuration of the test policies and the addition, the deletion and the change of test scripts;
the script executor (13) is used for executing scripts, calling algorithms and calling interfaces;
and the interface module (14) is used for providing an interface for the script executor to call.
7. The card testing system based on engineering management test scripts according to claim 6, characterized in that the interface module (14) provides interfaces comprising at least interfaces among card reader interface, command sending interface, algorithm interface, communication interface, mp300 interface.
8. The card testing system based on engineering management test scripts according to claim 6, characterized in that the card testing system (1) further comprises a policy log browser (15), the policy log browser (15) is used to view the log of policies and results.
9. The card test system based on engineering management test scripts according to claim 6, characterized in that the card test system (1) further comprises a script detail log module (16), the script detail log module (16) being used to view logs of individual test scripts.
10. The card test system based on engineering management test scripts according to claim 6, characterized in that the card test system (1) further comprises a script editor (17) and a script debugger (18), wherein the script editor (17) is used for providing script editing, and the script debugger (18) is used for script syntax checking and script parsing.
11. The card test system based on engineering management test scripts according to claim 6, characterized in that the card test system (1) further comprises a run output module (19), the run output module (19) being used to view debugging and execution output information.
12, computer readable storage media having stored thereon computer program instructions that, when executed by or more processors, perform the operations of the project management test script based card testing method of any of claims 1 to 5 of any .
CN201910913995.3A 2019-09-25 2019-09-25 card testing method and system based on engineering management test script Pending CN110736920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910913995.3A CN110736920A (en) 2019-09-25 2019-09-25 card testing method and system based on engineering management test script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910913995.3A CN110736920A (en) 2019-09-25 2019-09-25 card testing method and system based on engineering management test script

Publications (1)

Publication Number Publication Date
CN110736920A true CN110736920A (en) 2020-01-31

Family

ID=69269619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910913995.3A Pending CN110736920A (en) 2019-09-25 2019-09-25 card testing method and system based on engineering management test script

Country Status (1)

Country Link
CN (1) CN110736920A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114092169A (en) * 2020-10-20 2022-02-25 北京沃东天骏信息技术有限公司 Ordering test method and system and equipment for executing ordering test method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073890A1 (en) * 2002-10-09 2004-04-15 Raul Johnson Method and system for test management
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN102916848A (en) * 2012-07-13 2013-02-06 北京航空航天大学 Automatic test method of Ethernet interface equipment based on script technology
CN106526350A (en) * 2015-09-15 2017-03-22 上海京微智能科技有限公司 Card test method and system
CN108182061A (en) * 2017-12-29 2018-06-19 新开普电子股份有限公司 All-purpose card card script tests system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073890A1 (en) * 2002-10-09 2004-04-15 Raul Johnson Method and system for test management
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN102916848A (en) * 2012-07-13 2013-02-06 北京航空航天大学 Automatic test method of Ethernet interface equipment based on script technology
CN106526350A (en) * 2015-09-15 2017-03-22 上海京微智能科技有限公司 Card test method and system
CN108182061A (en) * 2017-12-29 2018-06-19 新开普电子股份有限公司 All-purpose card card script tests system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114092169A (en) * 2020-10-20 2022-02-25 北京沃东天骏信息技术有限公司 Ordering test method and system and equipment for executing ordering test method

Similar Documents

Publication Publication Date Title
CN109408393B (en) Application testing method, device and equipment and computer readable storage medium
US11074154B2 (en) Identifying a source file for use in debugging compiled code
US10140355B2 (en) Compiling extract, transform, and load job test data cases
US8918762B2 (en) Generating test plans and test cases from service-oriented architecture and process models
CN110968437A (en) Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract
US11200048B2 (en) Modification of codified infrastructure for orchestration in a multi-cloud environment
US11249880B1 (en) Debugging and simulating application runtime execution
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN113448690A (en) Monitoring method and device
US11138094B2 (en) Creation of minimal working examples and environments for troubleshooting code issues
CN110736920A (en) card testing method and system based on engineering management test script
CN114201382A (en) Test case generation method and device, storage medium and electronic equipment
US11640281B2 (en) Tool for introspection in object-oriented source code
US10248554B2 (en) Embedding profile tests into profile driven feedback generated binaries
CN115544518A (en) Vulnerability scanning engine implementation method and device, vulnerability scanning method and electronic equipment
US20220122038A1 (en) Process Version Control for Business Process Management
CN114385493A (en) Performance test method and device, electronic equipment and storage medium
CN114185656A (en) Test task processing method, device, equipment and storage medium
US10303579B2 (en) Debug session analysis for related work item discovery
CN112000386A (en) Application implementation method and device
US20180032929A1 (en) Risk-adaptive agile software development
CN107563025A (en) A kind of verification platform management method and device
CN117591104B (en) Model generation method and device, electronic equipment and storage medium
US20230409385A1 (en) Debugging by predict accessing information
CN116149981A (en) Test method and device, electronic equipment and computer readable storage medium

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: 20200131