WO2018227735A1 - Pos terminal automatic testing method and device - Google Patents

Pos terminal automatic testing method and device Download PDF

Info

Publication number
WO2018227735A1
WO2018227735A1 PCT/CN2017/095891 CN2017095891W WO2018227735A1 WO 2018227735 A1 WO2018227735 A1 WO 2018227735A1 CN 2017095891 W CN2017095891 W CN 2017095891W WO 2018227735 A1 WO2018227735 A1 WO 2018227735A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
use case
pos terminal
execution
executed
Prior art date
Application number
PCT/CN2017/095891
Other languages
French (fr)
Chinese (zh)
Inventor
吕更
李健
杨维
蓝海
Original Assignee
百富计算机技术(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百富计算机技术(深圳)有限公司 filed Critical 百富计算机技术(深圳)有限公司
Publication of WO2018227735A1 publication Critical patent/WO2018227735A1/en

Links

Classifications

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

Definitions

  • the present invention belongs to the technical field of POS terminals, and in particular, to a method and an apparatus for automatically testing a POS terminal.
  • the configuration of the P0S terminal is more and more powerful, and the functions are more and more complete.
  • the POS terminal can perform the credit card consumption to enjoy the fast payment experience brought by the POS terminal.
  • the POS machine needs to be tested before the POS machine is put into use.
  • the embodiment of the present invention provides a method and a device for automatically testing a POS terminal, so as to solve the test case of the existing POS terminal, it is necessary to manually fill in the test result on the TESTLINK and record the log information, which is not conducive to Improve the efficiency of testing.
  • a first aspect of the embodiments of the present invention provides an automatic test method for a POS terminal, including:
  • a second aspect of the embodiments of the present invention provides an automatic test device for a POS terminal, including:
  • a download module for downloading a use case from a web-based use case management system TESTLINK using a remote procedure call XML-RPC protocol;
  • a screening module configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
  • a sorting module configured to select keywords in the use case to be executed for sorting, to obtain an execution sequence
  • a test module configured to control the POS terminal batch processing or individually execute the use case according to the execution order, and execute the end After that, upload the test results.
  • a third aspect of an embodiment of the present invention provides a POS terminal automatic test device/terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor
  • the processor executes the computer program to implement the steps of the above method.
  • a fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method.
  • FIG. 1 is a flowchart of an implementation of an automatic test method for a POS terminal according to an embodiment of the present invention
  • FIG. 3 is a flowchart showing an implementation of filtering use cases and sorting in an automatic test method for a POS terminal according to an embodiment of the present invention
  • FIG. 4 is a flowchart of an application for performing a test in an automatic test method of a POS terminal according to an embodiment of the present invention
  • FIG. 5 is a sequence diagram of a thread in an automatic test method for a POS terminal according to an embodiment of the present invention
  • FIG. 6 is a flowchart of an application of an upload test result according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of an automatic test apparatus for a POS terminal according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an automatic test device/terminal device of a POS terminal according to an embodiment of the present invention.
  • the term “if” may be interpreted as “when" or “once” or “in response to determining” or “in response to detecting” depending on the context. ". Similarly, the phrase “if determined” or “if detected [condition or event described]” may be interpreted in context to mean “once determined” or “in response to determining” or “once detected [condition or event described] ] “OR” in response to detecting [described condition or event].
  • the terminal device described in the embodiments of the present invention includes, but is not limited to, a mobile phone, a laptop computer or a tablet computer such as a touch sensitive surface (eg, a touch screen display and/or a touch pad).
  • a touch sensitive surface eg, a touch screen display and/or a touch pad
  • Other portable devices e.g., the device is not a portable communication device, but a desktop computer having a touch sensitive surface (e.g., a touch screen display and/or a touch pad).
  • terminal device including a display and a touch sensitive surface is described.
  • the terminal device can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
  • the terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application.
  • the various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application.
  • the terminal's common physical architecture e.g., touch-sensitive surface
  • FIG. 1 is a flowchart of an implementation of an automatic test method for a POS terminal according to an embodiment of the present invention. The method is applied to a terminal device.
  • the automatic test method of the POS terminal shown in FIG. 1 may include the following steps:
  • the XML-RPC protocol is an XML Remote Procedure Call, which is a remote procedure call.
  • S102 Acquire a selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute.
  • the selected test attribute is obtained, and according to the selected test attribute, the use case to be executed is selected in the downloaded use case, specifically:
  • test attribute list includes at least one of a test mode, a priority, a test type, a test time, and an execution state;
  • the use cases are filtered out in the downloaded use case.
  • the use cases to be executed are sorted, the execution order is obtained, and the sorted use cases are displayed.
  • S104 Control the POS terminal batch processing or individually execute the use case according to the execution order, after the execution ends.
  • the method of multi-thread coordinated communication is used to control the POS terminal batch processing or the single execution of the use case, and after the execution ends, the test result is uploaded, and the multi-thread includes the main thread, the control thread, and the test run. Thread and serial thread.
  • the test results are uploaded to TESTLINK using the XML-RPC protocol.
  • S 104 has two implementation manners, which are detailed as follows:
  • the POS terminal sends an instruction to execute the use case through the serial communication protocol or the parallel port communication protocol, waits for the POS terminal to execute the use case to be executed, obtains the test result, and uploads the test result to On TESTLINK.
  • the heartbeat detection is used to determine whether the communication link between the POS terminal and the POS terminal is normally connected;
  • the serial port communication protocol is used to send an instruction to execute the use case to the POS terminal, and the serial port thread is used to monitor the POS terminal data;
  • test running thread when the POS terminal data is detected, the test running thread is notified to receive and process the POS terminal data, and after obtaining the test result, the control running thread is notified to record the test result;
  • the test result is obtained, and the test result is uploaded to TESTLINK.
  • the TESTLINK is operated remotely by using the XML-RPC protocol to implement download of the use case and upload of the result;
  • the use of a reliable protocol and POS terminal communication controls the execution of the use case on the POS terminal, achieves the purpose of automatic testing, and improves the testing efficiency;
  • the automatic measurement software of the POS terminal implemented by JAVA is compatible with all windows series systems.
  • FIG. 2 is a flowchart showing an implementation of downloading a use case from a web-based use case management system TESTLINK using a remote procedure call XML-RPC protocol in an automatic test method for a POS terminal according to an embodiment of the present invention.
  • the automatic test method of the POS terminal is applied to the terminal device, as shown in FIG. 2, including the following steps:
  • the user name and the key connect to TESTLINK, if successful, continue to obtain the project, plan and version, select the version of the specified test, download the use case, and wait for the use case to be downloaded. Later, in order to improve efficiency, the file buffering technology is used to avoid repeated downloads from the server, resulting in unnecessary network load.
  • FIG. 3 is a flowchart of an implementation of a filtering use case and a sorting in an automatic testing method of a POS terminal according to an embodiment of the present invention.
  • the automatic testing method of the POS terminal is applied to a terminal device, as shown in FIG. Less 3 ⁇ 43 ⁇ 4 :
  • S303 selecting a test mode, a priority, a test type, a test cost, and an execution state;
  • the module includes an API interface, and the API interface further includes a test case :
  • the filtering function uses these features to filter and filter out the required use cases. Since these use cases need to be displayed through JAVA's table control, each line is displayed. A use case, each row contains a checkbox, so you can do further filtering, and finally select the use case to be executed. You can select 5 keywords for sorting for the selected use case, and execute the multi-level sorting algorithm to implement the use case. Sorting function.
  • FIG. 4 is a flowchart of an application for performing a test in an automatic test method of a POS terminal according to an embodiment of the present invention.
  • the method is applied to a terminal device.
  • the method may include the following steps: 0101] 1. Send an execution test case instruction;
  • the execution use case needs to perform serial communication with the POS terminal, and the PC sends the POS terminal according to the agreed protocol command, and the POS terminal executes the instruction after receiving the instruction, and if the PC is required to modify the POS during the execution of the use case
  • the POS terminal sends an instruction to the PC to execute, after the PC executes Returning to the POS terminal, the POS terminal continues to execute the use case, and returns the result to the PC after the execution is completed.
  • the heartbeat detection is performed first, and the judgment is performed. Whether the link is traversal; the most important is the multi-thread implementation, including four threads, respectively, the main thread processing interface response, control thread, test run thread and serial thread cooperation for use case execution, serial thread mainly for data monitoring, when listening After the POS data arrives, the test running thread is notified to receive and process the data. After the processing ends, the control running thread records the result information, and then starts to add the next use case.
  • FIG. 5 is a sequence diagram of a thread in an automatic test method for a POS terminal according to an embodiment of the present invention. The method is applied to a terminal device, as shown in FIG. 5:
  • the main thread starts the start thread in the test queue TestQueue.start;
  • test running thread executes the null function TestQueue.isEmpty in the test queue, waiting for Wait;
  • serial port thread starts listening to the data
  • the main thread receives a message of a start button click
  • control thread executes the null function TestQueue.isEmpty in the test result queue, waiting for Wait;
  • control thread executes the add queue function addLast in the test queue, notifying the test run thread to start testing
  • test running thread executes the null function TestQueue.isEmpty in the test queue, sends an execution test command sendDoTestCmd, connects and waits for the connection Wait;
  • the serial thread sends a message to the test running thread to notify the arrival of the serial port data
  • test run thread accepts the result and processes it, waiting for Wait;
  • test running thread sends a message to the control thread to notify the reception result
  • the control thread receives the result message, returns the control thread to execute the add queue function addLast in the test queue, and directly tests the test item in the queue function addLast.
  • FIG. 6 is a flowchart of application of the upload test result according to the embodiment of the present invention. The method is applied to the terminal device. As shown in FIG. 6, the method may include 3 ⁇ 43 ⁇ 4 :
  • the embodiment of the present invention adds the execution case and the process of uploading the test result on the basis of the first and second embodiments.
  • the multi-thread communication mode ensures that the communication between the terminal device and the POS terminal is reliable, and the POS terminal can respond to the response. , use to improve test efficiency.
  • FIG. 7 is a structural block diagram of an automatic test apparatus for a POS terminal according to an embodiment of the present invention, which is applied to a terminal device, where the terminal device includes Not limited to computers, mobile phones, pocket computers (PPC), handheld computers , laptop, personal digital assistant (PDA), MP4, MP3
  • the terminal device includes Not limited to computers, mobile phones, pocket computers (PPC), handheld computers , laptop, personal digital assistant (PDA), MP4, MP3
  • the automatic test device of the POS terminal includes:
  • the downloading module 71 is configured to download a use case from the web-based use case management system TESTLINK by using a remote procedure call XML-RPC protocol;
  • the filtering module 72 is configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
  • the sorting module 73 is configured to select keywords in the use cases to be executed for sorting, and obtain an execution order;
  • the test module 74 is configured to control the POS terminal batch processing or individually execute the use case according to the execution sequence, and upload the test result after the execution ends.
  • the screening module is specifically configured to display a test attribute list, where the test attribute list includes a test mode, a priority, a test type, and Testing at least one test attribute in the inter-time, execution state, obtaining the selected test attribute according to the selection operation, and filtering the use case in the downloaded use case according to the selected test attribute;
  • the sorting module is specifically used for selecting a keyword Use the selected keywords and multi-level sorting methods to sort the use cases to be executed, get the execution order, and display the sorted use cases.
  • the test module in the automatic test device of the POS terminal, is configured to send, according to an execution sequence, an instruction to execute a use case to a POS terminal by using a serial communication protocol or a parallel port communication protocol. After waiting for the POS terminal to execute the use case to be executed, obtain the test result, and upload the test result to TESTLINK; or
  • the test module includes:
  • a detecting unit configured to detect whether the communication link between the self and the POS terminal is normally connected by using heartbeat detection
  • the serial port communication protocol is used to send an instruction to execute the use case to the POS terminal, and the serial port thread is used to monitor the POS terminal data;
  • a recording unit configured to notify the test running thread to receive and process the POS terminal data after the POS terminal data is detected, and after receiving the test result, notify the control running thread to record the test result;
  • the test unit after the recording is completed, increases the next use case to be executed according to the execution order, and sequentially reciprocates; waits for the POS
  • the test result is obtained, and the test result is uploaded to TESTLINK.
  • the beneficial effects of the embodiments of the present invention are two aspects.
  • the use cases to be executed are selected, the use cases are executed on demand, the human resources input is reduced, and the test efficiency is improved.
  • the use case execution on the POS terminal is controlled, and the purpose of automatic testing is achieved.
  • the POS terminal automatic test device/terminal device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and operable on the processor 80, For example, the POS terminal automatically tests the program.
  • the processor 80 executes the computer program 82 to implement the steps in the above embodiments of the various POS terminal automatic test methods, such as steps 101 to 104 shown in FIG.
  • the processor 80 executes the computer program 82 to implement the functions of the modules/units in the above-described respective device embodiments, such as the functions of the modules 71 to 74 shown in FIG.
  • the computer program 82 may be partitioned into one or more modules/units, which are stored in the memory 81 and executed by the processor 80.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 82 in the POS terminal automatic test device/terminal device 8.
  • the computer program 82 can be divided into a download module, a screening module, a sorting module, and a test module (modules in a virtual device). The specific functions of each module are as follows:
  • a download module for downloading a use case from the web-based use case management system TESTLINK using a remote procedure call XML-RPC protocol;
  • a screening module configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
  • a sorting module configured to select keywords in the use cases to be executed for sorting, and obtain an execution order
  • the test module is configured to control the POS terminal batch processing or the single execution of the use case according to the execution order, and upload the test result after the execution ends.
  • the POS terminal automatic test device/terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the POS terminal automatic test device/terminal device may include, but is not limited to, a processor 80 and a memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of the POS terminal automatic test device/terminal device 8, and does not constitute a limitation of the POS terminal automatic test device/terminal device 8, and may include more or less than the illustration.
  • Components, or combinations of certain components, or different components, such as the POS terminal automatic test device/terminal device may also include input and output devices, network access devices, buses, and the like.
  • the processor 80 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-to-use programmable gate array
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 81 may be an internal storage unit of the POS terminal automatic test device/terminal device 8, such as a hard disk or a memory of the POS terminal automatic test device/terminal device 8.
  • the memory 81 may also be an external storage device of the POS terminal automatic test device/terminal device 8, for example, a plug-in hard disk provided on the POS terminal automatic test device/terminal device 8, and a smart memory card (Smart Media Card) , SMC), Secure Digital (SD) card, Flash Card, etc.
  • the memory 81 may also include both an internal storage unit of the POS terminal automatic test device/terminal device 8 and an external storage device.
  • the memory 81 is used to store the computer program and other programs and data required by the POS terminal automatic test device/terminal device.
  • the memory 81 can also be used to temporarily store data that has been output or is about to be output. It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed.
  • the module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above.
  • Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware. Form implementation, you can also use the shape of the software functional unit Implementation.
  • the disclosed device/terminal device and method may be implemented in other manners.
  • the device/terminal device embodiment described above is merely illustrative.
  • the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units.
  • components may be combined or integrated into another system, or some features may be omitted or not implemented.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the process in the above embodiment method, and can also instruct the phase through a computer program.
  • the computer program can be stored in a computer readable storage medium, and the computer program, after being executed by the processor, can implement the steps of the foregoing method embodiments. .
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer readable medium can include
  • Disk CD
  • computer memory Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals
  • software distribution media It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
  • the device/terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the device/terminal device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of a device/terminal device, and does not constitute a limitation of the device/terminal device, and may include more or less components than those illustrated, or may be combined with some components, or Different components, such as the device/terminal device, may also include input and output devices, network access devices, buses, and the like.
  • the so-called processor may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC). ), ready-made programmable gate array
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor is a control center of the device/terminal device, and connects the entire device/terminal device by using various interfaces and lines. Various parts.
  • the memory can be used to store the computer program and/or module, the processor being implemented by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. According to the phone Use the created data (such as audio data, phone book, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash device, or other volatile solid-state storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention provides an automatic testing method and device for a POS (Point-Of-Sale) terminal. The method comprises: using a remote process to invoke an XML-RPC (Extensive Markup Language-Remote Procedure Call) protocol to download a use case from a web-based use case management system TESTLINK(S101); obtaining a selected test attribute, and screening a use case to be executed from the downloaded use cases according to the selected test attribute (S102); selecting and sorting keywords from the use case to be executed to obtain an execution sequence (S103); and according to the execution sequence, controlling the POS terminal to carry out batch processing or single execution on the use case, and uploading a test result after the execution is finished (S104). The embodiment of the invention has the following beneficial effects that: 1) the XML-RPC protocol is used to remotely operate the TESTLINK to realize purposes of downloading the use case and uploading test results; 2) a reliable protocol is used to communicate with the POS terminal to control the execution of the use case on the POS terminal so as to realize a purpose of automatic testing; and 3) the way of filtering, sorting, batch processing or the single execution of use cases is provided so as to greatly bring convenience for testing personnel to execute the use case on demand.

