[go: up one dir, main page]

CN110569180A - A test system and method for the transaction function of an automatic ticket vending machine - Google Patents

A test system and method for the transaction function of an automatic ticket vending machine Download PDF

Info

Publication number
CN110569180A
CN110569180A CN201910735437.2A CN201910735437A CN110569180A CN 110569180 A CN110569180 A CN 110569180A CN 201910735437 A CN201910735437 A CN 201910735437A CN 110569180 A CN110569180 A CN 110569180A
Authority
CN
China
Prior art keywords
test
computer
simulation
vending machine
automatic ticket
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201910735437.2A
Other languages
Chinese (zh)
Inventor
马子彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai University of Engineering Science
Original Assignee
Shanghai University of Engineering Science
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 Shanghai University of Engineering Science filed Critical Shanghai University of Engineering Science
Priority to CN201910735437.2A priority Critical patent/CN110569180A/en
Publication of CN110569180A publication Critical patent/CN110569180A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • 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/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B1/00Machines for printing and issuing tickets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及一种自动售票机交易功能的测试系统和方法,该系统包括:仿真计算机,在仿真计算机内安装有TVM模块仿真程序,用于模拟自动售票机各输入输出硬件;测试计算机,在测试计算机内安装有测试程序,用于运行预设的测试用例并生成测试结果;所述的测试计算机、仿真计算机和自动售票机的工控机两两之间通过TCP/IP网络连接,所述仿真计算机还通过串口连接工控机。与现有技术相比,本发明通过计算机代替人工进行测试,实现了自动化,能够极大提高测试的效率和完整性。

The invention relates to a test system and method for the transaction function of an automatic ticket vending machine. The system includes: a simulation computer, in which a TVM module simulation program is installed to simulate the input and output hardware of the automatic ticket vending machine; A test program is installed in the computer, which is used to run preset test cases and generate test results; the test computer, the simulation computer and the industrial computer of the automatic ticket vending machine are connected in pairs through a TCP/IP network, and the simulation computer It is also connected to the industrial computer through the serial port. Compared with the prior art, the present invention uses a computer to replace manual testing, realizes automation, and can greatly improve the efficiency and completeness of testing.

Description

一种自动售票机交易功能的测试系统和方法A test system and method for the transaction function of an automatic ticket vending machine

技术领域technical field

本发明涉及一种自动售票机检测领域,尤其是涉及一种自动售票机交易功能的测试系统和方法。The invention relates to the field of automatic ticket vending machine detection, in particular to a testing system and method for the transaction function of an automatic ticket vending machine.

背景技术Background technique

轨道交通的自动售票机(TVM)在接入线网投用之前,必须进行功能测试,以确保功能完备、交易完整、正常使用。Before the automatic ticket vending machine (TVM) of rail transit is put into use on the access line network, a functional test must be carried out to ensure that the function is complete, the transaction is complete, and it can be used normally.

目前的测试方法是通过人工购买车票的方法来测试功能的完整性和交易的正确性。但是由于一个车站的自动售票机要能购买通达全线网每个车站的车票,车站数量可达数百;可用现金的种类(如1元硬币、5元、10元、20元纸币)较多;购买车票的数量不同(1张、2张、3张……);这就形成多达数万个交易组合。因此采用人工方式来进行测试存在以下问题:1、费时费力。需要大量的人力和时间去做;2、漏测项目。完成全部测试几乎是不可能的,只能选择性的来做,就可能漏掉出错的测试项;3、交易对账繁琐难度大。为核对交易的正确性,各种交易需要对帐,即接受的现金、吐出的票卡、找出的零钱,需要正确无误。人工交易与人工核对,极其繁琐、难度巨大。The current test method is to test the integrity of the function and the correctness of the transaction by manually purchasing the ticket. But because the automatic ticket vending machine of a station needs to be able to buy the ticket of every station of Tongtong full-line network, the number of stations can reach hundreds; There are many types of available cash (as 1 yuan coin, 5 yuan, 10 yuan, 20 yuan notes); The number of purchased tickets is different (1, 2, 3...); this forms up to tens of thousands of transaction combinations. Therefore, there are the following problems in testing manually: 1. Time-consuming and labor-intensive. It takes a lot of manpower and time to do it; 2. Missing items. It is almost impossible to complete all the tests. It can only be done selectively, and the wrong test items may be missed; 3. The transaction reconciliation is cumbersome and difficult. In order to check the correctness of the transaction, various transactions need to be reconciled, that is, the cash accepted, the ticket card spit out, and the change found need to be correct. Manual transactions and manual checks are extremely cumbersome and difficult.

