Multi-core automatic testing method based on POS terminal

Through the automated communication connection between the POS terminal and the target testing tool and the generation of test file files, multi-kernel automation testing of POS terminals is realized, solving the problems of slow test progress and low efficiency in the existing technology, and improving the test accuracy and efficiency.

CN119645843AActive Publication Date: 2025-03-18AITIWEIER ELECTRONICS TECH BEIJING
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411694358.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-18
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

The prior art POS terminal testing methods manually select test cases, resulting in slow test progress and low efficiency.

Method used

Using a multi-kernel automated test method based on POS terminals, a communication connection is established with the target testing tool through the POS terminal, a test file set is generated, including application identifiers and test scheme collections, and comprehensive performance testing is carried out through automatic polling.

Benefits of technology

This greatly reduces the error rate during the test process, improves the test accuracy, improves the testing efficiency, and reduces the operating costs of testers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645843A_ABST
    Figure CN119645843A_ABST
Patent Text Reader

Abstract

The invention provides a multi-core automatic testing method based on a POS terminal. The method comprises the following steps: establishing communication connection between the POS terminal and a target testing tool; the POS terminal sends a test request to the target test tool; the target test tool obtains the types and the number of kernels which are configured on the POS terminal and need to be tested at the time, and then a test file set is generated; and the standard test tool performs automatic polling on each test scheme according to the test file set, interacts with the POS terminal and performs performance test on the corresponding kernel of the POS terminal every time one test scheme is polled until all the test schemes are polled, and comprehensive performance test on the multiple test point positions of each kernel of the POS terminal is realized. According to the automatic testing process, the testing time can be greatly shortened, the testing process can be efficiently and stably carried out, the testing work can be continuously carried out, and the manual operation time, the operation error rate and the number of personnel can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of electronic communication and financial payment, and in particular relates to a method based on multi-core automatic testing of a POS terminal. Background Art

[0002] With the rise of electronic payment, POS terminals have gradually become an indispensable part of the business field. With the widespread application of POS terminals in social production, the stability and security of POS terminal performance have become top priorities. Therefore, it is necessary to conduct comprehensive performance testing on POS terminals. The testing method of the prior art manually selects different test cases for operation, which has the problems of slow testing progress and low efficiency. Summary of the invention

[0003] In view of the defects in the prior art, the present invention provides a method based on multi-core automatic testing of POS terminals, which can effectively solve the above problems.

[0004] In order to achieve the above object, the present invention adopts the following technical solution:

[0005] The present invention provides a method for POS terminal multi-core automated testing, comprising the following steps:

[0006] Step S1, a POS terminal and a target test tool establish a communication connection;

[0007] Step S2, the POS terminal sends a test request to the target test tool, wherein the test request includes POS terminal information; the POS terminal information includes the type and number of kernels that the POS terminal has configured and needs to be tested this time;

[0008] Step S3, the target test tool receives and parses the test request, obtains the types and numbers of kernels that have been configured in the POS terminal and need to be tested this time, and then generates a test file set; the test file set includes an application identifier for identifying each kernel of the POS terminal, a test solution set for testing each kernel, and a POS terminal public key;

[0009] Wherein: the specific method for generating the test scheme set is:

[0010] Step S3.1, the target test tool generates an application identifier for identifying each kernel of the POS terminal to be tested this time and a plurality of test cases;

[0011] Wherein: for each kernel to be tested in the POS terminal this time, the target test tool plans multiple test points for performance testing thereof, and generates a test case for each test point, so that for all the test points of each planned kernel, multiple test cases are generated, and each test case also corresponds to the application identifier of the kernel to be tested;

[0012] Step S3.2, therefore, the target testing tool establishes a test case set for all kernels to be tested in the POS terminal this time; the test case set stores application identifiers and corresponding test cases;

[0013] Step S4, the target test tool sends the application identifier for identifying each kernel of the POS terminal and the POS terminal public key to the POS terminal;

[0014] Step S5, the POS terminal saves the received POS terminal public key, and saves each application identifier in a kernel file of the corresponding kernel;

[0015] Step S6, the target testing tool automatically polls each test scheme in the test scheme set in the test file set according to the test file set generated in step S3, and whenever a test scheme is polled, it interacts with the POS terminal based on the test scheme to perform performance testing on the corresponding kernel of the POS terminal until all test schemes are polled, thereby achieving comprehensive performance testing of multiple test points of each kernel of the POS terminal.

[0016] Preferably, step S6 specifically comprises:

