Terminal reader regression testing system, regression testing method and interactive method

The terminal reader regression testing system generates and executes test cases offline, which solves the problems of long time consumption and low efficiency of existing regression testing, achieves fast and accurate testing, and can still process data normally when the network is abnormal. Improved testing efficiency and usability.

CN113742239BActive Publication Date: 2024-09-17KOUBEI SHANGHAI INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111074324.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2024-09-17
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

Existing regression testing is time-consuming and inefficient. In particular, UI-based automated regression testing requires frequent maintenance and adjustments, and the process takes a long time. It relies on online data collection, and cannot be tested normally when the network is abnormal.

Method used

Provide a terminal reader regression testing system that generates test cases by obtaining data offline, and performs regression testing offline. It is separated from the UI level and uses the master-slave terminal reader architecture to still complete data processing and processing when the network is abnormal. Synchronize to improve testing efficiency and accuracy.

Benefits of technology

It realizes the rapid generation and completion of regression test cases offline, reduces testing costs and time, improves the efficiency and accuracy of regression testing, avoids the cost of writing and maintaining scripts, and maintains the availability of data processing when network abnormalities occur. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742239B
    Figure CN113742239B
Patent Text Reader

Abstract

The present application discloses a terminal reader regression test system, a regression test method and an interactive method. The regression test system comprises: a use case management platform, a first terminal reader and a second terminal reader; the use case management platform obtains data in a first local server deployed by the first terminal reader; sends a test case generated according to the data to a second terminal reader capable of deploying a second local server in an offline state for regression testing; obtains a test result of the regression test, and compares the test result with a request result in the data to determine whether the second terminal reader is compatible with the first terminal reader; the first terminal reader provides data in a locally deployed first local server in an offline state; the second terminal reader performs a regression test according to the received test case, and sends the test result to the use case management platform; thereby improving the accuracy and efficiency of the regression test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a terminal reader regression test system, a terminal reader regression test method and device, and an interactive method and device for terminal reader regression test. At the same time, the present application also provides a computer storage medium and an electronic device. Background Art

[0002] With the continuous development of computer technology and Internet technology, iterative updates of application services carried on terminal devices have become a necessary procedure for the continuous improvement of application software. In order to ensure that the updated new version of the application service is compatible with the previous old version, regression testing is usually required for the new version before the application service goes online.

[0003] Existing regression testing is mainly based on UI (user interface) testing, that is, using UI to identify elements to achieve automated regression testing. However, UI automated regression testing has high requirements for the front-end interface. Once the front-end interface is adjusted or the resolution is modified, the test cases need to be maintained again. In addition, the UI test case regression process takes a long time, which is equivalent to manual execution. Summary of the invention

[0004] The present application provides a terminal reader regression testing system to solve the problem of time-consuming and low efficiency of regression testing in the prior art.

[0005] The present application provides a terminal reader regression testing system, comprising: a use case management platform, a first terminal reader and a second terminal reader;

[0006] The use case management platform obtains data in the first local server deployed by the first terminal reader; sends the test case generated according to the data to the second terminal reader capable of deploying the second local server in an offline state for regression testing; obtains the test result of the regression test, and compares the test result with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader;

[0007] The first terminal reader provides the data in the first local server deployed locally in the offline state;

[0008] The second terminal reader performs regression testing according to the received test case and sends the test result to the use case management platform.

[0009] In some embodiments, the use case management platform sends a data collection request; in response to a data collection instruction triggered by the data collection request, the data is acquired, wherein the data includes request parameters and request results, and a database.

[0010] In some embodiments, the use case management platform performs denoising processing on the request parameters and request results in the data, and generates the test case according to the processed data.

[0011] In some embodiments, the first reader collects and sends data to the first local server deployed locally in response to a data collection request, wherein data snapshot processing is performed on the collected database.

[0012] In some embodiments, the second terminal reader replaces the database in the second local server with the database in the first local server; and performs the regression test based on the data in the replaced database according to the test case.

[0013] In some embodiments, a data storage platform is further included for storing the data sent by the first reader. The use case management platform obtains the data through the data storage platform and stores the test case in the data storage platform.

[0014] In some embodiments, it also includes: a device management end, in response to a data collection request sent by the use case management platform, triggering a data collection instruction; the first reader collects the data of the first local server according to the data collection instruction.

[0015] In some embodiments, a master terminal reader and a slave terminal reader are pre-specified among at least two terminal readers of the resource service provider, wherein the active terminal reader is the first terminal reader.

[0016] The present application also provides a regression testing method for a terminal reader, comprising:

[0017] Acquire data in a first local server deployed locally on a first terminal reader in an offline state;

[0018] Sending the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing;