发明内容Contents of the invention

本发明的目的就是为了克服上述现有技术存在的缺陷而提供一种自动售票机交易功能的测试系统和方法。The object of the present invention is to provide a test system and method for the transaction function of an automatic ticket vending machine in order to overcome the above-mentioned defects in the prior art.

本发明的目的可以通过以下技术方案来实现:The purpose of the present invention can be achieved through the following technical solutions:

一种自动售票机交易功能的测试系统,包括:A test system for the transaction function of an automatic ticket vending machine, including:

仿真计算机,在仿真计算机内安装有TVM模块仿真程序,用于模拟自动售票机各输入输出硬件;A simulation computer, in which a TVM module simulation program is installed to simulate the input and output hardware of the automatic ticket vending machine;

测试计算机,在测试计算机内安装有测试程序,用于运行预设的测试用例并生成测试结果;A test computer, with a test program installed in the test computer, used to run preset test cases and generate test results;

所述的测试计算机、仿真计算机和自动售票机的工控机两两之间通过TCP/IP网络连接,所述仿真计算机还通过串口连接工控机。The test computer, the simulation computer and the industrial computer of the automatic ticket vending machine are connected in pairs through a TCP/IP network, and the simulation computer is also connected to the industrial computer through a serial port.

进一步地,所述的TVM模块仿真程序包括:仿真输入子程序,用于模拟选票;仿真纸币模块子程序,用于模拟投入纸币;仿真硬币模块子程序,用于模拟投入硬币;仿真找零子程序,用于模拟自动售票机找零;仿真出票子程序,用于模拟自动售票机出票。Further, the TVM module simulation program includes: a simulated input subroutine for simulating votes; a simulated banknote module subroutine for simulating banknote input; a simulated coin module subroutine for simulating coin input; The program is used to simulate the change of the automatic ticket vending machine; the simulation ticket subroutine is used to simulate the ticket issuance of the automatic ticket vending machine.

进一步地,所述的测试程序包括:测试用例运行子程序,用于运行测试用例进行测试;结果比对子程序,用于对测试结果进行对比和判定;汇总子程序,用于输出测试结果。Further, the test program includes: a test case running subroutine for running test cases for testing; a result comparison subroutine for comparing and judging test results; a summary subroutine for outputting test results.

进一步地,所述的测试计算机内还安装有测试用例生成程序,用于通过测试参数的设置生成测试用例集。Further, a test case generation program is also installed in the test computer, which is used to generate a test case set by setting test parameters.

进一步地,所述的测试参数包括测试次数、购票信息、纸币接收金额、硬币接收金额、预期找零金额和预期反馈。Further, the test parameters include test times, ticket purchase information, banknote acceptance amount, coin acceptance amount, expected change amount and expected feedback.

进一步地,所述的各输入输出硬件包括触摸屏,纸币识别器、硬币识别器和票卡读写器。Further, each of the input and output hardware includes a touch screen, a banknote validator, a coin validator and a ticket reader.

进一步地,所述的仿真计算机和测试计算机均采用便携式计算机,如笔记本电脑。Further, both the simulation computer and the test computer are portable computers, such as notebook computers.

一种自动售票机交易功能的测试方法,具体步骤包括:A method for testing the transaction function of an automatic ticket vending machine, the specific steps comprising:

S1、测试计算机获取测试用例集并且下发一个测试用例至仿真计算机;S1. The test computer obtains the test case set and sends a test case to the simulation computer;

