[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106250307A - A kind of bank's mobile phone application automated testing method and system - Google Patents

A kind of bank's mobile phone application automated testing method and system Download PDF

Info

Publication number
CN106250307A
CN106250307A CN201610569989.7A CN201610569989A CN106250307A CN 106250307 A CN106250307 A CN 106250307A CN 201610569989 A CN201610569989 A CN 201610569989A CN 106250307 A CN106250307 A CN 106250307A
Authority
CN
China
Prior art keywords
cluster
automatic test
test
control
cell phone
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.)
Granted
Application number
CN201610569989.7A
Other languages
Chinese (zh)
Other versions
CN106250307B (en
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.)
FUJIAN RURAL CREDIT YONHAP
Original Assignee
FUJIAN RURAL CREDIT YONHAP
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 FUJIAN RURAL CREDIT YONHAP filed Critical FUJIAN RURAL CREDIT YONHAP
Priority to CN201610569989.7A priority Critical patent/CN106250307B/en
Publication of CN106250307A publication Critical patent/CN106250307A/en
Application granted granted Critical
Publication of CN106250307B publication Critical patent/CN106250307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3604Analysis of software for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management

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)
  • Software Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

One bank of the present invention mobile phone application automated testing method, including monitoring the cellphone information obtaining cell phone apparatus cluster, is sent to automatic test server by cellphone information;Upload bank's Mobile solution APP installation kit to automatic test server, handpiece adapter cluster the cell phone apparatus cluster accessed is carried out APP installation;Write Python automatic test script, the test script finished is uploaded to automatic test server;Python automatic test script and cell phone apparatus cluster to be tested is selected from automatic test server, test assignment is handed down to handpiece adapter cluster, and handpiece adapter cluster performs the test of handset device cluster according to Python automatic test script.The invention have the advantages that and the cell phone apparatus of adaptive different platform can realize cross-platform automatic test, and the control of Appium None-identified is carried out text identification, it is achieved the one-stop automatic test of bank's mobile phone application, improve integrated testability efficiency.

Description