[0019] By comparing the obtained test result of the regression test with the request result in the data, it is determined whether the second terminal reader is compatible with the first terminal reader.

[0020] In some embodiments, the acquiring of data in a second local server deployed locally on the first terminal reader in an offline state includes:

[0021] Send data collection request;

[0022] In response to a data collection instruction triggered by the data collection request, the data is acquired.

[0023] In some embodiments, sending the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing includes:

[0024] De-noising the request parameters and request results in the data;

[0025] Generate the test case according to the denoised data;

[0026] The test case is sent to the second terminal reader for regression testing.

[0027] In some embodiments, comparing the obtained test result of the regression test with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader includes:

[0028] If the comparison result of the test result is the same as the request result, the test case is stored as a recommended case.

[0029] The present application also provides a regression testing device for a terminal reader, comprising:

[0030] An acquisition unit, used for acquiring data in a first local server deployed locally on a first terminal reader in an offline state;

[0031] A sending unit, configured to send the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing;

[0032] A determination unit is used to compare the obtained test result of the regression test with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader.

[0033] The present application also provides an interactive method for regression testing of a terminal reader, comprising:

[0034] A first terminal reader deploying a first local server in an offline state sends data collected from the first local server;

[0035] Sending a test case generated according to the received data to a second terminal reader capable of deploying a second local server; and determining whether the second terminal reader is compatible with the first terminal reader according to a comparison between the received test result of the second terminal reader and the request result in the data;

[0036] The second terminal reader performs regression testing according to the test case and sends the test result to the case management platform.

[0037] In some embodiments, it also includes:

[0038] Acquire at least two terminal readers of the resource service provider;

[0039] The first terminal reader capable of deploying the first local server among the at least two terminal readers is determined as a master terminal reader, and the other terminal reader is determined as a slave terminal reader.

[0040] In some embodiments, it also includes:

[0041] In the offline state, the slave terminal reader sends an access request to the first local server of the master terminal reader;

[0042] In an online state, the first local server uploads the data of the access request to a cloud server.

[0043] In some embodiments, it also includes:

[0044] In the online state, the slave terminal reader sends an access request to the first local server;

[0045] The first local server uploads the data of the access request to the cloud server.

[0046] In some embodiments, it also includes:

[0047] When the first local server is abnormal, a new master terminal reader is determined from among the slave terminal readers.

[0048] In some embodiments, it also includes:

[0049] Modify the configuration parameters of the first local server for the master terminal reader;

[0050] The modified configuration parameters are sent to the slave terminal reader connected to the master terminal reader to perform the configuration parameter synchronization operation.

[0051] The present application also provides an interactive device for terminal reader regression testing, comprising:

[0052] A sending unit, configured to send data collected from the first local server to a first terminal reader deploying the first local server in an offline state;

[0053] a case management unit, configured to send the test case generated according to the received data to a second terminal reader capable of deploying a second local server; and determine whether the second terminal reader is compatible with the first terminal reader according to a comparison between the received test result of the second terminal reader and the request result in the data;

[0054] The testing unit is used to perform regression testing on the second terminal reader according to the test case and send the test result to the case management unit.

[0055] The present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0056] When the program is read and executed by the processor, the program executes the steps of the terminal reader testing method or the steps of the terminal reader regression testing interaction method.

[0057] The present application also provides an electronic device, comprising:

[0058] processor;

[0059] The memory is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, it executes the steps of the above-mentioned terminal reader testing method, or executes the steps of the above-mentioned terminal reader regression testing interactive method.

[0060] Compared with the prior art, this application has the following advantages:

[0061] The terminal reader regression test system embodiment provided by the present application can complete the regression test without relying on data collection in online scenarios, and generate test cases and perform regression tests through data collected in offline states. It is also independent of the regression test at the UI level, thereby avoiding the cost of writing and maintaining scripts, and the regression test process is all for the interface dimension, and data generated by different interfaces can be received to improve the accuracy and efficiency of regression testing.

[0062] The embodiment of the regression test method of the terminal reader provided in the present application obtains the collected data of the first local server (deployed locally on the first terminal reader) in an offline state, and sends the test cases generated according to the collected data to the second reader for regression testing. This embodiment can quickly complete the generation and precipitation of test cases in an offline state, reduce the cost of regression testing and improve the efficiency of regression testing. Since the first terminal reader of the first local server can be deployed as the main terminal reader in an offline state, and the others are slave terminal readers, even in the case of network disconnection, the data generated on the terminal reader can still be obtained to generate test cases, and in the application service scenario, the terminal reader data processing process will not be affected by the network disconnection, thereby improving availability. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a structural schematic diagram of an embodiment of a terminal reader regression test system provided by the present application;