S2、仿真计算机根据测试用例生成购票信息,输入至工控机;S2. The simulation computer generates ticket purchase information according to the test case, and inputs it to the industrial computer;

S3、仿真计算机获取工控机发出的找零数据信号和出票数据信号;S3. The simulation computer acquires the change data signal and the ticket issuing data signal sent by the industrial computer;

S4、测试计算机生成测试用例记录;S4, the test computer generates a test case record;

S5、仿真计算机生成购票记录;S5. The simulated computer generates a ticket purchase record;

S6、测试计算机获取购票记录和工控机生成的交易记录,对比测试用例记录、购票记录和交易记录,若三者数据不一致,则对本测试用例进行标记;S6, the test computer obtains the ticket purchase record and the transaction record generated by the industrial computer, compares the test case record, the ticket purchase record and the transaction record, if the three data are inconsistent, then mark this test case;

S7、测试计算机下发另一个测试用例至仿真计算机,重复步骤S2~S6直至测试完成所有测试用例;S7. The test computer sends another test case to the simulation computer, and repeats steps S2 to S6 until all test cases are completed;

S8、汇总测试用例记录、购票记录和交易记录生成测试报告。S8. Summarize the test case records, ticket purchase records and transaction records to generate a test report.

与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:

1、本发明通过计算机代替人工进行测试,实现了自动化,能够极大提高测试的效率。通过仿真计算机的TVM模块仿真连接自动售票机的工控机,可以适用于不同厂家不同型号的自动售票机,通用性好;通过测试计算机运算测试用例,可以完成对各种输入进行穷举,不遗漏,实现交易功能完整性的测试。1. The present invention realizes automation by replacing manual testing with a computer, and can greatly improve the efficiency of testing. The TVM module of the simulation computer is used to simulate the industrial computer connected to the automatic ticket vending machine, which can be applied to different types of automatic ticket vending machines from different manufacturers, and has good versatility; through testing computer calculation test cases, it is possible to complete exhaustive enumeration of various inputs without omission , to test the integrity of transaction functions.

2、通过两台计算机进行测试,将测试程序和仿真程序进行分离能够显著提高计算机的运行效率和计算速度,提高了测试的效率。2. The test is carried out by two computers, and the separation of the test program and the simulation program can significantly improve the operation efficiency and calculation speed of the computer, and improve the test efficiency.

3、仿真计算机和测试计算机均采用便携式计算机,并仅需要通过网络和串口连接,连接方式简单,便利性强,而且一键启动完成测试生成报告,节省了大量的人力和时间。3. Both the simulation computer and the test computer are portable computers, and only need to be connected through the network and serial port. The connection method is simple and convenient, and one-key startup completes the test and generates reports, saving a lot of manpower and time.

附图说明Description of drawings

图1为本发明的系统结构示意图;Fig. 1 is a schematic diagram of the system structure of the present invention;

图2为本发明的原理结构示意图;Fig. 2 is a schematic structural diagram of the present invention;

图3为测试方法的流程示意图。Figure 3 is a schematic flow chart of the test method.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明进行详细说明。本实施例以本发明技术方案为前提进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is carried out on the premise of the technical solution of the present invention, and detailed implementation and specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.

如图1和图2所示,本实施例提供了一种自动售票机交易功能的测试系统,包括测试计算机和仿真计算机,两台计算机均使用便携式计算机,如笔记本电脑,分别运行测试程序和TVM模块仿真程序。待测自动售票机的工控机中运行有交易软件。As shown in Fig. 1 and Fig. 2, the present embodiment provides a kind of test system of automatic ticket vending machine transaction function, comprises test computer and emulation computer, two computers all use portable computer, as notebook computer, run test program and TVM respectively Module simulation program. There is transaction software running in the industrial computer of the automatic ticket vending machine to be tested.

