CN110209587B - Method and device for testing service process of security chip - Google Patents

Method and device for testing service process of security chip Download PDF

Info

Publication number
CN110209587B
CN110209587B CN201910480417.5A CN201910480417A CN110209587B CN 110209587 B CN110209587 B CN 110209587B CN 201910480417 A CN201910480417 A CN 201910480417A CN 110209587 B CN110209587 B CN 110209587B
Authority
CN
China
Prior art keywords
test
instruction
testing
case set
service
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.)
Active
Application number
CN201910480417.5A
Other languages
Chinese (zh)
Other versions
CN110209587A (en
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.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Beijing Smartchip Microelectronics Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201910480417.5A priority Critical patent/CN110209587B/en
Publication of CN110209587A publication Critical patent/CN110209587A/en
Application granted granted Critical
Publication of CN110209587B publication Critical patent/CN110209587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method and a device for testing a safety chip service process, wherein the testing method comprises the following steps: importing a business process case set; generating a first test instruction according to the code function corresponding to the function name in the business process case set and the input parameter; sending the first test instruction to a safety chip in an electric energy meter, and carrying out smoking test on the safety chip according to the first test instruction; generating a second test instruction according to the code function corresponding to the function name in the service flow case set and the input parameter; and carrying out automatic interactive test on the local service and the remote service of the security chip according to the second test instruction. The method and the device for testing the service flow of the security chip provided by the embodiment can realize the interactive flow test of remote and local services according to the service requirements, and realize the code sharing between projects.

Description

Method and device for testing service process of security chip
Technical Field
The present invention relates to a service test of a security chip, and more particularly, to a method and an apparatus for testing a service flow of a security chip.
Background
The intelligent electric energy meter is used for safety certification of information interaction by embedding the safety chip. When the master station carries out parameter setting, pre-stored electricity charge, information rewriting and remote control command issuing operations on the electric energy meter, the safety chip is used for carrying out safety authentication and data encryption and decryption processing so as to ensure the safety and the integrity of data transmission.
The existing safety chip business process testing method is divided into remote testing and local testing according to a testing scene. A more common implementation manner is that software is adopted to simulate a remote master station, and a security chip is accessed in a card reader manner to realize remote testing of services; and then, simulating the electric energy meter, and accessing a security chip, an IC card, a radio frequency card and other solid media in a card reader mode to realize local test of services. In the traditional method, two pieces of software are needed to be implemented to respectively simulate the master station and the local electric energy meter, the two pieces of software are respectively and independently implemented, the business logic is written in a code, and one item has one code.
Based on this, the inventor of the present application finds that, in an actual business process, local and remote businesses are often performed in a cross manner, and in a conventional method, the two businesses are two pieces of software, one project has one code, so that an interactive process test of the remote and local businesses cannot be performed, the codes between the projects cannot be shared, and the business process test cannot be effectively inherited.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art that is already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method and a device for testing a safety chip service process, which can carry out interactive process testing on remote and local services.
In order to achieve the above object, the present invention provides a method for testing a service flow of a security chip, wherein the method comprises: importing a business process case set, wherein a plurality of function names and input parameters corresponding to the function names are stored in the business process case set, and the business process case set comprises a remote business case set and a local business case set; generating a first test instruction according to the code function corresponding to the function name in the business process case set and the input parameter; sending the first test instruction to a safety chip in an electric energy meter, and carrying out smoking test on the safety chip according to the first test instruction; generating a second test instruction according to the code function corresponding to the function name in the service flow case set and the input parameter; and carrying out automatic interactive test on the local service and the remote service of the security chip according to the second test instruction.
In a preferred embodiment, the performing a smoking test on the secure chip according to the first test instruction includes: and performing one or more of parameter setting, pre-stored electricity charge, information rewriting and remote control command issuing on the security chip according to the first test instruction.
In a preferred embodiment, the performing a smoking test on the secure chip according to the first test instruction includes: and performing local interactive smoking test on the security chip according to the first test instruction and one or more of the user card, the parameter card and the copy-back card.
In a preferred embodiment, the automated interactive testing of the local service and the remote service comprises: one or more of local account opening, remote account opening, local electricity purchasing, remote electricity purchasing and remote fee refunding.
In a preferred embodiment, the testing method is implemented based on a security chip service flow testing apparatus, where the security chip service flow testing apparatus includes: the system comprises a simulation master station and a simulation ammeter; the sending the first test instruction to a security chip in the electric energy meter includes: the simulation master station sends a first test instruction to a simulation electric meter, and the simulation electric meter forwards the first test instruction to the security chip according to a 645 protocol.
In a preferred embodiment, the method further comprises: the security chip carries out security authentication and data integrity verification according to the first test instruction; and sending the verification result to a simulation electric meter, and forwarding the verification result to the simulation master station by the simulation electric meter.
In order to achieve the above object, the present invention further provides a testing apparatus for a security chip service process, where the testing apparatus includes: the system comprises an importing module, a processing module and a processing module, wherein the importing module is used for importing a business process case set, the business process case set stores a plurality of function names and input parameters corresponding to the function names, and the business process case set comprises a remote business case set and a local business case set; the first instruction generation module is connected with the import module and used for generating a first test instruction according to the code function corresponding to the function name in the business process case set and the input parameter; the first testing module is connected with the instruction generating module and used for sending the first testing instruction to a safety chip in the electric energy meter and carrying out smoking test on the safety chip according to the first testing instruction; the second instruction generating module is connected with the importing module and used for generating a second test instruction according to the code function corresponding to the function name in the service flow case set and the input parameter; and the second testing module is connected with the second instruction generating module and is used for carrying out automatic interactive testing on the local service and the remote service on the safety chip according to the second testing instruction.
In a preferred embodiment, the apparatus for testing a service flow of a security chip includes: the system comprises a simulation master station and a simulation ammeter; the simulation master station is used for sending a first test instruction to the simulation ammeter; and the simulation electric meter is connected with the simulation master station and used for forwarding the first test instruction to the security chip according to a 645 protocol.
Compared with the prior art, the method for testing the service flow of the security chip provided by the embodiment can realize the interactive flow test of remote and local services according to the service requirements, and realize the code sharing between projects. Furthermore, the smoke test can be completed only by designing the use case of the business process use case set, the development of codes is not involved, and compared with the traditional safety chip business test framework, the smoke test can be rapidly carried out according to the design test use case of the business process, and the test period is shortened; meanwhile, test scene coverage of cross execution of remote local business processes is realized, and test coverage is more comprehensive; on the basis of instruction stream testing, the business function is modeled, automatic test script development can be conveniently carried out, various test cases can be conveniently designed, and the advantages in regression testing in the later stage of product testing are more obvious.
Drawings
Fig. 1 is a schematic diagram of a test structure of a security chip service flow test apparatus according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of a method for testing a service flow of a security chip according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a security chip service flow testing apparatus according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the term "comprise" or variations such as "comprises" or "comprising", etc., will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
Example 1
As shown in fig. 1-2, fig. 1 is a schematic diagram of a test structure of a security chip service flow test apparatus according to a preferred embodiment of the present invention, and fig. 2 is a flow chart of a security chip service flow test method according to a preferred embodiment of the present invention, where the test method includes: steps S1-S5.
S1, a safety chip service process testing device imports a service process case set, wherein a plurality of function names and input parameters corresponding to the function names are stored in the service process case set, and the service process case set comprises a remote service case set and a local service case set.
Specifically, the service flow case set may be an Excel table. The instructions of the business process are written into the Excel, the cell content of the Excel is used for appointing and calling a code function, namely, the instruction flow is simulated through the statements of the Excel, the mapping relation between the codes and the Excel statements is established, and the Excel statements are modified to call different code functions and execute different instruction flows, so that the purpose of testing different cases is achieved. And meanwhile, the command is subjected to function packaging, a common instruction is fixedly written in the function, but the flexibly modified parameter allows a user to modify in Excel, so that the calling is convenient, and the smoking test is realized quickly.
And S2, the safety chip service process testing device generates a first testing instruction according to the code function corresponding to the function name in the service process case set and the input parameter.
Specifically, the method can be realized by the following steps: according to the business process needing to be tested, calling a corresponding code function through the function name in the business process case set, inputting parameters as the input parameters of the code function, and taking the output result of the code function as a first test instruction.
And S3, the safety chip service process testing device sends the first testing instruction to a safety chip in the electric energy meter, and carries out smoking test on the safety chip according to the first testing instruction.
Wherein, smoking test may include remote service test, and performing smoking test on the security chip according to the first test instruction may include: and performing one or more of parameter setting, pre-stored electricity charge, information rewriting and remote control command issuing on the security chip according to the first test instruction.
The smoking test may further include a local service test, and performing the smoking test on the security chip according to the first test instruction includes: and performing local interactive smoking test on the security chip according to the first test instruction and one or more of the user card, the parameter card and the copy-back card.
The description is made with a use case of remote identity authentication. As shown in table 1, the class name and the function name used in the business process use case set and the parameters of the function input are specified, and a plurality of parameters may be input, and 2 statements are given in the example. When the first sentence is executed, a function IdAuth is called, the input parameters 1 and 2 are transferred to a code function, and an identity authentication command is sent to the remote identity connection cipher machine, wherein the identity authentication command comprises the IP and the port number of the cipher machine which are required to be used for authentication. When the second statement is executed, the function ESAM _ IdAuth is called, an instruction is sent to the chip to obtain the temporary key, a plurality of instructions need to be sent, the instructions are all written in the ESAM _ IdAuth function, only one parameter input is provided in the service flow case set, and the input parameter is the table number or other numerical values of the electric energy meter, so that the encapsulation performance of the module is guaranteed, and the use flexibility and the use easiness are also reflected.
Class name Function name Function Ginseng (A. Ex. 1) Ginseng (root of Largeleaf ginseng) 2
Automation IdAuth Identity authentication 192.168.19.99 10
Automation ESAM_IdAuth Card reader command delivery 0000000000000003
Table 1: business process use case set
And S4, the safety chip service process testing device generates a second testing instruction according to the code function corresponding to the function name in the service process case set and the input parameter.
Specifically, an automated interaction test is performed after the smoking test passes. The automated interactive testing may be implemented as follows: and calling a corresponding code function according to the service flow needing to be tested and the function name in the service flow case set, wherein the input parameter is used as the input parameter of the code function, and the output result of the code function is used as a second test instruction. Furthermore, a group of service flows to be tested can be set, and corresponding code functions are called according to a preset sequence to generate a second test instruction.
And S5, carrying out automatic interactive test on the local service and the remote service of the safety chip according to the second test instruction.
Specifically, the automated interactive testing of the local service and the remote service includes: one or more of local account opening, remote account opening, local electricity purchasing, remote electricity purchasing and remote fee refunding.
More specifically, the automated interactive test may include a plurality of processes such as preparation before account opening, remote account opening interaction, local account opening interaction, remote account opening local electricity purchasing, local account opening remote electricity purchasing, local recharging remote refund and the like.
The preparation before account opening can comprise remote identity authentication, demand clearing, local identity authentication, parameter prefabrication card table card interaction, secret key updating and the like. The remote account opening interaction can comprise remote identity authentication, remote account opening, remote recharging parameter updating, data copying and the like. The local account opening interaction can comprise local identity authentication, user card account opening recharging, account opening card meter card interaction, remote identity authentication, data copy back and the like. The remote account opening and local electricity purchasing can comprise the remote account opening interaction, local identity authentication, local electricity purchasing card recharging and the like. The local account opening and remote electricity purchasing can comprise the above local account opening interaction, remote identity authentication, remote recharging, parameter updating, data copying and the like. The local recharging and remote refunding can comprise the remote account opening and local electricity purchasing, remote identity authentication, remote refunding, local identity authentication, electricity card purchasing and meter card interaction and the like.
The device writes the remote service and the local service flow into functional modules which can be independently operated, such as 'remote service flow-parameter updating', 'remote service flow-key updating', 'local service flow-user card account opening' and the like, so that the device can effectively cover various service flows of remote and local service interaction. The device combines two pieces of software in the traditional method together, can flexibly carry out interactive configuration of different service flows, and meets the requirement of interactive testing of remote local service flows. Meanwhile, the upper table test is integrated, and end-to-end test coverage is really realized. Because the test cases are designed in the form of a business process case set, and are not packaged in each item in the form of codes in the traditional method, the inheritance and the continuity between the items are stronger.
The use case import mode based on the service flow use case set provides a flexible and combinable service modularization mode. For example, the use cases related to the update method share three sub-use cases, such as "parameter reading", "card reader instruction transmission", and "update verification". In an actual business process, the remote function module and the local function module are called interactively, and according to the testing method provided by the embodiment, the whole automatic testing of the security chip is very flexible, and the multiplexing of modules of all levels can be realized.
After the case design and development of the smoking test and the automatic test are completed, the coverage of more service scenes can be performed only by modifying the test case, and the regression test can be conveniently performed on the test framework without any modification. The automatic testing device has more obvious advantages along with the more times of later iteration of product development. Meanwhile, because the later stage does not relate to the development and debugging of the testing device, the tester can be more concentrated on the design of the test cases, more cases are designed according to the change of the requirement on the basis of the existing basic function module and the business module, the regression test is conveniently and quickly carried out, and the product quality is more favorably ensured.
Therefore, the method for testing the service flow of the security chip provided by the embodiment can realize the interactive flow test of remote and local services and realize the code sharing between projects. Furthermore, the smoke test can be completed only by designing the use case of the business process use case set, the development of codes is not involved, and compared with the traditional safety chip business test framework, the smoke test can be rapidly carried out according to the design test use case of the business process, and the test period is shortened; meanwhile, test scene coverage of cross execution of remote local business processes is realized, and test coverage is more comprehensive; on the basis of instruction stream testing, the business function is modeled, automatic test script development can be conveniently carried out, various test cases can be conveniently designed, and the advantages in regression testing in the later stage of product testing are more obvious.
In one implementation manner, the secure chip business process testing apparatus may include: simulation main website and simulation ammeter.
In this embodiment, the sending, by the security chip service process testing apparatus in step S3, the first test instruction to the security chip in the electric energy meter may include: step S31, the simulation master station sends a first test instruction to a simulation electric meter, and the simulation electric meter forwards the first test instruction to a security chip according to a 645 protocol.
Correspondingly, the test method in this embodiment further includes: and S61, the security chip performs security authentication and data integrity verification according to the first test instruction.
And S62, sending the verification result to a simulation electric meter, and forwarding the verification result to the simulation master station by the simulation electric meter.
Therefore, by the method for testing the service flow of the security chip, remote and local service tests based on the electric energy meter can be selected according to actual test requirements. When the simulation master station and the safety chip carry out service interaction, data are sent to the safety chip by the electric meter through a 645 protocol of the electric energy meter, and after safety certification and data integrity verification are carried out on the safety chip, the data are forwarded to the simulation master station by the electric meter. In the local process, the safety chip directly interacts with the electric energy meter, so that complete service process interaction is realized, and the occurrence of subsequent upper table test fault conditions is effectively prevented.
In the test apparatus of the present embodiment, the service test is modularized based on the instruction stream. The modularization is that functional points such as parameter updating, remote control, data zero clearing and the like are modularized, and for different test scenes, the state of the secret key can be changed only by inputting different parameters, so that forward or reverse module calling is realized. For parameter updating of different files, parameter updating operations of different files can be completed only by inputting different file names and offset addresses during case design, and the parameter updating operations are realized by calling a first test instruction.
Example 2
Fig. 2 is a schematic structural diagram of a security chip business process testing apparatus according to a preferred embodiment of the present invention.
The test device includes: the device comprises an importing module 1, a first instruction generating module 2, a first testing module 3, a second instruction generating module 4 and a second testing module 5.
The import module 1 is configured to import a business process case set, where the business process case set stores a plurality of function names and input parameters corresponding to the function names, and the business process case set includes a remote business case set and a local business case set.
The first instruction generation module 2 is connected to the import module 1, and is configured to generate a first test instruction according to the code function corresponding to the function name in the business process case set and the input parameter.
The first testing module 3 is connected with the instruction generating module 2 and used for sending the first testing instruction to a safety chip in the electric energy meter and carrying out smoking test on the safety chip according to the first testing instruction.
And the second instruction generating module 4 is connected with the importing module 1 and is used for generating a second test instruction according to the code function corresponding to the function name in the service flow case set and the input parameter.
And the second testing module 5 is connected with the second instruction generating module 4, and performs automatic interactive testing on the local service and the remote service on the security chip according to the second testing instruction.
Therefore, the method for testing the service flow of the security chip provided by the embodiment can realize the interactive flow test of remote and local services and realize the code sharing between projects. Furthermore, the smoking test can be completely carried out only by designing a use case for Excel, code development is not involved, compared with the traditional safety chip service test framework, the test case can be rapidly designed according to the service flow, the smoking test can be developed, and the test period is shortened; meanwhile, test scene coverage of cross execution of remote local business processes is realized, and test coverage is more comprehensive; on the basis of instruction stream testing, the business function is modeled, automatic test script development can be conveniently carried out, various test cases can be conveniently designed, and the advantages in regression testing in the later stage of product testing are more obvious.
In one implementation manner, the apparatus for testing a service flow of a security chip includes: simulation main website and simulation ammeter. The simulation master station is used for sending a first test instruction to the simulation ammeter; the simulation electric meter is connected with the simulation master station and used for forwarding the first test instruction to the security chip according to a 645 protocol.
It should be noted that, when the remote service test is performed, the first instruction generating module 2 and the first testing module 3 are disposed in the simulation master station, and when the local service test is performed, the first instruction generating module 2 and the first testing module 3 are disposed in the electric meter. The second instruction generation module 4 and the second test module 5 are arranged in the simulation master station.
Therefore, by the safety chip service flow testing device provided by the embodiment, remote and local service tests based on the electric energy meter can be selected according to actual testing requirements. When the simulation master station and the safety chip carry out service interaction, data are sent to the safety chip by the electric meter through a 645 protocol of the electric energy meter, and after safety certification and data integrity verification are carried out on the safety chip, the data are forwarded to the simulation master station by the electric meter. In the local process, the safety chip directly interacts with the electric energy meter, so that complete business process interaction is realized, and the occurrence of subsequent upper table test fault conditions is effectively prevented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (8)

1. A test method for a safety chip service process is characterized in that the test method comprises the following steps:
importing a business process case set, wherein a plurality of function names and input parameters corresponding to the function names are stored in the business process case set, and the business process case set comprises a remote business case set and a local business case set;
generating a first test instruction according to the code function corresponding to the function name in the service flow case set and the input parameter;
sending the first test instruction to a safety chip in an electric energy meter, and carrying out smoking test on the safety chip according to the first test instruction;
generating a second test instruction according to the code function corresponding to the function name in the business process case set and the input parameter; and
and carrying out automatic interactive test on the local service and the remote service of the security chip according to the second test instruction.
2. The testing method of claim 1, wherein the performing a smoke test on the secure chip according to the first test instruction comprises:
and performing one or more of parameter setting, pre-stored electricity charge, information rewriting and remote control command issuing on the security chip according to the first test instruction.
3. The testing method of claim 1, wherein the performing a smoke test on the secure chip according to the first test instruction comprises:
and performing local interactive smoking test on the security chip according to the first test instruction and one or more of the user card, the parameter card and the copy-back card.
4. The testing method of claim 1, wherein automated interactive testing of the local service and the remote service comprises:
one or more of local account opening, remote account opening, local electricity purchasing, remote electricity purchasing and remote fee refunding.
5. The testing method of claim 1, wherein the testing method is implemented based on a security chip service flow testing device, and the security chip service flow testing device comprises: the simulation master station and the simulation ammeter;
the sending the first test instruction to a security chip in the electric energy meter includes:
the simulation master station sends a first test instruction to a simulation electric meter, and the simulation electric meter forwards the first test instruction to the security chip according to a 645 protocol.
6. The test method of claim 5, further comprising:
the security chip carries out security authentication and data integrity verification according to the first test instruction;
and sending the verification result to a simulation electric meter, and forwarding the verification result to the simulation master station by the simulation electric meter.
7. A test device for a security chip business process is characterized in that the test device comprises:
the system comprises an importing module, a processing module and a processing module, wherein the importing module is used for importing a business process case set, the business process case set stores a plurality of function names and input parameters corresponding to the function names, and the business process case set comprises a remote business case set and a local business case set;
the first instruction generation module is connected with the import module and used for generating a first test instruction according to the code function corresponding to the function name in the business process case set and the input parameter;
the first testing module is connected with the instruction generating module and used for sending the first testing instruction to a safety chip in the electric energy meter and carrying out smoking test on the safety chip according to the first testing instruction;
the second instruction generating module is connected with the importing module and used for generating a second test instruction according to the code function corresponding to the function name in the service flow case set and the input parameter; and
and the second testing module is connected with the second instruction generating module and is used for carrying out automatic interactive testing on the local service and the remote service of the safety chip according to the second testing instruction.
8. The test apparatus of claim 7, wherein the test apparatus of the security chip business process comprises: the simulation master station and the simulation ammeter;
the simulation master station is used for sending a first test instruction to the simulation ammeter;
the simulation electric meter is connected with the simulation master station and used for forwarding the first test instruction to the security chip according to a 645 protocol.
CN201910480417.5A 2019-06-04 2019-06-04 Method and device for testing service process of security chip Active CN110209587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910480417.5A CN110209587B (en) 2019-06-04 2019-06-04 Method and device for testing service process of security chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910480417.5A CN110209587B (en) 2019-06-04 2019-06-04 Method and device for testing service process of security chip

Publications (2)

Publication Number Publication Date
CN110209587A CN110209587A (en) 2019-09-06
CN110209587B true CN110209587B (en) 2022-11-29

Family

ID=67790612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910480417.5A Active CN110209587B (en) 2019-06-04 2019-06-04 Method and device for testing service process of security chip

Country Status (1)

Country Link
CN (1) CN110209587B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984543B (en) * 2020-09-07 2023-09-22 中国银行股份有限公司 Instruction testing method, device and system
CN114880242B (en) * 2022-06-08 2023-01-13 北京百度网讯科技有限公司 Test case extraction method, device, equipment and medium
CN115202952B (en) * 2022-09-15 2022-11-29 北京智芯微电子科技有限公司 Method and system for testing cost control function of electric energy meter, test host and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331971A (en) * 2011-09-01 2012-01-25 北京用友政务软件有限公司 QTP (Quick Test Profession)-based automatic testing method and system
CN104484269A (en) * 2014-11-27 2015-04-01 北京广利核系统工程有限公司 Method for automatically generating testing script
WO2016090908A1 (en) * 2014-12-12 2016-06-16 国家电网公司 Memory simulation testing board system and testing method for embedded application of intelligent electric meter
CN205692280U (en) * 2016-06-13 2016-11-16 中国南方电网有限责任公司电网技术研究中心 Take the detection device of control interactive terminal expense control function
CN108536584A (en) * 2018-03-12 2018-09-14 广东睿江云计算股份有限公司 A kind of automated testing method based on Sikuli

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331971A (en) * 2011-09-01 2012-01-25 北京用友政务软件有限公司 QTP (Quick Test Profession)-based automatic testing method and system
CN104484269A (en) * 2014-11-27 2015-04-01 北京广利核系统工程有限公司 Method for automatically generating testing script
WO2016090908A1 (en) * 2014-12-12 2016-06-16 国家电网公司 Memory simulation testing board system and testing method for embedded application of intelligent electric meter
CN205692280U (en) * 2016-06-13 2016-11-16 中国南方电网有限责任公司电网技术研究中心 Take the detection device of control interactive terminal expense control function
CN108536584A (en) * 2018-03-12 2018-09-14 广东睿江云计算股份有限公司 A kind of automated testing method based on Sikuli

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
测试用例管理工具(testlink&excel);CSDN用户:晴空06;《CSDN,网址:https://blog.csdn.net/sunnygirltest/article/details/82993607》;20181010;全文 *

Also Published As

Publication number Publication date
CN110209587A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110209587B (en) Method and device for testing service process of security chip
CN106940428B (en) Chip verification method, device and system
CN103678745B (en) A kind of cross-platform multi-level integrated design system for FPGA
CN107784152A (en) Include the simulation of multiple simulators
CN104461810A (en) Method for improving functional verification efficiency of embedded processor
CN103150441B (en) A kind of verification platform of software and hardware cooperating simulation and construction method thereof
CN111859834B (en) UVM-based verification platform development method, system, terminal and storage medium
CN105302685A (en) Collaborative simulation testing method and device for software and hardware
CN104657245A (en) Automatic generating device for module-level UVM (unified voltage modulation) verification platform based on AMBA bus
CN101482817A (en) Large-particle Java component assembly method based on black box
CN100483429C (en) Verification operation supporting system and method of the same
Yao et al. Formal modeling and systematic black-box testing of sdn data plane
US8265918B1 (en) Simulation and emulation of a circuit design
Ayello et al. Interoperability based on IEC 61850 standard: Systematic literature review, certification method proposal, and case study
CN113343629A (en) Integrated circuit verification method, code generation method, system, device, and medium
Mohanty et al. Test bench automation to overcome verification challenge of SOC Interconnect
US11960385B2 (en) Automatic generation of integrated test procedures using system test procedures
Andrén et al. Towards automated engineering and validation of cyber-physical energy systems
Pooja et al. Verification of interconnection IP for automobile applications using system verilog and UVM
Devarajegowda et al. A mutually-exclusive deployment of formal and simulation techniques using proof-core analysis
CN107526585B (en) Scala-based FPGA development platform and debugging and testing method thereof
Resch et al. Engineering and validation support framework for power system automation and control applications
CN111506981A (en) Method, device and equipment for realizing logic simulation of nuclear power plant field control object
CN110659215A (en) Open type industrial APP rapid development and test verification method
Ubar et al. Modeling microprocessor faults on high-level decision diagrams

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
GR01 Patent grant
GR01 Patent grant