CN114218071A - Automatic testing method, system and medium for card sender of android device - Google Patents

Automatic testing method, system and medium for card sender of android device Download PDF

Info

Publication number
CN114218071A
CN114218071A CN202111397064.6A CN202111397064A CN114218071A CN 114218071 A CN114218071 A CN 114218071A CN 202111397064 A CN202111397064 A CN 202111397064A CN 114218071 A CN114218071 A CN 114218071A
Authority
CN
China
Prior art keywords
card
test
module
sender
card sender
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
CN202111397064.6A
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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN202111397064.6A priority Critical patent/CN114218071A/en
Publication of CN114218071A publication Critical patent/CN114218071A/en
Pending legal-status Critical Current

Links

Images

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

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)
  • Telephone Function (AREA)

Abstract

The invention discloses a card sender automatic test method, a system and a medium for android equipment, wherein the method comprises the following steps: acquiring information of a card sender to be tested, configuring a test code template, and setting a first file format; generating a test flow file based on the card sender information to be tested, the test code template and the first file format; configuring a card sender testing module, and executing communication connection operation based on the information of the card sender to be tested and the card sender testing module; performing card sender function test operation based on the test flow file and the card sender test module to obtain a first test result; a configuration result response module; executing advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module; the invention can realize the fully automatic intelligent test of the card sender for the android device, and has the advantages of ingenious logic of the whole test process, strong ladder property of the test process, and extremely high test precision and test efficiency.

Description