测试计算机和工控机之间以网络连接方式进行数据通信,仿真计算机和工控机之间也以网络连接方式进行数据通信,另外,工控机与仿真计算机之间同时进行串口连接,因为自动售票机主程序和硬件设备都是以串口方式进行数据通信的。The data communication between the test computer and the industrial computer is connected through the network, and the data communication between the simulation computer and the industrial computer is also carried out through the network connection. In addition, the serial connection between the industrial computer and the simulation computer is carried out at the same time, because the automatic ticket vending machine host Both the program and the hardware device communicate data through the serial port.

测试方法的核心是通过测试计算机,自动生成测试用例、执行测试程序,在模块仿真计算机上运行纸币、找零、票卡、输入等模块仿真子程序,通过TCP/IP网络和RS232串口与被测的自动售票机的工控机连接,通过仿真的方法完成自动化测试,并由测试计算机对测试结果进行自动比对、判定和汇总,形成测试报告。The core of the test method is to use the test computer to automatically generate test cases, execute the test program, run banknote, change, ticket, input and other module simulation subroutines on the module simulation computer, and communicate with the tested computer through the TCP/IP network and RS232 serial port. The automatic ticket vending machine is connected to the industrial computer, and the automated test is completed through the simulation method, and the test results are automatically compared, judged and summarized by the test computer to form a test report.

测试计算机内的测试程序包括:测试用例运行子程序,用于运行测试用例进行测试;结果比对子程序,用于对测试结果进行对比和判定;汇总子程序,用于输出测试结果。The test program in the test computer includes: a test case running subroutine for running test cases for testing; a result comparison subroutine for comparing and judging test results; a summary subroutine for outputting test results.

在运行测试用例运行子程序之后,测试计算机通过测试用例运行子程序查看程序运行的状态,选择生成好的测试用例下发给测试用例运行子程序,测试用例运行子程序收到测试用例,并检查测试用例是否完整,然后执行该用例。After running the test case running subroutine, the test computer checks the running status of the program through the test case running subroutine, selects the generated test case and sends it to the test case running subroutine, the test case running subroutine receives the test case, and checks Test case is complete, and then execute the use case.

在测试计算机内还安装有测试用例生成程序,用于通过测试参数的设置生成测试用例集。进行测试前首先要进行测试用例集编写,告诉测试工具按照怎样的数值进行测试。测试用例集中的每个测试用例是对各个测试项目的定义,测试项目包括测试名称、测试次数、购票信息、纸币接收金额、硬币接收金额、预期找零金额和预期仿真设备反馈。可以根据待测自动售票机支持的接收币种和找零币种,组合出各种类型的接收币种和找零币种的测试项,进行多方位测试。A test case generation program is also installed in the test computer, which is used to generate a test case set by setting test parameters. Before the test, the test case set must be written first, and the test tool should be told what value to test. Each test case in the test case set is the definition of each test item, and the test items include test name, test times, ticket purchase information, banknote acceptance amount, coin acceptance amount, expected change amount, and expected simulation device feedback. According to the receiving currency and change currency supported by the automatic ticket vending machine to be tested, test items of various types of receiving currency and change currency can be combined for multi-directional testing.

仿真计算机内的TVM模块仿真程序包括:仿真输入子程序,用于模拟选票;仿真纸币模块子程序,用于模拟投入纸币;仿真硬币模块子程序,用于模拟投入硬币;仿真找零子程序,用于模拟自动售票机找零;仿真出票子程序,用于模拟自动售票机出票。TVM模块仿真程序用于模拟自动售票机各输入输出硬件,包括触摸屏,纸币识别器、硬币识别器和票卡读写器。各仿真程序通过网络连接到连接调度程序,通过串口连接到自动售票机。测试过程中,仿真硬件处理,处理完成后,将信息反馈给自动售票机,同时反馈应答给连接调度程序。The TVM module simulation program in the simulation computer includes: a simulation input subroutine for simulating votes; a simulation banknote module subroutine for simulating banknote insertion; a simulation coin module subroutine for simulating coin insertion; a simulation change subroutine, It is used to simulate the change of the automatic ticket vending machine; the simulated ticket issuing subroutine is used to simulate the ticket issuance of the automatic ticket vending machine. The TVM module simulation program is used to simulate the input and output hardware of the automatic ticket vending machine, including touch screen, banknote validator, coin validator and ticket card reader. Each simulation program is connected to the connection scheduler through the network, and connected to the automatic ticket vending machine through the serial port. During the test, simulate the hardware processing, and after the processing is completed, feed back the information to the automatic ticket vending machine, and at the same time feed back the response to the connection scheduler.