[0017] Step S6.1, the target test tool automatically polls each test scheme in the test scheme set, and whenever a test scheme is polled, encapsulates the test scheme and the corresponding application identifier into a virtual test card;

[0018] Step S6.2, the target testing tool sends a test instruction to the POS terminal to start a transaction; wherein the test instruction carries the transaction amount to be traded;

[0019] Step S6.3, when the POS terminal receives the transaction amount, it polls each configured kernel, performs a limit check on the transaction amount for each kernel, obtains one or more kernels that meet the limit requirement, and marks them;

[0020] Step S6.4, the POS terminal sends an initial transaction request to the virtual test card; when the virtual test card receives the initial transaction request, it returns an internally encapsulated application identifier to the POS terminal;

[0021] Step S6.5, the POS terminal compares the application identifier returned by the virtual test card with the application identifier in the kernel file of each kernel marked in step S6.3. If a match is successful, the kernel to be tested this time is found, which is called the target kernel;

[0022] Step S6.6, the POS terminal causes the target kernel to perform a transaction with the virtual test card, and through the target kernel, causes the virtual test card to perform the transaction amount in step S6.2;

[0023] Step S6.7, the target test tool checks the virtual test card to determine whether the transaction is successful, thereby obtaining the test result and saving it;

[0024] Step S6.8, the target test tool recycles the virtual test card;

[0025] This completes the execution of this test plan.

[0026] Preferably, in step S6.4, the POS terminal sends an initial transaction request to the virtual test card, and when the virtual test card receives the initial transaction request, it returns an internally encapsulated application identifier to the POS terminal and simultaneously returns a POS terminal public key to the POS terminal;

[0027] The POS terminal verifies whether the POS terminal public key is consistent with the POS terminal public key saved in step S5; if they are consistent, it indicates that the virtual test card is a legal virtual test card, and then executes step S6.5.

[0028] The method for POS terminal multi-core automated testing provided by the present invention has the following advantages:

[0029] 1. Simplify the process and ensure the accuracy of POS terminal testing.

[0030] The current POS terminal testing methods basically operate different test schemes manually, resulting in slow test progress and low efficiency. The multi-core automated testing method adopted by the present invention can integrate different test schemes and conduct comprehensive testing and verification on all test points of each core, greatly reducing the error rate in the test process and improving the test accuracy.

[0031] 2. Improve POS terminal testing efficiency and reduce operating costs for testers.

[0032] The automated testing process can significantly reduce the testing time. Among many complex testing schemes, it can carry out the testing process efficiently and stably, can perform testing work uninterruptedly, and can also effectively reduce the manual operation time, operation error rate and number of personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic flow chart of a method for multi-core automated testing of POS terminals provided by the present invention. DETAILED DESCRIPTION

[0034] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0035] The present invention provides a method for POS terminal multi-core automated testing, and a terminal multi-core configuration capable of automated testing.

[0036] When the terminal supports multiple cores, relevant test cases can be automatically matched for automated testing.

[0037] After the test software is started, the terminal can communicate with the software through serial port or wireless communication to transmit data, and provide the terminal with parameter data such as multiple application identifiers, multiple sets of terminal public keys, etc. The test system can match and generate single-core or multi-core test cases based on the configuration files sent by the terminal. The terminal can match the kernel of a specific application through the application identifier to execute subsequent transaction processes.

[0038] See also Figure 1 The present invention provides a method for POS terminal multi-core automated testing, comprising the following steps:

[0039] Step S1, a POS terminal and a target test tool establish a communication connection;

[0040] In specific implementation, the process of establishing a communication connection between the POS terminal and the target test tool can be achieved in the following ways:

[0041] S1.1, POS terminal runs the target test tool:

[0042] The POS terminal can communicate with the target test tool via a USB cable or WIFI; determine whether the communication connection is successful. If the communication connection is successful, execute S1.3; otherwise, execute S1.2;

[0043] S1.2, the POS terminal prompts that the connection fails, returns to S1.1, restarts the target test tool, and establishes a communication connection between the POS terminal and the target test tool.

[0044] S1.3, the POS terminal and the target test tool successfully establish a communication connection.

[0045] Step S2, the POS terminal sends a test request to the target test tool, wherein the test request includes POS terminal information; the POS terminal information includes the type and number of kernels that the POS terminal has configured and needs to be tested this time;

[0046] That is to say, the POS terminal can flexibly set the type and number of cores to be tested this time, which can be one core or multiple cores, and has the advantage of flexible configuration.

[0047] When the POS terminal sends a test request to the target test tool, if the test request is sent successfully, step S3 is executed, otherwise, the POS terminal prompts that the sending request fails and asks to resend the message, and the POS terminal resends the test request until the test request is sent successfully.

