CN109902029A - A kind of test method and test device for POS terminal - Google Patents

A kind of test method and test device for POS terminal Download PDF

Info

Publication number
CN109902029A
CN109902029A CN201910307308.3A CN201910307308A CN109902029A CN 109902029 A CN109902029 A CN 109902029A CN 201910307308 A CN201910307308 A CN 201910307308A CN 109902029 A CN109902029 A CN 109902029A
Authority
CN
China
Prior art keywords
test
pos terminal
text results
test result
transferred
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.)
Pending
Application number
CN201910307308.3A
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.)
Shenzhen Xinguodu Payment Technology Co Ltd
Shenzhen Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Payment Technology Co Ltd
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 Shenzhen Xinguodu Payment Technology Co Ltd filed Critical Shenzhen Xinguodu Payment Technology Co Ltd
Priority to CN201910307308.3A priority Critical patent/CN109902029A/en
Publication of CN109902029A publication Critical patent/CN109902029A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Computer And Data Communications (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The present invention provides a kind of test methods for POS terminal, comprising steps of S1: load test use-case;S2: test case is switched into mechanical order;S3: the mechanical order for sending the movement of control mechanical arm is tested;S4: the photo of test result is obtained;S5: text results are converted by the test result of photo with character recognition method;S6: text results being compared with expected text results and judge whether test result is qualified: when text results are equal to expected text results, test result shows " qualification ";When text results are not equal to expected text results, test result shows " unqualified ".Mechanical arm is controlled by sending mechanical order, simulating hand operates POS terminal interface and carries out POS terminal test;After obtaining test result photo, using the test result of image-recognizing method substitution eye-observation POS terminal interface display, to complete test job.

Description

A kind of test method and test device for POS terminal
Technical field
The present invention relates to a kind of test method and test device, refer in particular to a kind of test method for POS terminal and Test device.
Background technique
POS terminal is tested after assembling, test item include security performance, program downloading, cycling switch machine, It is non-connect card reading success rate, IC card card reading success rate, IC card transaction, it is non-connect card transaction, configuration information downloading, wirelessly, WIFI, network Success rate etc. is communicated, and the testing time of each project is extremely more, such as cycling switch machine, non-connects card reading success rate, IC card reading Card success rate, IC card transaction, the non-testing time for connecing card transaction etc. are usually less than 10,000 times.Tradition utilizes artificial method, Testing a POS terminal, time-consuming, needs people to carry out test job for a long time, and not can avoid operation and have differences.
Summary of the invention
In order to solve the technical issues of liberation does the manpower of repetitive operation for a long time, the technical solution adopted by the present invention are as follows:
A kind of test method for POS terminal, comprising steps of
S1: load test use-case;
S2: test case is switched into mechanical order;
S3: the mechanical order for sending the movement of control mechanical arm is tested;
S4: the photo of test result is obtained;
S5: text results are converted by the test result of photo with character recognition method;
S6: text results being compared with expected text results and judge whether test result is qualified: working as text results When equal to expected text results, test result shows " qualification ";When text results are not equal to expected text results, test result It shows " unqualified ".
Further, it is further comprised the steps of: between step S2 and step S3
S231: parameter setting, including test duplicate number X and whether block execution;
S232: initialization operation times N=1;
After step S232, step S3 to S5 is successively executed, in the step S6, when test result is " qualification ", Execute step S7;
S7: number of operations adds 1;
S8: judging whether current number of operations is greater than the duplicate number of test, is then, to terminate test;Otherwise step is returned Rapid S3.
Further, when test result is " unqualified " in step s 6, step S9 is executed:
S9: when judging " obstruction executes " to be, terminating test, no to then follow the steps S7.
Further, in the step S1, by accessing Testlink server load test use-case.
A kind of test device for POS terminal, comprising:
Loading device is used for load test use-case, is then transferred to instruction morphing device;
Instruction morphing device is then transferred to instruction sending device for test case to be switched to mechanical order;
Instruction sending device, for sending mechanical order to robot arm device;Robot arm device, for receiving mechanical finger It enables, and operates POS terminal and tested;
Photographic device is then transferred to picture and text reforming unit for obtaining the photo of test result;
Picture and text reforming unit is then transferred to the first judgment means for converting text results for the test result of photo;
First judgment means, for judging whether text results and expected text results are identical: when text results are equal in advance When phase text results, test result shows " qualification ";When text results are not equal to expected text results, test result is shown " unqualified ".
Further, described instruction reforming unit is transferred to instruction after parameter setting apparatus and apparatus for initializing and sends dress It sets:
Whether parameter setting apparatus for being arranged parameter, including test number of repetition X and blocks execution;
Apparatus for initializing, for initializing to number of operations, initialization operation number is 1;
After apparatus for initializing, it is successively transferred to instruction sending device, robot arm device, photographic device, picture and text reforming unit, One judgment means, when " qualification " as the result is shown, are transferred to counting device in first judgment means:
Counting device is then transferred to the second judgment means for adding 1 to number of operations;
Second judgment means, for judging whether current number of operations is greater than the duplicate number X of test: being then, to terminate Test;Otherwise it is transferred to instruction sending device.
Further, in first judgment means, when " unqualified " as the result is shown, third judgment means are transferred to:
Third judgment means when being judged as YES, terminate test for judging whether that obstruction executes, and are otherwise transferred to counting dress It sets.
Further, the loading device is used for through access Testlink server load test use-case.
The present invention is a kind of to be for the test method of POS terminal and the beneficial effect of test device: instruction sending device Mechanical order is sent to robot arm device, simulating hand operates POS terminal interface and carries out POS terminal test;Photographic device obtains After test result photo, it is transferred to picture and text reforming unit and the first judgment means, eye-observation is substituted by image-recognizing method and is obtained The test result of POS terminal interface display is taken, to complete test job.By this test method and test device, people is liberated Power.
Detailed description of the invention
Specific structure of the invention is described in detail with reference to the accompanying drawing
Fig. 1 is a kind of test method flow chart one for POS terminal of the invention.
Fig. 2 is a kind of test method flowchart 2 for POS terminal of the invention.
Specific embodiment
The most critical design of the present invention is: testing POS using the technical substitutions manpower such as mechanical arm and image recognition technology The performance of terminal.
In order to describe the technical content, the structural feature, the achieved object and the effect of this invention in detail, below in conjunction with embodiment And attached drawing is cooperated to be explained in detail.
Referring to Fig. 1, a kind of test method for POS terminal, comprising steps of
S1: load test use-case;
S2: test case is switched into mechanical order;
S3: the mechanical order for sending the movement of control mechanical arm is tested;
S4: the photo of test result is obtained;
S5: text results are converted by the test result of photo with character recognition method;
S6: text results being compared with expected text results and judge whether test result is qualified: working as text results When equal to expected text results, test result shows " qualification ";When text results are not equal to expected text results, test result It shows " unqualified ".
As can be seen from the above description, the beneficial effect of the method for the present invention is: controlling mechanical arm, mould by sending mechanical order Quasi- manual operations POS terminal interface carries out POS terminal test;After obtaining test result photo, image-recognizing method is utilized The test result for substituting eye-observation POS terminal interface display, to complete test job.
Referring to Fig. 2, being further comprised the steps of: between step S2 and step S3
S231: parameter setting, including test duplicate number X and whether block execution;
S232: initialization operation times N=1;
After step S232, step S3 to S5 is successively executed, in the step S6, when test result is " qualification ", Execute step S7:
S7: number of operations adds 1;
S8: judging whether current number of operations is greater than the duplicate number of test, is then, to terminate test;Otherwise step is returned Rapid S3.
From above-mentioned steps, by the method for setting, initialization, counting and judgement, retest is realized.Retest Method substitutes artificial repetitive operation, can guarantee operational consistency, and manual operation is avoided to bring otherness.
When test result is " unqualified " in step s 6, step S9 is executed:
S9: when judging " obstruction executes " to be, terminating test, no to then follow the steps S7.
From above-mentioned steps, test user can according to oneself actual demand to occurring after the case where test failure after Continuous to test whether to continue to execute: when selection " obstruction executes ", test user can check at the first time POS terminal when testing and stopping Test failure reason;When selection " non-obstruction executes ", the not tested test result influence of test can carry out incessantly for 24 hours Retest.
In the step S1, by accessing Testlink server load test use-case.It is wrapped in Testlink server Test case containing all test items needed for POS terminal factory test, test user can select according to actual needs not Same test case tests POS terminal.
A kind of test device for POS terminal, comprising:
Loading device is used for load test use-case, is then transferred to instruction morphing device;
Instruction morphing device is then transferred to instruction sending device for test case to be switched to mechanical order;
Instruction sending device, for sending mechanical order to robot arm device;
Robot arm device for receiving mechanical order, and operates POS terminal and is tested;Photographic device is surveyed for obtaining The photo of test result is then transferred to picture and text reforming unit;
Picture and text reforming unit is then transferred to the first judgment means for converting text results for the test result of photo;
First judgment means, for judging whether text results and expected text results are identical: when text results are equal in advance When phase text results, test result shows " qualification ";When text results are not equal to expected text results, test result is shown " unqualified ".
As can be seen from the above description, the beneficial effect of test device of the present invention is: instruction sending device sends mechanical order To robot arm device, simulating hand operates POS terminal interface and carries out POS terminal test;Photographic device obtains test result photo Afterwards, it is transferred to picture and text reforming unit and the first judgment means, eye-observation is substituted by image-recognizing method and obtains POS terminal interface The test result of display, to complete test job.
Further, described instruction reforming unit is transferred to instruction after parameter setting apparatus and apparatus for initializing and sends dress It sets:
Whether parameter setting apparatus for being arranged parameter, including test number of repetition X and blocks execution;
Apparatus for initializing, for initializing to number of operations, initialization operation number is 1;
After apparatus for initializing, it is successively transferred to instruction sending device, robot arm device, photographic device, picture and text reforming unit, One judgment means, when " qualification " as the result is shown, are transferred to counting device in first judgment means:
Counting device is then transferred to the second judgment means for adding 1 to number of operations;
Second judgment means, for judging whether current number of operations is greater than the duplicate number X of test: being then, to terminate Test;Otherwise it is transferred to instruction sending device.
By parameter setting apparatus, apparatus for initializing, counting device and the second judgment means, instruction sending device is realized It repeats to send mechanical order, to achieve the purpose that retest.Duplicate test method substitutes artificial repetitive operation, can guarantee Operational consistency, and manual operation is avoided to bring otherness.
Further, in first judgment means, when " unqualified " as the result is shown, third judgment means are transferred to:
Third judgment means when being judged as YES, terminate test for judging whether that obstruction executes, and are otherwise transferred to counting dress It sets.
Test user can according to oneself actual demand to occur after the case where test failure follow-up test whether after Continuous to execute: when selection " obstruction executes ", test user can check that at the first time POS terminal test failure is former when testing and stopping Cause;When selection " non-obstruction executes ", the not tested test result influence of test can carry out incessantly retest in 24 hours.
Further, the loading device is used for through access Testlink server load test use-case.Pass through load Device accesses server, chooses suitable test case.
In conclusion a kind of test method and test device for POS terminal provided by the invention, instruction sending device Mechanical order is sent to robot arm device, simulating hand operates POS terminal interface and carries out POS terminal test;Photographic device obtains After test result photo, it is transferred to picture and text reforming unit and the first judgment means, eye-observation is substituted by image-recognizing method and is obtained The test result of POS terminal interface display is taken, to complete test job.Pass through parameter setting apparatus, apparatus for initializing, counting Device and the second judgment means realize that instruction sending device repeats to send stable mechanical order, to reach retest Purpose.By this test method and test device, manpower is liberated, mechanically actuated is repeated, guarantees operational consistency, avoid Manual operation brings otherness;And mechanical arm energy non-stop run in 24 hours, to improve testing efficiency.Testing user being capable of root Select different test contents according to the actual demand of oneself, determine to occur after the case where test failure follow-up test whether after It is continuous to execute.By this test method and test device, manpower is liberated.
Herein first, second ... only represents the differentiation of its title, not representing their significance level and position has what It is different.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of test method for POS terminal, which is characterized in that comprising steps of
S1: load test use-case;
S2: test case is switched into mechanical order;
S3: the mechanical order for sending the movement of control mechanical arm is tested;
S4: the photo of test result is obtained;
S5: text results are converted by the test result of photo with character recognition method;
S6: text results being compared with expected text results and judge whether test result is qualified: when text results are equal to It is expected that test result shows " qualification " when text results;When text results are not equal to expected text results, test result is shown " unqualified ".
2. being used for the test method of POS terminal as described in claim 1, which is characterized in that between step S2 and step S3 also Comprising steps of
S231: parameter setting, including test duplicate number X and whether block execution;
S232: initialization operation times N=1;
After step S232, step S3 to S5 is successively executed, into the step S6, when test result is " qualification ", is executed Step S7;
S7: number of operations adds 1;
S8: judging whether current number of operations is greater than the duplicate number of test, is then, to terminate test;Otherwise return step S3.
3. being used for the test method of POS terminal as claimed in claim 2, which is characterized in that test result is " no in step s 6 It is qualified " when, execute step S9:
S9: when judging " obstruction executes " to be, terminating test, no to then follow the steps S7.
4. being used for the test method of POS terminal as described in claim 1, which is characterized in that in the step S1, pass through access Testlink server load test use-case.
5. a kind of test device for POS terminal characterized by comprising
Loading device is used for load test use-case, is then transferred to instruction morphing device;
Instruction morphing device is then transferred to instruction sending device for test case to be switched to mechanical order;
Instruction sending device, for sending mechanical order to robot arm device;Robot arm device, for receiving mechanical order, and Operation POS terminal is tested;
Photographic device is then transferred to picture and text reforming unit for obtaining the photo of test result;
Picture and text reforming unit is then transferred to the first judgment means for converting text results for the test result of photo;
First judgment means, for judging whether text results and expected text results are identical: when text results are equal to expected text When word result, test result shows " qualification ";When text results are not equal to expected text results, test result, which is shown, " not to be conformed to Lattice ".
6. as claim 5 is used for the test device of POS terminal, which is characterized in that described instruction reforming unit is set by parameter Instruction sending device is transferred to after setting device and apparatus for initializing:
Whether parameter setting apparatus for being arranged parameter, including test number of repetition X and blocks execution;
Apparatus for initializing, for initializing to number of operations, initialization operation number is 1;
After apparatus for initializing, successively it is transferred to instruction sending device, robot arm device, photographic device, picture and text reforming unit, first sentences Disconnected device, when " qualification " as the result is shown, is transferred to counting device in first judgment means:
Counting device is then transferred to the second judgment means for adding 1 to number of operations;
Second judgment means, for judging whether current number of operations is greater than the duplicate number X of test: being then, to terminate test; Otherwise it is transferred to instruction sending device.
7. as claim 6 is used for the test device of POS terminal, which is characterized in that in first judgment means, work as result When showing " unqualified ", it is transferred to third judgment means:
Third judgment means when being judged as YES, terminate test, are otherwise transferred to counting device for judging whether that obstruction executes.
8. as claim 5 is used for the test device of POS terminal, which is characterized in that the loading device is for passing through access Testlink server load test use-case.
CN201910307308.3A 2019-04-17 2019-04-17 A kind of test method and test device for POS terminal Pending CN109902029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910307308.3A CN109902029A (en) 2019-04-17 2019-04-17 A kind of test method and test device for POS terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910307308.3A CN109902029A (en) 2019-04-17 2019-04-17 A kind of test method and test device for POS terminal

Publications (1)

Publication Number Publication Date
CN109902029A true CN109902029A (en) 2019-06-18

Family

ID=66955870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910307308.3A Pending CN109902029A (en) 2019-04-17 2019-04-17 A kind of test method and test device for POS terminal

Country Status (1)

Country Link
CN (1) CN109902029A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560513A (en) * 2020-12-08 2021-03-26 东莞华贝电子科技有限公司 NFC test system and method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814217A (en) * 2009-12-01 2010-08-25 中国建设银行股份有限公司 Method for testing self-service device, device and system
CN202102423U (en) * 2011-03-18 2012-01-04 北京沃华慧通测控技术有限公司 Visulation testing system
CN103838674A (en) * 2014-03-21 2014-06-04 徐禄勇 Intelligent testing robot based on digital image and use method thereof
CN104424095A (en) * 2013-08-26 2015-03-18 卓望数码技术(深圳)有限公司 Automatic testing method and system of mobile terminal
CN104951400A (en) * 2015-07-13 2015-09-30 百度在线网络技术(北京)有限公司 Method and device for testing product
CN205451041U (en) * 2015-12-25 2016-08-10 深圳市卓讯达科技发展有限公司 Complete machine test system of panel computer / cell -phone
CN106126418A (en) * 2016-06-20 2016-11-16 福建省农村信用社联合社 A kind of banking terminal automatic test device, system and the method for mechanically-based arm
CN107346274A (en) * 2016-05-04 2017-11-14 北京博酷科技有限公司 Touch-screen response performance test platform and method
CN109165156A (en) * 2018-07-10 2019-01-08 万达百汇科技(深圳)有限公司 A kind of bar code test method, device and terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814217A (en) * 2009-12-01 2010-08-25 中国建设银行股份有限公司 Method for testing self-service device, device and system
CN202102423U (en) * 2011-03-18 2012-01-04 北京沃华慧通测控技术有限公司 Visulation testing system
CN104424095A (en) * 2013-08-26 2015-03-18 卓望数码技术(深圳)有限公司 Automatic testing method and system of mobile terminal
CN103838674A (en) * 2014-03-21 2014-06-04 徐禄勇 Intelligent testing robot based on digital image and use method thereof
CN104951400A (en) * 2015-07-13 2015-09-30 百度在线网络技术(北京)有限公司 Method and device for testing product
CN205451041U (en) * 2015-12-25 2016-08-10 深圳市卓讯达科技发展有限公司 Complete machine test system of panel computer / cell -phone
CN107346274A (en) * 2016-05-04 2017-11-14 北京博酷科技有限公司 Touch-screen response performance test platform and method
CN106126418A (en) * 2016-06-20 2016-11-16 福建省农村信用社联合社 A kind of banking terminal automatic test device, system and the method for mechanically-based arm
CN109165156A (en) * 2018-07-10 2019-01-08 万达百汇科技(深圳)有限公司 A kind of bar code test method, device and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560513A (en) * 2020-12-08 2021-03-26 东莞华贝电子科技有限公司 NFC test system and method

Similar Documents

Publication Publication Date Title
CN109814530B (en) Automatic performance test system for satellite power supply controller
CN112817872A (en) Development test system and method
CN107562038B (en) Automatic test system for vehicle-mounted controller
CN109522218A (en) Interface test method, device, computer equipment and storage medium
CN107562635A (en) Embedded software test accessory system
US10838850B2 (en) Robotic regression testing for smart devices
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN107018523A (en) WIFI module testing method and device
US20040210798A1 (en) Test emulator, test module emulator, and record medium storing program therein
CN109324601A (en) The test platform of robot controller or control system based on hardware in loop
CN104007348B (en) Automatization test system and method thereof
CN106095673A (en) Automated testing method based on WEB interface and system
CN104391791B (en) The method of testing and device of embedded Control algorithm
CN110493812A (en) Processing method, device, system, processor and the main control device of distribution test
CN207352604U (en) A kind of intelligent distribution transformer terminals automatization test system based on LUA scripts
CN107544910A (en) A kind of intelligent distribution transformer terminals automatization test system and method based on LUA scripts
CN104505126B (en) A kind of dynamic memory test system and method
Nagowah et al. A novel approach of automation testing on mobile devices
CN106841708A (en) A kind of method of testing of quick charger, test fixture and system
CN102073609A (en) Virtual instrument technology-based test method of power system test instrument and application thereof to integrated automatic device and synchronous detection device
CN106406266A (en) Method used for simulating device controlled by nuclear power plant DCS system
CN105892304B (en) Curve data automatic interpretation method
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN106093897B (en) A kind of the test system and test method of radar system
CN109684150A (en) Store Performance Test System, test method and the emulation platform of Grain size controlling device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190618

RJ01 Rejection of invention patent application after publication