如图3所示,本实施例的测试方法具体流程为:As shown in Figure 3, the specific process of the test method in this embodiment is:

步骤S101,测试计算机通过测试用例生成子程序生成测试用例集;Step S101, the test computer generates a test case set through a test case generation subroutine;

步骤S102,测试计算机向仿真计算机下发一个测试用例;Step S102, the test computer sends a test case to the simulation computer;

步骤S203,仿真计算机根据测试用例,通过仿真输入子程序生成购票信息,并送入待测自动售票机的工控机;Step S203, the simulation computer generates ticket purchase information through the simulation input subroutine according to the test case, and sends it to the industrial computer of the automatic ticket vending machine to be tested;

步骤S304,工控机进行购票处理,发出投币请求;Step S304, the industrial computer performs ticket purchase processing and sends a coin insertion request;

步骤S205,仿真计算机的仿真纸币模块子程序进而仿真硬币模块子程序根据测试用例生成投币信息;Step S205, simulating the banknote module subroutine of the simulation computer and then simulating the coin module subroutine to generate coin information according to the test case;

步骤S306,工控机进行投币数据处理;Step S306, the industrial computer performs coin data processing;

步骤S307,工控机发出找零数据;Step S307, the industrial computer sends change data;

步骤S208,仿真计算机的仿真找零子程序获取仿真找零信息;Step S208, the simulated change subroutine of the simulated computer obtains simulated change information;

步骤S309,工控机数据处理,发出票卡数据;Step S309, data processing of the industrial computer, issuing ticket data;

步骤S210,仿真计算机的仿真出票子程序仿真获取票卡数据信息;Step S210, the simulated ticket issuing subroutine of the simulated computer simulates and obtains the ticket card data information;

步骤S111,测试计算机生成用例记录;Step S111, the test computer generates a use case record;

步骤S212,仿真计算机生成购票记录;Step S212, the simulated computer generates a ticket purchase record;

步骤S313,工控机生成交易记录;Step S313, the industrial computer generates transaction records;

步骤S114,测试计算机的比对子程序获取购票记录和工控机生成的交易记录,对比测试用例记录、购票记录和交易记录,若三者数据不一致,则对本测试用例进行标记;Step S114, the comparison subroutine of the test computer obtains the ticket purchase record and the transaction record generated by the industrial computer, compares the test case record, the ticket purchase record and the transaction record, if the three data are inconsistent, then mark this test case;

测试计算机下发另一个测试用例至仿真计算机,由步骤102重新开始;The test computer sends another test case to the simulation computer, and restarts from step 102;

步骤S115,测试计算机的汇总子程序汇总测试用例记录、购票记录和交易记录生成测试报告。Step S115, the summary subroutine of the test computer summarizes the test case records, ticket purchase records and transaction records to generate a test report.

以上详细描述了本发明的较佳具体实施例。应当理解,本领域的普通技术人员无需创造性劳动就可以根据本发明的构思作出诸多修改和变化。因此,凡本技术领域中技术人员依本发明的构思在现有技术的基础上通过逻辑分析、推理或者有限的实验可以得到的技术方案,皆应在由权利要求书所确定的保护范围内。The preferred specific embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make many modifications and changes according to the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art shall be within the scope of protection defined by the claims.

Claims (8)