[0048] Step S3, the target test tool receives and parses the test request, obtains the types and numbers of kernels that have been configured in the POS terminal and need to be tested this time, and then generates a test file set; the test file set includes an application identifier for identifying each kernel of the POS terminal, a test solution set for testing each kernel, and a POS terminal public key;

[0049] Wherein: the specific method for generating the test scheme set is:

[0050] Step S3.1, the target test tool generates an application identifier for identifying each kernel of the POS terminal to be tested this time and a plurality of test cases;

[0051] Wherein: for each kernel to be tested in the POS terminal this time, the target test tool plans multiple test points for performance testing thereof, and generates one or more test cases for each test point, so that multiple test cases are generated for all the test points of each planned kernel, and each test case corresponds to the application identifier of the kernel to be tested at the same time;

[0052] Step S3.2, therefore, the target testing tool establishes a test case set for all kernels to be tested in the POS terminal this time; the test case set stores application identifiers and corresponding test cases;

[0053] For example, if performance tests need to be performed on three cores this time, three application identifiers are stored in the test case set, and each application identifier corresponds to multiple test cases.

[0054] Step S4, the target test tool sends the application identifier for identifying each kernel of the POS terminal and the POS terminal public key to the POS terminal;

[0055] Step S5, the POS terminal saves the received POS terminal public key, and saves each application identifier in a kernel file of the corresponding kernel;

[0056] Step S6, the target testing tool automatically polls each test scheme in the test scheme set in the test file set according to the test file set generated in step S3, and whenever a test scheme is polled, it interacts with the POS terminal based on the test scheme to perform performance testing on the corresponding kernel of the POS terminal until all test schemes are polled, thereby achieving comprehensive performance testing of multiple test points of each kernel of the POS terminal.

[0057] Step S6 is specifically as follows:

[0058] Step S6.1, the target test tool automatically polls each test scheme in the test scheme set, and whenever a test scheme is polled, encapsulates the test scheme and the corresponding application identifier into a virtual test card;

[0059] Step S6.2, the target testing tool sends a test instruction to the POS terminal to start a transaction; wherein the test instruction carries the transaction amount to be traded;

[0060] For example, the test plan is: to test a transaction test of a kernel paying a transaction amount of 10 yuan, then the target test tool sends a test instruction of paying a transaction amount of 10 yuan to the POS terminal.

[0061] Step S6.3, when the POS terminal receives the transaction amount, it polls each configured kernel, performs a limit check on the transaction amount for each kernel, obtains one or more kernels that meet the limit requirement, and marks them;

[0062] Step S6.4, the POS terminal sends an initial transaction request to the virtual test card; when the virtual test card receives the initial transaction request, it returns an internally encapsulated application identifier to the POS terminal;

[0063] In this step, the POS terminal sends an initial transaction request to the virtual test card. When the virtual test card receives the initial transaction request, it returns an internally encapsulated application identifier to the POS terminal and returns a POS terminal public key to the POS terminal.

[0064] The POS terminal verifies whether the POS terminal public key is consistent with the POS terminal public key saved in step S5; if they are consistent, it indicates that the virtual test card is a legal virtual test card, and then executes step S6.5.

[0065] Step S6.5, the POS terminal compares the application identifier returned by the virtual test card with the application identifier in the kernel file of each kernel marked in step S6.3. If a match is successful, the kernel to be tested this time is found, which is called the target kernel;

[0066] Step S6.6, the POS terminal causes the target kernel to perform a transaction with the virtual test card, and through the target kernel, causes the virtual test card to perform the transaction amount in step S6.2;

[0067] Step S6.7, the target test tool checks the virtual test card to determine whether the transaction is successful, thereby obtaining the test result and saving it;

[0068] Step S6.8, the target test tool recycles the virtual test card;

[0069] This completes the execution of this test plan.

[0070] When the POS terminal communicates with the target test tool, the communication data format may be: data transmission format start bit + length + transmission data + check bit + end bit.

[0071] Compared with the prior art, the method for POS terminal multi-core automated testing of the present invention has the following advantages:

[0072] 1. Simplify the process and ensure the accuracy of POS terminal testing.

[0073] The current POS terminal testing methods basically operate different test schemes manually, resulting in slow test progress and low efficiency. The multi-core automated testing method adopted by the present invention can integrate different test schemes and conduct comprehensive testing and verification on all test points of each core, greatly reducing the error rate in the test process and improving the test accuracy.

[0074] 2. Improve POS terminal testing efficiency and reduce operating costs for testers.

