CN106250307B - 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
CN106250307B
CN106250307B CN201610569989.7A CN201610569989A CN106250307B CN 106250307 B CN106250307 B CN 106250307B CN 201610569989 A CN201610569989 A CN 201610569989A CN 106250307 B CN106250307 B CN 106250307B
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.)
Active
Application number
CN201610569989.7A
Other languages
Chinese (zh)
Other versions
CN106250307A (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/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • 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

Abstract

A kind of bank's mobile phone application automated testing method of the present invention, the cellphone information of cell phone apparatus cluster is obtained including monitoring, cellphone information is sent to automatic test server;Bank's mobile application APP installation kit is uploaded to automatic test server, APP installation is carried out by cell phone apparatus cluster of the handpiece adapter cluster to access;Python automatic test script is write, the test script finished is uploaded to automatic test server;Python automatic test script and cell phone apparatus cluster to be tested are selected from automatic test server, test assignment is handed down to handpiece adapter cluster, handpiece adapter cluster executes the test of handset device cluster according to Python automatic test script.The invention has the advantages that the cell phone apparatus that can be adapted to different platform realizes cross-platform automatic test, and text identification is carried out to the unrecognized control of Appium, realizes 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 application testing field, in particular to a kind of bank's mobile phone application automated testing method And system.
Background technique
With the high speed development of mobile communication technology and development of Mobile Internet technology, the mobile application based on Android and iOS Also it is widely used in a variety of applications.Bank is directed to the development of mobile Internet, also mobile financial business is being widelyd popularize, to meet visitor The mobile service at family handles demand, such as wechat bank, Mobile banking, characteristic O2O application etc..And current Mobile operating system It is mainly made of the iOS system of the android system of Google and apple, the android system of open source is on the one hand due to supporting Manufacturer it is more and more, on the other hand since the renewal speed of system is also very fast, this cause application developers publication application before In addition to functional test to be carried out, it is also necessary to carry out a large amount of compatibility test;Although the iOS system equipment compatibility of apple is tested The smaller but different iOS version of amount also to carry out corresponding system compatibility test.So bank's mobile application at present In the online publication of every suboptimization, all need largely to be tested.
Currently, for the test of mobile phone mobile application, other than manual test, there are also based on the primary SDK's of Android The test of Monkey, Monkey Runner modeling event stream, and it is based on Instrumentation (Android 2.2+), The various Android test methods and frame of UIA utomator (Android 4.3+);IPhone is mainly based upon UIA The test method and frame of utomation.For example, Publication No. 104331373A, date of publication is the middle promulgated by the State Council of 2015-02-04 Bright patent, which discloses a kind of Monkey test macro and method, the Monkey test macro, can pass through the setting before different tests The automatic test of corresponding scene is completed, to mitigate manual test intensity.Publication No. 202334909U, publication date are The Chinese utility model patent of 2012-07-11, which discloses, a kind of realizes that automatic test mobile phone business is by image comparison System, which mainly passes through interception mobile phone realtime graphic and is compared with a large amount of standard drawing valuts resident in advance, to realize Automatic detection to user mobile phone business.Publication No. 103064782A, publication date are the Chinese invention patent of 2013-04-24 A kind of method and device for obtaining control is disclosed, is specifically disclosed a kind of according to the reflection mechanism of Java acquisition Android hand Machine control, and carry out the method and device of automatic test.But there are following defects for the above test mode:
1, existing automated testing method can only individually test Android device, or individually test iOS device, and It can not support the test to Android device and iOS device simultaneously, therefore practical application comparison of getting up is inconvenient;
2, existing automated testing method can only identify common control when identifying to control, and to Mr. Yu A little special non-standard system controls (such as Encryption Keyboard etc.) can not then be identified, can only manually go to test, this meeting Reduce test speed;When carrying out image comparison, then need to preset a large amount of specific scene picture libraries, this can be greatly increased Actual test job;
3, for the test scene of bank's mobile application, existing test mode can not be carried out with bank's mobile service system Real-time linkage, and extensive batch concurrent test can not be carried out.
Summary of the invention
One of the technical problem to be solved in the present invention is to provide a kind of bank's mobile phone application automated testing method, lead to This method is crossed to realize the automatic test to the application of bank's mobile phone, improves testing efficiency.
The present invention is realized in one of technical problem: a kind of bank's mobile phone application automated testing method, the side Method includes the following steps:
Step 1, handpiece adapter cluster monitor the cellphone information for obtaining cell phone apparatus cluster, and pass through local area network for mobile phone Information is sent to automatic test server, and cellphone information is shown in management terminal by automatic test server;
Step 2 uploads bank's mobile application APP installation kit to automatic test server by management terminal, and issues Installation instruction gives handpiece adapter cluster, and handpiece adapter cluster carries out APP installation to the cell phone apparatus cluster of access;
Step 3 writes Python automatic test script, and is uploaded to the test script finished certainly by management terminal Dynamicization testing service device, wherein the test script is identified by control and corresponding control is operated and formed;
Step 4 is selected Python automatic test script from automatic test server by management terminal and surveyed The cell phone apparatus cluster of examination, and test assignment is handed down to handpiece adapter cluster, by handpiece adapter cluster according to Python The test of automatic test script execution handset device cluster.
Further, in the step 3, the control identification specifically comprises the following steps:
Step A1, the business operation showing interface of cell phone apparatus Android or iOS system is obtained and identified by Appium All controls;
Step A2, OCR text identification is carried out to the unrecognized control of Appium;
Wherein, the step A2 is specifically included:
Step A21, it intercepts cell phone apparatus current screen picture and saves;
Step A22, the current screen picture of interception is uploaded to handpiece adapter, by handpiece adapter from current screen figure The control picture of text identification to be carried out is cut out in piece, and compression processing is carried out to the control picture cut out;
Step A23, compressed control picture is uploaded to automatic test server by handpiece adapter, is surveyed by automation 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;
Step A24, the text that text identification server cluster will identify that returns to automatic test server, automation The text that testing service device will identify that is transmitted to handpiece adapter.
Further, the step 4 specifically includes:
Step 41 issues test request to automatic test server by management terminal, and from automatic test service Python automatic test script and cell phone apparatus cluster to be tested are selected in device;
Step 42, automatic test server are according to the Python automatic test script of selection and the hand to be tested Test assignment is handed down to handpiece adapter cluster by machine equipment cluster;
After step 43, handpiece adapter cluster receive test assignment, Appium is first passed through to each cell phone apparatus of access Control identification is carried out, corresponding control operation then is carried out to the control that Appium is identified;For that can not be known by Appium Other control then first carries out OCR text identification to control, then carries out corresponding control operation to the control text identified, To complete the automatic test to each cell phone apparatus;Generated mobile application business datum during the test, then pass through The ad Hoc wireless network of access 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 in management terminal by server.
Further, the control operation includes click, input, touch, drop-down selection and double click operation.
Further, the cellphone information includes cell phone apparatus series number, the system type of the handpiece adapter of access, hand The system type of machine equipment and the system version of cell phone apparatus.
The second technical problem to be solved by the present invention is to provide a kind of bank's mobile phone application automatization test system, lead to The system is crossed to realize the automatic test to the application of bank's mobile phone, improves testing efficiency.
The present invention is realized in the twos' of technical problem: a kind of bank's mobile phone application automatization test system, the system System includes that cellphone information obtains module, APP installation module, script uploading module and automatic test module:
The cellphone information obtains module, and the mobile phone letter for obtaining cell phone apparatus cluster is monitored for handpiece adapter cluster Breath, and cellphone information is sent to automatic test server by local area network, automatic test server is by cellphone information exhibition Show in management terminal;
The APP installs module, for uploading bank's mobile application APP installation kit to automatic test by management terminal Server, and issue installation instruction and give handpiece adapter cluster, handpiece adapter cluster carries out the cell phone apparatus cluster of access APP installation;
The script uploading module will be finished for writing Python automatic test script, and by management terminal Test script is uploaded to automatic test server, wherein the test script is identified by control and corresponding control operates Composition;
The automatic test module, for selecting Python to automate from automatic test server by management terminal Test script and cell phone apparatus cluster to be tested, and test assignment is handed down to handpiece adapter cluster, by handpiece adapter Cluster executes the test of handset device cluster according to Python automatic test script.
Further, the control identification specifically includes Appium identification module and OCR text identification module:
The Appium identification module, for cell phone apparatus Android or iOS system to be obtained and identified by Appium All controls of business operation showing interface;
The OCR text identification module, for carrying out OCR text identification to the unrecognized control of Appium;
Wherein, the OCR text identification module specifically includes:
Picture interception unit, for intercepting cell phone apparatus current screen picture and saving;
Picture cut unit, for the current screen picture of interception to be uploaded to handpiece adapter, by handpiece adapter from The control picture of text identification to be carried out is cut out in current screen picture, and the control picture cut out is carried out at compression Reason;
Compressed control picture is uploaded to automatic test server for handpiece adapter by text identification unit, Control picture is transmitted to text identification server cluster by automatic test server, and passes through text identification server cluster Text identification is carried out to control picture;
Text retransmission unit, the text that will identify that for text identification server cluster return to automatic test service Device, the text that automatic test server will identify that are transmitted to handpiece adapter.
Further, the automatic test module specifically includes:
Request unit for issuing test request to automatic test server by management terminal, and is surveyed from automation It tries to select Python automatic test script and cell phone apparatus cluster to be tested in server;
Mission dispatching unit, for automatic test server according to the Python automatic test script of selection and will be into Test assignment is handed down to handpiece adapter cluster by the cell phone apparatus cluster of row test;
Test cell after receiving test assignment for handpiece adapter cluster, first passes through Appium to each hand of access Machine equipment carries out control identification, then carries out corresponding control operation to the control that Appium is identified;For passing through Appium Unrecognized control then first carries out OCR text identification to control, then carries out corresponding control to the control text identified Operation, to complete the automatic test to each cell phone apparatus;Generated mobile application business datum during the test, then Ad Hoc wireless network by accessing cell phone apparatus sends backstage bank mobile service system to;
Test result is returned to automatic test server for handpiece adapter cluster by unit as the result is shown, and by Test result is shown in management terminal by automatic test server.
Further, the control operation includes click, input, touch, drop-down selection and double click operation.
Further, the cellphone information includes cell phone apparatus series number, the system type of the handpiece adapter of access, hand The system type of machine equipment and the system version of cell phone apparatus.
The present invention has the advantage that 1, introduce while being applicable in the handpiece adapter of android system and iOS system, The cell phone apparatus that different platform can be adapted to realizes cross-platform automatic test, has unified the automatic test work of mobile terminal Tool, can reduce testing cost, and make to test more convenient;2, OCR text is introduced to the unrecognized control of Appium to know Other technology, it is possible to reduce the time for needing manually to be tested when control can not identify, bank's mobile phone may be implemented and answer One-stop automatic test service, improves whole testing efficiency;3, may be implemented handset device cluster (including Android phone equipment and iOS cell phone apparatus) carry out bank's mobile application APP batch be mounted in parallel and carry out in batches it is concurrent Test, this can greatly improve actual test rate, and reduce whole testing cost and reduce application it is online after may hair Raw risk problem;And during the test, cell phone apparatus and bank's mobile service can be realized by ad Hoc wireless network System carries out real-time linkage.
Detailed description of the invention
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the hardware block diagram that present invention needs use.
Fig. 2 is the flow diagram of bank's mobile phone application automated testing method of the present invention.
Fig. 3 is the identification schematic diagram of Encryption Keyboard in the present invention.
Fig. 4 is the structural block diagram of bank's mobile phone application automatization test system of the present invention.
Fig. 5 is the structural block diagram of automatic test module in the present invention.
Fig. 6 is the structural block diagram that the present invention carries out control identification.
Specific embodiment
Specific embodiment one:
It please refers to shown in Fig. 1 to Fig. 3, a kind of bank's mobile phone application automated testing method, this 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 are certainly Dynamicization testing service device, a management terminal, a text identification server cluster and a backstage bank mobile service system, In, cell phone apparatus cluster is linked into handpiece adapter cluster by USB, and cell phone apparatus cluster is linked by ad Hoc wireless network Backstage bank mobile service system, handpiece adapter cluster connect automatic test server, automatic test server connection Text identification server cluster, management terminal and backstage bank mobile service system.Described method includes following steps:
Step 1, handpiece adapter cluster monitor obtain cell phone apparatus cluster cellphone information, and by local area network (including WLAN or cable LAN) cellphone information is sent to automatic test server, automatic test server will Cellphone information is shown in management terminal;The cellphone information include cell phone apparatus series number, access handpiece adapter be System type, the system type of cell phone apparatus and the system version of cell phone apparatus.Wherein, handpiece adapter cluster can timing monitoring The situation of change of USB connection cell phone apparatus cluster (including Android phone equipment and iOS cell phone apparatus), Android phone are set 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, the mobile phone letter of cell phone apparatus cluster is just obtained by adb or instruments Breath.
Step 2 uploads bank's mobile application APP installation kit to automatic test server by management terminal, and issues Installation instruction gives handpiece adapter cluster, carries out APP batch by cell phone apparatus cluster of the handpiece adapter cluster to access and installs;
Step 3 writes Python automatic test script, and is uploaded to the test script finished certainly by management terminal Dynamicization testing service device, wherein the test script is identified by control and corresponding control is operated and formed;In the step 3, The control operation includes click, input, touch, drop-down selection and double click operation;
The control identification specifically comprises the following steps:
Step A1, the business operation showing interface of cell phone apparatus Android or iOS system is obtained and identified by Appium All controls;For example, the identification method find_ that Android, iOS control that can be provided by Appium are 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. are obtained Common Android control and iOS control, wherein common Android control includes: Image View, Button, Text View, WebView, List View, Image, Edit Text etc.;IOS control includes: UIA Application, UIA Window、UIA Keyboard、UIA Button、UIA Web View、UIA Scroll View、UIA Text Field、 UIA Secure Text Field etc..
Step A2, OCR text identification is carried out to the unrecognized control of Appium;
Wherein, the step A2 is specifically included:
Step A21, it intercepts cell phone apparatus current screen picture and saves;
Step A22, the current screen picture of interception is uploaded to handpiece adapter, by handpiece adapter from current screen figure The control picture of text identification to be carried out is cut out in piece, and compression processing is carried out to the control picture cut out;
Step A23, compressed control picture is uploaded to automatic test server by handpiece adapter, is surveyed by automation Control picture is transmitted to text identification server cluster by examination server (in the specific implementation, can pass through load-balancing device To realize control picture distribution to each text identification server), and by text identification server cluster to control picture into Row text identification;
Step A24, the text that text identification server cluster will identify that returns to automatic test server, automation The text that testing service device will identify that is transmitted to handpiece adapter.
Please emphasis referring to shown in Fig. 3, below by taking Encryption Keyboard as an example come to the text identification of special non-standard control do into One step explanation:
B1, the current screen picture for intercepting cell phone apparatus, and current screen image is saved in cell phone apparatus;
B2, the current screen picture of interception is uploaded to by handpiece adapter by cell phone apparatus, by handpiece adapter from working as Encryption Keyboard picture is cut out in forth screen picture, and compression processing is carried out to the Encryption Keyboard picture cut out;
Compressed Encryption Keyboard picture is uploaded to automatic test server by B3, handpiece adapter, is surveyed by automation It tries server and Encryption Keyboard picture is transmitted to corresponding OCR text identification server, OCR text identification server first identifies The digit sequence text of Encryption Keyboard obtains the digital text matrix with sequence;
Then, the two-dimensional map of each digital coordinates is established:
Wherein, width is the width of cell phone apparatus screen, and height is the height of Encryption Keyboard, and (X ', Y ') is encryption key Absolute coordinate of the disk upper left corner first digit in whole cell phone apparatus screen, a ∈ [0,1,2], b ∈ [0,1,2,3];
B4, relevant touch operation is carried out according to each digital coordinates (X, Y), completes Password Input.
Step 4 is selected Python automatic test script from automatic test server by management terminal and surveyed The cell phone apparatus cluster of examination, and by test assignment be handed down to handpiece adapter cluster (implement when, can be set using load balancing It is standby to distribute test assignment to each handpiece adapter), it is executed according to Python automatic test script by handpiece adapter cluster The test of handset device cluster.The step 4 specifically includes:
Step 41 issues test request to automatic test server by management terminal, and from automatic test service Python automatic test script and cell phone apparatus cluster to be tested are selected in device;
Step 42, automatic test server are according to the Python automatic test script of selection and the hand to be tested Test assignment is handed down to handpiece adapter cluster by machine equipment cluster;
After step 43, handpiece adapter cluster receive test assignment, Appium is first passed through to each cell phone apparatus of access Control identification is carried out, corresponding control operation then is carried out to the control that Appium is identified;For that can not be known by Appium Other control then first carries out OCR text identification to control, then carries out corresponding control operation to the control text identified, To complete the automatic test to each cell phone apparatus;Meanwhile during the test caused by mobile application business datum (example Such as App logs in, transfers accounts, business datum of remitting money), then backstage bank is sent 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 in management terminal by server.
Specific embodiment two:
It please refers to shown in Fig. 1, Fig. 3-6, a kind of bank's mobile phone application automatization test system, which 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 are certainly Dynamicization testing service device, a management terminal, a text identification server cluster and a backstage bank mobile service system, In, cell phone apparatus cluster is linked into handpiece adapter cluster by USB, and cell phone apparatus cluster is linked by ad Hoc wireless network Backstage bank mobile service system, handpiece adapter cluster connect automatic test server, automatic test server connection Text identification server cluster, management terminal and backstage bank mobile service system.The system comprises cellphone informations to obtain mould Block, APP installation module, script uploading module and automatic test module:
The cellphone information obtains module, and the mobile phone letter for obtaining cell phone apparatus cluster is monitored for handpiece adapter cluster Breath, and cellphone information is sent to by automatic test service by local area network (including WLAN or cable LAN) Cellphone information is shown in management terminal by device, automatic test server;The cellphone information include cell phone apparatus series number, The system version of the system type of the handpiece adapter of access, the system type of cell phone apparatus and cell phone apparatus.Wherein, mobile phone Adapter cluster can periodically monitor the change of USB connection 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 access cell phone apparatus cluster, just by adb or The cellphone information of instruments acquisition cell phone apparatus cluster.
The APP installs module, for uploading bank's mobile application APP installation kit to automatic test by management terminal Server, and issue installation instruction and give handpiece adapter cluster, by handpiece adapter cluster to the cell phone apparatus cluster of access into Row APP batch is installed;
The script uploading module will be finished for writing Python automatic test script, and by management terminal Test script is uploaded to automatic test server, wherein the test script is identified by control and corresponding control operates Composition;In the script uploading module, the control operation includes click, input, touch, drop-down selection and double click operation;
Please emphasis referring to shown in Fig. 6, the control identification specifically includes Appium identification module and OCR text identification mould Block:
The Appium identification module, for cell phone apparatus Android or iOS system to be obtained and identified by Appium All controls of business operation showing interface;For example, the identification that Android, iOS control that can be provided by Appium are 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. obtains common Android control and iOS control, wherein common Android control includes: ImageView, Button, Text View, Web View, List View, Image, Edit Text etc.;IOS control includes: UIA Application、UIA Window、UIA Keyboard、UIA Button、UIAWeb View、UIA Scroll View, UIA Text Field, UIA Secure Text Field etc..
The OCR text identification module, for carrying out OCR text identification to the unrecognized control of Appium;
Wherein, the OCR text identification module specifically includes:
Picture interception unit, for intercepting cell phone apparatus current screen picture and saving;
Picture cut unit, for the current screen picture of interception to be uploaded to handpiece adapter, by handpiece adapter from The control picture of text identification to be carried out is cut out in current screen picture, and the control picture cut out is carried out at compression Reason;
Compressed control picture is uploaded to automatic test server for handpiece adapter by text identification unit, Control picture is transmitted to text identification server cluster by automatic test server (in the specific implementation, can be by negative Equalizing equipment is carried to realize control picture distribution to each text identification server), and pass through 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 return to automatic test service Device, the text that automatic test server will identify that are transmitted to handpiece adapter.
Please emphasis referring to shown in Fig. 3, below by taking Encryption Keyboard as an example come to the text identification of special non-standard control do into One step explanation:
B1, the current screen picture for intercepting cell phone apparatus, and current screen image is saved in cell phone apparatus;
B2, the current screen picture of interception is uploaded to by handpiece adapter by cell phone apparatus, by handpiece adapter from working as Encryption Keyboard picture is cut out in forth screen picture, and compression processing is carried out to the Encryption Keyboard picture cut out;
Compressed Encryption Keyboard picture is uploaded to automatic test server by B3, handpiece adapter, is surveyed by automation It tries server and Encryption Keyboard picture is transmitted to corresponding OCR text identification server, OCR text identification server first identifies The digit sequence text of Encryption Keyboard obtains the digital text matrix with sequence;
Then, the two-dimensional map of each digital coordinates is established:
Wherein, width is the width of cell phone apparatus screen, and height is the height of Encryption Keyboard, and (X ', Y ') is encryption key Absolute coordinate of the disk upper left corner first digit in whole cell phone apparatus screen, a ∈ [0,1,2], b ∈ [0,1,2,3];
B4, relevant touch operation is carried out according to each digital coordinates (X, Y), completes Password Input.
The automatic test module, for selecting Python to automate from automatic test server by management terminal Test script and cell phone apparatus cluster to be tested, and by test assignment be handed down to handpiece adapter cluster (when implementing, can be with Distribute test assignment using load-balancing device to each handpiece adapter), it is automatic according to Python by handpiece adapter cluster Change the test that test script executes handset device cluster.The automatic test module specifically includes:
Request unit for issuing test request to automatic test server by management terminal, and is surveyed from automation It tries to select Python automatic test script and cell phone apparatus cluster to be tested in server;
Mission dispatching unit, for automatic test server according to the Python automatic test script of selection and will be into Test assignment is handed down to handpiece adapter cluster by the cell phone apparatus cluster of row test;
Test cell after receiving test assignment for handpiece adapter cluster, first passes through Appium to each hand of access Machine equipment carries out control identification, then carries out corresponding control operation to the control that Appium is identified;For passing through Appium Unrecognized control then first carries out OCR text identification to control, then carries out corresponding control to the control text identified Operation, to complete the automatic test to each cell phone apparatus;Meanwhile during the test caused by mobile application business number According to business datums such as (such as App) logging in, transfer accounts, remit money, then after being sent to by accessing the ad Hoc wireless network of cell phone apparatus Platform bank mobile service system;
Test result is returned to automatic test server for handpiece adapter cluster by unit as the result is shown, and by Test result is shown in management terminal by automatic test server.
In conclusion the present invention has the advantage that 1, introduce while being applicable in the hand of android system and iOS system Machine adapter, the cell phone apparatus that can be adapted to different platform realize cross-platform automatic test, have unified the automatic of mobile terminal Change testing tool, testing cost can be reduced, and make to test more convenient;2, the unrecognized control of Appium is introduced OCR text recognition technique, it is possible to reduce the time for needing manually to be tested when control can not identify, silver may be implemented The one-stop automatic test service of row mobile phone application, improves whole testing efficiency;3, handset device cluster may be implemented (including Android phone equipment and iOS cell phone apparatus) carries out bank's mobile application APP batch and is mounted in parallel and carries out batch Concurrent test, this can greatly improve actual test rate, and reduce whole testing cost and reduce application it is online after can The risk problem that can occur;And during the test, it can realize that cell phone apparatus and bank are mobile by ad Hoc wireless network Operation system carries out real-time linkage.
Although specific embodiments of the present invention have been described above, those familiar with the art should be managed Solution, we are merely exemplary described specific embodiment, rather than for the restriction to the scope of the present invention, it is familiar with this The technical staff in field should be covered of the invention according to modification and variation equivalent made by spirit of the invention In scope of the claimed protection.

Claims (8)

1. a kind of bank's mobile phone application automated testing method, characterized by the following steps:
Step 1, handpiece adapter cluster monitor the cellphone information for obtaining cell phone apparatus cluster, and pass through local area network for cellphone information It is sent to automatic test server, cellphone information is shown in management terminal by automatic test server;
Step 2 uploads bank's mobile application APP installation kit to automatic test server by management terminal, and issues installation It instructs and gives handpiece adapter cluster, handpiece adapter cluster carries out APP installation to the cell phone apparatus cluster of access;
Step 3 writes Python automatic test script, and the test script finished is uploaded to automation by management terminal Testing service device, wherein the test script is identified by control and corresponding control is operated and formed;
Step 4 selects Python automatic test script and to be tested by management terminal from automatic test server Cell phone apparatus cluster, and test assignment is handed down to handpiece adapter cluster, it is automatic according to Python by handpiece adapter cluster Change the test that test script executes handset device cluster;
In the step 3, the control identification specifically comprises the following steps:
Step A1, the institute of the business operation showing interface of cell phone apparatus Android or iOS system is obtained and identified by Appium There is control;
Step A2, OCR text identification is carried out to the unrecognized control of Appium;
Wherein, the step A2 is specifically included:
Step A21, it intercepts cell phone apparatus current screen picture and saves;
Step A22, the current screen picture of interception is uploaded to handpiece adapter, by handpiece adapter from current screen picture The control picture of text identification to be carried out is cut out, and compression processing is carried out to the control picture cut out;
Step A23, compressed control picture is uploaded to automatic test server by handpiece adapter, is taken by automatic test Control picture is transmitted to text identification server cluster by business device, and is carried out by text identification server cluster to control picture Text identification;
Step A24, the text that 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.
2. a kind of bank's mobile phone application automated testing method according to claim 1, it is characterised in that: the step 4 It specifically includes:
Step 41 issues test request to automatic test server by management terminal, and from automatic test server Select Python automatic test script and cell phone apparatus cluster to be tested;
Step 42, automatic test server are set according to the Python automatic test script of selection and the mobile phone to be tested Test assignment is handed down to handpiece adapter cluster by standby cluster;
After step 43, handpiece adapter cluster receive test assignment, first passes through Appium and each cell phone apparatus of access is carried out Then control identification carries out corresponding control operation to the control that Appium is identified;For unrecognized by Appium Control then first carries out OCR text identification to control, then carries out corresponding control operation to the control text identified, thus Complete the automatic test to each cell phone apparatus;Generated mobile application business datum during the test, then pass through access 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 by automatic test service Test result is shown in management terminal by device.
3. a kind of bank's mobile phone application automated testing method according to claim 1, it is characterised in that: the control behaviour Make to include click, input, touch, drop-down selection and double click operation.
4. a kind of bank's mobile phone application automated testing method according to claim 1, it is characterised in that: the mobile phone letter Breath includes that cell phone apparatus series number, the system type of the handpiece adapter of access, the system type of cell phone apparatus and mobile phone are set Standby system version.
5. a kind of bank's mobile phone application automatization test system, it is characterised in that: the system comprises cellphone information obtain module, APP installs module, script uploading module and automatic test module:
The cellphone information obtains module, and the cellphone information for obtaining cell phone apparatus cluster is monitored for handpiece adapter cluster, and Cellphone information is sent to automatic test server by local area network, cellphone information is shown to pipe by automatic test server It manages in terminal;
The APP installs module, for uploading bank's mobile application APP installation kit to automatic test service by management terminal Device, and issue installation instruction and give handpiece adapter cluster, handpiece adapter cluster carries out APP peace to the cell phone apparatus cluster of access Dress;
The script uploading module, for writing Python automatic test script, and the test that will be finished by management terminal Script is uploaded to automatic test server, wherein the test script is identified by control and corresponding control is operated and formed;
The automatic test module, for selecting Python automatic test from automatic test server by management terminal 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 executed according to Python automatic test script;
The control identification specifically includes Appium identification module and OCR text identification module:
The Appium identification module, for the business of cell phone apparatus Android or iOS system to be obtained and identified by Appium All controls that operation interface is shown;
The OCR text identification module, for carrying out OCR text identification to the unrecognized control of Appium;
Wherein, the OCR text identification module specifically includes:
Picture interception unit, for intercepting cell phone apparatus current screen picture and saving;
Picture cuts unit, for the current screen picture of interception to be uploaded to handpiece adapter, by handpiece adapter from current The control picture of text identification to be carried out is cut out in screen shots, and compression processing is carried out to the control picture cut out;
Compressed control picture is uploaded to automatic test server for handpiece adapter by text identification unit, 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 return to automatic test server, The text that automatic test server will identify that is transmitted to handpiece adapter.
6. a kind of bank's mobile phone application automatization test system according to claim 5, it is characterised in that: the automatic survey Die trial block specifically includes:
Request unit for issuing test request to automatic test server by management terminal, and takes from automatic test It is engaged in selecting Python automatic test script and cell phone apparatus cluster to be tested in device;
Mission dispatching unit according to the Python automatic test script of selection and will be surveyed for automatic test server Test assignment is handed down to handpiece adapter cluster by the cell phone apparatus cluster of examination;
Test cell after receiving test assignment for handpiece adapter cluster, first passes through Appium and sets to each mobile phone of access It is standby to carry out control identification, corresponding control operation then is carried out to the control that Appium is identified;It can not for passing through Appium The control of identification then first carries out OCR text identification to control, then carries out corresponding control behaviour to the control text identified Make, to complete the automatic test to each cell phone apparatus;Generated mobile application business datum during the test, then lead to The ad Hoc wireless network for crossing access cell phone apparatus sends backstage bank mobile service system to;
Test result is returned to automatic test server for handpiece adapter cluster by unit as the result is shown, and by automatic Change testing service device test result is shown in management terminal.
7. a kind of bank's mobile phone application automatization test system according to claim 5, it is characterised in that: the control behaviour Make to include click, input, touch, drop-down selection and double click operation.
8. a kind of bank's mobile phone application automatization test system according to claim 5, it is characterised in that: the mobile phone letter Breath includes that cell phone apparatus series number, the system type of the handpiece adapter of access, the system type of cell phone apparatus and mobile phone are set Standby system version.
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 CN106250307A (en) 2016-12-21
CN106250307B true 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)