1.一种自动售票机交易功能的测试系统,其特征在于,包括:1. A test system for the transaction function of an automatic ticket vending machine, characterized in that it comprises: 仿真计算机,在仿真计算机内安装有TVM模块仿真程序,用于模拟自动售票机各输入输出硬件;A simulation computer, in which a TVM module simulation program is installed to simulate the input and output hardware of the automatic ticket vending machine; 测试计算机,在测试计算机内安装有测试程序,用于运行预设的测试用例并生成测试结果;A test computer, with a test program installed in the test computer, used to run preset test cases and generate test results; 所述的测试计算机、仿真计算机和自动售票机的工控机两两之间通过TCP/IP网络连接,所述仿真计算机还通过串口连接工控机。The test computer, the simulation computer and the industrial computer of the automatic ticket vending machine are connected in pairs through a TCP/IP network, and the simulation computer is also connected to the industrial computer through a serial port. 2.根据权利要求1所述的一种自动售票机交易功能的测试系统,其特征在于,所述的TVM模块仿真程序包括:仿真输入子程序,用于模拟选票;仿真纸币模块子程序,用于模拟投入纸币;仿真硬币模块子程序,用于模拟投入硬币;仿真找零子程序,用于模拟自动售票机找零;仿真出票子程序,用于模拟自动售票机出票。2. the test system of a kind of automatic ticket vending machine transaction function according to claim 1, it is characterized in that, described TVM module simulation program comprises: simulation input subroutine, is used for simulating ballot paper; Simulation banknote module subroutine, uses It is used for simulating the insertion of banknotes; the subroutine of the simulation coin module is used for simulating the insertion of coins; the subroutine of the simulation change subroutine is used for simulating the change of the automatic ticket vending machine; 3.根据权利要求1所述的一种自动售票机交易功能的测试系统,其特征在于,所述的测试程序包括:测试用例运行子程序,用于运行测试用例进行测试;结果比对子程序,用于对测试结果进行对比和判定;汇总子程序,用于输出测试结果。3. the test system of a kind of automatic ticket vending machine transaction function according to claim 1, it is characterized in that, described test program comprises: test case runs subroutine, is used for running test case to test; Result compares subroutine , used to compare and judge the test results; the summary subroutine is used to output the test results. 4.根据权利要求1所述的一种自动售票机交易功能的测试系统,其特征在于,所述的测试计算机内还安装有测试用例生成程序,用于通过测试参数的设置生成测试用例集。4. The test system of a transaction function of an automatic ticket vending machine according to claim 1, wherein a test case generation program is also installed in the test computer for generating a test case set by setting test parameters. 5.根据权利要求4所述的一种自动售票机交易功能的测试系统,其特征在于,所述的测试参数包括测试次数、购票信息、纸币接收金额、硬币接收金额、预期找零金额和预期反馈。5. the test system of a kind of automatic ticket vending machine transaction function according to claim 4, is characterized in that, described test parameter comprises test number of times, ticket information, banknote acceptance amount, coin acceptance amount, expected change amount and Anticipate feedback. 6.根据权利要求1所述的一种自动售票机交易功能的测试系统,其特征在于,所述的各输入输出硬件包括触摸屏,纸币识别器、硬币识别器和票卡读写器。6. A test system for transaction functions of an automatic ticket vending machine according to claim 1, wherein said input and output hardware includes a touch screen, a banknote validator, a coin validator and a ticket reader. 7.根据权利要求1所述的一种自动售票机交易功能的测试系统,其特征在于,所述的仿真计算机和测试计算机均采用便携式计算机。7. A test system for the transaction function of an automatic ticket vending machine according to claim 1, characterized in that, both the simulation computer and the test computer are portable computers. 8.一种如权利要求1所述的自动售票机交易功能的测试系统的测试方法,其特征在于,具体步骤包括:8. A method for testing the test system of the automatic ticket vending machine transaction function as claimed in claim 1, wherein the specific steps include: S1、测试计算机获取测试用例集并且下发一个测试用例至仿真计算机;S1. The test computer obtains the test case set and sends a test case to the simulation computer; S2、仿真计算机根据测试用例生成购票信息,输入至工控机;S2. The simulation computer generates ticket purchase information according to the test case, and inputs it to the industrial computer; S3、仿真计算机获取工控机发出的找零数据信号和出票数据信号;S3. The simulation computer acquires the change data signal and the ticket issuing data signal sent by the industrial computer; S4、测试计算机生成测试用例记录;S4, the test computer generates a test case record; S5、仿真计算机生成购票记录;S5. The simulated computer generates a ticket purchase record; S6、测试计算机获取购票记录和工控机生成的交易记录,对比测试用例记录、购票记录和交易记录,若三者数据不一致,则对本测试用例进行标记;S6, the test computer obtains the ticket purchase record and the transaction record generated by the industrial computer, compares the test case record, the ticket purchase record and the transaction record, if the three data are inconsistent, then mark this test case; S7、测试计算机下发另一个测试用例至仿真计算机,重复步骤S2~S6直至测试完成所有测试用例;S7. The test computer sends another test case to the simulation computer, and repeats steps S2 to S6 until all test cases are completed; S8、汇总测试用例记录、购票记录和交易记录生成测试报告。S8. Summarize the test case records, ticket purchase records and transaction records to generate a test report.
CN201910735437.2A 2019-08-09 2019-08-09 A test system and method for the transaction function of an automatic ticket vending machine Withdrawn CN110569180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910735437.2A CN110569180A (en) 2019-08-09 2019-08-09 A test system and method for the transaction function of an automatic ticket vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910735437.2A CN110569180A (en) 2019-08-09 2019-08-09 A test system and method for the transaction function of an automatic ticket vending machine