A kind of bank's mobile phone application automated testing method and system
Technical field
The present invention relates to bank's Mobile solution field tests, particularly to a kind of bank mobile phone application automated testing method And system.
Background technology
Along with mobile communication technology and the high speed development of development of Mobile Internet technology, Mobile solution based on Android and iOS Have also been obtained and use widely.Bank, for the development of mobile Internet, is also wideling popularize mobile financial business, with satisfied visitor The mobile service at family handles demand, such as wechat bank, Mobile banking, the application of characteristic O2O etc..And current Mobile operating system Mainly being made up of the android system of Google and the iOS system of Fructus Mali pumilae, the android system increased income is on the one hand owing to supporting Manufacturer get more and more, on the other hand also very fast due to the renewal speed of system, this causes application developers before issuing application Except functional test to be carried out, in addition it is also necessary to carry out substantial amounts of compatibility test;Although the iOS system equipment compatibility test of Fructus Mali pumilae Amount smaller, but different iOS versions also to carry out corresponding system compatibility test.So, current bank Mobile solution When issue is reached the standard grade in every suboptimization, all need to carry out substantial amounts of test.
Currently, for the test of mobile phone Mobile solution, in addition to manual test, also have based on the primary SDK of Android The test of Monkey, Monkey Runner modeling event stream, and based on Instrumentation (Android 2.2+), The various Android method of testings of UIA utomator (Android 4.3+) and framework;I Phone is mainly based upon UIA The method of testing of utomation and framework.Such as, Publication No. 104331373A, date of publication is the middle promulgated by the State Council of 2015-02-04 Bright patent discloses a kind of Monkey and tests system and method, and this Monkey test system can be by the setting before different test Complete the automatic test of corresponding scene, to alleviate manual test intensity.Publication No. 202334909U, publication date is The Chinese utility model patent of 2012-07-11 discloses and a kind of by what image comparison realized automatic test mobile phone business is System, this system is mainly compared with the most resident standard drawing valuts by intercepting mobile phone real time imaging, thus is realized Automatic detection to user mobile phone business.Publication No. 103064782A, publication date is the Chinese invention patent of 2013-04-24 Disclose a kind of method and device obtaining control, specifically disclose a kind of reflex mechanism according to Java and obtain Android hands Machine control, and carry out the method and device of automatic test.But, above test mode there are following defect:
1, existing automated testing method can only individually test Android device, or individually tests iOS device, and Cannot support the test to Android device and iOS device, actual should to use comparison inconvenient simultaneously;
2, existing automated testing method is when being identified control, can only identify conventional control, and for certain A little special non-standard system controls (such as Encryption Keyboard etc.) then cannot be carried out identifying, can only the most manually go test, this meeting Reduce test speed;When carrying out image comparison, then needing to pre-set a large amount of specific scene graph valut, this can be greatly increased Actual test job;
3, for the test scene of bank's Mobile solution, existing test mode cannot be carried out with bank's mobile service system Real-time linkage, and cannot be carried out extensive batch concurrent test.
Summary of the invention
One of the technical problem to be solved in the present invention, is to provide a kind of bank mobile phone application automated testing method, logical Cross the method and realize the automatic test to bank's mobile phone application, improve testing efficiency.
The present invention is realized in one of technical problem: a kind of bank mobile phone application automated testing method, described side Method comprises the steps:
Step 1, handpiece adapter cluster monitor the cellphone information obtaining cell phone apparatus cluster, and by LAN by mobile phone Information is sent to automatic test server, and cellphone information is shown to manage in terminal by automatic test server;
Step 2, upload bank's Mobile solution APP installation kit to automatic test server by management terminal, and issue Installation instruction carries out APP installation to handpiece adapter cluster, handpiece adapter cluster to the cell phone apparatus cluster accessed;
Step 3, write Python automatic test script, and by management terminal the test script finished is uploaded to from Dynamicization testing service device, wherein, described test script is operated formed by control identification and corresponding control;
Step 4, by management terminal from automatic test server, select Python automatic test script and to survey The cell phone apparatus cluster of examination, and test assignment is handed down to handpiece adapter cluster, by handpiece adapter cluster according to Python Automatic test script performs the test of handset device cluster.
Further, in described step 3, described control identification specifically includes following steps:
Step A1, obtained and identify the business operation showing interface of cell phone apparatus Android or iOS system by Appium All controls;
Step A2, control to Appium None-identified carry out OCR text identification;
Wherein, described step A2 specifically includes:
Step A21, intercepting cell phone apparatus current screen picture also preserve;
Step A22, the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from current screen figure Sheet cuts out the control picture of text identification to be carried out, and is compressed the control picture cut out processing;
Control picture after compression is uploaded to automatic test server by step A23, handpiece adapter, automatization survey Control picture is transmitted to text identification server cluster by examination server, and by text identification server cluster to control picture Carry out text identification;
The text that step A24, text identification server cluster will identify that returns to automatic test server, automatization The text that testing service device will identify that is transmitted to handpiece adapter.
Further, described step 4 specifically includes:
Step 41, issue test request to automatic test server, and from automatic test service by management terminal Device selects Python automatic test script and cell phone apparatus cluster to be tested;
Step 42, automatic test server are according to the Python automatic test script selected and to carry out the hands tested Test assignment is handed down to handpiece adapter cluster by machine equipment cluster;
After step 43, handpiece adapter cluster receive test assignment, first pass through the Appium each cell phone apparatus to accessing Carrying out control identification, the control then identified Appium carries out corresponding control operation;For being known by Appium Other control, the most first carries out OCR text identification, then the control text identified is carried out corresponding control operation control, Thus complete the automatic test to each cell phone apparatus;In test process, produced Mobile solution business datum, then pass through The ad Hoc wireless network accessing cell phone apparatus sends backstage bank mobile service system to;
Test result is returned to automatic test server by step 44, handpiece adapter cluster, and by automatic test Test result is shown to manage in terminal by server.
Further, the operation of described control include clicking on, input, touch, drop-down selection and double click operation.
Further, described cellphone information includes the system type of handpiece adapter of cell phone apparatus series number, access, hands The system type of machine equipment and the system version of cell phone apparatus.
The two of the technical problem to be solved in the present invention, are to provide a kind of bank mobile phone application automatization test system, logical Cross this system and realize the automatic test to bank's mobile phone application, improve testing efficiency.
The present invention is realized in the twos' of technical problem: a kind of bank mobile phone application automatization test system, described system Unite and include transmission module and automatic test module on cellphone information acquisition module, APP installation module, script:
Described cellphone information acquisition module, monitors the mobile phone letter obtaining cell phone apparatus cluster for handpiece adapter cluster Breath, and by LAN, cellphone information is sent to automatic test server, automatic test server is by cellphone information exhibition Show in management terminal;
Described APP installs module, for uploading bank's Mobile solution APP installation kit to automatic test by management terminal Server, and issue installation instruction to handpiece adapter cluster, the cell phone apparatus cluster accessed is carried out by handpiece adapter cluster APP installs;
Transmission module on described script, is used for writing Python automatic test script, and will be finished by management terminal Test script is uploaded to automatic test server, and wherein, described test script is operated by control identification and corresponding control Composition;
Described automatic test module, for selecting Python automatization by management terminal from automatic test server Test script and cell phone apparatus cluster to be tested, and test assignment is handed down to handpiece adapter cluster, by handpiece adapter Cluster performs the test of handset device cluster according to Python automatic test script.
Further, described control identification specifically includes Appium identification module and OCR text identification module:
Described Appium identification module, for being obtained by Appium and identified cell phone apparatus Android or iOS system All controls of business operation showing interface;
Described OCR text identification module, for carrying out OCR text identification to the control of Appium None-identified;
Wherein, described OCR text identification module specifically includes:
Picture interception unit, is used for intercepting cell phone apparatus current screen picture and preserving;
Picture cutting unit, for the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from Current screen picture cuts out the control picture of text identification to be carried out, and the control picture cut out is compressed place Reason;
Text identification unit, is uploaded to automatic test server for handpiece adapter by the control picture after compression, By automatic test server, control picture is transmitted to text identification server cluster, and by text identification server cluster Control picture is carried out text identification;
Text retransmission unit, the text that will identify that for text identification server cluster returns to automatic test service Device, the text that automatic test server will identify that is transmitted to handpiece adapter.
Further, described automatic test module specifically includes:
Request unit, for issuing test request by management terminal to automatic test server, and surveys from automatization Examination server selects Python automatic test script and cell phone apparatus cluster to be tested;
Task issues unit, and to enter according to the Python automatic test script selected for automatic test server Test assignment is handed down to handpiece adapter cluster by the cell phone apparatus cluster of row test;
Test cell, after handpiece adapter cluster receives test assignment, first passes through the Appium each hands to accessing Machine equipment carries out control identification, and the control then identified Appium carries out corresponding control operation;For passing through Appium The control of None-identified, the most first carries out OCR text identification, then the control text identified is carried out corresponding control control Operation, thus complete the automatic test to each cell phone apparatus;Produced Mobile solution business datum in test process, then Backstage bank mobile service system is sent to by accessing the ad Hoc wireless network of cell phone apparatus;
Result display unit, returns to automatic test server for handpiece adapter cluster by test result, and by Test result is shown to manage in terminal by automatic test server.
Further, the operation of described control include clicking on, input, touch, drop-down selection and double click operation.
Further, described cellphone information includes the system type of handpiece adapter of cell phone apparatus series number, access, hands The system type of machine equipment and the system version of cell phone apparatus.
Present invention have the advantage that 1, introduce the handpiece adapter being simultaneously suitable for android system and iOS system, The cell phone apparatus of adaptive different platform can realize cross-platform automatic test, unify the automatic test work of mobile terminal Tool, can reduce testing cost, and make test convenient;2, the control to Appium None-identified introduces the knowledge of OCR text Other technology, it is possible to reduce need the time tested manually when control None-identified, it is possible to achieve bank's mobile phone should One-stop automatic test service, improve overall testing efficiency;3, handset device cluster can be realized (to include Android phone equipment and iOS cell phone apparatus) carry out bank Mobile solution APP batch and be mounted in parallel and to carry out batch concurrent Test, this can be greatly improved actual test rate, and reduces the testing cost of entirety and reduce after application is reached the standard grade and may send out Raw risk problem;And during test, cell phone apparatus and bank's mobile service can be realized by ad Hoc wireless network System carries out real-time linkage.
Accompanying drawing explanation
The present invention is further illustrated the most in conjunction with the embodiments.
Fig. 1 is the hardware block diagram that the present invention needs to use.
Fig. 2 is the FB(flow block) of bank of the present invention mobile phone application automated testing method.
Fig. 3 is the identification schematic diagram of Encryption Keyboard in the present invention.
Fig. 4 is the structured flowchart of bank of the present invention mobile phone application automatization test system.
Fig. 5 is the structured flowchart of automatic test module in the present invention.
Fig. 6 is the structured flowchart that the present invention carries out control identification.
Detailed description of the invention
Specific embodiment one:
Refer to shown in Fig. 1 to Fig. 3, a kind of bank mobile phone application automated testing method, the method needs to provide at least One cell phone apparatus cluster (Android phone device clusters or iOS cell phone apparatus cluster), a mobile phone adapter cluster, one from Dynamicization testing service device, a management terminal, a text identification server cluster and a backstage bank mobile service system, its In, cell phone apparatus cluster is linked into handpiece adapter cluster by USB, and cell phone apparatus cluster is linked into by ad Hoc wireless network Backstage bank mobile service system, handpiece adapter cluster connects automatic test server, and automatic test server connects Text identification server cluster, management terminal and backstage bank mobile service system.Described method comprises the steps:
Step 1, handpiece adapter cluster monitor the cellphone information obtaining cell phone apparatus cluster, and (are included by LAN WLAN or cable LAN) cellphone information is sent to automatic test server, automatic test server will Cellphone information is shown to manage in terminal;What described cellphone information included the handpiece adapter of cell phone apparatus series number, access is System type, the system type of cell phone apparatus and the system version of cell phone apparatus.Wherein, handpiece adapter cluster can be monitored in timing USB connects the situation of change of cell phone apparatus cluster (including Android phone equipment and iOS cell phone apparatus), and Android phone sets Standby monitoring is " adb devices " information, and what iOS cell phone apparatus was monitored is " instruments wdevices " information, when When listening to USB access cell phone apparatus cluster, just obtained the mobile phone letter of cell phone apparatus cluster by adb or instruments Breath.
Step 2, upload bank's Mobile solution APP installation kit to automatic test server by management terminal, and issue Installation instruction, to handpiece adapter cluster, is carried out APP batch by handpiece adapter cluster to the cell phone apparatus cluster accessed and installs;
Step 3, write Python automatic test script, and by management terminal the test script finished is uploaded to from Dynamicization testing service device, wherein, described test script is operated formed by control identification and corresponding control;In this step 3, The operation of described control includes clicking on, inputs, touches, drop-down selection and double click operation;
Described control identification specifically includes following steps:
Step A1, obtained and identify the business operation showing interface of cell phone apparatus Android or iOS system by Appium All controls;For example, it is possible to recognition method find_ that Android, iOS control of being provided by Appium is unified element_by_id、find_element_by_name、find_element_by_link_text、find_element_by_ Class_name, find_element_by_class_name, find_element_by_accessibility_id etc. obtain Common Android control and iOS control, wherein, common Android control comprises: Image View, Button, Text View, WebView, List View, Image, Edit Text etc.;IOS control comprises: UIA Application, UIA Window、UIA Keyboard、UIA Button、UIA Web View、UIA Scroll View、UIA Text Field、 UIA Secure Text Field etc..
Step A2, control to Appium None-identified carry out OCR text identification;
Wherein, described step A2 specifically includes:
Step A21, intercepting cell phone apparatus current screen picture also preserve;
Step A22, the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from current screen figure Sheet cuts out the control picture of text identification to be carried out, and is compressed the control picture cut out processing;
Control picture after compression is uploaded to automatic test server by step A23, handpiece adapter, automatization survey Control picture is transmitted to text identification server cluster and (in the specific implementation, can pass through load-balancing device by examination server Realize control picture distribution to each text identification server), and by text identification server cluster, control picture is entered Row text identification;
The text that step A24, text identification server cluster will identify that returns to automatic test server, automatization The text that testing service device will identify that is transmitted to handpiece adapter.
Please emphasis with reference to shown in Fig. 3, below as a example by Encryption Keyboard text identification to special non-standard control do into One step explanation:
B1, the current screen picture of intercepting cell phone apparatus, and current screen image is saved in cell phone apparatus;
B2, by cell phone apparatus, the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from working as Forth screen picture cuts out Encryption Keyboard picture, and is compressed the Encryption Keyboard picture cut out processing;
Encryption Keyboard picture after compression is uploaded to automatic test server by B3, handpiece adapter, automatization survey Encryption Keyboard picture is transmitted to the OCR text identification server of correspondence by examination server, and OCR text identification server first identifies The digit sequence text of Encryption Keyboard, obtains the digital text matrix of band order;
Then, the two-dimensional map of each digital coordinates is set up:
X = X ′ + a * w i d t h 3 , Y = Y ′ + b * h e i g h t 4 ,
Wherein, width is the width of cell phone apparatus screen, and height is the height of Encryption Keyboard, (X ', Y ') it is encryption key Dish upper left corner first digit is at the absolute coordinate of overall cell phone apparatus screen, a ∈ [0,1,2], b ∈ [0,1,2,3];
B4, carry out the touch operation be correlated with according to each digital coordinates (X, Y), complete Password Input.
Step 4, by management terminal from automatic test server, select Python automatic test script and to survey Examination cell phone apparatus cluster, and test assignment is handed down to handpiece adapter cluster (implement time, load balancing can be used to set Standby test assignment of distributing is to each handpiece adapter), handpiece adapter cluster perform according to Python automatic test script The test of handset device cluster.This step 4 specifically includes:
Step 41, issue test request to automatic test server, and from automatic test service by management terminal Device selects Python automatic test script and cell phone apparatus cluster to be tested;
Step 42, automatic test server are according to the Python automatic test script selected and to carry out the hands tested Test assignment is handed down to handpiece adapter cluster by machine equipment cluster;
After step 43, handpiece adapter cluster receive test assignment, first pass through the Appium each cell phone apparatus to accessing Carrying out control identification, the control then identified Appium carries out corresponding control operation;For being known by Appium Other control, the most first carries out OCR text identification, then the control text identified is carried out corresponding control operation control, Thus complete the automatic test to each cell phone apparatus;Meanwhile, produced Mobile solution business datum (example in test process As App log in, transfer accounts, the business datum such as remittance), then send backstage bank to by accessing the ad Hoc wireless network of cell phone apparatus Mobile service system;
Test result is returned to automatic test server by step 44, handpiece adapter cluster, and by automatic test Test result is shown to manage in terminal by server.
Specific embodiment two:
Refer to shown in Fig. 1, Fig. 3-6, a kind of bank mobile phone application automatization test system, this system needs to provide at least One cell phone apparatus cluster (Android phone device clusters or iOS cell phone apparatus cluster), a mobile phone adapter cluster, one from Dynamicization testing service device, a management terminal, a text identification server cluster and a backstage bank mobile service system, its In, cell phone apparatus cluster is linked into handpiece adapter cluster by USB, and cell phone apparatus cluster is linked into by ad Hoc wireless network Backstage bank mobile service system, handpiece adapter cluster connects automatic test server, and automatic test server connects Text identification server cluster, management terminal and backstage bank mobile service system.Described system includes that cellphone information obtains mould Transmission module and automatic test module on block, APP installation module, script:
Described cellphone information acquisition module, monitors the mobile phone letter obtaining cell phone apparatus cluster for handpiece adapter cluster Breath, and by LAN (including WLAN or cable LAN), cellphone information is sent to automatic test service Device, cellphone information is shown to manage in terminal by automatic test server;Described cellphone information include cell phone apparatus series number, The system type of handpiece adapter, the system type of cell phone apparatus and the system version of cell phone apparatus accessed.Wherein, mobile phone Adapter cluster can regularly be monitored USB and connect the change of cell phone apparatus cluster (including Android phone equipment and iOS cell phone apparatus) Change situation, what Android phone equipment was monitored is " adb devices " information, and what iOS cell phone apparatus was monitored is " instruments w devices " information, when listening to USB and accessing cell phone apparatus cluster, just by adb or Instruments obtains the cellphone information of cell phone apparatus cluster.
Described APP installs module, for uploading bank's Mobile solution APP installation kit to automatic test by management terminal Server, and issue installation instruction to handpiece adapter cluster, handpiece adapter cluster the cell phone apparatus cluster accessed is entered Row APP batch is installed;
Transmission module on described script, is used for writing Python automatic test script, and will be finished by management terminal Test script is uploaded to automatic test server, and wherein, described test script is operated by control identification and corresponding control Composition;On this script in transmission module, the operation of described control includes clicking on, inputs, touches, drop-down selection and double click operation;
Please emphasis with reference to shown in Fig. 6, described control identification specifically includes Appium identification module and OCR text identification mould Block:
Described Appium identification module, for being obtained by Appium and identified cell phone apparatus Android or iOS system All controls of business operation showing interface;For example, it is possible to the identification that Android, iOS control of being provided by Appium is unified Mode find_element_by_id, find_element_by_name, find_element_by_link_text, find_ element_by_class_name、find_element_by_class_name、find_element_by_ Accessibility_id etc. obtain common Android control and iOS control, and wherein, common Android control comprises: ImageView, Button, Text View, Web View, List View, Image, Edit Text etc.;IOS control comprises: UIA Application、UIA Window、UIA Keyboard、UIA Button、UIAWeb View、UIA Scroll View, UIA Text Field, UIA Secure Text Field etc..
Described OCR text identification module, for carrying out OCR text identification to the control of Appium None-identified;
Wherein, described OCR text identification module specifically includes:
Picture interception unit, is used for intercepting cell phone apparatus current screen picture and preserving;
Picture cutting unit, for the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from Current screen picture cuts out the control picture of text identification to be carried out, and the control picture cut out is compressed place Reason;
Text identification unit, is uploaded to automatic test server for handpiece adapter by the control picture after compression, By automatic test server, control picture being transmitted to text identification server cluster (in the specific implementation, can be by negative Carry balancing equipment to realize control picture distribution to each text identification server), and by text identification server cluster pair Control picture carries out text identification;
Text retransmission unit, the text that will identify that for text identification server cluster returns to automatic test service Device, the text that automatic test server will identify that is transmitted to handpiece adapter.
Please emphasis with reference to shown in Fig. 3, below as a example by Encryption Keyboard text identification to special non-standard control do into One step explanation:
B1, the current screen picture of intercepting cell phone apparatus, and current screen image is saved in cell phone apparatus;
B2, by cell phone apparatus, the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from working as Forth screen picture cuts out Encryption Keyboard picture, and is compressed the Encryption Keyboard picture cut out processing;
Encryption Keyboard picture after compression is uploaded to automatic test server by B3, handpiece adapter, automatization survey Encryption Keyboard picture is transmitted to the OCR text identification server of correspondence by examination server, and OCR text identification server first identifies The digit sequence text of Encryption Keyboard, obtains the digital text matrix of band order;
Then, the two-dimensional map of each digital coordinates is set up:
X = X ′ + a * w i d t h 3 , Y = Y ′ + b * h e i g h t 4 ,
Wherein, width is the width of cell phone apparatus screen, and height is the height of Encryption Keyboard, (X ', Y ') it is encryption key Dish upper left corner first digit is at the absolute coordinate of overall cell phone apparatus screen, a ∈ [0,1,2], b ∈ [0,1,2,3];
B4, carry out the touch operation be correlated with according to each digital coordinates (X, Y), complete Password Input.
Described automatic test module, for selecting Python automatization by management terminal from automatic test server Test script and cell phone apparatus cluster to be tested, and it is (when implementing, permissible that test assignment is handed down to handpiece adapter cluster Load-balancing device is used to distribute test assignment to each handpiece adapter), automatic according to Python by handpiece adapter cluster Change test script and perform the test of handset device cluster.This automatic test module specifically includes:
Request unit, for issuing test request by management terminal to automatic test server, and surveys from automatization Examination server selects Python automatic test script and cell phone apparatus cluster to be tested;
Task issues unit, and to enter according to the Python automatic test script selected for automatic test server Test assignment is handed down to handpiece adapter cluster by the cell phone apparatus cluster of row test;
Test cell, after handpiece adapter cluster receives test assignment, first passes through the Appium each hands to accessing Machine equipment carries out control identification, and the control then identified Appium carries out corresponding control operation;For passing through Appium The control of None-identified, the most first carries out OCR text identification, then the control text identified is carried out corresponding control control Operation, thus complete the automatic test to each cell phone apparatus;Meanwhile, produced Mobile solution business number in test process According to business datums such as () such as App logs in, transfers accounts, remittances, then by accessing the ad Hoc wireless network of cell phone apparatus and sending to after Platform bank mobile service system;
Result display unit, returns to automatic test server for handpiece adapter cluster by test result, and by Test result is shown to manage in terminal by automatic test server.
In sum, present invention have the advantage that 1, introduce the hands being simultaneously suitable for android system and iOS system Machine adapter, the cell phone apparatus of adaptive different platform can realize cross-platform automatic test, unify the automatic of mobile terminal Change testing tool, testing cost can be reduced, and make test convenient;2, the control of Appium None-identified is introduced OCR text recognition technique, it is possible to reduce need the time tested manually when control None-identified, it is possible to achieve silver The one-stop automatic test service of row mobile phone application, improves overall testing efficiency;3, handset device cluster can be realized (including Android phone equipment and iOS cell phone apparatus) carries out bank Mobile solution APP batch and is mounted in parallel and carries out batch Concurrent test, this can be greatly improved actual test rate, and reduces the testing cost of entirety and reduce can after application is reached the standard grade The risk problem that can occur;And during test, cell phone apparatus can be realized by ad Hoc wireless network and move with bank Operation system carries out real-time linkage.
Although the foregoing describing the detailed description of the invention of the present invention, but those familiar with the art should managing Solving, our described specific embodiment is merely exemplary rather than for the restriction to the scope of the present invention, is familiar with this The technical staff in field, in the equivalent modification made according to the spirit of the present invention and change, should be contained the present invention's In scope of the claimed protection.