[0064] Figure 2 It is a structural relationship diagram of a master / slave terminal reader in an embodiment of a terminal reader regression test system provided by the present application;

[0065] Figure 3 It is a flow chart of an embodiment of a regression testing method for a terminal reader provided by the present application;

[0066] Figure 4 It is a structural schematic diagram of an embodiment of a regression test device for a terminal reader provided by the present application;

[0067] Figure 5 It is a flow chart of an embodiment of an interactive method for regression testing of a terminal reader provided by the present application;

[0068] Figure 6 It is a structural schematic diagram of an embodiment of an interactive device for regression testing of a terminal reader provided by the present application;

[0069] Figure 7 It is a structural schematic diagram of an electronic device embodiment provided by the present application. DETAILED DESCRIPTION

[0070] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0071] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", are not limitations on quantity or sequence, but are used to distinguish the same type of information from each other.

[0072] With the continuous development of the Internet and computer application technology, commodity transactions through terminal devices have become a popular way of purchasing and merchant management, such as online purchases, offline collection and payment, or offline purchases and payments through terminal devices. In other words, for merchants, terminal devices can be used to achieve services such as transaction management involving commodities.

[0073] Since the merchant side environment is unstable, it is necessary to provide a system that can meet the needs of regression testing the application services of the merchant terminal equipment in both online and offline states. The terminal reader regression testing system provided in the present application can complete the regression testing of the terminal reader in an offline deployment mode under network abnormalities, whether in the data peak processing stage or the data processing trough stage, and can enable the terminal reader to complete the corresponding data request and data processing, and further realize the synchronization of the terminal reading device configuration data of the same merchant in the offline state. The terminal reader regression testing system provided by the present application is described in detail below.

[0074] Please refer to Figure 1 As shown, Figure 1 It is a structural diagram of an embodiment of a terminal reader regression test system provided by the present application; in a regression test environment, the system embodiment at least includes: a use case management platform 101, a first terminal reader 102 and a second terminal reader 103.

[0075] In this embodiment, the use case management platform 101 can be used to generate test cases and manage the test cases. The test cases are used to perform regression testing on the terminal reader to be tested. The so-called regression test can be understood as when the code of the application service of the terminal reader is modified, it is necessary to retest to confirm whether the code modification has new errors or causes errors in other codes; the test case (Test Case) can be understood as a description of the test task for the application service software product (usually the application service software product will exist on a fixed electronic device, in this embodiment, it is a terminal reader), which may include test objectives, test environments, input parameters, test steps, expected results, test scripts, etc., and finally form a test document. In this embodiment, the use case management platform 101 is specifically used to obtain data in the first local server deployed by the first terminal reader 102; send the test case generated according to the data to the second terminal reader 103 that can deploy the second local server in an offline state for regression testing; obtain the test result of the regression test, and compare the test result with the request result in the data to determine whether the second terminal reader 103 is compatible with the first terminal reader 102. The use case management platform 101 generates a test case based on the data in the first local server deployed by the first terminal reader 102. The acquired data may include: acquiring the request parameters and request result related data of the first local server, and the specific acquisition method may be that the use case management platform 101 sends a data acquisition request; responds to the data acquisition instruction triggered by the data acquisition request, and acquires the data, wherein the data includes the request parameters and request result, and the database; wherein the database in different application scenarios may be multiple different databases, for example: for the commodity service application scenario, the database may include the database involved in the data processing process such as the basic database, the order database and the marketing activity database, so it may include one or more of the above databases, which may be determined according to the specific use requirements. In this embodiment, the use case management platform 101 may send the data acquisition request to the device management terminal 104, and the device management terminal 104 triggers the data acquisition instruction according to the data acquisition request, and the first terminal reader 102 acquires the data of the first local server according to the data acquisition instruction, and sends the data so that the use case management platform 101 acquires the data.

[0076] Therefore, during the implementation of this embodiment, the system may further include a device management terminal 104, which is used to receive a data collection request and trigger a data collection instruction. It is understandable that the use case management platform 101 may directly obtain the collected data from the first local server, or obtain the collected data through an instruction triggered by the device management terminal 104, and the specific method of obtaining the data is not limited.

[0077] The use case management platform 101 can also determine whether the test case is a recommended use case based on the comparison result between the test result and the request result. For example, when the comparison result between the test result and the request result is the same, it means that the first terminal reader 102 and the second terminal reader 103 are compatible with each other. The test case can be determined as a recommended use case, and the recommended use case can also be stored. The storage location can be the use case management platform 101 or the object storage platform 105.

[0078] The above is a description of how the use case management platform 101 acquires data. The following describes how the use case management platform 101 generates test cases.

