RU2671041C2 - Method of testing - Google Patents

Method of testing Download PDF

Info

Publication number
RU2671041C2
RU2671041C2 RU2017109705A RU2017109705A RU2671041C2 RU 2671041 C2 RU2671041 C2 RU 2671041C2 RU 2017109705 A RU2017109705 A RU 2017109705A RU 2017109705 A RU2017109705 A RU 2017109705A RU 2671041 C2 RU2671041 C2 RU 2671041C2
Authority
RU
Russia
Prior art keywords
fields
screen
testing
field
characters
Prior art date
Application number
RU2017109705A
Other languages
Russian (ru)
Other versions
RU2017109705A (en
RU2017109705A3 (en
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 Общество с ограниченной ответственностью "Квантум Спэйс"
Priority to RU2017109705A priority Critical patent/RU2671041C2/en
Publication of RU2017109705A publication Critical patent/RU2017109705A/en
Publication of RU2017109705A3 publication Critical patent/RU2017109705A3/ru
Application granted granted Critical
Publication of RU2671041C2 publication Critical patent/RU2671041C2/en

Links

Images

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/3466Performance evaluation by tracing or monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/443Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0009Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]

Abstract

FIELD: payment devices; data processing.
SUBSTANCE: invention relates to the field of testing of payment devices, in particular POS-terminals. In the testing method, a snapshot of the test screen is obtained. In accordance with the screen parameters, the areas of the screen are selected in which the fields are selected in accordance with the coordinates of the fields. Check the fields for correspondence to position and size and analyze the fields by checking the characters in the field on the basis of regular expressions. If the number of valid characters is within acceptable limits, the testing is completed. If the number of valid characters is not within acceptable limits, then complete the test with an error.
EFFECT: technical result is to increase the automation of the testing process by determining the correctness of the information displayed on the screen of the terminal by the vision system.
1 cl, 1 dwg

Description

Изобретение относится к области тестирования платежных устройств, в частности POS-терминалов.The invention relates to the field of testing payment devices, in particular POS-terminals.

Известно множество способов и устройств автоматического тестирования терминалов, как аппаратного, так и программного обеспечения. В частности, известны устройства и способы по патентам CN 105159830 А, CN 103679970 A, CN 104714447 А.There are many methods and devices for automatic testing of terminals, both hardware and software. In particular, devices and methods are known according to the patents CN 105159830 A, CN 103679970 A, CN 104714447 A.

В процессе тестирования возникает, помимо прочего, задача определения корректности отображаемой на экране терминала информации в ответ на определенное воздействие. Заявленное изобретение направлено на решение данной проблемы с применением системы технического зрения.In the testing process, among other things, the problem arises of determining the correctness of the information displayed on the screen of the terminal in response to a certain impact. The claimed invention is aimed at solving this problem using a vision system.

Технический результат заключается в повышении автоматизации процесса тестирования.The technical result is to increase the automation of the testing process.

Технический результат достигается за счет того, что получают снимок тестируемого экрана, в соответствии с параметрами экрана выделяют области экрана, в которых выделяют поля в соответствии с координатами полей, проверяют поля на соответствие положению и размерам, анализируют поля путем проверки символов в поле по базе регулярных выражений, если количество правильных символов в допустимых пределах, тестирование завершают, если нет - завершают тестирование с ошибкой.The technical result is achieved due to the fact that they take a screenshot of the screen under test, select screen areas in accordance with the screen parameters, in which the fields are selected in accordance with the coordinates of the fields, the fields are checked for compliance with position and size, the fields are analyzed by checking the characters in the field based on regular expressions, if the number of valid characters is within acceptable limits, testing is completed; if not, testing is completed with an error.

Способ может реализовываться, например, в соответствии с алгоритмом, представленным на фиг. 1.The method may be implemented, for example, in accordance with the algorithm shown in FIG. one.

Структура алгоритмаAlgorithm structure

1. Получение снимка с камеры1. Getting a picture from the camera

2. Выделение области экрана с помощью данных, взятых из таблицы Terminals2. Selection of the screen area using data taken from the Terminals table

3. Обработка изображения3. Image Processing

a. Перевод изображения в градации серогоa. Grayscale image translation

b. Подавление шумовb. Noise reduction

c. Перевод из серого изображения в бинаризованное (черно-белое)c. Convert from gray to binarized (black and white)

4. Выделение полей с помощью данных, взятых из таблицы Fields4. Highlighting fields using data taken from the Fields table

5. Анализ полей5. Field analysis

a. Проверка на наличие необработанных полей. Если необработанных полей не осталось - выход из программы.a. Check for raw fields. If there are no unprocessed fields, exit the program.

b. Проверка поля на соответствие положению и размерам. При несоответствии - выход из программы с кодом ошибки.b. Checking the field for compliance with position and size. If not, exit the program with an error code.

c. Проверка на наличие необработанных символов в символьном выражении. Если символы есть, переход в пункт d. Если в символьном выражении необработанных символов не осталось - проверка на количество правильных символов в нем. Если количество в допустимых пределах - переход в пункт а. Если нет - выход из программы с кодом ошибки.c. Check for raw characters in a character expression. If there are characters, go to step d. If there are no raw characters left in the character expression, check for the number of valid characters in it. If the quantity is within acceptable limits, go to point a. If not, exit the program with an error code.

d. Проверка символа по базе регулярных выражений из таблицы Symbols. Если символ корректен, счетчик символов увеличивается на 1, если нет, то остается прежним.d. Checking a character against a regular expression database from the Symbols table. If the character is correct, the character counter is incremented by 1; if not, it remains the same.

ПоясненияExplanations

1. Таблица Fields. В этой таблице содержатся данные о полях экранных форм: Координаты, ширина, высота, значение (символьное выражение) и язык.1. Table Fields. This table contains data about the fields of the screen forms: Coordinates, width, height, value (symbol expression) and language.

2. Таблица Terminals. В этой таблице содержатся данные о POS-терминалах: Координаты экрана, его ширина и высота.2. The Terminals table. This table contains information about POS-terminals: Screen coordinates, its width and height.

3. Таблица Symbols. В этой таблице содержаться регулярные выражения (RegExp) для каждого символа.3. Symbols table. This table contains regular expressions (RegExp) for each character.

4. Иерархия объектов:4. The hierarchy of objects:

a. POS-Терминалa. POS Terminal

b. Экран терминалаb. Terminal screen

c. Экранная формаc. Screen form

d. Полеd. Field

5. Символьное выражение - значение поля - слово или цифры.5. Character expression - field value - word or numbers.

6. Регулярные выражения (RegExp) - любые печатные символы.6. Regular expressions (RegExp) - any printed characters.

Claims (1)

Способ тестирования, отличающийся тем, что получают снимок тестируемого экрана, в соответствии с параметрами экрана выделяют области экрана, в которых выделяют поля в соответствии с координатами полей, проверяют поля на соответствие положению и размерам, анализируют поля путем проверки символов в поле по базе регулярных выражений, если количество правильных символов в допустимых пределах, тестирование завершают, если нет - завершают тестирование с ошибкой.A testing method, characterized in that a screenshot of the screen to be tested is obtained, in accordance with the screen parameters, areas of the screen are selected in which the fields are selected in accordance with the coordinates of the fields, the fields are checked for position and size, the fields are analyzed by checking the characters in the field using the regular expression database if the number of valid characters is within acceptable limits, testing is completed; if not, testing is completed with an error.
RU2017109705A 2017-03-23 2017-03-23 Method of testing RU2671041C2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2017109705A RU2671041C2 (en) 2017-03-23 2017-03-23 Method of testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2017109705A RU2671041C2 (en) 2017-03-23 2017-03-23 Method of testing

Publications (3)

Publication Number Publication Date
RU2017109705A RU2017109705A (en) 2018-09-24
RU2017109705A3 RU2017109705A3 (en) 2018-09-24
RU2671041C2 true RU2671041C2 (en) 2018-10-29

Family

ID=63668739

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2017109705A RU2671041C2 (en) 2017-03-23 2017-03-23 Method of testing

Country Status (1)

Country Link
RU (1) RU2671041C2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173340B1 (en) * 1996-08-16 2001-01-09 Compaq Computer Corporation Server controller for storing and retrieving sequences of video screens forwarded by a server host computer
CN103679970A (en) * 2013-12-19 2014-03-26 深圳市新国都技术股份有限公司 POS machine magnetic head test method and POS machine card swiping test equipment
CN104714447A (en) * 2015-02-15 2015-06-17 易测智能科技(天津)有限公司 Mobile terminal test system based on intelligent robot
CN105159830A (en) * 2015-08-27 2015-12-16 百富计算机技术(深圳)有限公司 Automatic POS terminal test system and test method
RU166565U1 (en) * 2016-03-22 2016-12-10 Ян Александрович Лысенко OPTICAL-ELECTRONIC DEVICE FOR PARALLEL CONTROL OF INDICATIONS OF THE INSTRUMENT PANEL

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173340B1 (en) * 1996-08-16 2001-01-09 Compaq Computer Corporation Server controller for storing and retrieving sequences of video screens forwarded by a server host computer
CN103679970A (en) * 2013-12-19 2014-03-26 深圳市新国都技术股份有限公司 POS machine magnetic head test method and POS machine card swiping test equipment
CN104714447A (en) * 2015-02-15 2015-06-17 易测智能科技(天津)有限公司 Mobile terminal test system based on intelligent robot
CN105159830A (en) * 2015-08-27 2015-12-16 百富计算机技术(深圳)有限公司 Automatic POS terminal test system and test method
RU166565U1 (en) * 2016-03-22 2016-12-10 Ян Александрович Лысенко OPTICAL-ELECTRONIC DEVICE FOR PARALLEL CONTROL OF INDICATIONS OF THE INSTRUMENT PANEL

Also Published As

Publication number Publication date
RU2017109705A (en) 2018-09-24
RU2017109705A3 (en) 2018-09-24

Similar Documents

Publication Publication Date Title
US10769487B2 (en) Method and device for extracting information from pie chart
CA3018196C (en) Visual regresssion testing tool
CN111274957A (en) Webpage verification code identification method, device, terminal and computer storage medium
TWI765442B (en) Method for defect level determination and computer readable storage medium thereof
CN113763348A (en) Image quality determination method and device, electronic equipment and storage medium
CN107493469A (en) A kind of method and device of the area-of-interest of determination SFR test cards
CN113282905A (en) Login test method and device
CN109064464B (en) Method and device for detecting burrs of battery pole piece
US20200319140A1 (en) Automated analysis of analytical gels and blots
RU2671041C2 (en) Method of testing
Hori et al. An Oracle based on Image Comparison for Regression Testing of Web Applications.
CN112633341A (en) Interface testing method and device, computer equipment and storage medium
CN112381177A (en) Dial digital character recognition method and system based on deep learning
CN113468905B (en) Graphic code identification method, graphic code identification device, computer equipment and storage medium
CN110992299A (en) Method and device for detecting browser compatibility
US10706279B2 (en) Content verification apparatus, method for verifying content, and non-transitory computer-readable storage medium
CN111213156A (en) Character recognition sharpness determination
CN113886745B (en) Page picture testing method and device and electronic equipment
CN112508925A (en) Electronic lock panel quality detection method, system, computer device and storage medium
CN111325043A (en) Two-dimensional code analysis method, device, equipment and medium
CN111767754B (en) Identification code identification method and device, electronic equipment and storage medium
CN113709563B (en) Video cover selecting method and device, storage medium and electronic equipment
CN116662206B (en) Computer software online real-time visual debugging method and device
CN113094291B (en) Method, device and equipment for matching verification of lock screen interface and storage medium
US20230401691A1 (en) Image defect detection method, electronic device and readable storage medium