[0075] The automated testing process can significantly reduce the testing time. Among many complex testing schemes, it can carry out the testing process efficiently and stably, can perform testing work uninterruptedly, and can also effectively reduce the manual operation time, operation error rate and number of personnel.

[0076] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the scope of protection of the present invention.

Claims

1. A method for automated testing of multi-core POS terminals, characterized in that: The following steps are involved: Step S1, a POS terminal and a target test tool establish a communication connection; Step S2, the POS terminal sends a test request to the target test tool, wherein the test request includes POS terminal information; The POS terminal information includes the type and number of kernels that have been configured in the POS terminal and need to be tested this time; Step S3, the target test tool receives and parses the test request, obtains the types and numbers of kernels that have been configured in the POS terminal and need to be tested this time, and then generates a test file set; the test file set includes an application identifier for identifying each kernel of the POS terminal, a test solution set for testing each kernel, and a POS terminal public key; Wherein: the specific method for generating the test scheme set is: Step S3.1, the target test tool generates an application identifier for identifying each kernel of the POS terminal to be tested this time and a plurality of test cases; Wherein: for each kernel to be tested in the POS terminal this time, the target test tool plans multiple test points for performance testing thereof, and generates a test case for each test point, so that for all the test points of each planned kernel, multiple test cases are generated, and each test case also corresponds to the application identifier of the kernel to be tested; Step S3.2, therefore, the target testing tool establishes a test case set for all kernels to be tested in the POS terminal this time; the test case set stores application identifiers and corresponding test cases; Step S4, the target test tool sends the application identifier for identifying each kernel of the POS terminal and the POS terminal public key to the POS terminal; Step S5, the POS terminal saves the received POS terminal public key, and saves each application identifier in a kernel file of the corresponding kernel; Step S6, the target testing tool automatically polls each test scheme in the test scheme set in the test file set according to the test file set generated in step S3, and whenever a test scheme is polled, it interacts with the POS terminal based on the test scheme to perform performance testing on the corresponding kernel of the POS terminal until all test schemes are polled, thereby achieving comprehensive performance testing of multiple test points of each kernel of the POS terminal.

2. A method for POS terminal multi-core automated testing according to claim 1, characterized in that: Step S6 is specifically as follows: Step S6.1, the target test tool automatically polls each test scheme in the test scheme set, and whenever a test scheme is polled, encapsulates the test scheme and the corresponding application identifier into a virtual test card; Step S6.2, the target testing tool sends a test instruction to the POS terminal to start a transaction; wherein the test instruction carries the transaction amount to be traded; Step S6.3, when the POS terminal receives the transaction amount, it polls each configured kernel, performs a limit check on the transaction amount for each kernel, obtains one or more kernels that meet the limit requirement, and marks them; Step S6.4, the POS terminal sends an initial transaction request to the virtual test card; when the virtual test card receives the initial transaction request, it returns an internally encapsulated application identifier to the POS terminal; Step S6.5, the POS terminal compares the application identifier returned by the virtual test card with the application identifier in the kernel file of each kernel marked in step S6.

3. If a match is successful, the kernel to be tested this time is found, which is called the target kernel; Step S6.6, the POS terminal causes the target kernel to perform a transaction with the virtual test card, and through the target kernel, causes the virtual test card to perform the transaction amount in step S6.2; Step S6.7, the target test tool checks the virtual test card to determine whether the transaction is successful, thereby obtaining the test result and saving it; Step S6.8, the target test tool recycles the virtual test card; This completes the execution of this test plan.

3. A method based on multi-core automated testing of POS terminals according to claim 2, characterized in that: In step S6.4, the POS terminal sends an initial transaction request to the virtual test card. When the virtual test card receives the initial transaction request, it returns an internally encapsulated application identifier to the POS terminal and simultaneously returns a POS terminal public key to the POS terminal. The POS terminal verifies whether the POS terminal public key is consistent with the POS terminal public key saved in step S5; If they are consistent, it indicates that the virtual test card is a legal virtual test card, and then step S6.5 is executed.

Citation Information

Patent Citations

  • Terminal authentication report auditing method and device

    CN114048123A

  • Offline dynamic personalization IC card testing method for POS (Point-Of-Sale) machine

    CN116149989A

  • Cognitive multi-card handling system for automatic testing of transaction apparatus and testing method thereof

    US10810473B1

  • Automatic blocking of unknown signals and grading of test point sites using untestable fault estimates to improve IC testability

    US20240126968A1

  • POS terminal test method and system running on PC terminal

    WO2018076905A1