Business system testing method and device based on block chain plug-in wallet

By writing and executing automated test scripts in the blockchain plug-in wallet business system, the problem that existing testing methods cannot meet the requirements for data security and performance stability is solved, and more efficient test coverage and security are achieved.

CN118550830APending Publication Date: 2024-08-27BUBI (BEIJING) NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410736856.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing automated testing methods cannot fully cover the special needs of the blockchain plug-in wallet business system for data security, functional correctness and performance stability. In particular, there is a lack of specific solutions for private key security and transaction signature verification, resulting in test safety. Lower performance and efficiency.

Method used

By installing the plug-in wallet in the blockchain plug-in wallet business system, writing and executing automated test scripts, testing the business functions of the business system, blockchain plug-in wallet and plug-in wallet business system respectively, and integrating test reports to ensure test coverage and compatibility security, performance, private key security and transaction signature verification.

Benefits of technology

It improves the testing security and efficiency of the blockchain plug-in wallet business system, ensures data security and functional correctness, and meets the requirements for performance stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550830A
    Figure CN118550830A
Patent Text Reader

Abstract

The invention provides a business system test method and device based on a block chain plug-in wallet, and the method comprises the steps: installing a block chain plug-in wallet in a business system, and obtaining a plug-in wallet business system; compiling corresponding automatic test scripts for business functions of the business system, the block chain plug-in wallet and the plug-in wallet business system; based on the business system, the block chain plug-in wallet and the plug-in wallet business system, respectively executing the respective corresponding automatic test scripts, and obtaining corresponding test reports; and integrating the test report, and generating a test report of the business system based on the block chain plug-in wallet. And the safety and the test efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a business system testing method and device based on a blockchain plug-in wallet. Background Art

[0002] The blockchain plug-in wallet business system is a system that provides management and transaction functions through browser plug-ins. Blockchain is a decentralized distributed ledger technology that ensures the transparency, security and immutability of transactions. The wallet system needs to interact with the blockchain network, including sending and receiving transactions, querying transaction status, and obtaining account balances. The system needs to ensure the security of user data, the correctness of functions, and the stability of performance. Therefore, traditional software testing methods cannot meet the needs of this system.

[0003] Currently, automated solutions can be used for testing, including: using automated testing tools to write test scripts, automatically generating test reports and result analysis by executing automated test scripts, integrating automated test scripts into the continuous integration / continuous delivery (CI / CD) process to achieve automated test execution and result feedback, and regularly maintaining and updating automated test scripts according to system changes and requirements to ensure that they always remain effective and stable.

[0004] However, this method cannot fully cover the special requirements of the blockchain plug-in wallet business system for data security, functional correctness, and performance stability, and lacks specific solutions for private key security and transaction signature verification, as well as performance testing methods for blockchain characteristics. Therefore, the security and efficiency of the test are low. Summary of the invention

[0005] In view of this, the present invention provides a business system testing method and device based on a blockchain plug-in wallet.

[0006] Specifically, the present invention is achieved through the following technical solutions:

[0007] According to a first aspect of the present invention, a business system testing method based on a blockchain plug-in wallet is provided, the method comprising:

[0008] Install the blockchain plug-in wallet in the business system to obtain the plug-in wallet business system;

[0009] Write corresponding automated test scripts for the business functions of the business system, blockchain plug-in wallet, and plug-in wallet business system respectively;

[0010] Based on the business system, blockchain plug-in wallet and plug-in wallet business system, respectively execute the corresponding automated test scripts to obtain corresponding test reports;

[0011] Integrate the test reports to generate a test report for the business system based on the blockchain plug-in wallet.

[0012] Preferably, a corresponding automated test script is written for the business system, including:

[0013] Extracting basic interface data according to the system interface document of the business system;

[0014] According to each interface included in the business system, edit the interface parameters of the interface, the interface parameters include: calling method, request mode, request type, request parameters, return parameters;

[0015] For each interface, the interface basic data and interface parameters corresponding to the interface are encapsulated into a class, and the encapsulated classes are integrated and converted into JSON format to obtain the automated test script.

[0016] Preferably, a corresponding automated test script is written for the blockchain plug-in wallet, including:

[0017] Obtain the wallet function of the blockchain plug-in wallet;

[0018] Based on the compatibility, performance, blockchain private key security, transaction signature verification and wallet functions of the blockchain plug-in wallet, edit and generate corresponding automated test scripts.

[0019] Preferably, executing a corresponding automated test script based on the blockchain plug-in wallet includes:

[0020] On a pre-set Java-based test platform, open a browser and load the blockchain plug-in wallet;

[0021] On the test platform, respectively run the automated test scripts corresponding to the compatibility, performance and wallet functions of the blockchain plug-in wallet to obtain the test results;

[0022] The pre-set blockchain third-party library is loaded in the project object model file of the test platform, the method of calling the blockchain third-party library is used by the browser, and the automated test scripts corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet are run to obtain the corresponding test results.

[0023] Preferably, the method of using the browser to call the blockchain third-party library to run the automated test scripts corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet to obtain the corresponding test results includes:

[0024] The method of calling the blockchain third-party library runs the automated test script corresponding to the blockchain private key security of the blockchain plug-in wallet based on the preset software development kit, obtains the wallet address generated by the blockchain plug-in wallet, and if the generated wallet address is the same as the address generated by the blockchain plug-in wallet using the preset blockchain private key, determines that the blockchain private key is secure;

[0025] The method of calling the blockchain third-party library runs the automated test script corresponding to the transaction signature verification of the blockchain plug-in wallet based on a preset software development kit, generates a blockchain plug-in wallet transaction, uses the browser to interact with the blockchain plug-in wallet, obtains the transaction signature of the blockchain plug-in wallet transaction, and if the obtained transaction signature is the same as the preset signature of the blockchain plug-in wallet, determines that the transaction signature verification is passed.

[0026] Preferably, executing a corresponding automated test script based on the plug-in wallet business system includes:

[0027] Log in to the blockchain plug-in wallet in the plug-in wallet business system, select the target account, and generate a payment request;

[0028] The plug-in wallet business system is run to execute a corresponding automated test script to send the payment request to the business system, and based on the interaction with the business system, a test result of processing the payment request is obtained.

[0029] Preferably, during the execution of the automated test script, log4j log component is used to record log information, and the test report is obtained based on the log information.

[0030] The business system testing method based on the blockchain plug-in wallet of this embodiment uses an automated test script to test the business system running the blockchain plug-in wallet respectively for the business functions of the business system, the blockchain plug-in wallet, and the plug-in wallet business system. A test report is generated for each part of the test and then integrated, which has better security and higher testing efficiency.

[0031] According to a second aspect of the present invention, a business system testing device based on a blockchain plug-in wallet is provided, and the business system testing device includes:

[0032] The plug-in installation module is used to install the blockchain plug-in wallet in the business system to obtain the plug-in wallet business system;

[0033] A test script module is used to write corresponding automated test scripts for the business functions of the business system, blockchain plug-in wallet, and plug-in wallet business system respectively;

[0034] A test execution module is used to execute the corresponding automated test scripts based on the business system, blockchain plug-in wallet and plug-in wallet business system, and obtain corresponding test reports;

[0035] The report output module is used to integrate the test report and generate a test report of the business system based on the blockchain plug-in wallet.

[0036] According to a third aspect of the present invention, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the business system testing method based on the blockchain plug-in wallet in any possible implementation of the first aspect are implemented.

[0037] According to a fourth aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the business system testing method based on the blockchain plug-in wallet in any possible implementation of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0040] Figure 1 A flowchart of a business system testing method based on a blockchain plug-in wallet provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of a business system testing device based on a blockchain plug-in wallet provided by an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] See also Figure 1 The embodiment of the present invention provides a business system testing method based on a blockchain plug-in wallet. The method can be applied to the business system testing of a blockchain plug-in wallet. The method may include the following steps:

[0045] S101. Install the blockchain plug-in wallet in the business system to obtain the plug-in wallet business system;

[0046] In this embodiment, as an optional embodiment, a blockchain plug-in wallet is selected according to needs, installed in the business system, and relevant parameters and permissions are configured to ensure that the blockchain plug-in wallet can operate normally in the business system.

[0047] S102. Write corresponding automated test scripts for the business functions of the business system, blockchain plug-in wallet, and plug-in wallet business system respectively;

[0048] In this embodiment, as an optional embodiment, a corresponding automated test script is written for the business system, including:

[0049] Extracting basic interface data according to the system interface document of the business system;

[0050] According to each interface included in the business system, edit the interface parameters of the interface, the interface parameters include: calling method, request mode, request type, request parameters, return parameters;

[0051] For each interface, the interface basic data and interface parameters corresponding to the interface are encapsulated into a class, and the encapsulated classes are integrated and converted into JSON format to obtain the automated test script.

[0052] In this embodiment, as another optional embodiment, a corresponding automated test script is written for the blockchain plug-in wallet, including:

[0053] Obtain the wallet function of the blockchain plug-in wallet;

[0054] Based on the compatibility, performance, blockchain private key security, transaction signature verification and wallet functions of the blockchain plug-in wallet, edit and generate corresponding automated test scripts.

[0055] In this embodiment, as an optional embodiment, a corresponding automated test script is written for the business functions of the plug-in wallet business system, including:

[0056] Obtain the business functions of the plug-in wallet business system;

[0057] Generate corresponding automated test scripts for the business functions.

[0058] S103. Based on the business system, the blockchain plug-in wallet and the plug-in wallet business system, respectively execute the corresponding automated test scripts to obtain corresponding test reports;

[0059] In this embodiment, as an optional embodiment, executing a corresponding automated test script based on the blockchain plug-in wallet includes:

[0060] On a pre-set Java-based test platform, open a browser and load the blockchain plug-in wallet;

[0061] On the test platform, respectively run the automated test scripts corresponding to the compatibility, performance and wallet functions of the blockchain plug-in wallet to obtain the test results;

[0062] The pre-set blockchain third-party library is loaded in the project object model file of the test platform, the method of calling the blockchain third-party library is used by the browser, and the automated test scripts corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet are run to obtain the corresponding test results.

[0063] In this embodiment, as an optional embodiment, the method of using the browser to call the blockchain third-party library, running the automated test script corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet, and obtaining the corresponding test results includes:

[0064] The method of calling the blockchain third-party library runs the automated test script corresponding to the blockchain private key security of the blockchain plug-in wallet based on the preset software development kit, obtains the wallet address generated by the blockchain plug-in wallet, and if the generated wallet address is the same as the address generated by the blockchain plug-in wallet using the preset blockchain private key, determines that the blockchain private key is secure;

[0065] The method of calling the blockchain third-party library runs the automated test script corresponding to the transaction signature verification of the blockchain plug-in wallet based on a preset software development kit, generates a blockchain plug-in wallet transaction, uses the browser to interact with the blockchain plug-in wallet, obtains the transaction signature of the blockchain plug-in wallet transaction, and if the obtained transaction signature is the same as the preset signature of the blockchain plug-in wallet, determines that the transaction signature verification is passed.

[0066] In this embodiment, as an optional embodiment, executing a corresponding automated test script based on the plug-in wallet business system includes:

[0067] Log in to the blockchain plug-in wallet in the plug-in wallet business system, select the target account, and generate a payment request;

[0068] The plug-in wallet business system is run to execute a corresponding automated test script to send the payment request to the business system, and based on the interaction with the business system, a test result of processing the payment request is obtained.

[0069] In this embodiment, as an optional embodiment, executing the corresponding automated test script based on the business system includes: executing full-process interface automated testing.

[0070] In this embodiment, as an optional embodiment, in order to ensure the stability of the back-end interface, first write an automated test script for the business system interface, and you can use the JAVA+TestNG framework to write the script; organize the interface test script according to the system interface document, and detach the blockchain plug-in wallet to directly test the system interface to obtain the test results.

[0071] In this embodiment, as an optional embodiment, the blockchain plug-in wallet has independent functions and requirements, and requires wallet functions, compatibility, performance, blockchain private key security, and transaction signature verification. As another optional embodiment, Java+Selenium is used to perform tests on the blockchain plug-in wallet, connect to the server or use an open SDK to verify the correctness of the private key and transaction signature; use a pre-set third-party library to run the blockchain private key security and transaction signature verification of the blockchain plug-in wallet. According to the actual application scenario, a performance test scenario that can simulate large-scale transaction loads is designed.

[0072] In this embodiment, as an optional embodiment, a corresponding test report is obtained for each part of the automated test. In this embodiment, as an optional embodiment, during the execution of the automated test script, log information is recorded using the log4j log component, and the test report is obtained based on the log information.

[0073] S104: Integrate the test reports to generate a test report for the business system based on the blockchain plug-in wallet.

[0074] In this embodiment, as an optional embodiment, the acquired test reports of the business system, blockchain plug-in wallet and plug-in wallet business system are analyzed and summarized to generate a comprehensive test report of the business system based on the blockchain plug-in wallet.

[0075] In this embodiment, by installing the blockchain plug-in wallet in the business system, the plug-in wallet business system is obtained; corresponding automated test scripts are written for the business functions of the business system, blockchain plug-in wallet and plug-in wallet business system respectively; based on the business system, blockchain plug-in wallet and plug-in wallet business system, the corresponding automated test scripts are respectively executed to obtain corresponding test reports; the test reports are integrated to generate a test report of the business system based on the blockchain plug-in wallet. In this way, by using the automated test script, the business functions of the business system, blockchain plug-in wallet and plug-in wallet business system are tested respectively, and by writing the automated test script, the compatibility, performance, blockchain private key security, transaction signature verification and wallet function performance test of the blockchain plug-in wallet can be realized, which has better testing efficiency and security.

[0076] Based on the same inventive concept, Figure 2 As shown, the embodiment of the present invention also provides a business system testing device based on a blockchain plug-in wallet, the device comprising:

[0077] The plug-in installation module 201 is used to install the blockchain plug-in wallet in the business system to obtain the plug-in wallet business system;

[0078] In this embodiment, as an optional embodiment, a blockchain plug-in wallet is selected according to needs, installed in the business system, and relevant parameters and permissions are configured to ensure that the blockchain plug-in wallet can operate normally in the business system.

[0079] The test script module 202 is used to write corresponding automated test scripts for the business functions of the business system, blockchain plug-in wallet and plug-in wallet business system respectively;

[0080] In this embodiment, as an optional embodiment, a corresponding automated test script is written for the business system, and the basic interface data is extracted according to the system interface document of the business system; the interface parameters are edited for each interface included in the business system; the basic interface data and interface parameters corresponding to each interface are encapsulated into a class, and the encapsulated classes are integrated and converted into JSON format to obtain the automated test script.

[0081] In this embodiment, as another optional embodiment, a corresponding automated test script is written for the blockchain plug-in wallet, including: according to the wallet function of the blockchain plug-in wallet, based on the compatibility, performance, blockchain private key security, transaction signature verification and wallet function of the blockchain plug-in wallet, a corresponding automated test script is written.

[0082] In this embodiment, as an optional embodiment, writing a corresponding automated test script for the business functions of the plug-in wallet business system includes: writing and generating a corresponding automated test script according to the business functions of the plug-in wallet business system.

[0083] The test execution module 203 is used to execute the corresponding automated test scripts based on the business system, blockchain plug-in wallet and plug-in wallet business system, and obtain the corresponding test reports;

[0084] In this embodiment, as an optional embodiment, executing a corresponding automated test script based on the blockchain plug-in wallet includes: loading the blockchain plug-in wallet on a pre-set Java-based test platform; running the automated test scripts corresponding to the compatibility, performance and wallet functions of the blockchain plug-in wallet respectively, and obtaining test results; loading a pre-set blockchain third-party library in the project object model file of the test platform, using the browser to call the method of the blockchain third-party library, running the automated test scripts corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet, and obtaining corresponding test results.

[0085] In this embodiment, as an optional embodiment, executing a corresponding automated test script based on the plug-in wallet business system includes: logging into the blockchain plug-in wallet in the plug-in wallet business system, selecting a target account, and generating a payment request; running the plug-in wallet business system to execute the corresponding automated test script to send the payment request to the business system, and obtaining a test result of processing the payment request based on the interaction with the business system.

[0086] In this embodiment, as an optional embodiment, executing the corresponding automated test script based on the business system includes: executing full-process interface automated testing.

[0087] In this embodiment, as an optional embodiment, during the execution of the automated test script, the log4j log component is used to record log information, and the corresponding test report is obtained based on the log information.

[0088] The report output module 204 is used to integrate the test report and generate a test report of the business system based on the blockchain plug-in wallet.

[0089] In this embodiment, as an optional embodiment, the acquired test reports of the business system, blockchain plug-in wallet and plug-in wallet business system are analyzed and summarized to generate a comprehensive test report of the business system based on the blockchain plug-in wallet.

[0090] Based on the same inventive concept, an embodiment of the present invention further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the business system testing method based on the blockchain plug-in wallet in any possible implementation method described above are implemented.

[0091] Alternatively, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0092] Based on the same inventive concept, see Figure 3 , an embodiment of the present invention further provides an electronic device, including a memory 101 (such as a non-volatile memory), a processor 102, and a computer program stored in the memory 101 and executable on the processor 102, wherein the processor 102 implements the business system test data or operation based on the blockchain plug-in wallet in any possible implementation manner described above when executing the program. The electronic device may be a PC, a server, a terminal, or other device.

[0093] like Figure 3 As shown, the electronic device may also generally include: a memory 103, a network interface 104, and an internal bus 105. In addition to these components, other hardware may also be included, which will not be described in detail.

[0094] It should be pointed out that the above-mentioned business system testing device based on the blockchain plug-in wallet can be implemented through software. As a device in a logical sense, it is formed by the processor 102 of the electronic device in which it is located reading the computer program instructions stored in the non-volatile memory into the memory 103 for execution.

[0095] The embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules in computer program instructions encoded on a tangible non-temporary program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

[0096] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform the corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.

[0097] Computers suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.

[0098] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0099] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.

[0100] Similarly, while operations are depicted in a particular order in the drawings, this should not be understood as requiring that the operations be performed in the particular order shown or performed sequentially, or that all illustrated operations be performed, to achieve desired results. In certain circumstances, multitasking and parallel processing may be advantageous.

[0101] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the particular order shown or sequential order to achieve the desired results.

[0102] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0103] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A business system testing method based on blockchain plug-in wallet, characterized in that: include: Install the blockchain plug-in wallet in the business system to obtain the plug-in wallet business system; Write corresponding automated test scripts for the business functions of the business system, blockchain plug-in wallet, and plug-in wallet business system respectively; Based on the business system, blockchain plug-in wallet and plug-in wallet business system, respectively execute the corresponding automated test scripts to obtain corresponding test reports; Integrate the test reports to generate a test report for the business system based on the blockchain plug-in wallet.

2. The method according to claim 1, characterized in that Write corresponding automated test scripts for the business system, including: Extracting basic interface data according to the system interface document of the business system; According to each interface included in the business system, edit the interface parameters of the interface, the interface parameters include: calling method, request mode, request type, request parameters, return parameters; For each interface, the interface basic data and interface parameters corresponding to the interface are encapsulated into a class, and the encapsulated classes are integrated and converted into JSON format to obtain the automated test script.

3. The method according to claim 1, characterized in that: Write corresponding automated test scripts for the blockchain plug-in wallet, including: Obtain the wallet function of the blockchain plug-in wallet; Based on the compatibility, performance, blockchain private key security, transaction signature verification and wallet functions of the blockchain plug-in wallet, edit and generate corresponding automated test scripts.

4. The method according to claim 3, characterized in that Execute the corresponding automated test script based on the blockchain plug-in wallet, including: On a pre-set Java-based test platform, open a browser and load the blockchain plug-in wallet; On the test platform, respectively run the automated test scripts corresponding to the compatibility, performance and wallet functions of the blockchain plug-in wallet to obtain the test results; The pre-set blockchain third-party library is loaded in the project object model file of the test platform, the method of calling the blockchain third-party library is used by the browser, and the automated test scripts corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet are run to obtain the corresponding test results.

5. The method according to claim 4, characterized in that The method of using the browser to call the blockchain third-party library, running the automated test scripts corresponding to the blockchain private key security and transaction signature verification of the blockchain plug-in wallet, and obtaining the corresponding test results, includes: The method of calling the blockchain third-party library runs the automated test script corresponding to the blockchain private key security of the blockchain plug-in wallet based on the preset software development kit, obtains the wallet address generated by the blockchain plug-in wallet, and if the generated wallet address is the same as the address generated by the blockchain plug-in wallet using the preset blockchain private key, determines that the blockchain private key is secure; The method of calling the blockchain third-party library runs the automated test script corresponding to the transaction signature verification of the blockchain plug-in wallet based on a preset software development kit, generates a blockchain plug-in wallet transaction, uses the browser to interact with the blockchain plug-in wallet, obtains the transaction signature of the blockchain plug-in wallet transaction, and if the obtained transaction signature is the same as the preset signature of the blockchain plug-in wallet, determines that the transaction signature verification is passed.

6. The method according to claim 1, characterized in that Execute the corresponding automated test script based on the plug-in wallet business system, including: Log in to the blockchain plug-in wallet in the plug-in wallet business system, select the target account, and generate a payment request; The plug-in wallet business system is run to execute a corresponding automated test script to send the payment request to the business system, and based on the interaction with the business system, a test result of processing the payment request is obtained.

7. The method according to any one of claims 1 to 6, characterized in that: During the execution of the automated test script, the log4j log component is used to record log information, and the test report is obtained based on the log information.

8. A business system testing device based on a blockchain plug-in wallet, characterized in that: The business system testing device comprises: The plug-in installation module is used to install the blockchain plug-in wallet in the business system to obtain the plug-in wallet business system; A test script module is used to write corresponding automated test scripts for the business functions of the business system, blockchain plug-in wallet, and plug-in wallet business system respectively; A test execution module is used to execute the corresponding automated test scripts based on the business system, blockchain plug-in wallet and plug-in wallet business system, and obtain corresponding test reports; The report output module is used to integrate the test report and generate a test report of the business system based on the blockchain plug-in wallet.

9. A storage medium, characterized in that: The storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the plug-in wallet system testing method as described in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the plug-in wallet system testing method described in any one of claims 1 to 7 are implemented.