Claims (10)

1. bank's mobile phone application automated testing method, it is characterised in that: comprise the steps:
Step 1, handpiece adapter cluster monitor the cellphone information obtaining cell phone apparatus cluster, and by LAN by cellphone information Being sent to automatic test server, cellphone information is shown to manage in terminal by automatic test server;
Step 2, upload bank's Mobile solution APP installation kit to automatic test server by management terminal, and issue installation Instructing to handpiece adapter cluster, handpiece adapter cluster carries out APP installation to the cell phone apparatus cluster accessed;
Step 3, write Python automatic test script, and by management terminal, the test script finished is uploaded to automatization Testing service device, wherein, described test script is operated formed by control identification and corresponding control;
Step 4, from automatic test server, select Python automatic test script and to be tested by management terminal Cell phone apparatus cluster, and test assignment is handed down to handpiece adapter cluster, automatic according to Python by handpiece adapter cluster Change test script and perform the test of handset device cluster.
A kind of bank the most according to claim 1 mobile phone application automated testing method, it is characterised in that: in described step In 3, described control identification specifically includes following steps:
Step A1, obtained and identify the institute of business operation showing interface of cell phone apparatus Android or iOS system by Appium There is control;
Step A2, control to Appium None-identified carry out OCR text identification;
Wherein, described step A2 specifically includes:
Step A21, intercepting cell phone apparatus current screen picture also preserve;
Step A22, the current screen picture of intercepting is uploaded to handpiece adapter, by handpiece adapter from current screen picture Cut out the control picture of text identification to be carried out, and be compressed the control picture cut out processing;
Control picture after compression is uploaded to automatic test server by step A23, handpiece adapter, automatic test take Control picture is transmitted to text identification server cluster by business device, and is carried out control picture by text identification server cluster Text identification;
The text that step A24, text identification server cluster will identify that returns to automatic test server, automatic test The text that server will identify that is transmitted to handpiece adapter.
A kind of bank the most according to claim 2 mobile phone application automated testing method, it is characterised in that: described step 4 Specifically include:
Step 41, issue test request to automatic test server, and from automatic test server by management terminal Select Python automatic test script and cell phone apparatus cluster to be tested;
Step 42, automatic test server set according to the Python automatic test script selected and the mobile phone to carry out testing Test assignment is handed down to handpiece adapter cluster by standby cluster;
After step 43, handpiece adapter cluster receive test assignment, first pass through Appium and each cell phone apparatus accessed is carried out Control identification, the control then identified Appium carries out corresponding control operation;For by Appium None-identified Control, the most first carries out OCR text identification, then the control text identified is carried out corresponding control operation control, thus Complete the automatic test to each cell phone apparatus;Produced Mobile solution business datum in test process, then by accessing The ad Hoc wireless network of cell phone apparatus sends backstage bank mobile service system to;
Test result is returned to automatic test server by step 44, handpiece adapter cluster, and is serviced by automatic test Test result is shown to manage in terminal by device.
A kind of bank the most according to claim 1 mobile phone application automated testing method, it is characterised in that: described control is grasped Make to include clicking on, input, touch, drop-down selection and double click operation.
A kind of bank the most according to claim 1 mobile phone application automated testing method, it is characterised in that: described mobile phone is believed Breath includes that the system type of handpiece adapter of cell phone apparatus series number, access, the system type of cell phone apparatus and mobile phone set Standby system version.
6. bank's mobile phone application automatization test system, it is characterised in that: described system include cellphone information acquisition module, Transmission module and automatic test module on APP installation module, script:
Described cellphone information acquisition module, monitors the cellphone information obtaining cell phone apparatus cluster for handpiece adapter cluster, and By LAN, cellphone information being sent to automatic test server, cellphone information is shown to pipe by automatic test server In reason terminal;
Described APP installs module, for uploading bank's Mobile solution APP installation kit to automatic test service by management terminal Device, and issue installation instruction to handpiece adapter cluster, handpiece adapter cluster carries out APP peace to the cell phone apparatus cluster accessed Dress;
Transmission module on described script, is used for writing Python automatic test script, and the test will finished by management terminal Script is uploaded to automatic test server, and wherein, described test script is operated formed by control identification and corresponding control;
Described automatic test module, for selecting Python automatic test by management terminal from automatic test server Script and cell phone apparatus cluster to be tested, and test assignment is handed down to handpiece adapter cluster, by handpiece adapter cluster The test of handset device cluster is performed according to Python automatic test script.
A kind of bank the most according to claim 6 mobile phone application automatization test system, it is characterised in that: described control is known Do not specifically include Appium identification module and OCR text identification module:
Described Appium identification module, for obtaining and identify the business of cell phone apparatus Android or iOS system by Appium All controls of operation showing interface;
Described OCR text identification module, for carrying out OCR text identification to the control of Appium None-identified;
Wherein, described OCR text identification module specifically includes:
Picture interception unit, is used for intercepting cell phone apparatus current screen picture and preserving;
Picture cutting unit, for being uploaded to handpiece adapter by the current screen picture of intercepting, by handpiece adapter from currently Screen shots cuts out the control picture of text identification to be carried out, and is compressed the control picture cut out processing;
Text identification unit, is uploaded to automatic test server for handpiece adapter by the control picture after compression, by certainly Control picture is transmitted to text identification server cluster by dynamicization testing service device, and by text identification server cluster to control Part picture carries out text identification;
Text retransmission unit, the text that will identify that for text identification server cluster returns to automatic test server, The text that automatic test server will identify that is transmitted to handpiece adapter.
A kind of bank the most according to claim 7 mobile phone application automatization test system, it is characterised in that: described automatic survey Die trial block specifically includes:
Request unit, for issuing test request by management terminal to automatic test server, and takes from automatic test Business device selects Python automatic test script and cell phone apparatus cluster to be tested;
Task issues unit, and to survey according to the Python automatic test script selected for automatic test server Test assignment is handed down to handpiece adapter cluster by the cell phone apparatus cluster of examination;
Test cell, after handpiece adapter cluster receives test assignment, first passes through Appium and sets each mobile phone accessed For carrying out control identification, the control then identified Appium carries out corresponding control operation;For cannot by Appium The control identified, the most first carries out OCR text identification, then the control text identified is carried out corresponding control behaviour control Make, thus complete the automatic test to each cell phone apparatus;In test process, produced Mobile solution business datum, then lead to The ad Hoc wireless network crossing access cell phone apparatus sends backstage bank mobile service system to;
Result display unit, returns to automatic test server for handpiece adapter cluster by test result, and by automatically Change testing service device to be shown to test result manage in terminal.
A kind of bank the most according to claim 6 mobile phone application automatization test system, it is characterised in that: described control is grasped Make to include clicking on, input, touch, drop-down selection and double click operation.
A kind of bank the most according to claim 6 mobile phone application automatization test system, it is characterised in that: described mobile phone Information includes the system type of the handpiece adapter of cell phone apparatus series number, access, the system type of cell phone apparatus and mobile phone The system version of equipment.
CN201610569989.7A 2016-07-20 2016-07-20 A kind of bank's mobile phone application automated testing method and system Active CN106250307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610569989.7A CN106250307B (en) 2016-07-20 2016-07-20 A kind of bank's mobile phone application automated testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610569989.7A CN106250307B (en) 2016-07-20 2016-07-20 A kind of bank's mobile phone application automated testing method and system