Description

发明名称:一种 POS终端自动测试方法及装置 技术领域  Title of Invention: A POS terminal automatic test method and device
[0001] 本发明属于 POS终端技术领域, 尤其涉及一种 POS终端自动测试方法及装置。  [0001] The present invention belongs to the technical field of POS terminals, and in particular, to a method and an apparatus for automatically testing a POS terminal.
背景技术  Background technique
[0002] 随着经济发展, P0S终端的配置越来越强大, 功能越来越齐全, 当用户需要完 成商品支付吋, 可以通过 POS终端进行刷卡消费, 以享受 POS终端带来的快速支 付体验, 此外, 在 POS机投入使用前, 需要对 POS机进行测试。  [0002] With the economic development, the configuration of the P0S terminal is more and more powerful, and the functions are more and more complete. When the user needs to complete the payment of the product, the POS terminal can perform the credit card consumption to enjoy the fast payment experience brought by the POS terminal. In addition, the POS machine needs to be tested before the POS machine is put into use.
[0003] 然而, 现有 POS终端在测试用例吋, 需要在 TESTLINK上手工填写测试结果, 并记录日志信息, 不利于提高测试效率, 其原因在于, 在 TESTLINK上手工填写 测试结果的方式, 虽然能将测试结果更新到 TESTLINK上, 但其过程只能由用户 手动完成, 操作步骤繁琐, 当用例很多吋, 耗费的吋间过长, 影响了测试效率 技术问题  [0003] However, in the test case of the existing POS terminal, it is necessary to manually fill in the test result on TESTLINK and record the log information, which is not conducive to improving the test efficiency. The reason is that the method of manually filling in the test result on TESTLINK can be The test results are updated to TESTLINK, but the process can only be done manually by the user. The operation steps are cumbersome. When the use cases are many, the time spent is too long, which affects the technical efficiency of the test.
[0004] 有鉴于此, 本发明实施例提供了一种 POS终端自动测试方法及装置, 以解决现 有 POS终端在测试用例吋, 需要在 TESTLINK上手工填写测试结果, 并记录日志 信息, 不利于提高测试效率的问题。  [0004] In view of this, the embodiment of the present invention provides a method and a device for automatically testing a POS terminal, so as to solve the test case of the existing POS terminal, it is necessary to manually fill in the test result on the TESTLINK and record the log information, which is not conducive to Improve the efficiency of testing.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 本发明实施例的第一方面提供了一种 POS终端自动测试方法, 包括:  A first aspect of the embodiments of the present invention provides an automatic test method for a POS terminal, including:
[0006] 使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TESTLINK上下 载用例;  [0006] Using the remote procedure call XML-RPC protocol to upload a use case from the web-based use case management system TESTLINK;
[0007] 获取选择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出要执行的 用例;  [0007] obtaining the selected test attribute, and filtering out the use case to be executed in the downloaded use case according to the selected test attribute;
[0008] 在要执行的用例中选择关键词进行排序, 得到执行顺序;  [0008] selecting keywords in the use case to be executed for sorting, and obtaining an execution order;
[0009] 根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执行结束后, 上传 测试结果。 [0010] 本发明实施例的第二方面提供了一种 POS终端自动测试装置, 包括: [0009] According to the execution order, the POS terminal batch is controlled or the single use case is executed, and after the execution ends, the test result is uploaded. [0010] A second aspect of the embodiments of the present invention provides an automatic test device for a POS terminal, including:
[0011] 下载模块, 用于使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TESTLINK上下载用例; [0011] a download module for downloading a use case from a web-based use case management system TESTLINK using a remote procedure call XML-RPC protocol;
[0012] 筛选模块, 用于获取选择的测试属性, 根据选择的测试属性, 在下载的用例中 筛选出要执行的用例;  [0012] a screening module, configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
[0013] 排序模块, 用于在要执行的用例中选择关键词进行排序, 得到执行顺序; [0014] 测试模块, 用于根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执 行结束后, 上传测试结果。 [0013] a sorting module, configured to select keywords in the use case to be executed for sorting, to obtain an execution sequence; [0014] a test module, configured to control the POS terminal batch processing or individually execute the use case according to the execution order, and execute the end After that, upload the test results.
[0015] 本发明实施例的第三方面提供了一种 POS终端自动测试装置 /终端设备, 包括存 储器、 处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序[0015] A third aspect of an embodiment of the present invention provides a POS terminal automatic test device/terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor
, 所述处理器执行所述计算机程序吋实现上述方法的步骤。 The processor executes the computer program to implement the steps of the above method.
[0016] 本发明实施例的第四方面提供了一种计算机可读存储介质, 所述计算机可读存 储介质存储有计算机程序, 所述计算机程序被处理器执行吋实现上述方法的步 骤。 A fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0017] 本发明实施例与现有技术相比存在的有益效果是:  [0017] The beneficial effects of the embodiments of the present invention compared with the prior art are:
[0018] 1) 使用 XML-RPC协议通过远程来操作 TESTLINK, 实现了用例的下载和测试 结果的上传;  [0018] 1) Using the XML-RPC protocol to operate TESTLINK remotely, the download of the use case and the uploading of the test result are realized;
[0019] 2) 使用可靠的协议和 POS终端通讯, 控制 POS终端上的用例执行, 实现自动测 试的目的;  [0019] 2) using a reliable protocol and POS terminal communication, controlling the execution of the use case on the POS terminal, and realizing the purpose of the automatic test;
[0020] 3) 提供过滤、 排序、 批处理或单个执行用例的方式, 大大方便了测试人员按 需执行用例。  [0020] 3) Providing filtering, sorting, batch processing, or a single execution use case greatly facilitates the tester to execute the use case as needed.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0021] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。 [0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention are not laborious for those skilled in the art. Further drawings can also be obtained from these drawings.
[0022] 图 1是本发明实施例提供的 POS终端自动测试方法的实现流程图; 1 is a flowchart of an implementation of an automatic test method for a POS terminal according to an embodiment of the present invention;
[0023] 图 2是本发明实施例提供的 POS终端自动测试方法中使用远程过程调用 XML-RP2 is a remote procedure call XML-RP in a POS terminal automatic test method according to an embodiment of the present invention;
C协议, 从基于 web的用例管理系统 TESTLINK上下载用例并显示的实现流程图 C protocol, downloading use cases from the web-based use case management system TESTLINK and showing the implementation flow chart
[0024] 图 3是本发明实施例提供的 POS终端自动测试方法中过滤用例和排序的实现流 程图; 3 is a flowchart showing an implementation of filtering use cases and sorting in an automatic test method for a POS terminal according to an embodiment of the present invention;
[0025] 图 4是本发明实施例提供的 POS终端自动测试方法中执行测试的应用流程图; 4 is a flowchart of an application for performing a test in an automatic test method of a POS terminal according to an embodiment of the present invention;
[0026] 图 5是本发明实施例提供的 POS终端自动测试方法中线程的序列图; 5 is a sequence diagram of a thread in an automatic test method for a POS terminal according to an embodiment of the present invention;
[0027] 图 6是本发明实施例提供的上传测试结果的应用流程图;  6 is a flowchart of an application of an upload test result according to an embodiment of the present invention;
[0028] 图 7是本发明实施例提供的 POS终端自动测试装置的结构框图;  7 is a structural block diagram of an automatic test apparatus for a POS terminal according to an embodiment of the present invention;
[0029] 图 8是本发明实施例提供的 POS终端自动测试装置 /终端设备的示意图。  8 is a schematic diagram of an automatic test device/terminal device of a POS terminal according to an embodiment of the present invention.
本发明的实施方式 Embodiments of the invention
[0030] 以下描述中, 为了说明而不是为了限定, 提出了诸如特定系统结构、 技术之类 的具体细节, 以便透彻理解本发明实施例。 然而, 本领域的技术人员应当清楚 , 在没有这些具体细节的其它实施例中也可以实现本发明。 在其它情况中, 省 略对众所周知的系统、 装置、 电路以及方法的详细说明, 以免不必要的细节妨 碍本发明的描述。  [0030] In the following description, for purposes of illustration and description, reference However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
[0031] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0031] In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
[0032] 应当理解, 当在本说明书和所附权利要求书中使用吋, 术语"包括"指示所描述 特征、 整体、 步骤、 操作、 元素和 /或组件的存在, 但并不排除一个或多个其它 特征、 整体、 步骤、 操作、 元素、 组件和 /或其集合的存在或添加。 [0032] It will be understood that the term "comprising", when used in the specification and the appended claims, the <RTI ID=0.0> </ RTI> </ RTI> indicates the presence of the described features, integers, steps, operations, elements and/or components, but does not exclude one or more The presence or addition of other features, integers, steps, operations, elements, components, and/or their collections.
[0033] 还应当理解, 在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的 目的而并不意在限制本发明。 如在本发明说明书和所附权利要求书中所使用的 那样, 除非上下文清楚地指明其它情况, 否则单数形式的"一"、 "一个 "及"该"意 在包括复数形式。 The terminology used herein is for the purpose of describing particular embodiments and is not intended to limit the invention. The singular forms "a", "the", and "the"
[0034] 还应当进一步理解, 在本发明说明书和所附权利要求书中使用的术语 "和 /或"是 指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括这 些组合。 [0034] It should also be further understood that the term "and/or" is used in the description of the invention and the appended claims. Refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0035] 如在本说明书和所附权利要求书中所使用的那样, 术语"如果"可以依据上下文 被解释为 "当…吋 "或"一旦"或"响应于确定"或"响应于检测到"。 类似地, 短语"如 果确定 "或"如果检测到 [所描述条件或事件]"可以依据上下文被解释为意指"一旦 确定"或"响应于确定"或"一旦检测到 [所描述条件或事件]"或"响应于检测到 [所描 述条件或事件]"。  [0035] As used in this specification and the appended claims, the term "if" may be interpreted as "when..." or "once" or "in response to determining" or "in response to detecting" depending on the context. ". Similarly, the phrase "if determined" or "if detected [condition or event described]" may be interpreted in context to mean "once determined" or "in response to determining" or "once detected [condition or event described] ] "OR" in response to detecting [described condition or event].
[0036] 具体实现中, 本发明实施例中描述的终端设备包括但不限于诸如具有触摸敏感 表面 (例如, 触摸屏显示器和 /或触摸板)的移动电话、 膝上型计算机或平板计算机 之类的其它便携式设备。 还应当理解的是, 在某些实施例中, 所述设备并非便 携式通信设备, 而是具有触摸敏感表面 (例如, 触摸屏显示器和 /或触摸板)的台式 计算机。  [0036] In a specific implementation, the terminal device described in the embodiments of the present invention includes, but is not limited to, a mobile phone, a laptop computer or a tablet computer such as a touch sensitive surface (eg, a touch screen display and/or a touch pad). Other portable devices. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch sensitive surface (e.g., a touch screen display and/or a touch pad).
[0037] 在接下来的讨论中, 描述了包括显示器和触摸敏感表面的终端设备。 然而, 应 当理解的是, 终端设备可以包括诸如物理键盘、 鼠标和 /或控制杆的一个或多个 其它物理用户接口设备。  [0037] In the ensuing discussion, a terminal device including a display and a touch sensitive surface is described. However, it should be understood that the terminal device can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
[0038] 终端设备支持各种应用程序, 例如以下中的一个或多个: 绘图应用程序、 演示 应用程序、 文字处理应用程序、 网站创建应用程序、 盘刻录应用程序、 电子表 格应用程序、 游戏应用程序、 电话应用程序、 视频会议应用程序、 电子邮件应 用程序、 即吋消息收发应用程序、 锻炼支持应用程序、 照片管理应用程序、 数 码相机应用程序、 数字摄影机应用程序、 web浏览应用程序、 数字音乐播放器应 用程序和 /或数字视频播放器应用程序。  [0038] The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application. Programs, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music Player application and / or digital video player application.
[0039] 可以在终端设备上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个 公共物理用户接口设备。 可以在应用程序之间和 /或相应应用程序内调整和 /或改 变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。 这样, 终端的 公共物理架构 (例如, 触摸敏感表面)可以支持具有对用户而言直观且透明的用户 界面的各种应用程序。  [0039] The various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application. In this way, the terminal's common physical architecture (e.g., touch-sensitive surface) can support a variety of applications with a user interface that is intuitive and transparent to the user.
[0040] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0040] In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
[0041] 实施例一 [0042] 参考图 1, 图 1是本发明实施例提供的 POS终端自动测试方法的实现流程图, 该 方法应用于终端设备, 如图 1所示 POS终端自动测试方法可以包括以下步骤:[0041] Embodiment 1 Referring to FIG. 1, FIG. 1 is a flowchart of an implementation of an automatic test method for a POS terminal according to an embodiment of the present invention. The method is applied to a terminal device. The automatic test method of the POS terminal shown in FIG. 1 may include the following steps:
[0043] S101 , 使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TESTLIN K上下载用例; [0043] S101, downloading a use case from the web-based use case management system TESTLIN K by using a remote procedure call XML-RPC protocol;
[0044] 其中, S101 , 具体为:  [0044] wherein, S101, specifically:
[0045] 获取服务器地址、 用户名和密钥, 根据服务器地址、 用户名和密钥, 连接基于 web的用例管理系统 TESTLINK;  [0045] obtaining a server address, a username, and a key, and connecting a web-based use case management system TESTLINK according to a server address, a username, and a key;
[0046] 根据选择的获取项目、 计划和版本, 使用远程过程调用 XML-RPC协议, 从 TES[0046] According to the selected acquisition project, plan and version, using the remote procedure call XML-RPC protocol, from TES
TLINK上下载指定的用例。 XML-RPC协议是 XML Remote Procedure Call, 即远 程过程调用。 Download the specified use case on TLINK. The XML-RPC protocol is an XML Remote Procedure Call, which is a remote procedure call.
[0047] S102, 获取选择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出要 执行的用例;  [0047] S102. Acquire a selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute.
[0048] 其中, 获取选择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出要 执行的用例, 具体为:  [0048] wherein, the selected test attribute is obtained, and according to the selected test attribute, the use case to be executed is selected in the downloaded use case, specifically:
[0049] 显示测试属性列表, 所述测试属性列表包括测试模式、 优先级、 测试类型、 测 试吋间、 执行状态中的至少一种测试属性;  [0049] displaying a test attribute list, where the test attribute list includes at least one of a test mode, a priority, a test type, a test time, and an execution state;
[0050] 根据选择操作, 获取选择的测试属性; [0050] obtaining the selected test attribute according to the selecting operation;
[0051] 根据选择的测试属性, 在下载的用例中筛选出用例。 [0051] Based on the selected test attributes, the use cases are filtered out in the downloaded use case.
[0052] 根据选择的测试属性, 对下载的用例进行过滤, 筛选出要执行的用例。 [0052] Filtering the downloaded use cases according to the selected test attributes, and filtering out the use cases to be executed.
[0053] 其中, 在要执行的用例中选择关键词进行排序, 得到执行顺序, 具体为: [0053] wherein, in the use case to be executed, the keywords are selected for sorting, and the execution order is obtained, which is specifically:
[0054] 选择关键词; [0054] selecting a keyword;
[0055] 采用选择的关键词以及多级排序方式, 对要执行的用例进行排序, 得到执行顺 序, 并显示排序后的用例。  [0055] Using the selected keywords and the multi-level sorting method, the use cases to be executed are sorted, the execution order is obtained, and the sorted use cases are displayed.
[0056] S104, 根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执行结束后[0056] S104. Control the POS terminal batch processing or individually execute the use case according to the execution order, after the execution ends.
, 上传测试结果。 , upload test results.
[0057] 其中, 根据执行顺序, 采用多线程协调通讯的方式, 控制 POS终端批处理或单 个执行所述用例, 执行结束后, 上传测试结果, 所述多线程包括主线程、 控制 线程、 测试运行线程和串口线程。 [0058] 使用 XML-RPC协议, 向 TESTLINK上传测试结果。 [0057] wherein, according to the execution sequence, the method of multi-thread coordinated communication is used to control the POS terminal batch processing or the single execution of the use case, and after the execution ends, the test result is uploaded, and the multi-thread includes the main thread, the control thread, and the test run. Thread and serial thread. [0058] The test results are uploaded to TESTLINK using the XML-RPC protocol.
[0059] 其中, S 104有两种实施方式, 详述如下: [0059] Wherein, S 104 has two implementation manners, which are detailed as follows:
[0060] 第一种实施方式, 根据执行顺序, 通过串口通讯协议或并口通讯协议, 向 POS 终端发送执行用例的指令, 等待 POS终端执行完要执行的用例后, 获取测试结 果, 上传测试结果到 TESTLINK上。  [0060] In the first embodiment, according to the execution sequence, the POS terminal sends an instruction to execute the use case through the serial communication protocol or the parallel port communication protocol, waits for the POS terminal to execute the use case to be executed, obtains the test result, and uploads the test result to On TESTLINK.
[0061] 第二种实施方式, 采用心跳检测, 判断自身和 POS终端的通信链路是否正常连 接;  [0061] In the second embodiment, the heartbeat detection is used to determine whether the communication link between the POS terminal and the POS terminal is normally connected;
[0062] 正常连接后, 根据执行顺序, 通过串口通讯协议, 向 POS终端发送执行用例的 指令, 利用串口线程监听 POS终端数据;  [0062] After the normal connection, according to the execution sequence, the serial port communication protocol is used to send an instruction to execute the use case to the POS terminal, and the serial port thread is used to monitor the POS terminal data;
[0063] 当监听到 POS终端数据到来吋, 通知所述测试运行线程接收并处理 POS终端数 据, 得到测试结果后, 通知控制运行线程记录测试结果; [0063] when the POS terminal data is detected, the test running thread is notified to receive and process the POS terminal data, and after obtaining the test result, the control running thread is notified to record the test result;
[0064] 记录完毕后, 根据执行顺序增加下一条要执行的用例, 依次往复; [0064] After the recording is completed, the next use case to be executed is added according to the execution order, and sequentially reciprocated;
[0065] 等待 POS Waiting for POS
终端执行完要执行的用例后, 获取测试结果, 上传测试结果到 TESTLINK上。  After the terminal executes the use case to be executed, the test result is obtained, and the test result is uploaded to TESTLINK.
[0066] 为便于说明, 以下为 POS终端自动测试方法较佳的应用流程, 详述如下: [0067] 1.从 TESTLINK上下载指定的用例, 设置使用远程过程调用 XML-RPC协议, 从 基于 web的用例管理系统 TESTLINK上下载用例的协议内容, 获取要执行的用例 信息, ATC软件使用 JAVA的表格控件展示, 并提供右键支持; [0066] For convenience of explanation, the following is a preferred application flow of the POS terminal automatic test method, which is described in detail as follows: [0067] 1. Download the specified use case from TESTLINK, set the remote procedure call XML-RPC protocol, from the web-based The use case management system TESTLINK downloads the protocol content of the use case, obtains the use case information to be executed, and the ATC software uses JAVA's form control to display and provides right-click support;
[0068] 2.接着进行过滤, 提供模块以及各种测试属性, 这里使用 JAVA的下拉列表和 按钮控制实现, 过滤的数据展示仍旧使用表格控件, 但定制了一列控件, 支持 复选框功能, 可以细化筛选动作; [0068] 2. Next to filter, provide modules and various test properties, here using JAVA's drop-down list and button control implementation, filtered data display still uses the table control, but customize a column of controls, support check box function, you can Refine the screening action;
[0069] 3.筛选过后进入排序, 使用一项高级功能, 支持多级排序, 排序完成后进入执 行, 由于考虑 GUI的及吋响应性, 执行用例吋, 启动一个工作线程执行, 保证 G UI界面的友好性, 执行用例支持批处理, 可以运行全部的用例, 也可以暂停后 , 继续执行用例, 也支持单个用例, 这是多线程协调通讯的结果; [0069] 3. After sorting, enter sorting, use an advanced function, support multi-level sorting, enter execution after sorting is completed, consider the GUI and 吋 responsiveness, execute the use case 启动, start a worker thread to execute, guarantee G UI interface The friendliness, execution use case support batch processing, can run all use cases, can also suspend, continue to execute the use case, also supports a single use case, which is the result of multi-threaded coordination communication;
[0070] 4.执行用例吋, 通过串口通讯协议发送执行用例的指令, 等待 POS执行结束后[0070] 4. Execution use case 发送, sending an instruction to execute the use case through the serial communication protocol, waiting for the POS execution to end
, 获取测试结果, 上传测试结果到 TESTLINK上。 , get the test results, upload the test results to TESTLINK.
[0071] 本发明实施例的有益效果在于以下几个方面: [0072] 第一方面, 使用 XML-RPC协议通过远程来操作 TESTLINK, 实现用例的下载和 结果的上传; [0071] The beneficial effects of the embodiments of the present invention are as follows: [0072] In the first aspect, the TESTLINK is operated remotely by using the XML-RPC protocol to implement download of the use case and upload of the result;
[0073] 第二方面, 使用可靠的协议和 POS终端通讯, 控制 POS终端上的用例执行, 实 现自动测试的目的, 提高了测试效率;  [0073] In the second aspect, the use of a reliable protocol and POS terminal communication controls the execution of the use case on the POS terminal, achieves the purpose of automatic testing, and improves the testing efficiency;
[0074] 第三方面, 提供各种过滤、 排序、 批处理或单个执行用例, 大大方便了测试人 员按需执行用例, 减少了人力资源投入; [0074] In a third aspect, various filtering, sorting, batch processing, or single execution use cases are provided, which greatly facilitates testers to execute use cases on demand and reduces human resources investment;
[0075] 第四方面, 采用 JAVA实现的 POS终端自动测软件能兼容所有 windows系列系统[0075] In the fourth aspect, the automatic measurement software of the POS terminal implemented by JAVA is compatible with all windows series systems.
, 并支持 32bit和 64bit平台, 易于移植。 And support 32bit and 64bit platforms, easy to port.
[0076] 实施例二 Embodiment 2
[0077] 参考图 2, 图 2是本发明实施例提供的 POS终端自动测试方法中使用远程过程调 用 XML-RPC协议, 从基于 web的用例管理系统 TESTLINK上下载用例并显示的实 现流程图, 该 POS终端自动测试方法应用于终端设备, 如图 2所示, 包括以下步 骤:  Referring to FIG. 2, FIG. 2 is a flowchart showing an implementation of downloading a use case from a web-based use case management system TESTLINK using a remote procedure call XML-RPC protocol in an automatic test method for a POS terminal according to an embodiment of the present invention. The automatic test method of the POS terminal is applied to the terminal device, as shown in FIG. 2, including the following steps:
[0078] S201 , 选择项目、 计划、 版本;  [0078] S201, selecting an item, a plan, and a version;
[0079] S202, 点击 DownloadCase按钮; [0079] S202, click the DownloadCase button;
[0080] S203 , 检査连接是否成功; [0080] S203, checking whether the connection is successful;
[0081] S204, 幵始使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TES TLINK上下载用例;  [0081] S204. Start using a remote procedure call XML-RPC protocol to download a use case from the web-based use case management system TES TLINK;
[0082] S205 , 使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TESTLIN [0082] S205, using a remote procedure call XML-RPC protocol, from a web-based use case management system TESTLIN
K上下载用例完成后, 进入用例显示界面, 等待下载完成; After the download use case is completed on K, enter the use case display interface and wait for the download to complete;
[0083] S206, 主线程进入用例显示界面; [0083] S206, the main thread enters a use case display interface;
[0084] S207 , 后台线程继续把下载的用例写入文件。 [0084] S207. The background thread continues to write the downloaded use case to the file.
[0085] 在本发明实施例中, 根据服务器地址、 用户名和密钥, 连接到 TESTLINK, 如 果成功, 则继续获取项目、 计划和版本, 选择指定测试的版本后, 进行用例下 载, 等待用例下载完成后, 为了提高效率, 使用文件缓冲的技术, 避免了出现 多次从服务器重复下载, 带来不必要的网络负载的情况。  [0085] In the embodiment of the present invention, according to the server address, the user name and the key, connect to TESTLINK, if successful, continue to obtain the project, plan and version, select the version of the specified test, download the use case, and wait for the use case to be downloaded. Later, in order to improve efficiency, the file buffering technology is used to avoid repeated downloads from the server, resulting in unnecessary network load.
[0086] 参考图 3, 图 3是本发明实施例提供的 POS终端自动测试方法中过滤用例和排序 的实现流程图, 该 POS终端自动测试方法应用于终端设备, 如图 3所示, 包括以 少 ¾¾ : Referring to FIG. 3, FIG. 3 is a flowchart of an implementation of a filtering use case and a sorting in an automatic testing method of a POS terminal according to an embodiment of the present invention. The automatic testing method of the POS terminal is applied to a terminal device, as shown in FIG. Less 3⁄43⁄4 :
[0087] S301 , 选择模块;  [0087] S301, selecting a module;
[0088] S302, 选择模块的 API;  [0088] S302, selecting an API of the module;
[0089] S303 , 选择测试模式, 优先级, 测试类型, 测试成本, 执行状态;  [0089] S303, selecting a test mode, a priority, a test type, a test cost, and an execution state;
[0090] S304, 点击 Filter按钮;  [0090] S304, click the Filter button;
[0091] S305 , 判断用例是否符合筛选条件, 是则执行 S306, 否则结束;  [0091] S305. Determine whether the use case meets the screening condition, and if yes, execute S306, otherwise end;
[0092] S306, 过滤出来的用例默认全部选中;  [0092] S306, the filtered use cases are all selected by default;
[0093] S307 , 可以继续勾选掉不想测试的用例;  [0093] S307, you can continue to check the use cases that you do not want to test;
[0094] S308 , 最后点击 Next完成筛选;  [0094] S308, finally click Next to complete the screening;
[0095] S309, 选择排序关键字, 有 5个优先级属性;  [0095] S309, selecting a sort key, having five priority attributes;
[0096] S310, 点击排序按钮, 进行排序;  [0096] S310, click the sort button to sort;
[0097] S311 , 刪除原来显示的数据, 展示新排序的数据。  [0097] S311, deleting the originally displayed data, and displaying the newly sorted data.
[0098] 在本发明实施例中, 模块包括 API接口, API接口又包含测试用例 : [0098] In the embodiment of the present invention, the module includes an API interface, and the API interface further includes a test case :
身包括测试模式、 优先级、 测试类型、 测试吋间、 执行状态属性等等, 过滤功 能就使用这些特性进行过滤, 筛选出需要的用例, 由于这些用例需要通过 JAVA 的表格控件展示, 每行展示一条用例, 每行中包含一列复选框, 因此可以做进 一步的筛选动作, 最终选择出要执行的用例, 针对选择的用例可以选择 5个关键 字进行排序, 执行多级排序算法, 以实现用例的排序功能。  It includes test mode, priority, test type, test time, execution status attribute, etc. The filtering function uses these features to filter and filter out the required use cases. Since these use cases need to be displayed through JAVA's table control, each line is displayed. A use case, each row contains a checkbox, so you can do further filtering, and finally select the use case to be executed. You can select 5 keywords for sorting for the selected use case, and execute the multi-level sorting algorithm to implement the use case. Sorting function.
[0099] 实施例三 [0099] Embodiment 3
[0100] 参考图 4, 图 4是本发明实施例提供的 POS终端自动测试方法中执行测试的应用 流程图, 该方法应用于终端设备, 如图 4所示, 该方法可以包括以下步骤: [0101] 1.发送执行测试用例指令;  Referring to FIG. 4, FIG. 4 is a flowchart of an application for performing a test in an automatic test method of a POS terminal according to an embodiment of the present invention. The method is applied to a terminal device. As shown in FIG. 4, the method may include the following steps: 0101] 1. Send an execution test case instruction;
[0102] 2.发送 PC执行指令; [0102] 2. Sending a PC execution instruction;
[0103] 3.执行完 PC指令; [0103] 3. Execute the PC instruction;
[0104] 4.执行完测试用例指令。 [0104] 4. Execute the test case instruction.
[0105] 在本发明实施例中, 执行用例需要和 POS终端机进行串口通信, PC发送按照约 定的协议指令给 POS终端, POS终端接收到指令后执行指令, 执行用例过程中如 果需要 PC修改 POS终端测试的环境, POS终端则发送指令让 PC执行, PC执行后 返回给 POS终端, POS终端继续执行用例, 执行完成后返回结果给 PC。 [0105] In the embodiment of the present invention, the execution use case needs to perform serial communication with the POS terminal, and the PC sends the POS terminal according to the agreed protocol command, and the POS terminal executes the instruction after receiving the instruction, and if the PC is required to modify the POS during the execution of the use case In the terminal test environment, the POS terminal sends an instruction to the PC to execute, after the PC executes Returning to the POS terminal, the POS terminal continues to execute the use case, and returns the result to the PC after the execution is completed.
[0106] 在本发明实施例中, 针对 ATC软件实现, 在嵌入上述流程后, 为了保证通讯可 靠, 以及响应性等方面, 增加了比如心跳检测, 例如串口发送数据前, 先进行 心跳检测, 判断链路是否通顺; 最重要的是多线程实现, 包含四个线程, 分别 为主线程处理界面响应, 控制线程、 测试运行线程和串口线程合作进行用例执 行, 串口线程主要进行数据监听, 当监听到 POS端数据到来吋, 通知测试运行线 程接收并处理数据, 处理结束后, 通知控制运行线程记录结果信息, 然后幵始 增加下一条用例, 测试运行线程检测到后进行执行, 依次往复, 直观的说明请 参考图 5, 图 5是本发明实施例提供的 POS终端自动测试方法中线程的序列图, 该 方法应用于终端设备, 如图 5所示: In the embodiment of the present invention, for the ATC software implementation, after embedding the foregoing process, in order to ensure reliable communication and responsiveness, for example, heartbeat detection is added, for example, before the serial port transmits data, the heartbeat detection is performed first, and the judgment is performed. Whether the link is traversal; the most important is the multi-thread implementation, including four threads, respectively, the main thread processing interface response, control thread, test run thread and serial thread cooperation for use case execution, serial thread mainly for data monitoring, when listening After the POS data arrives, the test running thread is notified to receive and process the data. After the processing ends, the control running thread records the result information, and then starts to add the next use case. After the test running thread detects the execution, the process is repeated, and the instructions are repeated. Please refer to FIG. 5. FIG. 5 is a sequence diagram of a thread in an automatic test method for a POS terminal according to an embodiment of the present invention. The method is applied to a terminal device, as shown in FIG. 5:
[0107] 主线程启动测试队列中的幵始线程 TestQueue.start; [0107] The main thread starts the start thread in the test queue TestQueue.start;
[0108] 测试运行线程执行测试队列中的判空函数 TestQueue.isEmpty, 等待 Wait;  [0108] The test running thread executes the null function TestQueue.isEmpty in the test queue, waiting for Wait;
[0109] 串口线程幵始监听数据;  [0109] The serial port thread starts listening to the data;
[0110] 主线程接收到启动按钮点击的消息;  [0110] The main thread receives a message of a start button click;
[0111] 控制线程执行测试结果队列中的判空函数 TestQueue.isEmpty, 等待 Wait;  [0111] The control thread executes the null function TestQueue.isEmpty in the test result queue, waiting for Wait;
[0112] 控制线程执行测试队列中的增加队列函数 addLast, 通知测试运行线程幵始测试 [0112] The control thread executes the add queue function addLast in the test queue, notifying the test run thread to start testing
(notify) , 并等待 Wait, 正常流程循环;  (notify), and wait for Wait, normal process loop;
[0113] 测试运行线程执行测试队列中的判空函数 TestQueue.isEmpty, 发送执行测试命 令 sendDoTestCmd, 连接并等待 connection Wait; [0113] The test running thread executes the null function TestQueue.isEmpty in the test queue, sends an execution test command sendDoTestCmd, connects and waits for the connection Wait;
[0114] 串品线程向测试运行线程发送通知串口数据到来的消息; [0114] The serial thread sends a message to the test running thread to notify the arrival of the serial port data;
[0115] 测试运行线程接受结果并处理, 等待 Wait; [0115] The test run thread accepts the result and processes it, waiting for Wait;
[0116] 测试运行线程向控制线程发送通知接收结果的消息; [0116] the test running thread sends a message to the control thread to notify the reception result;
[0117] 控制线程接收结果消息, 返回控制线程执行测试队列中的增加队列函数 addLast , 直接测试完队列函数 addLast中的测试项。  [0117] The control thread receives the result message, returns the control thread to execute the add queue function addLast in the test queue, and directly tests the test item in the queue function addLast.
[0118] 在本发明实施例中, 执行完用例后,幵始进行结果上传的工作, 借助于 XML-RP C协议, 把对应的结果数据上传到 TESTLINK上, 实现中考虑多种情况, 例如是 否连接上 TESTLINK上, 要上传的用例是否是指定项目、 计划、 版本中的用例, 上传用例也分两步, 先上传测试结果和备注, 如果还有附件上传, 先获取刚才 上传的结果 ID, 然后再上传附件, 参考图 6, 图 6是本发明实施例提供的上传 试结果的应用流程图, 该方法应用于终端设备, 如图 6所示, 该方法可以包括以 少 ¾¾ : [0118] In the embodiment of the present invention, after the use case is executed, the result uploading operation is started, and the corresponding result data is uploaded to the TESTLINK by means of the XML-RP C protocol, and various situations are considered in the implementation, for example, Connect to TESTLINK, whether the use case to be uploaded is a use case in the specified project, plan, version, uploading the use case is also divided into two steps, first upload the test results and notes, if there are attachments uploaded, first get just Uploading the result ID, and then uploading the attachment, refer to FIG. 6. FIG. 6 is a flowchart of application of the upload test result according to the embodiment of the present invention. The method is applied to the terminal device. As shown in FIG. 6, the method may include 3⁄43⁄4 :
[0119] S601 , 点击结果上传按钮;  [0119] S601, click the result upload button;
[0120] S602, 判断 TESTLINK是否连接成功;  [0120] S602, determining whether the TESTLINK connection is successful;
[0121] S603 , 判断是否上传到这个项目、 计划、 构建和上传用户;  [0121] S603, determining whether to upload to the project, planning, constructing, and uploading the user;
[0122] S604, 如果导入界面, 显示结果上传, 则没有文件选择这个情况, 如果直接导 入, 需要选择要上传的结果文件;  [0122] S604, if the interface is imported, and the result is uploaded, there is no file selection. If directly imported, the result file to be uploaded needs to be selected;
[0123] S605 , 选择上传全部的结果数据, 还是最新数据;  [0123] S605, selecting to upload all the result data, or the latest data;
[0124] S606, 显示结果上传界面, 并展示导入的结果数据;  [0124] S606, displaying a result uploading interface, and displaying the imported result data;
[0125] S607 , 点击确认是否上传, 是则执行 S608, 否则结束;  [0125] S607, click to confirm whether to upload, if yes, execute S608, otherwise end;
[0126] S608 , 从 TESTLINK获取用例, 比对上传结果的数据;  [0126] S608, obtaining a use case from TESTLINK, and comparing the data of the uploaded result;
[0127] S609, 上传的数据正确, 是则执行 S610, 否则跳转至 S614;  [0127] S609, the uploaded data is correct, if yes, execute S610, otherwise jump to S614;
[0128] S610, 幵始上传测试结果和备注;  [0128] S610, uploading test results and remarks;
[0129] S611 , 判断上传是否成功, 是则执行 S612, 否则跳转至 S614;  [0129] S611, determining whether the upload is successful, if yes, executing S612, otherwise jumping to S614;
[0130] S612, 上传结果成功, 检测是否有附件, 如果有继续上传附件;  [0130] S612, the uploading result is successful, detecting whether there is an attachment, if the attachment is continued to be uploaded;
[0131] S613 , 判断附件上传是否成功, 是则结束, 否则执行 S614;  [0131] S613, determining whether the attachment upload is successful, and then ending, otherwise executing S614;
[0132] S614, 提示错误返回。  [0132] S614, prompting an error to return.
[0133] 本发明实施例在实施例一、 二的基础上增加了执行用例和上传测试结果的流程 , 通过多线程通讯方式, 能保证终端设备和 POS终端的通讯可靠, POS终端能及 吋响应, 利用提高测试效率。  [0133] The embodiment of the present invention adds the execution case and the process of uploading the test result on the basis of the first and second embodiments. The multi-thread communication mode ensures that the communication between the terminal device and the POS terminal is reliable, and the POS terminal can respond to the response. , use to improve test efficiency.
应理解, 上述实施例一、 二、 三中各步骤的序号的大小并不意味着执行顺序的 先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例 的实施过程构成任何限定。  It should be understood that the size of the sequence numbers of the steps in the first, second, and third embodiments does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be implemented in the embodiments of the present invention. The process constitutes any limitation.
[0135] 实施例四  Embodiment 4
[0136] 对应于上文实施例一、 二、 三所述的方法, 参考图 7, 图 7是本发明实施例提供 的 POS终端自动测试装置的结构框图, 应用于终端设备, 终端设备包括但不限于 计算机、 移动电话、 口袋计算机 (Pocket Personal Computer, PPC) 、 掌上电脑 、 笔记本电脑、 个人数字助理 (Personal Digital Assistant, PDA) 、 MP4、 MP3[0136] Corresponding to the methods described in Embodiments 1, 2, and 3 above, refer to FIG. 7. FIG. 7 is a structural block diagram of an automatic test apparatus for a POS terminal according to an embodiment of the present invention, which is applied to a terminal device, where the terminal device includes Not limited to computers, mobile phones, pocket computers (PPC), handheld computers , laptop, personal digital assistant (PDA), MP4, MP3
。 为便于说明, 仅示出了与本实施例相关的部分。 为了便于说明, 仅示出了与 本实施例相关的部分。 . For the convenience of explanation, only the parts related to the present embodiment are shown. For the convenience of explanation, only the parts related to the present embodiment are shown.
[0137] 参照图 7, 该 POS终端自动测试装置包括: [0137] Referring to FIG. 7, the automatic test device of the POS terminal includes:
[0138] 下载模块 71, 用于使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系 统 TESTLINK上下载用例;  [0138] The downloading module 71 is configured to download a use case from the web-based use case management system TESTLINK by using a remote procedure call XML-RPC protocol;
[0139] 筛选模块 72, 用于获取选择的测试属性, 根据选择的测试属性, 在下载的用例 中筛选出要执行的用例;  [0139] The filtering module 72 is configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
[0140] 排序模块 73, 用于在要执行的用例中选择关键词进行排序, 得到执行顺序; [0140] The sorting module 73 is configured to select keywords in the use cases to be executed for sorting, and obtain an execution order;
[0141] 测试模块 74, 用于根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执行结束后, 上传测试结果。 [0141] The test module 74 is configured to control the POS terminal batch processing or individually execute the use case according to the execution sequence, and upload the test result after the execution ends.
[0142] 作为本实施例的一种实现方式, 在该 POS终端自动测试装置中, 所述筛选模块 , 具体用于显示测试属性列表, 所述测试属性列表包括测试模式、 优先级、 测 试类型、 测试吋间、 执行状态中的至少一种测试属性, 根据选择操作, 获取选 择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出用例; 所述排序 模块, 具体用于选择关键词, 采用选择的关键词以及多级排序方式, 对要执行 的用例进行排序, 得到执行顺序, 并显示排序后的用例。  [0142] As an implementation manner of this embodiment, in the POS terminal automatic testing device, the screening module is specifically configured to display a test attribute list, where the test attribute list includes a test mode, a priority, a test type, and Testing at least one test attribute in the inter-time, execution state, obtaining the selected test attribute according to the selection operation, and filtering the use case in the downloaded use case according to the selected test attribute; the sorting module is specifically used for selecting a keyword Use the selected keywords and multi-level sorting methods to sort the use cases to be executed, get the execution order, and display the sorted use cases.
[0143] 作为本实施例的一种实现方式, 在该 POS终端自动测试装置中, 所述测试模块 , 用于根据执行顺序, 通过串口通讯协议或并口通讯协议, 向 POS终端发送执 行用例的指令, 等待 POS终端执行完要执行的用例后, 获取测试结果, 上传测 试结果到 TESTLINK上; 或者,  [0143] In an implementation manner of the embodiment, in the automatic test device of the POS terminal, the test module is configured to send, according to an execution sequence, an instruction to execute a use case to a POS terminal by using a serial communication protocol or a parallel port communication protocol. After waiting for the POS terminal to execute the use case to be executed, obtain the test result, and upload the test result to TESTLINK; or
[0144] 所述测试模块包括:  [0144] The test module includes:
[0145] 检测单元, 用于采用心跳检测, 判断自身和 POS终端的通信链路是否正常连接  [0145] a detecting unit, configured to detect whether the communication link between the self and the POS terminal is normally connected by using heartbeat detection
[0146] 监听单元, 用于正常连接后, 根据执行顺序, 通过串口通讯协议, 向 POS终端 发送执行用例的指令, 利用串口线程监听 POS终端数据; [0146] After the monitoring unit is used for normal connection, according to the execution sequence, the serial port communication protocol is used to send an instruction to execute the use case to the POS terminal, and the serial port thread is used to monitor the POS terminal data;
[0147] 记录单元, 用于当监听到 POS终端数据到来吋, 通知所述测试运行线程接收并 处理 POS终端数据, 得到测试结果后, 通知控制运行线程记录测试结果; [0148] 测试单元, 用于记录完毕后, 根据执行顺序增加下一条要执行的用例, 依次往 复; 等待 POS [0147] a recording unit, configured to notify the test running thread to receive and process the POS terminal data after the POS terminal data is detected, and after receiving the test result, notify the control running thread to record the test result; [0148] The test unit, after the recording is completed, increases the next use case to be executed according to the execution order, and sequentially reciprocates; waits for the POS
终端执行完要执行的用例后, 获取测试结果, 上传测试结果到 TESTLINK上。  After the terminal executes the use case to be executed, the test result is obtained, and the test result is uploaded to TESTLINK.
[0149] 本发明实施例的有益效果在于两方面, 一方面, 通过测试属性, 筛选出要执行 的用例, 实现了按需求执行用例, 减少了人力资源投入, 提高了测试效率, 另 一方面, 通过使用可靠的协议和 POS终端通讯, 控制 POS终端上的用例执行, 实 现了自动测试的目的。 [0149] The beneficial effects of the embodiments of the present invention are two aspects. On the one hand, by using the test attributes, the use cases to be executed are selected, the use cases are executed on demand, the human resources input is reduced, and the test efficiency is improved. On the other hand, By using a reliable protocol and POS terminal communication, the use case execution on the POS terminal is controlled, and the purpose of automatic testing is achieved.
[0150] 实施例五  [0150] Embodiment 5
[0151] 图 8是本发明实施例提供的 POS终端自动测试装置 /终端设备的示意图。 如图 8所 示, 该实施例的 POS终端自动测试装置 /终端设备 8包括: 处理器 80、 存储器 81以 及存储在所述存储器 81中并可在所述处理器 80上运行的计算机程序 82, 例如 POS 终端自动测试程序。 所述处理器 80执行所述计算机程序 82吋实现上述各个 POS终 端自动测试方法实施例中的步骤, 例如图 1所示的步骤 101至 104。 或者, 所述处 理器 80执行所述计算机程序 82吋实现上述各装置实施例中各模块 /单元的功能, 例如图 7所示模块 71至 74的功能。  8 is a schematic diagram of an automatic test device/terminal device of a POS terminal according to an embodiment of the present invention. As shown in FIG. 8, the POS terminal automatic test device/terminal device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and operable on the processor 80, For example, the POS terminal automatically tests the program. The processor 80 executes the computer program 82 to implement the steps in the above embodiments of the various POS terminal automatic test methods, such as steps 101 to 104 shown in FIG. Alternatively, the processor 80 executes the computer program 82 to implement the functions of the modules/units in the above-described respective device embodiments, such as the functions of the modules 71 to 74 shown in FIG.
[0152] 示例性的, 所述计算机程序 82可以被分割成一个或多个模块 /单元, 所述一个 或者多个模块 /单元被存储在所述存储器 81中, 并由所述处理器 80执行, 以完成 本发明。 所述一个或多个模块 /单元可以是能够完成特定功能的一系列计算机程 序指令段, 该指令段用于描述所述计算机程序 82在所述 POS终端自动测试装置 / 终端设备 8中的执行过程。 例如, 所述计算机程序 82可以被分割成下载模、 筛选 模块、 排序模块、 测试模块 (虚拟装置中的模块) , 各模块具体功能如下: [0152] Illustratively, the computer program 82 may be partitioned into one or more modules/units, which are stored in the memory 81 and executed by the processor 80. To complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 82 in the POS terminal automatic test device/terminal device 8. . For example, the computer program 82 can be divided into a download module, a screening module, a sorting module, and a test module (modules in a virtual device). The specific functions of each module are as follows:
[0153] 下载模块, 用于使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TESTLINK上下载用例; [0153] a download module for downloading a use case from the web-based use case management system TESTLINK using a remote procedure call XML-RPC protocol;
[0154] 筛选模块, 用于获取选择的测试属性, 根据选择的测试属性, 在下载的用例中 筛选出要执行的用例;  [0154] a screening module, configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
[0155] 排序模块, 用于在要执行的用例中选择关键词进行排序, 得到执行顺序;  [0155] a sorting module, configured to select keywords in the use cases to be executed for sorting, and obtain an execution order;
[0156] 测试模块, 用于根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执 行结束后, 上传测试结果。 [0157] 所述 POS终端自动测试装置 /终端设备 8可以是桌上型计算机、 笔记本、 掌上电 脑及云端服务器等计算设备。 所述 POS终端自动测试装置 /终端设备可包括, 但 不仅限于, 处理器 80、 存储器 81。 本领域技术人员可以理解, 图 8仅仅是 POS终 端自动测试装置 /终端设备 8的示例, 并不构成对 POS终端自动测试装置 /终端设备 8的限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的 部件, 例如所述 POS终端自动测试装置 /终端设备还可以包括输入输出设备、 网 络接入设备、 总线等。 [0156] The test module is configured to control the POS terminal batch processing or the single execution of the use case according to the execution order, and upload the test result after the execution ends. [0157] The POS terminal automatic test device/terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The POS terminal automatic test device/terminal device may include, but is not limited to, a processor 80 and a memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of the POS terminal automatic test device/terminal device 8, and does not constitute a limitation of the POS terminal automatic test device/terminal device 8, and may include more or less than the illustration. Components, or combinations of certain components, or different components, such as the POS terminal automatic test device/terminal device may also include input and output devices, network access devices, buses, and the like.
[0158] 所称处理器 80可以是中央处理单元 (Central Processing Unit, CPU) , 还可以是其 他通用处理器、 数字信号处理器(Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列  The processor 80 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-to-use programmable gate array
(Field-Programmable Gate Array, FPGA)或者其他可编程逻辑器件、 分立门或者 晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等。  (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
[0159] 所述存储器 81可以是所述 POS终端自动测试装置 /终端设备 8的内部存储单元, 例如 POS终端自动测试装置 /终端设备 8的硬盘或内存。 所述存储器 81也可以是所 述 POS终端自动测试装置 /终端设备 8的外部存储设备, 例如所述 POS终端自动测 试装置 /终端设备 8上配备的插接式硬盘, 智能存储卡 (Smart Media Card, SMC) , 安全数字 (Secure Digital, SD) 卡, 闪存卡 (Flash Card) 等。 进一步地, 所述 存储器 81还可以既包括所述 POS终端自动测试装置 /终端设备 8的内部存储单元也 包括外部存储设备。 所述存储器 81用于存储所述计算机程序以及所述 POS终端自 动测试装置 /终端设备所需的其他程序和数据。 所述存储器 81还可以用于暂吋地 存储已经输出或者将要输出的数据。 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 仅以上述各功能单元、 模块的划分进行举例说明, 实 际应用中, 可以根据需要而将上述功能分配由不同的功能单元、 模块完成, 即 将所述装置的内部结构划分成不同的功能单元或模块, 以完成以上描述的全部 或者部分功能。 实施例中的各功能单元、 模块可以集成在一个处理单元中, 也 可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中 , 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形 式实现。 另外, 各功能单元、 模块的具体名称也只是为了便于相互区分, 并不 用于限制本申请的保护范围。 上述系统中单元、 模块的具体工作过程, 可以参 考前述方法实施例中的对应过程, 在此不再赘述。 [0159] The memory 81 may be an internal storage unit of the POS terminal automatic test device/terminal device 8, such as a hard disk or a memory of the POS terminal automatic test device/terminal device 8. The memory 81 may also be an external storage device of the POS terminal automatic test device/terminal device 8, for example, a plug-in hard disk provided on the POS terminal automatic test device/terminal device 8, and a smart memory card (Smart Media Card) , SMC), Secure Digital (SD) card, Flash Card, etc. Further, the memory 81 may also include both an internal storage unit of the POS terminal automatic test device/terminal device 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the POS terminal automatic test device/terminal device. The memory 81 can also be used to temporarily store data that has been output or is about to be output. It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware. Form implementation, you can also use the shape of the software functional unit Implementation. In addition, the specific names of the functional units and modules are only for the purpose of distinguishing from each other, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit and the module in the foregoing system, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
[0160] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述或 记载的部分, 可以参见其它实施例的相关描述。  [0160] In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in the specific embodiments may be referred to the related descriptions of other embodiments.
[0161] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。  [0161] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
[0162] 在本发明所提供的实施例中, 应该理解到, 所揭露的装置 /终端设备和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置 /终端设备实施例仅仅是示 意性的, 例如, 所述模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现 吋可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一 个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通讯连接可以是通过一些接口, 装置或单元的间接耦合或 通讯连接, 可以是电性, 机械或其它的形式。  [0162] In the embodiments provided by the present invention, it should be understood that the disclosed device/terminal device and method may be implemented in other manners. For example, the device/terminal device embodiment described above is merely illustrative. For example, the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not implemented. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
[0163] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0163] The unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0164] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式 实现。  [0164] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0165] 所述集成的模块 /单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明实现上述实施例方法中的全部或部分流程, 也可以通过计算机程序来指令相 关的硬件来完成, 所述的计算机程序可存储于一计算机可读存储介质中, 该计 算机程序在被处理器执行吋, 可实现上述各个方法实施例的步骤。 。 其中, 所 述计算机程序包括计算机程序代码, 所述计算机程序代码可以为源代码形式、 对象代码形式、 可执行文件或某些中间形式等。 所述计算机可读介质可以包括[0165] The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the process in the above embodiment method, and can also instruct the phase through a computer program. The computer program can be stored in a computer readable storage medium, and the computer program, after being executed by the processor, can implement the steps of the foregoing method embodiments. . The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form. The computer readable medium can include
: 能够携带所述计算机程序代码的任何实体或装置、 记录介质、 u盘、 移动硬盘: any entity or device capable of carrying the computer program code, recording medium, u disk, mobile hard disk
、 磁碟、 光盘、 计算机存储器、 只读存储器 (ROM, Read-Only Memory) 、 随 机存取存储器 (RAM, Random Access Memory) 、 电载波信号、 电信信号以及 软件分发介质等。 需要说明的是, 所述计算机可读介质包含的内容可以根据司 法管辖区内立法和专利实践的要求进行适当的增减, 例如在某些司法管辖区, 根据立法和专利实践, 计算机可读介质不包括是电载波信号和电信信号。 , Disk, CD, computer memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
[0166] 所述装置 /终端设备可以是桌上型计算机、 笔记本、 掌上电脑及云端服务器等 计算设备。 所述装置 /终端设备可包括, 但不仅限于, 处理器、 存储器。 本领域 技术人员可以理解, 所述示意图仅仅是装置 /终端设备的示例, 并不构成对装置 / 终端设备的限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或 者不同的部件, 例如所述装置 /终端设备还可以包括输入输出设备、 网络接入设 备、 总线等。 [0166] The device/terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The device/terminal device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of a device/terminal device, and does not constitute a limitation of the device/terminal device, and may include more or less components than those illustrated, or may be combined with some components, or Different components, such as the device/terminal device, may also include input and output devices, network access devices, buses, and the like.
[0167] 所称处理器可以是中央处理单元 (Central Processing Unit, CPU) , 还可以是其他 通用处理器、 数字信号处理器(Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列  [0167] The so-called processor may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC). ), ready-made programmable gate array
(Field-Programmable Gate Array , FPGA)或者其他可编程逻辑器件、 分立门或者 晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等, 所述处理器是所述装置 /终端设备的控制中心, 利用各种接口和线路连接整个装置 /终端设备的各个部分。  (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor is a control center of the device/terminal device, and connects the entire device/terminal device by using various interfaces and lines. Various parts.
[0168] 所述存储器可用于存储所述计算机程序和 /或模块, 所述处理器通过运行或执 行存储在所述存储器内的计算机程序和 /或模块, 以及调用存储在存储器内的数 据, 实现所述装置 /终端设备的各种功能。 所述存储器可主要包括存储程序区和 存储数据区, 其中, 存储程序区可存储操作系统、 至少一个功能所需的应用程 序 (比如声音播放功能、 图像播放功能等) 等; 存储数据区可存储根据手机的 使用所创建的数据 (比如音频数据、 电话本等) 等。 此外, 存储器可以包括高 速随机存取存储器, 还可以包括非易失性存储器, 例如硬盘、 内存、 插接式硬 盘, 智能存储卡 (Smart Media Card, SMC) , 安全数字 (Secure Digital, SD) 卡 , 闪存卡 (Flash Card) 、 至少一个磁盘存储器件、 闪存器件、 或其他易失性固 态存储器件。 [0168] The memory can be used to store the computer program and/or module, the processor being implemented by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory. Various functions of the device/terminal device. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. According to the phone Use the created data (such as audio data, phone book, etc.). In addition, the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, at least one disk storage device, flash device, or other volatile solid-state storage device.
以上所述实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各 实施例技术方案的精神和范围, 均应包含在本发明的保护范围之内。  The above described embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of protection of the present invention.

Claims

权利要求书 Claim
[权利要求 1] 一种 POS终端自动测试方法, 其特征在于, 包括:  [Claim 1] A method for automatically testing a POS terminal, comprising:
使用远程过程调用 XML-RPC协议, 从基于 web的用例管理系统 TEST LINK上下载用例;  Use the remote procedure call XML-RPC protocol to download use cases from the web-based use case management system TEST LINK;
获取选择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出 要执行的用例;  Obtain the selected test attribute, and select the use case to be executed in the downloaded use case according to the selected test attribute;
在要执行的用例中选择关键词进行排序, 得到执行顺序;  Select keywords in the use cases to be executed for sorting, and get the execution order;
根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执行结束 后, 上传测试结果。  According to the execution order, the POS terminal batch is controlled or the use case is executed individually, and after the execution ends, the test result is uploaded.
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 所述获取选择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出要执行的用例, 具体为 显示测试属性列表, 所述测试属性列表包括测试模式、 优先级、 测试 类型、 测试吋间、 执行状态中的至少一种测试属性;  [Claim 2] The method according to claim 1, wherein the obtaining the selected test attribute, according to the selected test attribute, screening the use case to be executed in the downloaded use case, specifically displaying the test attribute list The test attribute list includes at least one of a test mode, a priority, a test type, a test time, and an execution state;
根据选择操作, 获取选择的测试属性;  Obtain the selected test attribute according to the selection operation;
根据选择的测试属性, 在下载的用例中筛选出用例。  Use the selected use cases in the downloaded use cases based on the selected test attributes.
如权利要求 1所述的方法, 其特征在于, 所述在要执行的用例中选择 关键词进行排序, 得到执行顺序, 具体为:  The method according to claim 1, wherein the selecting a keyword to perform sorting in the use case to be executed, and obtaining an execution order, specifically:
选择关键词;  Select keywords;
采用选择的关键词以及多级排序方式, 对要执行的用例进行排序, 得 到执行顺序, 并显示排序后的用例。  Using the selected keywords and multi-level sorting methods, the use cases to be executed are sorted, the execution order is obtained, and the sorted use cases are displayed.
如权利要求 1至 3任一所述的方法, 其特征在于, 所述根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执行结束后, 上传测试结 果, 具体为:  The method according to any one of claims 1 to 3, wherein the controlling the POS terminal batch processing or the single execution of the use case according to the execution order, after the execution ends, uploading the test result, specifically:
根据执行顺序, 通过串口通讯协议或并口通讯协议, 向 POS终端发送 执行用例的指令, 等待 POS终端执行完要执行的用例后, 获取测试结 果, 上传测试结果到 TESTLINK上。  According to the execution sequence, the serial communication protocol or the parallel port communication protocol is used to send an instruction to execute the use case to the POS terminal. After the POS terminal executes the use case to be executed, the test result is obtained, and the test result is uploaded to the TESTLINK.
如权利要求 1至 3任一所述的方法, 其特征在于, 所述根据执行顺序, 控制 POS终端批处理或单个执行所述用例, 执行结束后, 上传测试结 果, 具体为: The method according to any one of claims 1 to 3, characterized in that, according to the execution order, Control the POS terminal batch processing or single execution of the use case. After the execution ends, upload the test result, specifically:
采用心跳检测, 判断自身和 POS终端的通信链路是否正常连接; 正常连接后, 根据执行顺序, 通过串口通讯协议, 向 POS终端发送执 行用例的指令, 利用串口线程监听 POS终端数据; 当监听到 POS  The heartbeat detection is used to determine whether the communication link between the POS terminal and the POS terminal is normally connected. After the normal connection, according to the execution sequence, the serial communication protocol is used to send an instruction to execute the use case to the POS terminal, and the serial port thread is used to monitor the POS terminal data; POS
终端数据到来吋, 通知所述测试运行线程接收并处理 POS终端数据, 得到测试结果后, 通知控制运行线程记录测试结果;  After the terminal data arrives, the test running thread is notified to receive and process the POS terminal data, and after obtaining the test result, the control running thread is notified to record the test result;
记录完毕后, 根据执行顺序增加下一条要执行的用例, 依次往复; 等待 POS终端执行完要执行的用例后, 获取测试结果, 上传测试结果 至 IjTESTLINK上。  After the recording is completed, add the next use case to be executed according to the execution order, and then go back and forth; wait for the POS terminal to execute the use case to be executed, obtain the test result, and upload the test result to IjTESTLINK.
[权利要求 6] —种 POS终端自动测试装置, 其特征在于, 包括:  [Claim 6] The automatic test device for a POS terminal, comprising:
下载模块, 用于使用远程过程调用 XML-RPC协议, 从基于 web的用 例管理系统 TESTLINK上下载用例;  A download module for downloading use cases from the web-based use case management system TESTLINK using the remote procedure call XML-RPC protocol;
筛选模块, 用于获取选择的测试属性, 根据选择的测试属性, 在下载 的用例中筛选出要执行的用例;  a screening module, configured to obtain the selected test attribute, and select a use case to be executed in the downloaded use case according to the selected test attribute;
排序模块, 用于在要执行的用例中选择关键词进行排序, 得到执行顺 序;  a sorting module, configured to select keywords in the use cases to be executed for sorting, and obtain an execution order;
测试模块, 用于根据执行顺序, 控制 POS终端批处理或单个执行所述 用例, 执行结束后, 上传测试结果。  The test module is configured to control the POS terminal batch processing or the single execution of the use case according to the execution order, and upload the test result after the execution ends.
[权利要求 7] 如权利要求 6所述的装置, 其特征在于, 所述筛选模块, 具体用于显 示测试属性列表, 所述测试属性列表包括测试模式、 优先级、 测试类 型、 测试吋间、 执行状态中的至少一种测试属性, 根据选择操作, 获 取选择的测试属性, 根据选择的测试属性, 在下载的用例中筛选出用 例; 所述排序模块, 具体用于选择关键词, 采用选择的关键词以及多 级排序方式, 对要执行的用例进行排序, 得到执行顺序, 并显示排序 后的用例。 [Claim 7] The device according to claim 6, wherein the screening module is specifically configured to display a test attribute list, where the test attribute list includes a test mode, a priority, a test type, a test time, Performing at least one test attribute in the execution state, obtaining a selected test attribute according to the selection operation, and filtering the use case in the downloaded use case according to the selected test attribute; the sorting module is specifically used for selecting a keyword, adopting the selected Keywords and multi-level sorting methods, sorting the use cases to be executed, obtaining the execution order, and displaying the sorted use cases.
[权利要求 8] 如权利要求 6所述的装置, 其特征在于, 所述测试模块, 用于根据执行顺序, 通过串口通讯协议或并口通讯协 议, 向 POS终端发送执行用例的指令, 等待 POS终端执行完要执行 的用例后, 获取测试结果, 上传测试结果到 TESTLINK上; 或者, 所述测试模块包括: [Claim 8] The apparatus according to claim 6, wherein The test module is configured to send an instruction to execute the use case to the POS terminal according to the execution sequence, through the serial communication protocol or the parallel port communication protocol, wait for the POS terminal to execute the use case to be executed, obtain the test result, and upload the test result to the TESTLINK. Or, the test module includes:
检测单元, 用于采用心跳检测, 判断自身和 POS终端的通信链路是否 正常连接;  a detecting unit, configured to use heartbeat detection to determine whether a communication link between itself and the POS terminal is normally connected;
监听单元, 用于正常连接后, 根据执行顺序, 通过串口通讯协议, 向 POS终端发送执行用例的指令, 利用串口线程监听 POS终端数据; 记录单元, 用于当监听到 POS终端数据到来吋, 通知所述测试运行线 程接收并处理 POS终端数据, 得到测试结果后, 通知控制运行线程记 录测试结果;  The monitoring unit, after being used for normal connection, sends an instruction to execute the use case to the POS terminal according to the execution sequence, and uses the serial port thread to listen to the POS terminal data; the recording unit is configured to notify the POS terminal when the data arrives, and notify The test running thread receives and processes the POS terminal data, and after obtaining the test result, notifies the control running thread to record the test result;
测试单元, 用于记录完毕后, 根据执行顺序增加下一条要执行的用例 Test unit, after the recording is completed, add the next use case to be executed according to the execution order
, 依次往复; 等待 POS终端执行完要执行的用例后, 获取测试结果, 上传测试结果到 TESTLINK上。 , in turn, after waiting for the POS terminal to execute the use case to be executed, obtain the test result, and upload the test result to TESTLINK.
[权利要求 9] 一种 POS终端自动测试装置 /终端设备, 包括存储器、 处理器以及存 储在所述存储器中并可在所述处理器上运行的计算机程序, 其特征在 于, 所述处理器执行所述计算机程序吋实现如权利要求 1至 5任一项所 述方法的步骤。 [Claim 9] A POS terminal automatic test device/terminal device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes The computer program implements the steps of the method of any one of claims 1 to 5.
[权利要求 10] —种计算机可读存储介质, 所述计算机可读存储介质存储有计算机程 序, 其特征在于, 所述计算机程序被处理器执行吋实现如权利要求 1 至 5任一项所述方法的步骤。  [Claim 10] A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor, implementing the method of any one of claims 1 to 5 The steps of the method.
PCT/CN2017/095891 2017-06-12 2017-08-03 Pos terminal automatic testing method and device WO2018227735A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710440337.8A CN107391361B (en) 2017-06-12 2017-06-12 Automatic POS terminal testing method and device
CN201710440337.8 2017-06-12

Publications (1)

Publication Number Publication Date
WO2018227735A1 true WO2018227735A1 (en) 2018-12-20

Family

ID=60333288

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095891 WO2018227735A1 (en) 2017-06-12 2017-08-03 Pos terminal automatic testing method and device

Country Status (2)

Country Link
CN (1) CN107391361B (en)
WO (1) WO2018227735A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209590B (en) * 2019-06-05 2023-04-21 山东科技大学 Automatic testing method and system for intelligent robot
CN113778771B (en) * 2021-09-14 2023-07-18 百富计算机技术(深圳)有限公司 Terminal testing method, system and storage medium
CN114328218A (en) * 2021-12-28 2022-04-12 宁夏隆基宁光仪表股份有限公司 Method for controlling automatic execution of intelligent instrument test program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106138A (en) * 2011-11-15 2013-05-15 阿里巴巴集团控股有限公司 Method and device for synchronization of test case and test script
CN104331360A (en) * 2013-07-23 2015-02-04 上海斐讯数据通信技术有限公司 Automatic testing platform
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal
US20150261696A1 (en) * 2014-03-14 2015-09-17 Google Inc. Universal serial bus emulation of peripheral devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598874A (en) * 2017-02-08 2017-04-26 郑州云海信息技术有限公司 Method and device for automatically testing software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106138A (en) * 2011-11-15 2013-05-15 阿里巴巴集团控股有限公司 Method and device for synchronization of test case and test script
CN104331360A (en) * 2013-07-23 2015-02-04 上海斐讯数据通信技术有限公司 Automatic testing platform
US20150261696A1 (en) * 2014-03-14 2015-09-17 Google Inc. Universal serial bus emulation of peripheral devices
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal

Also Published As

Publication number Publication date
CN107391361B (en) 2020-07-28
CN107391361A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
US9665841B2 (en) Cross-platform application framework
US9619304B2 (en) Automatic connections between application components
WO2018227736A1 (en) Test construction method and device
JP2019520649A (en) Process visualization platform
TW200421776A (en) Method, system, and program for managing devices in a network
WO2021008334A1 (en) Data binding method, apparatus, and device of mini program, and storage medium
US11620034B2 (en) Systems and methods for providing tab previews via an operating system user interface
CN109597900A (en) The management of local and remote media item
WO2013013559A1 (en) Screen unlocking method and device thereof
CN110244963B (en) Data updating method and device and terminal equipment
WO2018227735A1 (en) Pos terminal automatic testing method and device
US20150186367A1 (en) Re-use of binaries for multiple user accounts
US9588874B2 (en) Remote device automation using a device services bridge
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN108604331B (en) Information reminding method and mobile device
WO2016106675A1 (en) Device, method and graphical user interface for mobile application interface element
CN107506200A (en) A kind of screen content switching method, terminal and computer-readable recording medium
WO2017092680A1 (en) Electronic device and method for deleting object
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
JP6359566B2 (en) Market price distinction for in-app software billing
CN110134478B (en) Scene conversion method and device of panoramic scene and terminal equipment
US20150074530A1 (en) Method for controlling content in mobile electronic device
CN107580030A (en) A kind of data managing method, device and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17913699

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17913699

Country of ref document: EP

Kind code of ref document: A1