[0079] The use case management platform 101 performs data denoising on the acquired request parameter data and / or request result data, and generates test cases based on the denoised data, for example: generating test cases based on the denoised request parameter data and the original request result data (not denoised), or generating test cases based on the denoised request parameter data and the denoised request result data, or generating test cases based on the original request parameter data (not denoised) and the denoised request result data; in this embodiment, test cases are mainly generated based on the data after both the request parameter data and the request result data are denoised. The use case management platform 101 can store the test cases, which can be stored in the use case management platform 101 or in the object storage platform 105. The specific storage location and method are not limited. In this embodiment, the object storage platform 105 can be a cloud storage platform.

[0080] It is understandable that the test cases can be stored after the test cases are generated and before the regression test is performed, or after the regression test, and there is no limit on the specific storage time. It is also possible not to store the data, that is, data can be obtained and test cases can be generated during each regression test, and released after the test is completed, which can reduce the storage space occupied.

[0081] The above is a description of the use case management platform 101 . The following is a description of the first terminal reader 102 .

[0082] In this embodiment, the first terminal reader 102 is used to provide the data in the first local server deployed locally in the offline state. The so-called terminal reader can be understood as a single or multifunctional device with payment data transactions, data reading and data management, such as a POS machine. In this embodiment, due to the influence of the environment where the terminal reader is located, for example, in the case of network abnormality, the way of data transmission and processing online is hindered and restricted. For example, the terminal reader needs to upload relevant data such as data request to the cloud server. At this time, the data upload fails because of the network abnormality. Therefore, based on the offline scenario, this embodiment specifies the master terminal reader as the first terminal reader 102, and deploys a local server locally on the first terminal reader 102. Other terminal readers (slave terminal readers) can send data requests to the master terminal reader. When the network returns to normal, the master terminal reader can send data to the cloud server to continue processing according to the online data processing process (for example, uploading data to the cloud server), and of course, it can still be executed according to the offline data processing process. In this embodiment, the offline state is mainly described. However, in order to keep the local server and cloud service data synchronized, it is necessary to upload the data in the local server to the cloud server online.

[0083] like Figure 2 As shown, in this embodiment, the first terminal reader 102 can be a terminal device in use, and the terminal device in use can be a terminal device used by a resource service provider, or a terminal device used by a demander with a use demand. In this example, the resource service provider is mainly used as an example. In the service scenario of the same resource service provider, at least two terminal readers of the resource service provider are designated, one of which is a master terminal reader and the other is a slave terminal reader, wherein the master terminal reader is the first terminal reader 102, that is, a terminal reader capable of locally deploying a first local server is designated as the master terminal reader (i.e., the first terminal reader 102) among at least two terminal readers; when an abnormality occurs to the master terminal reader, one of the slave terminal readers can be re-designated as the master terminal reader.

[0084] It should be noted that, in this embodiment, the resource service provider may be a merchant store, such as a supermarket, a restaurant, or a service store, or may be a user using at least two POS machines.

[0085] In order to ensure data consistency when performing regression testing on the second terminal reader 103, the database in the data can be processed by data snapshot and the database snapshot can be sent. In this embodiment, the request parameter and request result data and the database snapshot can be sent in the form of data packaging so that the use case management platform 101 can obtain it. The database snapshot can include one or more of a basic library snapshot, an order library snapshot, and a marketing activity library snapshot.

[0086] The second terminal reader 103 can be a terminal reader to be subjected to regression testing, i.e., a device in the development and testing phase. The second terminal reader 103 can also be a main terminal reader, i.e., a terminal reader capable of deploying a local server. In this embodiment, the second terminal reader 103 is used to perform regression testing according to the received test case and send the test results to the use case management platform 101. When performing regression testing, the second terminal reader 103 replaces the database in the second local server with the database in the first local server; and performs the regression test based on the data in the replaced database according to the test case. This ensures the consistency of data in the database during the test process, thereby improving the accuracy of the test.

[0087] It is understandable that the second terminal reader 103 is a terminal reader to be tested and has not been officially used yet. Therefore, the database in the second terminal reader 103 can use a database snapshot in a simulated database (mock) manner.

[0088] It should be noted that, in this embodiment, the data may be data collected from the first local server, and the data source of the first local server may be data generated by the master terminal reader (first terminal reader 102) itself and / or data generated by the slave terminal reader, or data obtained from other interfaces that have data interaction with the master terminal reader or the slave terminal reader. Therefore, the data obtained by the use case management platform 101 is not limited to the data provided by the first terminal reader 102, but may also be data provided by other interfaces with associated relationships. For example: when the first terminal reader 102 can make data requests through different application service interfaces, data from different interfaces can be obtained.