Families Citing this family (24)

* 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
CN106991046B (en) * 2017-03-24 2020-10-09 广州酷狗计算机科技有限公司 Application testing method and device
CN108664364B (en) * 2017-03-31 2023-05-09 腾讯科技(深圳)有限公司 Terminal testing method and device
CN107451060A (en) * 2017-08-01 2017-12-08 安徽善金科技股份有限公司 A kind of across mobile terminal automated test frame system
CN109462491B (en) * 2017-09-06 2021-10-01 北京京东尚科信息技术有限公司 System, method and apparatus for testing server functionality
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
CN108536586B (en) * 2018-03-20 2021-08-27 中国工商银行股份有限公司 Information acquisition method, equipment and 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
CN109144807A (en) * 2018-05-03 2019-01-04 深圳市华夏双赢通信有限公司 The mthods, systems and devices of analog manual operation's smart machine
CN109189682B (en) * 2018-08-27 2022-03-22 北京云测信息技术有限公司 Script recording method and device
CN109359031B (en) * 2018-09-04 2023-08-22 中国平安人寿保险股份有限公司 Multi-device application program testing method and device, server 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
CN110855501B (en) * 2019-11-21 2022-04-26 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN111817916B (en) * 2020-07-02 2022-06-03 浙江同花顺智能科技有限公司 Test method, device, equipment 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
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 test 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
面向嵌入式软件测试的仿真建模;蒋崇武 等;《计算机工程》;20080228;第34卷(第4期);第87-89页