Publications (1)

Publication Number Publication Date
CN110569180A true CN110569180A (en) 2019-12-13

Family

ID=68775037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910735437.2A Withdrawn CN110569180A (en) 2019-08-09 2019-08-09 A test system and method for the transaction function of an automatic ticket vending machine

Country Status (1)

Country Link
CN (1) CN110569180A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427313A (en) * 2019-07-30 2019-11-08 上海工程技术大学 A kind of test macro and method of automatic machine trading function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427313A (en) * 2019-07-30 2019-11-08 上海工程技术大学 A kind of test macro and method of automatic machine trading function

Similar Documents

Publication Publication Date Title
CN101515301B (en) Method and device for verifying SoC (system on a chip) chips
CN110020381A (en) Method of calibration, device, equipment and computer storage medium based on configuration file
CN103337113B (en) Method and device for intelligently analyzing electronic day-to-day journals, as well as processor
CN108614777A (en) A kind of financial transaction test system and test method based on actual services
CN113887161B (en) A verification method, device, equipment and medium for a network-on-chip design example
CN113220594B (en) Automatic test method, device, equipment and storage medium
CN110427313B (en) System and method for testing transaction function of automatic ticket vending machine
CN103514092A (en) Method for automatic testing of software system of ATM
CN114880240A (en) Automatic testing system and method for Internet of things equipment, storage medium and equipment
CN107329870B (en) A method for testing the performance of automatic ticket vending machines in urban rail transit
US11710117B1 (en) Systems and methods for EMV terminal device testing using EMV card emulation
CN101464796A (en) Method for establishing software requirement model
CN112529575A (en) Risk early warning method, equipment, storage medium and device
CN110837470A (en) Method and device for testing bank card network transaction
CN117493188A (en) Interface testing methods and devices, electronic equipment and storage media
CN110569180A (en) A test system and method for the transaction function of an automatic ticket vending machine
CN112486835B (en) Verification platform and method applied to securities futures counter
CN112631852B (en) Macro checking method, macro checking device, electronic equipment and computer readable storage medium
CN113672501A (en) Method and device for testing parking lot service
Megawati et al. The Black Box Testing of the" Hybrid Engine" Application Using Boundary Value Analysis Technique:-
CN116662158A (en) An automated test method, device, system and storage medium
CN115470106A (en) Verification method and system for reconfigurable chip
CN107679266A (en) The emulation mode and simulator of flash memory circuit
CN114264904A (en) Testing method and system of full liquid crystal instrument based on simulation and machine vision
CN112948236A (en) Breakpoint configuration method, system and device for white box test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191213