[0089] The above is a description of an embodiment of a terminal reader regression test system provided by the present application. The system can complete regression testing without relying on data collection in online scenarios, and generate test cases and perform regression testing through data collected in offline states. And regression testing is separated from the UI level, thereby avoiding the cost of writing and maintaining scripts, and the regression testing process is all for the interface dimension, and data generated by different interfaces can be received to improve the accuracy and efficiency of regression testing.

[0090] Based on the above content, the present application also provides a regression testing method for a terminal reader, such as Figure 3 As shown, Figure 3 : is a flow chart of an embodiment of a regression testing method for a terminal reader provided by the present application, and the regression testing method embodiment includes:

[0091] Step S201: Acquire data in a first local server deployed locally on a first terminal reader in an offline state;

[0092] The purpose of step S201 is to obtain data in the first local server, and the first local server is a device deployed locally on the first terminal reader. Considering that when an abnormal situation occurs in the network, data request and processing in an online manner are unavailable, this embodiment is based on an offline state, and the first local server is designated as the master server, and the others are slave servers. The slave servers send the requested data to the first local server through the local area network. When the network returns to normal or an online processing method is used, the requested data and / or processed data can be synchronized to the cloud server.

[0093] In this embodiment, the specific implementation process of step S201 may include:

[0094] Step S201-1: Send a data collection request;

[0095] Step S201 - 2 : Responding to the data collection instruction triggered by the data collection request, acquiring the data.

[0096] In this embodiment, the data collection request can be sent to the device management end, and the device management end triggers the data collection instruction, thereby collecting data from the first local server deployed locally on the first terminal reader. For the contents of steps S201-1 to S201-2, please refer to the description of the above-mentioned terminal reader regression test system embodiment, which will not be repeated here.

[0097] Step S202: sending the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing;

[0098] The purpose of step S202 is to perform a regression test on the second terminal reader.

[0099] In this embodiment, the second terminal reader can be understood as a device in the development and testing stage, and the test case for the regression test on the second terminal reader is generated according to the data obtained in step S201.

[0100] The specific implementation process of step S202 may include:

[0101] Step S202-1: performing denoising processing on the request parameters and request results in the data;

[0102] Step S202-2: generating the test case according to the denoised data;

[0103] Step S202-3: Send the test case to the second terminal reader for regression testing.

[0104] In this embodiment, the generated test cases may also be stored and managed accordingly, and the test cases may be stored in an object storage platform.

[0105] Step S203: comparing the obtained test result of the regression test with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader.

[0106] The purpose of step S203 is to determine whether the second terminal reader is compatible with the first terminal reader. If the test result is the same as the request result, it means that the two are compatible.

[0107] In this embodiment, the specific implementation process of step S203 may include:

[0108] Step S203 - 1 : If the comparison result between the test result and the request result is the same, the test case is stored as a recommended case.

[0109] The storage in step S203-1 may be performed when the generated test case is not stored; or it may be performed when the test case is already stored when the test case is generated, and the test case is stored again as a recommended case or the stored test case is marked as a recommended case.

[0110] The above is a description of an embodiment of a test method for a terminal reader provided in the present application. The test method embodiment is mainly described from the perspective of the use case management platform in the above-mentioned terminal reader regression test system embodiment, so the relevant points can refer to the above-mentioned terminal reader regression test system embodiment, and no further details will be given here.

[0111] Corresponding to the above-mentioned embodiment of a terminal reader test method, the present application also discloses an embodiment of a terminal reader test device, please refer to Figure 4 Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.

[0112] like Figure 4 As shown, an embodiment of a terminal reader test device provided by the present application includes:

[0113] An acquisition unit 401 is used to acquire data in a first local server deployed locally on a first terminal reader in an offline state;

[0114] A sending unit 402 is used to send the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing;

[0115] The determination unit 403 is configured to compare the obtained test result of the regression test with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader.

[0116] In this embodiment, the acquisition unit 401 includes: a sending subunit and an acquisition subunit;

[0117] The sending subunit is used to send a data collection request.

[0118] The acquisition subunit is used to acquire the data in response to a data acquisition instruction triggered by a data acquisition request sent by the sending subunit.

[0119] In this embodiment, the sending unit 402 includes: a denoising processing subunit, a generating subunit and a use case sending subunit;

[0120] The denoising processing subunit is used to perform denoising processing on the request parameters and request results in the data;

[0121] The generating subunit is used to generate the test case according to the denoised data;

[0122] The test case sending subunit is used to send the test case to the second terminal reader for regression testing.

[0123] In this embodiment, the determining unit 403 may include: a storage subunit, configured to store the test case as a recommended case if the comparison result between the test result and the request result is the same.

[0124] The specific implementation process of the acquisition unit 401 to the determination unit 403 can refer to the description of the above steps S301 to S303 and the corresponding terminal reader regression test system embodiment, and will not be repeated here.

[0125] Based on the above content, this application also provides an interactive method for terminal reader regression testing, such as Figure 5 As shown, Figure 5 : is a flow chart of an interactive method embodiment of a terminal reader regression test provided by the present application; the interactive method embodiment of the terminal reader regression test may include:

[0126] Step S501: a first terminal reader deploying a first local server in an offline state sends data collected from the first local server;

[0127] Step S502: sending the test case generated according to the received data to a second terminal reader capable of deploying a second local server; and determining whether the second terminal reader is compatible with the first terminal reader according to the comparison of the received test result of the second terminal reader with the request result in the data;

[0128] Step S503: the second terminal reader performs regression testing according to the test case, and sends the test result to the use case management platform.

[0129] The specific implementation process of step S501 may be that the first terminal reader may collect data from the first local server deployed locally according to the received data collection instruction, the data collection instruction may be an instruction issued by the device management end, and the data collection instruction may be triggered in response to a data collection request sent by the use case management platform. Because this embodiment relies on the regression test interaction completed in the offline state, it may also include:

[0130] Step S5a1: Acquire at least two terminal readers of the resource service provider;

[0131] Step S5a2: Determine the first terminal reader capable of deploying the first local server among the at least two terminal readers as a master terminal reader, and determine the other terminal reader as a slave terminal reader.

[0132] The resource service provider in step S5a1 may be a merchant store, such as a supermarket, a restaurant, or other service store. Of course, it may also be a user using at least two POS machines (terminal readers). Among the at least two POS machines, one is selected as the master POS to deploy the first local server, and the other is the slave POS. The slave POS can send data to the master POS, and the master POS will send the data to the cloud server when it is online, thereby achieving data synchronization. Therefore, this embodiment may also include:

[0133] Step S5b1: in the offline state, the slave terminal reader sends an access request to the first local server of the master terminal reader;

[0134] Step S5b2: In an online state, the first local server uploads the data of the access request to the cloud server.

[0135] The above is based on the offline processing. In fact, even in the online state, the main terminal reader can still upload data to the cloud server, which can include:

[0136] Step S5c1: in the online state, the slave terminal reader sends access request data to the first local server;

[0137] Step S5c2: The first local server sends (uploads) the access request data to the cloud server.

[0138] That is, the interactive method embodiment of the terminal reader regression test of the present application is not only applicable to offline state scenarios but also to online state scenarios, and can be set according to the needs of the resource service provider.

[0139] Whether in an offline state or an online state, during the process of receiving data from a slave terminal reader through a master terminal reader, if an abnormality occurs in the master terminal reader, the master terminal reader can be re-determined to ensure the stability of data request and processing. Therefore, it can also include:

[0140] Step S6d: When the first local server is abnormal, a new master terminal reader is determined from among the slave terminal readers.

[0141] Usually, the resource service provider will modify the configuration of the terminal reader according to its own needs. In the past, the terminal reader uploaded the configuration modification to the cloud server, and the cloud server sent the configuration modification data to other terminal readers. However, when the terminal reader and the cloud server are in an offline state, there is a data communication environment between the two, which leads to the inability to synchronize the configuration modification parameters of the terminal reader with other terminal readers. Therefore, the embodiment of this city may also include:

[0142] Step S6c1: modify the configuration parameters of the first local server for the active reader; the configuration parameters may be, for example, store business hours, store management information, etc. It can be understood as configuration information that is associated with store use but is not frequently modified.

[0143] Step S6c2: Send the modified configuration parameters to the slave terminal reader connected to the master terminal reader to perform the configuration parameter synchronization operation.

[0144] For the specific implementation process of the interactive method embodiment of the terminal reader regression test provided by the present application, reference can be made to the above steps S201 to S203, steps S501 to S503, and the description of the terminal reader regression test system embodiment, and the same content will not be repeated here.

[0145] Corresponding to an interactive method embodiment of a terminal reader regression test, the present application also provides an interactive device embodiment of a terminal reader regression test, such as Figure 6 As shown, this embodiment includes:

[0146] A sending unit 601 is configured to enable a first terminal reader that deploys a first local server in an offline state to send data collected from the first local server;

[0147] A case management unit 602 is used to send the test case generated according to the received data to a second terminal reader capable of deploying a second local server; and determine whether the second terminal reader is compatible with the first terminal reader according to a comparison between the received test result of the second terminal reader and the request result in the data;