Automatic testing method, system and medium for card sender of android device
Technical Field
The invention relates to the technical field of card sender testing, in particular to an automatic card sender testing method, system and medium for android equipment.
Background
Among the prior art, all pass through the mode of artifical test to the card sender test of using on android device, the efficiency of software testing of this kind of mode is low, and the test limitation is big, and the test result is difficult to record and statistics, and the test precision is low, finally can influence the production efficiency of card sender, promotes the development cycle of card sender.
Disclosure of Invention
The invention mainly solves the problems that the card sender testing method for the android device in the prior art is low in testing efficiency and large in testing limitation, and finally the production efficiency and the development cycle of the card sender are directly influenced.
In order to solve the technical problems, the invention adopts a technical scheme that: the automatic testing method for the card sender of the android device comprises the following steps:
a step of generating a flow file: acquiring information of a card sender to be tested, configuring a test code template, and setting a first file format; generating a test flow file based on the card sender information to be tested, the test code template and the first file format;
an initial test execution step: configuring a card sender testing module, and executing communication connection operation based on the card sender information to be tested and the card sender testing module to obtain a communication connection result; performing card sender function test operation based on the test flow file, the card sender test module and the communication connection result to obtain a first test result;
the step of executing the advanced test: a configuration result response module; and executing advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module.
As an improved solution, the card sender information to be tested includes: the card issuing method comprises the steps that the card issuing machine comprises a card issuing machine main equipment model, a first card box number of a card issuing machine, a second card box number of the card issuing machine, a card electricity management interface address of the card issuing machine, a card reader interface address of the card issuing machine, a card control interface address of the card issuing machine, the number of remaining cards of the card issuing machine and a communication address of the card issuing machine;
the test code template includes: a first hard processing test template and a first soft processing test template;
the test flow file comprises: issuing a card test file, a card electricity management test file, a card reading test file, a card returning test file and a card recycling test file;
the card sender testing module is provided with a first communication module, a first driver configuration module, a first condition detection module, a first card placing module, a first card interaction module, a first information checking module and a first code execution program;
the communication connection result includes: communication connection success and communication connection failure;
the first test result comprises: the card sender has no physical fault and has physical fault;
the result response module includes: the device comprises an information identification module, an interactive display module and a buzzing alarm module.
As an improved solution, the step of generating a test flow file based on the card sender information to be tested, the test code template and the first file format further includes:
setting a test card allowance threshold; identifying the number of the remaining cards of the card sender in the information of the card sender to be tested; comparing whether the number of the remaining cards of the card sender is not less than the test card margin threshold value or not; if not, identifying the first card box number of the card sender, the second card box number of the card sender, the card electricity management interface address of the card sender, the card reader interface address of the card sender and the card control interface address of the card sender in the information of the card sender to be tested;
placing the card sender card control interface address into a first hard processing template vacancy of the first hard processing test template to obtain a second hard processing test template; copying the second hard processing test template to obtain a third hard processing test template, a fourth hard processing test template and a fifth hard processing test template; placing the first card box number of the card sender into a third hard processing template vacancy of the third hard processing test template to obtain a card sending test read-only piece; placing the second card box number of the card sender into a fourth hard processing template vacancy of the fourth hard processing test template to obtain a recovered card test read-only piece; setting the fifth hard processing test template as a card withdrawing test read-only part;
placing the card electricity management interface address of the card sender into a first soft processing template vacancy of the first soft processing test template to obtain a card electricity management test read-only component; copying the first soft processing test template to obtain a second soft processing test template; placing the card reader interface address of the card sender into a second soft processing template vacancy of the second soft processing test template to obtain a card reading test read-only element;
and converting the file formats of the card issuing test read-only piece, the card recovery test read-only piece, the card returning test read-only piece, the card electricity management test read-only piece and the card reading test read-only piece into the first file format to obtain the card issuing test file, the card recovery test file, the card returning test file, the card electricity management test file and the card reading test file.
As an improvement, the communication connection operation includes:
identifying the type of the card sender main equipment and the communication address of the card sender in the information of the card sender to be tested; calling the first communication module through the card sender test module to send an in-place detection signal to the card sender communication address; calling the first communication module through the card sender testing module to detect whether a feedback signal for the in-place detection signal is received or not;
if not, setting the communication connection result as the communication connection failure;
if yes, controlling the card sender testing module to identify whether the feedback signal is matched with the type of the card sender main equipment; if the communication connection is successful, calling the first driver configuration module to configure a calling driver matched with the type of the card sending main equipment through the card sending machine test module, firstly calling the card sending machine test module to load the calling driver, and then setting the communication connection result as the communication connection is successful; and if not, setting the communication connection result as the communication connection failure.
As an improved solution, the card sender function test operation includes:
when the communication connection result is that the communication connection is successful, executing a card sending detection step;
the hairpin detection step comprises the following steps: firstly, calling the first code execution program to execute the card issuing test file through the card issuing machine test module, and then calling the first condition detection module through the card issuing machine test module to detect whether a first card exists in a card outlet of the card issuing machine to be tested; if the first card exists, executing a card returning detection step; if the first card does not exist, setting the first test result as that the card sender has a physical fault, and calling a card sender test module to generate first hardware fault information;
the card withdrawal detection step comprises the following steps: configuring a second card, firstly calling the first card placing module through the card sender testing module to place the second card into the card inlet of the card sender to be tested, then calling the first code execution program through the card sender testing module to execute the card returning test file, and then calling the first condition detection module through the card sender testing module to detect whether the card inlet of the card sender to be tested ejects the second card; if the second card is popped up, executing a recovered card detection step; if the second card is not popped up, setting the first test result as that the card sender has a physical fault, and calling a card sender test module to generate second hardware fault information;
the recovery card detection step comprises: firstly, calling the first card placing module through the card sender testing module to push the second card popped out of the card inlet back into the card inlet again, then calling the first code execution program through the card sender testing module to execute the recovered card testing file, and then calling the first condition detection module through the card sender testing module to detect whether the second card exists in the card inlet of the card sender to be tested; if the second card does not exist, setting the first test result as that the card sender has no physical fault; and if the second card exists, setting the first test result as that the card sender has a physical fault, and calling a card sender test module to generate third hardware fault information.
As an improvement, the step of performing an advanced test operation or a result output operation based on the test flow file, the card sender test module, the first test result and the result response module further comprises:
when the first test result indicates that the card sender has no physical fault, executing the advanced test operation based on the card sender test module, the card electricity management test file and the card reading test file;
and when the first test result indicates that the card sender has a physical fault, executing the result output operation based on the result response module, the first hardware fault information, the second hardware fault information and the third hardware fault information.
As an improved scheme, an interactive screen is arranged on the first card interactive module;
the advanced test operation comprises:
setting reference chip information, and configuring a third card matched with the reference chip information; firstly, calling the first card placing module through the card sender testing module to place the third card into the card inlet of the card sender to be tested, then calling the first code execution program through the card sender testing module to execute the card electricity management testing file, and then calling the card sender testing module to detect whether a card operation interface appears in the interaction screen of the first card interaction module; if yes, executing a card reading detection step; if the first power-on fault information does not appear, calling the card sender testing module to generate first power-on fault information;
the card reading detection step comprises: firstly, calling the first code execution program to execute the card reading test file through the card sender test module, and then calling the card sender test module to detect whether card basic information appears in the interactive screen; if yes, executing an information verification step; if the card is not found, calling the card sender testing module to generate first card reading fault information, and executing a power-off testing step;
the information checking step comprises: calling the first information checking module through the card sender testing module to compare whether the card basic information is matched with the reference chip information; if so, executing the step of power-down test; if not, calling the card sender testing module to generate second card reading fault information, and executing the power-off testing step;
the step of performing a next electrical test comprises: firstly, calling the first code execution program to execute the card electricity management test file through the card sender test module, and then detecting whether card return prompt information appears in the interactive screen through the card sender test module; if so, calling the card sender testing module to generate soft processing testing success information; if the failure occurs, calling the card sender test module to generate first power-off failure information;
the result output operation includes:
calling the information identification module to judge the generation condition of the first fault information; if the first fault information generation condition is that the second hardware fault information or the third hardware fault information is generated, calling the interactive display module to output the second hardware fault information or the third hardware fault information; and if the fault information generation condition is that the first hardware fault information is generated, calling the buzzing alarm module to output a first buzzing prompt tone.
As an improved solution, the method for automatically testing the card sender of the android device further includes:
after the advanced test operation is executed, calling the information identification module to judge the second fault information generation condition; executing a step of prompting a test result based on the second fault information generation condition;
the second failure information generation condition includes: a first instance, a second instance, a third instance, a fourth instance, a fifth instance, a sixth instance, and a seventh instance;
the first condition is that the first power-on fault information is generated;
the second condition is that the first card reading fault information and the soft processing test success information are generated;
the third condition is that the first card reading fault information and the first power-off fault information are generated;
the fourth condition is that the second read card fault information and the soft processing test success information are generated;
the fifth condition is that the second reading card fault information and the first power-down fault information are generated;
the sixth condition is that the first card reading fault information or the second card reading fault information is not generated, and the first power-down fault information is generated;
the seventh condition is that the first card reading fault information or the second card reading fault information is not generated, and the soft processing test success information is generated;
the step of prompting the advanced test result comprises the following steps:
calling the interactive display module to output the first power-on fault information when the second fault information generation condition is the first condition;
calling the interactive display module to output the first card reading fault information when the second fault information generation condition is the second condition;
calling the interactive display module to output the first card reading fault information and the first power-off fault information when the second fault information generation condition is the third condition;
calling the interactive display module to output the second card reading fault information when the second fault information generation condition is the fourth condition;
calling the interactive display module to output the second card reading fault information and the first power-off fault information when the second fault information generation condition is the fifth condition;
calling the interactive display module to output the first power-off fault information when the second fault information generation condition is the sixth condition;
and calling the buzzing alarm module to output a second buzzing prompt tone when the second fault information generation condition is the seventh condition.
The invention also provides an automatic test system for the card sender of the android device, which comprises the following steps:
the system comprises a flow file generating module, an initial test executing module and an advanced test executing module;
the process file generation module is used for acquiring information of the card sender to be tested, configuring a test code template and setting a first file format; the process file generation module generates a test process file based on the card sender information to be tested, the test code template and the first file format;
the initial test execution module is used for configuring a card sender test module, and the initial test execution module executes communication connection operation based on the information of the card sender to be tested and the card sender test module to obtain a communication connection result; the initial test execution module carries out card sender function test operation based on the test flow file, the card sender test module and the communication connection result to obtain a first test result;
the advanced test execution module is used for configuring a result response module; the advanced test execution module executes advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module.
The invention also provides a computer readable storage medium, which stores a computer program, and the computer program realizes the steps of the card sender automatic test method for the android device when being executed by a processor.
The invention has the beneficial effects that:
1. the automatic testing method for the card sender of the android device can realize fully-automatic intelligent testing of the card sender of the android device, the whole testing process is ingenious in logic, the step performance of the testing process is strong, hardware faults and software faults of the card sender are easy to distinguish and confirm, the testing precision is high, due to the fully-automatic testing method, the labor cost is extremely low, the testing efficiency and the testing stability are extremely high, finally, clear indication and statistics are provided for testing results, the defects of the prior art are made up, and the automatic testing method has extremely high application value.
2. The automatic test system for the card sender of the android device can realize the fully-automatic intelligent test of the card sender of the android device through the mutual cooperation of the process file generation module, the initial test execution module and the advanced test execution module, has the advantages of ingenious logic of the whole test process, strong ladder property of the test process, easy resolution and confirmation of hardware faults and software faults of the card sender and high test precision, has extremely low labor cost due to the adoption of the fully-automatic test system, extremely high test efficiency and test stability, finally has definite indication and statistics on test results, makes up the defects of the prior art, and has extremely high application value.
3. The computer-readable storage medium can realize the cooperation of the guide flow file generation module, the initial test execution module and the advanced test execution module, so as to realize the fully-automatic intelligent test of the card sender for the android device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an automated testing method for a card sender of an android device according to embodiment 1 of the present invention;
fig. 2 is a schematic flowchart of a specific process of an automatic test method for a card sender of an android device according to embodiment 1 of the present invention;
fig. 3 is an architecture diagram of an automatic test system of a card sender for an android device according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are a part of the embodiments of the present invention, and not all embodiments; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", "third", "fourth", "fifth", "sixth", and "seventh" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it is to be noted that: VID/PID is vendor identification/product identification; IP is a network interconnection protocol address; OLEDs are a type of display screen.
Example 1
The embodiment provides an automatic test method for a card sender of an android device, which includes the following steps as shown in fig. 1 and fig. 2:
s100, a process file generating step specifically comprises the following steps:
s110, obtaining information of a card sender to be tested, configuring a test code template, and setting a first file format; generating a test flow file based on the card sender information to be tested, the test code template and the first file format; in this embodiment, the card sender information to be tested is relevant basic information of the card sender to be tested and relevant parameters of each interface therein; in this embodiment, the first file format is an executable code format, and is set based on a development framework of a code execution program and a test code template; the finally generated test flow file is used for testing each function of the card sender so as to meet the test requirement;
specifically, the card sender information to be tested includes: the card sender main equipment model is the equipment model, the port model, the VID/PID and the like of the card sender to be tested; the card sender is provided with a first card box number, namely the card box number of a new card to be sent is stored in the card sender; the second card box number of the card sender, namely the card box number used for storing the recovered old card in the card sender; the card electricity management interface address of the card sender is the relevant parameter address of the control interface of the electric control module used for powering on or powering off the card in the card sender; the card information processing method comprises the following steps that (1) card reader interface addresses of a card sender are obtained, namely relevant parameter addresses of control interfaces of relevant hardware equipment used for reading card information in the card sender; the card control interface address of the card sender, namely the relevant parameter address of the control interface of the mechanical module for controlling card recovery, ejection (card return), income and transmission in the card sender; the number of the remaining cards of the card sender is the number of the remaining new cards in the card box corresponding to the first card box number in the card sender; in this embodiment, if the card issuer does not support network transmission, the communication address is a bluetooth address, and if the card issuer does not support a bluetooth function, the communication address is a port address or a serial port address of a USB peripheral interface, so that a communication purpose is achieved by physically connecting the serial port addresses;
the test code template includes: a first hard processing test template and a first soft processing test template; in this embodiment, the test code templates are all developed code test flows, where template vacancies to be filled are provided for filling necessary call parameters in the test process, such as addresses of related functional interfaces, box numbers of card boxes, and the like; in this embodiment, the first hard processing test template is mainly used for testing the card issuing, card recycling, card returning process and other functions related to the operation of the mechanical module; the first soft processing test template is mainly used for testing functions related to more software processing, such as reading, powering on, powering off, resetting and the like of a card sender for a card; the test flow file comprises: issuing a card test file, a card electricity management test file, a card reading test file, a card returning test file and a card recycling test file; in this embodiment, the card issuance test file is a related program file for card issuance test; the card electricity management test file is a related program file for the card electricity on-off test; the card reading test file is a related program file for card reading test; the card returning test file is a related program file for card returning operation; the recovery card test file is a related program file for card recovery test;
specifically, a test card allowance threshold value is set; in this embodiment, the remaining threshold of the test card is set to 1, and correspondingly, because the integrated and automated test method is implemented in this embodiment, the whole process needs to be closely connected, and in order to accurately test each function condition of the individual card issuing machine, but the test efficiency needs to be ensured, the card issuing test is set in the first step, so that the number of the remaining cards of the card issuing machine in the information of the card issuing machine to be tested needs to be identified at first; comparing whether the number of the remaining cards of the card sender is not less than the test card margin threshold value or not; if the test result is not less than the preset value, the card issuing test can be performed, so that the starting end of the whole test process can be met, and the first card box number of the card issuing machine, the second card box number of the card issuing machine, the card electricity management interface address of the card issuing machine, the card reader interface address of the card issuing machine and the card control interface address in the information of the card issuing machine to be tested are identified, so that the configuration process of a relevant test process file can be executed according to the content, the effectiveness of the test process is further ensured, the time loss is reduced, and the test efficiency is improved; therefore, the card sender card control interface address is placed in a first hard processing template vacancy of the first hard processing test template to obtain a second hard processing test template; in this embodiment, the first hard processing test template is configured with all the operation flows of the related card issuing, card returning and card recovering, and reserves the template vacancy corresponding to each function to be filled, and the corresponding code function can be satisfied only by filling according to the position, and if the template vacancy corresponding to each function in the first hard processing test template to be filled is not filled, the function test is skipped during the test, and the function test corresponding to the filled template vacancy is executed, so according to this principle, the independence test codes corresponding to different functions can be designed, correspondingly, the second hard processing test template is the functional code which can be called for the card control related mechanical module of the card issuing machine, and the key box number information is required to be refilled for the corresponding card issuing and card recovering, and the card returning does not need other information, so when the second hard processing test template is not filled, when the finally generated code file runs, skipping other codes and executing a card withdrawing test; copying the second hard processing test template to obtain a third hard processing test template, a fourth hard processing test template and a fifth hard processing test template; the third hard processing test template, the fourth hard processing test template and the fifth hard processing test template are the same, and different prefixes are only used for description and distinction; therefore, when the card issuing test is needed, the key card issuing box number is inevitably needed, so that the card issuing machine first card box number is placed in a third hard processing template vacancy of the third hard processing test template to obtain a card issuing test read-only part; when the recovery card test is carried out, a key recovery card box number is inevitably needed, so that the second card box number of the card sender is placed in a fourth hard processing template vacancy of the fourth hard processing test template to obtain a recovery card test read-only component; the mechanism called by the card ejection test is still a mechanical module in the card sender for receiving and ejecting the cards, so that corresponding key information does not need to be filled, and the card ejection test mechanism can be directly called in the test, so that the fifth hard processing test template is set as a card ejection test read-only part; placing the card electricity management interface address of the card sender into a first soft processing template vacancy of the first soft processing test template to obtain a card electricity management test read-only piece, wherein in the embodiment, the card electricity management test read-only piece comprises an electrifying test read-only piece and a discharging test read-only piece; copying the first soft processing test template to obtain a second soft processing test template; placing the card reader interface address of the card sender into a second soft processing template vacancy of the second soft processing test template to obtain a card reading test read-only element; in this embodiment, the read-only files are obtained as code read-only documents, and are not compiled; therefore, the file formats of the card issuing test read-only piece, the card recovery test read-only piece, the card returning test read-only piece, the card electricity management test read-only piece and the card reading test read-only piece are all converted into the first file format, so that the card issuing test file, the card recovery test file, the card returning test file, the card electricity management test file and the card reading test file are obtained, and correspondingly, the card electricity management test file also comprises an electricity management test file and an electricity discharging management test file; and compiling each test file by adopting a development framework the same as the test code template, and if the test files are correct, using the test files for subsequent card sender tests.
Correspondingly, in this embodiment, part of the code of the card issuing test file is as follows:
(flow name ═ specification ═ basic test of card distribution >
"action name" ("disconnect" ("description") "-hairpin" ("toast" ("please wait" ("conf irm" ("0" >) ")
< param name ═ boxNo ═ value ═ 0 ═ type ═ int ═ description ═ cassette number "/>, and
to the mount "/>", a "param name" ("isSendGate" value "(" false ") -type" ("boulean" ("description"))
</action>
"action name" ("objectcard" description "(" bounca "(" bounc "))", "toast" ("please wait for" con firm "(" 0 ") >)"
</action>
</flow>
S200, an initial test execution step, which specifically comprises the following steps:
s210, configuring a card sender testing module, and executing communication connection operation based on the card sender information to be tested and the card sender testing module to obtain a communication connection result; performing card sender function test operation based on the test flow file, the card sender test module and the communication connection result to obtain a first test result; in the embodiment, the card sender testing module is mainly used for carrying out non-manual and full-automatic card sender testing, and the testing precondition is based on the testing flow file and the communication connection establishment result between the card sender testing module and the card sender to be tested;
specifically, a first communication module, a first driver configuration module, a first condition detection module, a first card placement module, a first information verification module, a first card interaction module and a first code execution program are configured on the card sender test module; the communication connection result includes: communication connection success and communication connection failure; the first test result comprises: the card sender has no physical fault and has physical fault; in this embodiment, the first communication module adopts a communication interaction device/chip/module matched with the communication mode of the card sender; for example, if the card sender is in ethernet communication, the first communication module is an ethernet chip; the first drive configuration module is an adaptation module which can be networked to download a card sender drive program and is used for relevant debugging actions and adaptation actions after the connection between the card sender and the card sender test module is established; the first condition detection module adopts a camera module and is used for acquiring the relevant test condition of the card sender in an image capturing mode; the first card placing module adopts an electrically controlled mechanical arm module and is used for replacing manual operation to realize card placing and pushing actions on the card sender to be tested; the first card interaction module is a test background interaction end of the card sender, is used for data interaction of related cards after the cards are read by the card sender, belongs to terminal equipment applied by the card sender, and is used as a test so that a smaller specification is selected in the embodiment; the first information checking module is a checking program configured with a data comparison algorithm; the first code execution program is a software program which can run and call the test file; in this embodiment, the card sender test module main body is a main processor or a processing chip that can jointly control the first communication module, the first driver configuration module, the first condition detection module, the first card placement module, the first information verification module, and the first code execution program, and in this embodiment, the card sender test module main body is configured to be multi-core and multi-thread, so as to improve the whole test efficiency;
specifically, the communication connection operation includes: identifying the type of the card sender main equipment and the communication address of the card sender in the information of the card sender to be tested; the first communication module is called by the card sender testing module to send an in-place detection signal to the card sender communication address, in this embodiment, the in-place detection signal is an enable signal or a notification signal for informing the card sender to be tested of preparing data connection and interaction, for example, if the communication mode of the card sender to be tested is bluetooth transmission, the first communication module is a bluetooth pairing module, the in-place detection signal is a bluetooth pairing signal, and if the communication mode of the card sender to be tested is wireless network transmission, the first communication module is an ethernet transmission module, the in-place detection signal is a local area network access signal; calling the first communication module through the card sender testing module to detect whether a feedback signal related to the in-place detection signal is received or not, wherein the feedback signal is an interactive signal fed back by the card sender to be tested according to the interactive signal; in this embodiment, the receiving waiting interval for the feedback signal is set to 10s, and if the feedback signal is not received within 10s, it indicates that a problem occurs in the communication module/communication interface of the card sender, so that a subsequent test cannot be performed, and the communication connection result is set as the communication connection failure; the operator can first determine the most basic items of the card sender according to the interface: a communication function is failed; if the feedback signal is received within 10s, the card sender is indicated to carry out communication adaptation, so that further confirmation is carried out, the accuracy of a test process is ensured, and the card sender test module is controlled to identify whether the feedback signal is matched with the type of the card sender main equipment or not; if the two card senders are matched, the current paired/communication connected card sender is the card sender to be tested, so that the first driver configuration module is called by the card sender test module to configure a calling driver matched with the type of the card sender main equipment, the calling driver is an interface driver for adapting the card sender, and stable interaction and control can be performed between the card sender and the card sender test module only after the driver exists; therefore, the card sender test module is called to load the calling driver, and then the communication connection result is set as the communication connection success; and if not, setting the communication connection result as the communication connection failure.
Specifically, the card sender function test operation includes:
when the communication connection result is that the communication connection is successful, executing a card sending detection step;
the hairpin detection step comprises the following steps: calling the first code execution program through the card sender test module to execute the card sender test file, executing a related card sender test process at the moment, interactively operating a card sending function according to data between the card sender test modules through the card sender test module, calling the first condition detection module through the card sender test module to capture an image of a card outlet of the card sender to be tested, and further detecting whether a first card exists in the card outlet of the card sender to be tested; if the first card exists, the card sender can send the card, so that the next step is carried out, and the card returning detection step is executed; if the first card does not exist, it is judged that the card sender cannot send the card, the condition is a serious fault, the card sender cannot meet the most main functions of the card sender, so that the card processing mechanical module of the card sender has a fault inevitably, other tests are not carried out in consideration of the possibility that the fault affects other test steps, the first test result is set to be that the card sender has a physical fault, the card sender test module is called to generate first hardware fault information, the first hardware fault information is that the card sender cannot send the card, and the card sender does not carry out card withdrawal, card recovery and software card reading tests;
the card withdrawal detection step comprises the following steps: configuring a second card, wherein the second card is a related card for detecting a card returning function, the first card placing module is called by the card sender testing module to place the second card into a card inlet of the card sender to be tested, then the first code execution program is called by the card sender testing module to execute the card returning test file, at this time, the card sender to be tested starts to realize the related card returning function, and then the first condition detecting module is called by the card sender testing module to capture a card inlet image of the card sender to be tested, so as to detect whether the card inlet of the card sender to be tested pops up the second card which is just placed; if the second card is popped up, the card returning function of the card sender is complete, and the relevant mechanical module for card processing has no fault, so that the next step is carried out, and the step of detecting the recovered card is executed; if the second card is not popped up, setting the first test result as that the card sender has a physical fault, and calling the card sender test module to generate second hardware fault information, wherein the second hardware fault information is that the card sender can send the card but cannot return the card, and the card sender does not perform card recovery and software card reading tests;
the recovery card detection step comprises: firstly, calling the first card placing module through the card sender testing module to place the second card into the card inlet of the card sender to be tested again, then calling the first code execution program through the card sender testing module to execute the recovered card testing file, and then calling the first condition detection module through the card sender testing module to capture the image of the card inlet of the card sender to be tested at the moment so as to detect whether the second card exists in the card inlet of the card sender to be tested; if the second card does not exist, the second card is recovered, so that the final first test result is set as that the card sender has no physical fault; if the second card exists, the card sender cannot realize the function of recovering the card, so that the first test result is set as that the card sender has a physical fault, and the card sender test module is called to generate third hardware fault information; the third hardware fault information is that the card sender can send and withdraw cards but cannot recover the cards, and the card sender does not perform software card reading test.
S300, a step of executing the advanced test, which specifically comprises the following steps:
s310, a configuration result response module; executing advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module;
specifically, the result response module includes: the system comprises an information identification module, an interactive display module and a buzzing alarm module; in the embodiment, the information identification module is a data processing chip with image and character identification functions; the interactive display module is a 15-inch OLED display screen; the buzzing alarm module is a buzzer which can control a buzzing mode in a programmable way;
specifically, when the first test result indicates that the card sender has no physical fault, it indicates that card reading fault misjudgment caused by physical reasons does not occur when a card enters the card sender, so that related card reading tests are performed on the premise of further improving test accuracy, and the advanced test operation is executed on the basis of the card sender test module, the card electricity management test file and the card reading test file;
when the first test result indicates that the card sender has a physical fault, the card sender is indicated to have the physical fault, and in order to further ensure the accuracy of the test and ensure the quality of the test, the card reading test is not performed, and physical fault information is directly informed to prompt the card sender to return to a factory for maintenance, so that the result output operation is executed based on the result response module, the first hardware fault information, the second hardware fault information and the third hardware fault information; correspondingly, in the embodiment, the function test operation of the card sender includes but is not limited to only testing card sending, card returning and card recycling, and other physical faults can be detected according to the same logic, so that the accuracy and the effectiveness of the test are further improved;
specifically, an interactive screen is arranged on the first card interactive module;
the advanced test operation comprises:
setting reference chip information, wherein the reference chip information is basic data of a chip, such as a chip account number, a chip attribution and the like; configuring a third card sheet matched with the information of the reference chip, wherein the third card sheet is used for card reading and card up-and-down electrical testing; therefore, the first card placing module is called by the card sender testing module to place the third card into the card inlet of the card sender to be tested, then the first code execution program is called by the card sender testing module to execute the power-on management testing file in the card electricity management testing file, at this time, the card sender is powered on the third card, then the card sender testing module is called to detect whether a card operation interface for the third card appears in the interactive screen of the first card interactive module, namely, the card sender is switched out of a corresponding operation interface if the card is powered on normally, the interactive screen is configured on the card sender testing module in the embodiment, so that the interface cannot be generated due to the fault of the card sender does not exist, and the testing accuracy is further improved; if the current situation occurs, the power-on is proved to have no problem, the card reading can be carried out, and therefore the next step is carried out, and the card reading detection step is executed; if the card failure information does not appear, the card sender cannot be electrified, so that the card cannot execute other tests under the condition that the card cannot be electrified, the card sender test module is called to generate first electrifying failure information, the first electrifying failure information indicates that the card sender has no physical failure, and the card sender cannot electrify the card;
the card reading detection step comprises: firstly, calling the first code execution program to execute the card reading test file through the card sender test module, wherein the card sender realizes a related card reading function, and then calling the card sender test module to detect whether card basic information appears in the interactive screen; if so, the preliminary function of the reading operation of the card sender is normal, and whether the card reader of the card sender is completely normal is determined, and whether the content read by the card reader accords with the initially set reference chip information is also required to be judged, so that the information checking step is executed; if the card is not found, the card reader is indicated to have a fault, so that the card reader testing module is called to generate first card reading fault information, data verification is not needed, and the step of power-off testing is directly executed; the first card reading fault information is that the card sender has no physical fault, the card sender can power on the card, and the card sender cannot read the card;
the information checking step comprises: calling the first information checking module through the card sender testing module to compare whether the card basic information is matched with the reference chip information; if the card is matched with the card issuing machine, the card issuing machine can normally realize the card reading function, so that the next test is carried out, and the power-off test step is executed; if the card reading function of the card sender is not complete, calling a card sender testing module to generate second card reading fault information, and executing the power-off testing step; the second card reading fault information is that the card sender has no physical fault, the card sender can power on the card, and the card sender can identify the card but read the card incorrectly;
the step of performing a next electrical test comprises: firstly, calling the first code execution program through the card sender test module to execute a power-off management test file in the card electricity management test file, and then realizing the power-off function of a third card by the card sender, and then detecting whether card return prompting information appears in the interactive screen through the card sender test module, wherein the card sender pops up card return information (the card return information is that the card is returned and a card fetching button is requested to fetch the card) after powering off the card; if the test result is positive, the card sender can realize the function of powering off the card and can meet all test requirements, so that the card sender test module is called to generate soft processing test success information, and the soft processing test success information is that both card reading of the card sender and related test of card processing pass; if the card sending fault information does not appear, the card sending machine cannot power off the card, so that the card sending machine test module is called to generate first power-off fault information, and the first power-off fault information is only that the card sending machine cannot power off;
the result output operation includes:
calling the information identification module to judge the generation condition of the first fault information; if the first fault information generation condition is that the second hardware fault information or the third hardware fault information is generated, calling the interactive display module to output the second hardware fault information or the third hardware fault information, and further prompting an operator of which part of the card sender has a problem; if the fault information generation condition is that the first hardware fault information is generated, the condition is serious, and the buzzing alarm module is called to output a first buzzing prompt tone, wherein in the embodiment, the first buzzing prompt tone is a continuous buzzing tone; in this embodiment, a specification table matched with the fault information is configured for a user of the method, and different fault conditions respectively corresponding to the output condition of the interactive display module and the buzzing condition of the buzzing alarm module are set in the specification table; for example: when the interactive display module outputs the second hardware fault information, the interactive display module represents that the card issuing function of the card issuing machine is normal, but the card issuing machine cannot perform card withdrawing, and the card issuing machine does not perform subsequent card recovery test and card reading test; when the buzzing alarm module outputs the first buzzing prompt tone, the card sender does not start other tests and cannot send cards.
Specifically, the method for automatically testing the card sender of the android device further comprises the following steps:
configuring a test success prompt, and calling the information identification module to judge the second fault information generation condition after executing the advanced test operation; executing a step of prompting a test result based on the test success prompt and the second fault information generation condition; in the step, more detailed test result indication is carried out according to the advanced test result of the card sender, the situations are abundant, the related test results are accurate, the difficulty of fault judgment of the card sender by an operator is further reduced, the user experience is improved, and the maintenance of the card sender is facilitated;
specifically, the second failure information generation condition includes: a first instance, a second instance, a third instance, a fourth instance, a fifth instance, a sixth instance, and a seventh instance;
the first condition is that the first power-on fault information is generated, namely the card sender has no physical fault and cannot power on the card;
the second condition is that the first card reading fault information and the soft processing test success information are generated, namely the card sender has no physical fault, can power on the card, cannot read the card and can power off the card;
the third condition is that the first card reading fault information and the first power-off fault information are generated, namely the card sender has no physical fault and can power on the card, and the card sender cannot read the card and power off the card;
the fourth condition is that the second card reading fault information and the soft processing test success information are generated, namely the card sender has no physical fault and can power on and power off the card, and the card sender can identify the card but read the card information incorrectly;
the fifth condition is that the second card reading fault information and the first power-off fault information are generated, namely the card sender has no physical fault and can power on the card, the card sender can identify the card but read the card information incorrectly, and the card sender cannot power off the card;
the sixth condition is that the first card reading fault information or the second card reading fault information is not generated, and the first power-off fault information is generated, namely the card sender has no physical fault, and can power on and power off the card, and the card sender can correctly read the card, but cannot power off the card;
the seventh situation is that the first card reading fault information or the second card reading fault information is not generated, and the soft processing test success information is generated, namely the card sender is in good function and passes the test;
the step of prompting the advanced test result comprises the following steps:
when the interactive display module outputs the fault information corresponding to each condition except the seventh condition, namely when the interactive display module is called to ensure that the second fault information generation condition is the first condition, the first power-on fault information is output; calling the interactive display module to output the first card reading fault information when the second fault information generation condition is the second condition; calling the interactive display module to output the first card reading fault information and the first power-off fault information when the second fault information generation condition is the third condition; calling the interactive display module to output the second card reading fault information when the second fault information generation condition is the fourth condition; calling the interactive display module to output the second card reading fault information and the first power-off fault information when the second fault information generation condition is the fifth condition; calling the interactive display module to output the first power-off fault information when the second fault information generation condition is the sixth condition;
in a seventh situation, an operator needs to be instructed that the card sender passes all tests, so that the buzzing alarm module is called to output a second buzzing prompt tone when the second fault information generation situation is the seventh situation; the second buzzing prompt tone is different from the first buzzing prompt tone and has a tone prompt tone, so that an operator is prompted that the card sender passes all tests; aiming at the various test conditions, the accurate test result indication is carried out, the intelligent degree is extremely high, and the defects of the prior art are overcome.
Example 2
The present embodiment provides an automatic test system for a card sender of an android device based on the same inventive concept as the automatic test method for a card sender of an android device in embodiment 1, as shown in fig. 3, including: the system comprises a flow file generating module, an initial test executing module and an advanced test executing module;
in the automatic test system for the card sender of the android device, a flow file generation module is used for acquiring information of the card sender to be tested, configuring a test code template and setting a first file format; the process file generation module generates a test process file based on the card sender information to be tested, the test code template and the first file format;
specifically, the card sender information to be tested includes: the card issuing method comprises the steps that the card issuing machine comprises a card issuing machine main equipment model, a first card box number of a card issuing machine, a second card box number of the card issuing machine, a card electricity management interface address of the card issuing machine, a card reader interface address of the card issuing machine, a card control interface address of the card issuing machine, the number of remaining cards of the card issuing machine and a communication address of the card issuing machine;
specifically, the test code template includes: a first hard processing test template and a first soft processing test template; the test flow file comprises: issuing a card test file, a card electricity management test file, a card reading test file, a card returning test file and a card recycling test file;
specifically, the flow file generation module sets a test card allowance threshold; the flow file generation module identifies the number of the remaining cards of the card sender in the information of the card sender to be tested; the process file generation module compares whether the number of the remaining cards of the card sender is not less than the test card allowance threshold value or not; if not, the flow file generation module identifies the first card box number of the card sender, the second card box number of the card sender, the card electricity management interface address of the card sender, the card reader interface address of the card sender and the card control interface address of the card sender in the information of the card sender to be tested; the process file generation module places the card sender card control interface address into a first hard processing template vacancy of the first hard processing test template to obtain a second hard processing test template; the flow file generation module copies the second hard processing test template to obtain a third hard processing test template, a fourth hard processing test template and a fifth hard processing test template; the process file generation module places the first card box number of the card sender into a third hard processing template vacancy of the third hard processing test template to obtain a card sending test read-only piece; the process file generation module places the second card box number of the card sender into a fourth hard processing template vacancy of the fourth hard processing test template to obtain a recovered card test read-only piece; the flow file generation module sets the fifth hard processing test template as a card withdrawing test read-only piece; the process file generation module places the card electricity management interface address of the card sender into a first soft processing template vacancy of the first soft processing test template to obtain a card electricity management test read-only piece; the flow file generation module copies the first soft processing test template to obtain a second soft processing test template; the process file generation module places the card reader interface address of the card sender into a second soft processing template vacancy of the second soft processing test template to obtain a card reading test read-only component; the process file generation module converts the file formats of the card issuing test read-only component, the card recovery test read-only component, the card return test read-only component, the card electricity management test read-only component and the card reading test read-only component into the first file format to obtain the card issuing test file, the card recovery test file, the card return test file, the card electricity management test file and the card reading test file.
In the automatic test system for the card sender of the android device, an initial test execution module is used for configuring a card sender test module, and the initial test execution module executes communication connection operation based on the information of the card sender to be tested and the card sender test module to obtain a communication connection result; the initial test execution module carries out card sender function test operation based on the test flow file, the card sender test module and the communication connection result to obtain a first test result;
specifically, a first communication module, a first driver configuration module, a first condition detection module, a first card placing module, a first card interaction module, a first information checking module and a first code execution program are configured on the card sender testing module; the communication connection result includes: communication connection success and communication connection failure; the first test result comprises: the card sender has no physical fault and has physical fault;
specifically, the communication connection operation includes: the initial test execution module identifies the card sender main equipment model and the card sender communication address in the information of the card sender to be tested; the initial test execution module calls the first communication module through the card sender test module to send an in-place detection signal to the card sender communication address; the initial test execution module calls the first communication module through the card sender test module to detect whether a feedback signal about the in-place detection signal is received or not; if not, the initial test execution module sets the communication connection result as the communication connection failure; if so, the initial test execution module controls the card sender test module to identify whether the feedback signal is matched with the type of the card sender main equipment; if the communication connection result is matched with the calling driver, the initial test execution module calls the first driver configuration module to configure the calling driver matched with the type of the card sending main equipment through the card sending machine test module, firstly calls the card sending machine test module to load the calling driver, and then sets the communication connection result as the communication connection success; if not, the initial test execution module sets the communication connection result as the communication connection failure;
specifically, the card sender function test operation includes: when the communication connection result is that the communication connection is successful, the initial test execution module executes a card sending detection step;
specifically, the hairpin detection step comprises: the initial test execution module calls the first code execution program to execute the card sending test file through the card sender test module, and then the initial test execution module calls the first condition detection module through the card sender test module to detect whether a first card exists in a card outlet of the card sender to be tested; if the first card exists, the initial test execution module executes a card returning detection step; if the first card does not exist, the initial test execution module sets the first test result as that the card sender has a physical fault, and calls the card sender test module to generate first hardware fault information;
specifically, the card withdrawal detection step includes: the initial test execution module is used for configuring a second card, the initial test execution module firstly calls the first card placing module through the card sender test module to place the second card into the card inlet of the card sender to be tested, then calls the first code execution program through the card sender test module to execute the card return test file, and then calls the first condition detection module through the card sender test module to detect whether the card inlet of the card sender to be tested ejects the second card or not; if the second card is popped up, the initial test execution module executes a recovery card detection step; if the second card is not popped up, the initial test execution module sets the first test result as that the card sender has a physical fault, and calls the card sender test module to generate second hardware fault information;
specifically, the recovery card detection step includes: the initial test execution module calls the first card placing module through the card sender test module to place the second card into the card inlet of the card sender to be tested again, then calls the first code execution program through the card sender test module to execute the recovered card test file, and then calls the first condition detection module through the card sender test module to detect whether the second card exists in the card inlet of the card sender to be tested; if the second card does not exist, the initial test execution module sets the first test result as that the card sender has no physical fault; if the second card exists, the initial test execution module sets the first test result as that the card sender has a physical fault, and calls the card sender test module to generate third hardware fault information.
In the automatic test system for the android device card sender, the advanced test execution module is used for configuring a result response module; the advanced test execution module executes advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module; specifically, the result response module includes: the system comprises an information identification module, an interactive display module and a buzzing alarm module; specifically, an interactive screen is arranged on the first card interactive module;
specifically, when the first test result indicates that the card sender has no physical fault, the advanced test execution module executes the advanced test operation based on the card sender test module, the card electricity management test file and the card reading test file; when the first test result indicates that the card sender has a physical fault, the advanced test execution module executes the result output operation based on the result response module, the first hardware fault information, the second hardware fault information and the third hardware fault information;
specifically, the advanced test operation includes: the advanced test execution module sets reference chip information and is provided with a third card matched with the reference chip information; the advanced test execution module calls the first card placing module through the card sender test module to place the third card into the card inlet of the card sender to be tested, then calls the first code execution program through the card sender test module to execute the card electricity management test file, and then calls the card sender test module to detect whether a card operation interface appears in the interactive screen of the first card interactive module; if so, the advanced test execution module executes the card reading detection step; if the first power-on fault information does not appear, the advanced test execution module calls the card sender test module to generate first power-on fault information;
specifically, the card reading detection step includes: the advanced test execution module calls the first code execution program to execute the card reading test file through the card sender test module, and then the advanced test execution module calls the card sender test module to detect whether card basic information exists in the interactive screen; if yes, the advanced test execution module executes the information verification step; if the card sending fault information does not appear, the advanced test execution module calls the card sender test module to generate first card reading fault information and executes a power-off test step;
specifically, the information verification step includes: the advanced test execution module calls the first information verification module through the card sender test module to compare whether the card basic information is matched with the reference chip information; if the test result is matched with the preset test result, the advanced test execution module executes the power-down test step; if not, the advanced test execution module calls the card sender test module to generate second card reading fault information and executes the power-off test step;
specifically, the following electrical test steps include: the advanced test execution module calls the first code execution program to execute the card electricity management test file through the card sender test module, and then the advanced test execution module detects whether card return prompt information appears in the interactive screen through the card sender test module; if so, the advanced test execution module calls the card sender test module to generate soft processing test success information; if the failure occurs, the advanced test execution module calls the card sender test module to generate first power-off fault information;
specifically, the result output operation includes: the advanced test execution module calls the information identification module to judge the generation condition of the first fault information; if the first fault information generation condition is that the second hardware fault information or the third hardware fault information is generated, the advanced test execution module calls the interactive display module to output the second hardware fault information or the third hardware fault information; if the fault information generation condition is that the first hardware fault information is generated, the advanced test execution module calls the buzzing alarm module to output a first buzzing prompt tone.
Specifically, after the advanced test execution module executes the advanced test operation, the advanced test execution module calls the information identification module to judge the second fault information generation condition; the advanced test execution module executes an advanced test result prompting step based on the second fault information generation condition; specifically, the second failure information generation condition includes: a first instance, a second instance, a third instance, a fourth instance, a fifth instance, a sixth instance, and a seventh instance;
specifically, the first condition is that the first power-on failure information is generated; the second condition is that the first card reading fault information and the soft processing test success information are generated; the third condition is that the first card reading fault information and the first power-off fault information are generated; the fourth condition is that the second read card fault information and the soft processing test success information are generated; the fifth condition is that the second reading card fault information and the first power-down fault information are generated; the sixth condition is that the first card reading fault information or the second card reading fault information is not generated, and the first power-down fault information is generated; the seventh condition is that the first card reading fault information or the second card reading fault information is not generated, and the soft processing test success information is generated;
specifically, the step of prompting the advanced test result includes: the advanced test execution module calls the interactive display module to output the first power-on fault information when the second fault information generation condition is the first condition; the advanced test execution module calls the interactive display module to output the first card reading fault information when the second fault information generation condition is the second condition; the advanced test execution module calls the interactive display module to output the first card reading fault information and the first power-off fault information when the second fault information generation condition is the third condition; the advanced test execution module calls the interactive display module to output the second card reading fault information when the second fault information generation condition is the fourth condition; the advanced test execution module calls the interactive display module to output the second card reading fault information and the first power-off fault information when the second fault information generation condition is the fifth condition; the advanced test execution module calls the interactive display module to output the first power-off fault information when the second fault information generation condition is the sixth condition; and the advanced test execution module calls the buzzing alarm module to output a second buzzing prompt tone when the second fault information generation condition is the seventh condition.
Example 3
The present embodiments provide a computer-readable storage medium comprising:
the storage medium is used for storing computer software instructions for implementing the card sender automatic test method for the android device described in embodiment 1, and includes a program for executing the above-mentioned card sender automatic test method for the android device; specifically, the executable program may be embedded in the automatic test system for a card sender of an android device in embodiment 2, so that the automatic test system for a card sender of an android device may implement the automatic test method for a card sender of an android device in embodiment 1 by executing the embedded executable program.
Furthermore, the computer-readable storage medium of the present embodiments may take any combination of one or more readable storage media, where a readable storage medium includes an electronic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Different from the prior art, the automatic testing method, the system and the medium for the card sender of the android device can realize the fully-automatic intelligent testing of the card sender of the android device through the method, the whole testing process is ingenious in logic, the ladder property of the testing process is strong, hardware faults and software faults of the card sender are easy to distinguish and confirm, the testing precision is high, due to the adoption of the fully-automatic testing process, the labor cost is extremely low, the testing efficiency and the testing stability are extremely high, and clear indication and statistics are provided for the testing result, effective technical support is provided for the method through the system, the defects of the prior art are finally made up, and the application value is extremely high.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An automatic testing method for a card sender of an android device is characterized by comprising the following steps:
a step of generating a flow file: acquiring information of a card sender to be tested, configuring a test code template, and setting a first file format; generating a test flow file based on the card sender information to be tested, the test code template and the first file format;
an initial test execution step: configuring a card sender testing module, and executing communication connection operation based on the card sender information to be tested and the card sender testing module to obtain a communication connection result; performing card sender function test operation based on the test flow file, the card sender test module and the communication connection result to obtain a first test result;
the step of executing the advanced test: a configuration result response module; and executing advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module.
2. The method for automatically testing the card sender of the android device as claimed in claim 1, wherein:
the card sender information to be tested comprises: the card issuing method comprises the steps that the card issuing machine comprises a card issuing machine main equipment model, a first card box number of a card issuing machine, a second card box number of the card issuing machine, a card electricity management interface address of the card issuing machine, a card reader interface address of the card issuing machine, a card control interface address of the card issuing machine, the number of remaining cards of the card issuing machine and a communication address of the card issuing machine;
the test code template includes: a first hard processing test template and a first soft processing test template;
the test flow file comprises: issuing a card test file, a card electricity management test file, a card reading test file, a card returning test file and a card recycling test file;
the card sender testing module is provided with a first communication module, a first driver configuration module, a first condition detection module, a first card placing module, a first card interaction module, a first information checking module and a first code execution program;
the communication connection result includes: communication connection success and communication connection failure;
the first test result comprises: the card sender has no physical fault and has physical fault;
the result response module includes: the device comprises an information identification module, an interactive display module and a buzzing alarm module.
3. The method for automatically testing the card sender of the android device as claimed in claim 2, wherein the method comprises the following steps:
the step of generating a test flow file based on the card sender information to be tested, the test code template and the first file format further comprises:
setting a test card allowance threshold; identifying the number of the remaining cards of the card sender in the information of the card sender to be tested; comparing whether the number of the remaining cards of the card sender is not less than the test card margin threshold value or not; if not, identifying the first card box number of the card sender, the second card box number of the card sender, the card electricity management interface address of the card sender, the card reader interface address of the card sender and the card control interface address of the card sender in the information of the card sender to be tested;
placing the card sender card control interface address into a first hard processing template vacancy of the first hard processing test template to obtain a second hard processing test template; copying the second hard processing test template to obtain a third hard processing test template, a fourth hard processing test template and a fifth hard processing test template; placing the first card box number of the card sender into a third hard processing template vacancy of the third hard processing test template to obtain a card sending test read-only piece; placing the second card box number of the card sender into a fourth hard processing template vacancy of the fourth hard processing test template to obtain a recovered card test read-only piece; setting the fifth hard processing test template as a card withdrawing test read-only part;
placing the card electricity management interface address of the card sender into a first soft processing template vacancy of the first soft processing test template to obtain a card electricity management test read-only component; copying the first soft processing test template to obtain a second soft processing test template; placing the card reader interface address of the card sender into a second soft processing template vacancy of the second soft processing test template to obtain a card reading test read-only element;
and converting the file formats of the card issuing test read-only piece, the card recovery test read-only piece, the card returning test read-only piece, the card electricity management test read-only piece and the card reading test read-only piece into the first file format to obtain the card issuing test file, the card recovery test file, the card returning test file, the card electricity management test file and the card reading test file.
4. The method for automatically testing the card sender of the android device as claimed in claim 3, wherein the method comprises the following steps:
the communication connection operation includes:
identifying the type of the card sender main equipment and the communication address of the card sender in the information of the card sender to be tested; calling the first communication module through the card sender test module to send an in-place detection signal to the card sender communication address; calling the first communication module through the card sender testing module to detect whether a feedback signal for the in-place detection signal is received or not;
if not, setting the communication connection result as the communication connection failure;
if yes, calling the card sender testing module to identify whether the feedback signal is matched with the type of the card sender main equipment; if the communication connection is successful, calling the first driver configuration module to configure a calling driver matched with the type of the card sending main equipment through the card sending machine test module, firstly calling the card sending machine test module to load the calling driver, and then setting the communication connection result as the communication connection is successful; and if not, setting the communication connection result as the communication connection failure.
5. The method for automatically testing the card sender of the android device as claimed in claim 4, wherein the method comprises the following steps:
the card sender function test operation comprises:
when the communication connection result is that the communication connection is successful, executing a card sending detection step;
the hairpin detection step comprises the following steps: firstly, calling the first code execution program to execute the card issuing test file through the card issuing machine test module, and then calling the first condition detection module through the card issuing machine test module to detect whether a first card exists in a card outlet of the card issuing machine to be tested; if the first card exists, executing a card returning detection step; if the first card does not exist, setting the first test result as that the card sender has a physical fault, and calling a card sender test module to generate first hardware fault information;
the card withdrawal detection step comprises the following steps: configuring a second card, firstly calling the first card placing module through the card sender testing module to place the second card into the card inlet of the card sender to be tested, then calling the first code execution program through the card sender testing module to execute the card returning test file, and then calling the first condition detection module through the card sender testing module to detect whether the card inlet of the card sender to be tested ejects the second card; if the second card is popped up, executing a recovered card detection step; if the second card is not popped up, setting the first test result as that the card sender has a physical fault, and calling a card sender test module to generate second hardware fault information;
the recovery card detection step comprises: firstly, calling the first card placing module through the card sender testing module to push the second card popped up from the card inlet back into the card inlet, then calling the first code execution program through the card sender testing module to execute the recovered card testing file, and then calling the first condition detection module through the card sender testing module to detect whether the second card exists in the card inlet; if the second card does not exist, setting the first test result as that the card sender has no physical fault; and if the second card exists, setting the first test result as that the card sender has a physical fault, and calling a card sender test module to generate third hardware fault information.
6. The method for automatically testing the card sender of the android device as claimed in claim 5, wherein:
the step of performing a further test operation or a result output operation based on the test flow file, the card sender test module, the first test result, and the result response module further comprises:
when the first test result indicates that the card sender has no physical fault, executing the advanced test operation based on the card sender test module, the card electricity management test file and the card reading test file;
and when the first test result indicates that the card sender has a physical fault, executing the result output operation based on the result response module, the first hardware fault information, the second hardware fault information and the third hardware fault information.
7. The method for automatically testing the card sender of the android device as claimed in claim 6, wherein:
an interactive screen is arranged on the first card interactive module;
the advanced test operation comprises:
setting reference chip information, and configuring a third card matched with the reference chip information; firstly, calling the first card placing module through the card sender testing module to place the third card into the card inlet of the card sender to be tested, then calling the first code execution program through the card sender testing module to execute the card electricity management testing file, and then calling the card sender testing module to detect whether a card operation interface appears in the interaction screen of the first card interaction module; if yes, executing a card reading detection step; if the first power-on fault information does not appear, calling the card sender testing module to generate first power-on fault information;
the card reading detection step comprises: firstly, calling the first code execution program to execute the card reading test file through the card sender test module, and then calling the card sender test module to detect whether card basic information appears in the interactive screen; if yes, executing an information verification step; if the card is not found, calling the card sender testing module to generate first card reading fault information, and executing a power-off testing step;
the information checking step comprises: calling the first information checking module through the card sender testing module to compare whether the card basic information is matched with the reference chip information; if so, executing the step of power-down test; if not, calling the card sender testing module to generate second card reading fault information, and executing the power-off testing step;
the step of performing a next electrical test comprises: firstly, calling the first code execution program to execute the card electricity management test file through the card sender test module, and then detecting whether card return prompt information appears in the interactive screen through the card sender test module; if so, calling the card sender testing module to generate soft processing testing success information; if the failure occurs, calling the card sender test module to generate first power-off failure information;
the result output operation includes:
calling the information identification module to judge the generation condition of the first fault information; if the first fault information generation condition is that the second hardware fault information or the third hardware fault information is generated, calling the interactive display module to output the second hardware fault information or the third hardware fault information; and if the fault information generation condition is that the first hardware fault information is generated, calling the buzzing alarm module to output a first buzzing prompt tone.
8. The method for automatically testing the card sender of the android device as claimed in claim 7, wherein:
the automatic testing method for the card sender of the android device further comprises the following steps:
after the advanced test operation is executed, calling the information identification module to judge the second fault information generation condition; executing a step of prompting a test result based on the second fault information generation condition;
the second failure information generation condition includes: a first instance, a second instance, a third instance, a fourth instance, a fifth instance, a sixth instance, and a seventh instance;
the first condition is that the first power-on fault information is generated;
the second condition is that the first card reading fault information and the soft processing test success information are generated;
the third condition is that the first card reading fault information and the first power-off fault information are generated;
the fourth condition is that the second read card fault information and the soft processing test success information are generated;
the fifth condition is that the second reading card fault information and the first power-down fault information are generated;
the sixth condition is that the first card reading fault information or the second card reading fault information is not generated, and the first power-down fault information is generated;
the seventh condition is that the first card reading fault information or the second card reading fault information is not generated, and the soft processing test success information is generated;
the step of prompting the advanced test result comprises the following steps:
calling the interactive display module to output the first power-on fault information when the second fault information generation condition is the first condition;
calling the interactive display module to output the first card reading fault information when the second fault information generation condition is the second condition;
calling the interactive display module to output the first card reading fault information and the first power-off fault information when the second fault information generation condition is the third condition;
calling the interactive display module to output the second card reading fault information when the second fault information generation condition is the fourth condition;
calling the interactive display module to output the second card reading fault information and the first power-off fault information when the second fault information generation condition is the fifth condition;
calling the interactive display module to output the first power-off fault information when the second fault information generation condition is the sixth condition;
and calling the buzzing alarm module to output a second buzzing prompt tone when the second fault information generation condition is the seventh condition.
9. The automatic test system for the card sender of the android device based on the automatic test method for the card sender of the android device of any one of claims 1 to 8, characterized by comprising: the system comprises a flow file generating module, an initial test executing module and an advanced test executing module;
the process file generation module is used for acquiring information of the card sender to be tested, configuring a test code template and setting a first file format; the process file generation module generates a test process file based on the card sender information to be tested, the test code template and the first file format;
the initial test execution module is used for configuring a card sender test module, and the initial test execution module executes communication connection operation based on the information of the card sender to be tested and the card sender test module to obtain a communication connection result; the initial test execution module carries out card sender function test operation based on the test flow file, the card sender test module and the communication connection result to obtain a first test result;
the advanced test execution module is used for configuring a result response module; the advanced test execution module executes advanced test operation or result output operation based on the test flow file, the card sender test module, the first test result and the result response module.
10. A computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the card sender automated testing method for android devices of any of claims 1 to 8.
CN202111397064.6A 2021-11-23 2021-11-23 Automatic testing method, system and medium for card sender of android device Pending CN114218071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111397064.6A CN114218071A (en) 2021-11-23 2021-11-23 Automatic testing method, system and medium for card sender of android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111397064.6A CN114218071A (en) 2021-11-23 2021-11-23 Automatic testing method, system and medium for card sender of android device

Publications (1)

Publication Number Publication Date
CN114218071A true CN114218071A (en) 2022-03-22

Family

ID=80697960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111397064.6A Pending CN114218071A (en) 2021-11-23 2021-11-23 Automatic testing method, system and medium for card sender of android device

Country Status (1)

Country Link
CN (1) CN114218071A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117911995A (en) * 2024-03-19 2024-04-19 辽宁艾特斯智能交通技术有限公司 Automatic card-issuing robot card-issuing bin real-time detection device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117911995A (en) * 2024-03-19 2024-04-19 辽宁艾特斯智能交通技术有限公司 Automatic card-issuing robot card-issuing bin real-time detection device and method
CN117911995B (en) * 2024-03-19 2024-06-07 辽宁艾特斯智能交通技术有限公司 Automatic card-issuing robot card-issuing bin real-time detection device and method

Similar Documents

Publication Publication Date Title
CN112114876B (en) Equipment control method, system, electronic equipment and storage medium
CN101017451A (en) Method and system for controlling insertion and extraction of USB on television
CN107589920B (en) Reset method for chip, electronic device, storage medium and device
CN101739770A (en) Automatic test control system and method in production of POS machine
CN110308385A (en) A kind of PCBA Online Transaction Processing and method
CN114218071A (en) Automatic testing method, system and medium for card sender of android device
CN104502832A (en) Automatic tester and testing method based on hand-held POS machine mainboard
CN103995719A (en) System reset method and device and electronic equipment
CN111446015A (en) Nuclear power station reactor control rod group test method, device, equipment and medium
CN110569680A (en) Automatic plug-pull card testing method and system for ETC user card
CN109408099A (en) Remote FPGA firmware code updating system, method and medium
CN112463502B (en) Method, device and system for detecting pin state of programmable logic device
US9859813B2 (en) Power converter and method for setting the operation and the start-up of a power converter
CN107179972A (en) For the method for calculation machine, microcontroller, test equipment and test system
CN112380066A (en) Server maintenance and debugging device based on domestic platform and server
CN105528221B (en) Electronic equipment reset processing method and device
CN111258608A (en) Software upgrading method and device for terminal equipment and electronic system
CN105912431A (en) Reboot testing method of server, server, control device and system
CN106933578A (en) A kind of USB drive load methods of QNX systems
CN115033258A (en) Automatic upgrading and pressure testing method for SD card firmware of camera
CN112749063A (en) Method and device for monitoring equipment operation flow based on application program and storage medium
CN106527607B (en) A kind of configuration method and system of mobile terminal pin
CN114356415A (en) Card reader adaptation control method, system and medium for self-service terminal
CN205621011U (en) Equipment and system are write in into to chip data
CN114059274B (en) Method and device for controlling operation of washing equipment

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