Also Published As

Publication number Publication date
CN106250307A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN106250307B (en) A kind of bank's mobile phone application automated testing method and system
CN106598868B (en) Method and system a little are buried to the application program of client dynamic
CN103744784B (en) Mobile phone application automated testing method and system
CN108971807B (en) Intelligent management control method and management system for field welding construction process
CN106504359B (en) Intelligent attendance system based on position and motion state and implementation method thereof
CN106021099A (en) System and method for achieving UI automatic test of intelligent terminal
CN102387234A (en) Mobile phone automatic test device and method
CN110689223B (en) Robot batch management system based on RPA control
CN109101397A (en) High-Performance Computing Cluster monitoring method, unit and storage medium
CN105337408A (en) Electric energy information collection on-site quick defect elimination system
CN105225283A (en) Based on the signing in method of wireless router and mobile phone
CN107688163A (en) A kind of performance detection analytical equipment of user power utilization information acquisition system
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN111552603A (en) Mobile payment machine tool testing method and testing system
CN102135939A (en) Test case operation dispatching device and method
CN111626896B (en) Automatic acquisition and information management system for building engineering quality detection data
CN103379519A (en) Smartphone-based mobile communication network testing method
CN111340392A (en) Information processing module of public testing system
CN107548083A (en) WAP function test method and equipment
CN105955038A (en) Enterprise intelligent office PDA (Personal Digital Assistant) control system and reimbursement method
CN105631720A (en) Distributed mobile invoicing and management system and method
CN114996697A (en) Intelligent control system for micro-grid
CN205050186U (en) Real -time automatic system of booking rooms
CN202334909U (en) System realizing automatic test on mobile phone service by image contrast
US20200242751A1 (en) Enhanced automatic cosmetic grading

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