[0148] The testing unit 603 is used to perform regression testing on the second terminal reader according to the test case and send the test result to the case management unit.

[0149] In this embodiment, the method may further include: an acquiring unit and a determining unit;

[0150] The acquisition unit is used to acquire at least two terminal readers of the resource service provider;

[0151] The determining unit is configured to determine the first terminal reader capable of deploying the first local server among the at least two terminal readers as a master terminal reader, and the other terminal reader as a slave terminal reader.

[0152] In this embodiment, it may also include: a request sending unit and an uploading unit;

[0153] The request sending unit is used for, in the offline state, the slave terminal reader to send an access request to the first local server of the master terminal reader;

[0154] The upload unit is used for, in the online state, the first local server to upload (upload) the data of the access request to the cloud server. The above-mentioned request sending unit and upload unit are based on the data service processing process in the offline state. It can be understood that whether in the offline state or the online state, the access request can be sent from the terminal reader to the first local server deployed by the master terminal reader, and in the online state, the access request data is uploaded to the cloud server. Therefore, the request sending unit can also be used for, in the online state, the slave terminal reader sends an access request to the first local server, and the first local server uploads the access request data to the cloud server.

[0155] In this embodiment, in order to ensure the consistency of configuration data between the master and slave terminal readers in an offline state, it may include: a modification unit and a synchronization unit;

[0156] The modification unit is used to modify the configuration parameters of the first local server for the master terminal reader;

[0157] The synchronization unit is used to send the modified configuration parameters to the slave terminal reader connected to the master terminal reader to perform the configuration parameter synchronization operation.

[0158] The above is a description of an embodiment of the interactive device for regression testing of a terminal reader provided in the present application. For specific contents, please refer to the description of the above-mentioned steps S201 to S203, steps S501 to S503, the embodiment of the terminal reader regression testing system, and the embodiment of the interactive method for regression testing of a terminal reader. The same contents will not be repeated here.

[0159] Based on the above content, the present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0160] When the program is read and executed by a processor, the program executes the steps of the embodiment of the testing method using the terminal reader, or executes the steps of the embodiment of the interactive method for regression testing of the terminal reader.

[0161] Based on the above content, the present application also provides an electronic device, such as Figure 7 As shown, the electronic device embodiment includes:

[0162] Processor 701;

[0163] The memory 702 is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, it executes the steps of the terminal reader test method embodiment, or executes the steps of the terminal reader regression test interaction method embodiment.

[0164] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0165] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0166] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0167] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0168] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. A terminal reader regression testing system, characterized in that: include: A use case management platform, a first terminal reader, and a second terminal reader; The use case management platform obtains data in a first local server deployed by the first terminal reader; sends a test case generated according to the data to the second terminal reader capable of deploying a second local server in an offline state for regression testing; obtains a test result of the regression test, and compares the test result with a request result in the data to determine whether the second terminal reader is compatible with the first terminal reader; The first terminal reader provides the data in the first local server deployed locally in the offline state; The second terminal reader performs regression testing according to the received test case and sends the test result to the use case management platform; the second terminal reader replaces the database in the second local server with the database in the first local server; and performs the regression testing based on the data in the replaced database according to the test case.

2. The terminal reader regression testing system according to claim 1, characterized in that: The use case management platform sends a data collection request; and in response to a data collection instruction triggered by the data collection request, acquires the data, wherein the data includes request parameters and request results, and a database.

3. The terminal reader regression test system according to claim 1, characterized in that: The use case management platform performs denoising processing on the request parameters and request results in the data, and generates the test case according to the processed data.

4. The terminal reader regression testing system according to claim 1, characterized in that: The first terminal reader collects data from the first local server deployed locally in response to the data collection request and sends the data, wherein data snapshot processing is performed on the collected database.

5. The terminal reader regression testing system according to claim 1, characterized in that: It also includes a data storage platform for storing the data sent by the first terminal reader. The use case management platform obtains the data through the data storage platform and stores the test case in the data storage platform.

6. The terminal reader regression testing system according to claim 1, characterized in that: Also includes: The device management terminal triggers a data collection instruction in response to the data collection request sent by the use case management platform; The first terminal reader collects the data of the first local server according to the data collection instruction.

7. The terminal reader regression testing system according to claim 1, characterized in that: A master terminal reader and a slave terminal reader are pre-specified among at least two terminal readers of the resource service provider, wherein the master terminal reader is the first terminal reader.

8. A regression testing method for a terminal reader, characterized in that: include: Acquire data in a first local server deployed locally on a first terminal reader in an offline state; Sending the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing; The second terminal reader replaces the database in the second local server with the database in the first local server; and performs the regression test based on the data in the replaced database according to the test case; By comparing the obtained test result of the regression test with the request result in the data, it is determined whether the second terminal reader is compatible with the first terminal reader.

9. The regression testing method of the terminal reader according to claim 8, characterized in that: The step of acquiring data in a second local server deployed locally on the first terminal reader in an offline state includes: Send data collection request; In response to a data collection instruction triggered by the data collection request, the data is acquired.

10. The regression testing method of the terminal reader according to claim 8, characterized in that: The test case generated according to the data is sent to a second terminal reader capable of deploying a second local server in the offline state for regression testing, including: De-noising the request parameters and request results in the data; Generate the test case according to the denoised data; The test case is sent to the second terminal reader for regression testing.

11. The regression testing method of the terminal reader according to claim 8, characterized in that: The comparing the obtained test result of the regression test with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader includes: If the comparison result of the test result is the same as the request result, the test case is stored as a recommended case.

12. A regression testing device for a terminal reader, characterized in that: include: An acquisition unit, used for acquiring data in a first local server deployed locally on a first terminal reader in an offline state; A sending unit, configured to send the test case generated according to the data to a second terminal reader capable of deploying a second local server in the offline state for regression testing; The second terminal reader replaces the database in the second local server with the database in the first local server; and performs the regression test based on the data in the replaced database according to the test case; A determination unit is used to compare the obtained test result of the regression test with the request result in the data to determine whether the second terminal reader is compatible with the first terminal reader.

13. An interactive method for regression testing of a terminal reader, characterized in that: include: A first terminal reader deploying a first local server in an offline state sends data collected from the first local server; Sending the test case generated according to the received data to a second terminal reader capable of deploying a second local server; and determining whether the second terminal reader is compatible with the first terminal reader based on a comparison of the received test result of the second terminal reader with the request result in the data; The second terminal reader performs regression testing according to the test case and sends the test result to the case management platform; The second terminal reader replaces the database in the second local server with the database in the first local server; and performs the regression test based on the data in the replaced database according to the test case.

14. The interactive method for terminal reader regression testing according to claim 13, characterized in that: Also includes: Acquire at least two terminal readers of the resource service provider; The first terminal reader capable of deploying the first local server among the at least two terminal readers is determined as a master terminal reader, and the other terminal reader is determined as a slave terminal reader.

15. The interactive method for terminal reader regression testing according to claim 14, characterized in that: Also includes: In the offline state, the slave terminal reader sends an access request to the first local server of the master terminal reader; In an online state, the first local server uploads the data of the access request to a cloud server.

16. The interactive method for terminal reader regression testing according to claim 14, characterized in that: Also includes: In an online state, the slave terminal reader sends an access request to the first local server; The first local server uploads the data of the access request to the cloud server.

17. The interactive method for terminal reader regression testing according to claim 14, characterized in that: Also includes: When the first local server is abnormal, a new master terminal reader is determined from among the slave terminal readers.

18. The interactive method for terminal reader regression testing according to claim 14, characterized in that: Also includes: Modify the configuration parameters of the first local server for the master terminal reader; The modified configuration parameters are sent to the slave terminal reader connected to the master terminal reader to perform the configuration parameter synchronization operation.

19. An interactive device for terminal reader regression testing, characterized in that: include: A sending unit, configured to send data collected from the first local server to a first terminal reader deploying the first local server in an offline state; A case management unit, configured to send a test case generated according to the received data to a second terminal reader capable of deploying a second local server; and determining whether the second terminal reader is compatible with the first terminal reader based on a comparison of the received test result of the second terminal reader with the request result in the data; A testing unit, configured to perform regression testing on the second terminal reader according to the test case and send the test result to the case management unit; The second terminal reader replaces the database in the second local server with the database in the first local server; and performs the regression test based on the data in the replaced database according to the test case.

20. A computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; When the program is read and executed by the processor, the program executes the steps of the regression testing method of the terminal reader according to any one of claims 8 to 11, or executes the steps of the interactive method of regression testing of the terminal reader according to any one of claims 13 to 18.

21. An electronic device, comprising: processor; A memory for storing a program for processing data generated by a network platform, wherein when the program is read and executed by the processor, the program executes the steps of the regression testing method for a terminal reader as described in any one of claims 8 to 11, or executes the steps of the interactive method for regression testing of a terminal reader as described in any one of claims 13 to 18.

Citation Information

Patent Citations

  • Off-line test system, local data management method thereof and corresponding device

    CN101615159A

  • Regression test method, device and system for advertisement scene

    CN109062799A

  • Test case generation and test method and device, apparatus and system

    CN110221965A

  • Software testing method and system based on collection and playback

    CN112115042A

  • Automatic generation method and device for scene test case of automobile controller

    CN112147967A