Publications (2)

Publication Number Publication Date
CN106250307A true CN106250307A (en) 2016-12-21
CN106250307B CN106250307B (en) 2019-01-22

Family

ID=57613514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610569989.7A Active CN106250307B (en) 2016-07-20 2016-07-20 A kind of bank's mobile phone application automated testing method and system

Country Status (1)

Country Link
CN (1) CN106250307B (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776344A (en) * 2017-01-16 2017-05-31 上海聚宝网络科技股份有限公司 A kind of automated testing method of the intelligent express delivery cabinet based on APPIUM
CN106991046A (en) * 2017-03-24 2017-07-28 广州酷狗计算机科技有限公司 Application testing method and device
CN107451060A (en) * 2017-08-01 2017-12-08 安徽善金科技股份有限公司 A kind of across mobile terminal automated test frame system
CN108205674A (en) * 2017-12-22 2018-06-26 广州爱美互动网络科技有限公司 Content identification method, electronic equipment, storage medium and the system of social APP
CN108287789A (en) * 2017-12-29 2018-07-17 五八有限公司 Batch-automated test method, device and electronic equipment
CN108388507A (en) * 2018-01-24 2018-08-10 深圳市买买提信息科技有限公司 Batch script testing method and device
CN108427636A (en) * 2018-01-09 2018-08-21 阿里巴巴集团控股有限公司 Test method, system and the electronic equipment of application
CN108509342A (en) * 2018-04-04 2018-09-07 成都中云天下科技有限公司 A kind of precisely quick App automated testing methods
CN108536587A (en) * 2018-03-21 2018-09-14 轻客智能科技(江苏)有限公司 A kind of automated testing method and system based on Appium
CN108536586A (en) * 2018-03-20 2018-09-14 中国工商银行股份有限公司 Information acquisition method, equipment and the system of Android mobile terminal
CN108664364A (en) * 2017-03-31 2018-10-16 腾讯科技(深圳)有限公司 A kind of terminal test method and device
CN109189682A (en) * 2018-08-27 2019-01-11 广州云测信息技术有限公司 A kind of script method for recording and device
CN109359031A (en) * 2018-09-04 2019-02-19 中国平安人寿保险股份有限公司 More appliance applications test methods, device, server and storage medium
CN109462491A (en) * 2017-09-06 2019-03-12 北京京东尚科信息技术有限公司 System, method and apparatus for testing service device function
CN110287122A (en) * 2019-06-29 2019-09-27 广州华多网络科技有限公司 A kind of automated testing method, device, terminal and storage medium
CN110362490A (en) * 2019-07-16 2019-10-22 中国工商银行股份有限公司 Merge the automated testing method and system of iOS and Android mobile application
WO2019210674A1 (en) * 2018-05-03 2019-11-07 深圳市华夏双赢通信有限公司 Method for simulation manual operation smart device, system and apparatus
CN110855501A (en) * 2019-11-21 2020-02-28 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN111817916A (en) * 2020-07-02 2020-10-23 浙江同花顺智能科技有限公司 Test method, device, device and storage medium based on mobile terminal cluster
CN112468564A (en) * 2020-11-20 2021-03-09 浙江百应科技有限公司 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium
CN112527621A (en) * 2019-09-17 2021-03-19 中移动信息技术有限公司 Test path construction method, device, equipment and storage medium
CN113176959A (en) * 2021-04-29 2021-07-27 上海云扩信息科技有限公司 Universal RPA mobile phone automatic design system
CN113518146A (en) * 2021-09-14 2021-10-19 云账户技术(天津)有限公司 Method and device for acquiring mobile terminal information
CN114448832A (en) * 2022-02-08 2022-05-06 西南证券股份有限公司 Pressure testing system for security online trading platform
CN116166554A (en) * 2023-02-24 2023-05-26 上海硬通网络科技有限公司 Automated testing system, method and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6044346A (en) * 1998-03-09 2000-03-28 Lucent Technologies Inc. System and method for operating a digital voice recognition processor with flash memory storage
CN103744784A (en) * 2014-01-06 2014-04-23 中国移动(深圳)有限公司 Method and system for automatically testing mobile phone applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6044346A (en) * 1998-03-09 2000-03-28 Lucent Technologies Inc. System and method for operating a digital voice recognition processor with flash memory storage
CN103744784A (en) * 2014-01-06 2014-04-23 中国移动(深圳)有限公司 Method and system for automatically testing mobile phone applications

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋崇武 等: "面向嵌入式软件测试的仿真建模", 《计算机工程》 *

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776344A (en) * 2017-01-16 2017-05-31 上海聚宝网络科技股份有限公司 A kind of automated testing method of the intelligent express delivery cabinet based on APPIUM
CN106991046A (en) * 2017-03-24 2017-07-28 广州酷狗计算机科技有限公司 Application testing method and device
CN106991046B (en) * 2017-03-24 2020-10-09 广州酷狗计算机科技有限公司 Application testing method and device
CN108664364A (en) * 2017-03-31 2018-10-16 腾讯科技(深圳)有限公司 A kind of terminal test method and device
CN107451060A (en) * 2017-08-01 2017-12-08 安徽善金科技股份有限公司 A kind of across mobile terminal automated test frame system
CN109462491A (en) * 2017-09-06 2019-03-12 北京京东尚科信息技术有限公司 System, method and apparatus for testing service device function
CN109462491B (en) * 2017-09-06 2021-10-01 北京京东尚科信息技术有限公司 System, method and apparatus for testing server functionality
CN108205674A (en) * 2017-12-22 2018-06-26 广州爱美互动网络科技有限公司 Content identification method, electronic equipment, storage medium and the system of social APP
CN108205674B (en) * 2017-12-22 2022-04-15 广州爱美互动网络科技有限公司 Social APP content identification method, electronic device, storage medium and system
CN108287789A (en) * 2017-12-29 2018-07-17 五八有限公司 Batch-automated test method, device and electronic equipment
CN108427636A (en) * 2018-01-09 2018-08-21 阿里巴巴集团控股有限公司 Test method, system and the electronic equipment of application
CN108388507A (en) * 2018-01-24 2018-08-10 深圳市买买提信息科技有限公司 Batch script testing method and device
CN108536586A (en) * 2018-03-20 2018-09-14 中国工商银行股份有限公司 Information acquisition method, equipment and the system of Android mobile terminal
CN108536587A (en) * 2018-03-21 2018-09-14 轻客智能科技(江苏)有限公司 A kind of automated testing method and system based on Appium
CN108509342A (en) * 2018-04-04 2018-09-07 成都中云天下科技有限公司 A kind of precisely quick App automated testing methods
WO2019210674A1 (en) * 2018-05-03 2019-11-07 深圳市华夏双赢通信有限公司 Method for simulation manual operation smart device, system and apparatus
CN109189682A (en) * 2018-08-27 2019-01-11 广州云测信息技术有限公司 A kind of script method for recording and device
CN109359031A (en) * 2018-09-04 2019-02-19 中国平安人寿保险股份有限公司 More appliance applications test methods, device, server and storage medium
CN109359031B (en) * 2018-09-04 2023-08-22 中国平安人寿保险股份有限公司 Multi-device application program testing method and device, server and storage medium
CN110287122A (en) * 2019-06-29 2019-09-27 广州华多网络科技有限公司 A kind of automated testing method, device, terminal and storage medium
CN110287122B (en) * 2019-06-29 2023-08-11 广州华多网络科技有限公司 Automatic test method, device, terminal and storage medium
CN110362490B (en) * 2019-07-16 2023-08-08 中国工商银行股份有限公司 Automatic testing method and system for integrating iOS and Android mobile applications
CN110362490A (en) * 2019-07-16 2019-10-22 中国工商银行股份有限公司 Merge the automated testing method and system of iOS and Android mobile application
CN112527621A (en) * 2019-09-17 2021-03-19 中移动信息技术有限公司 Test path construction method, device, equipment and storage medium
CN110855501A (en) * 2019-11-21 2020-02-28 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN110855501B (en) * 2019-11-21 2022-04-26 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN111817916A (en) * 2020-07-02 2020-10-23 浙江同花顺智能科技有限公司 Test method, device, device and storage medium based on mobile terminal cluster
CN112468564A (en) * 2020-11-20 2021-03-09 浙江百应科技有限公司 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium
CN113176959A (en) * 2021-04-29 2021-07-27 上海云扩信息科技有限公司 Universal RPA mobile phone automatic design system
CN113518146A (en) * 2021-09-14 2021-10-19 云账户技术(天津)有限公司 Method and device for acquiring mobile terminal information
CN113518146B (en) * 2021-09-14 2021-12-03 云账户技术(天津)有限公司 Method and device for acquiring mobile terminal information
CN114448832A (en) * 2022-02-08 2022-05-06 西南证券股份有限公司 Pressure testing system for security online trading platform
CN116166554A (en) * 2023-02-24 2023-05-26 上海硬通网络科技有限公司 Automated testing system, method and storage medium

Also Published As

Publication number Publication date
CN106250307B (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN106250307A (en) A kind of bank's mobile phone application automated testing method and system
CN104572444B (en) A kind of game performance cloud test platform and its test method
CN106598868B (en) Method and system a little are buried to the application program of client dynamic
CN102289373B (en) Method for dynamically configuring index evaluation system
CN106021099A (en) System and method for achieving UI automatic test of intelligent terminal
CN108971807B (en) Intelligent management control method and management system for field welding construction process
CN104468259B (en) A kind of communication traffic rate automated testing method
KR20180017198A (en) METHOD, APPARATUS, SYSTEM, PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM
CN104181873A (en) Method, device and system for achieving digital product detection
CN1755645A (en) System and method for selecting test case execution behaviors for reproducible test automation
CN107423223A (en) Test and management system
CN110147941A (en) Content of examination acquisition methods, Stakeholder Evaluation method and device
CN103379519B (en) Smartphone-based mobile communication network testing method
CN104301916A (en) Test optimization method, device and system based on mobile intelligent terminal universal plug-in
CN111581067A (en) Data acquisition method and device
CN108983723B (en) Intelligent management control method and management system for field construction process
CN106803342A (en) Mobile detection apparatus and fault detection method and device
CN111626896B (en) Automatic acquisition and information management system for building engineering quality detection data
CN107678965A (en) It is automatically integrating method of testing and system, service terminal, memory
CN109375923B (en) Method and device for processing change data, storage medium, processor and server
CN105955038A (en) Enterprise intelligent office PDA (Personal Digital Assistant) control system and reimbursement method
CN107402854A (en) Test information management method, apparatus, test case execution system and equipment
CN106302011A (en) Method of testings based on multiterminal and terminal
CN115190149B (en) Data acquisition method and system for railway investigation
CN111107569A (en) Method and device for screening problem cells

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant