CN104461894A - Android App operating recording device and method - Google Patents

Android App operating recording device and method Download PDF

Info

Publication number
CN104461894A
CN104461894A CN201410790339.6A CN201410790339A CN104461894A CN 104461894 A CN104461894 A CN 104461894A CN 201410790339 A CN201410790339 A CN 201410790339A CN 104461894 A CN104461894 A CN 104461894A
Authority
CN
China
Prior art keywords
mobile phone
recording
event
sectional drawing
key message
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
CN201410790339.6A
Other languages
Chinese (zh)
Other versions
CN104461894B (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.)
Yonyou Software Co Ltd
Original Assignee
Yonyou Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN201410790339.6A priority Critical patent/CN104461894B/en
Publication of CN104461894A publication Critical patent/CN104461894A/en
Application granted granted Critical
Publication of CN104461894B publication Critical patent/CN104461894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an Android App operating recording device. The Android App operating recording device comprises a terminal connection unit, a characteristic information analysis unit, an operation coordinate obtaining unit, an object-oriented script generation unit and a sequence chart recording unit, wherein the terminal connection unit is used for connecting a mobile phone and a PC terminal, and under the USB debug mode, the PC terminal is provided with a drive matched with the model of the mobile phone; after the mobile phone and the PC terminal are connected, equipment information of successful connection is obtained; the characteristic information analysis unit is used for extracting key information; the operation coordinate obtaining unit is used for obtaining operation coordinates for monitoring the mobile phone and fed back to the PC terminal; the object-oriented script generation unit is used for converting the obtained operation coordinates into an operation object and generating an object script; the sequence chart recording unit is used for recording a corresponding sequence chart. The invention further provides an Android App operating recording method. By the technical scheme, on the basis of an existing software operating recording mode, the simple object type is fully utilized to finish software operating recording of multiple object types, and a general and unified recording idea of software operating recording in which complex object types participate is built.

Description

The operation record device of Android software and method
Technical field
The present invention relates to technical field of data processing, particularly, relate to a kind of operation record device of Android software and a kind of operation method for recording of Android software.
Background technology
In Android phone carries out automatic test, test script write more complicated.Automatized script demand an application issued, used and need subsequently release upgrade time more urgent.Tested when all existing features need each release to upgrade, guarantee there is no regression error when upgrade code.Write mode and obviously can not meet above-mentioned requirements.
The technical requirement of automatic test to tester is higher, and the initial stage that automatic test is promoted is held a concurrent post by developer often, and common test personnel are difficult to write out test script fast.
Therefore, need a kind of new software operation recording technology, can record on mode basis in existing software operation, make full use of the software operation recording that simple object type completes complicated multi-object type, thinking is recorded in general, the unification of setting up the software operation recording that complex object type participates in.
Summary of the invention
The present invention is just based on the problems referred to above, propose a kind of new software operation recording technology, can record on mode basis in existing software operation, make full use of the software operation recording that simple object type completes complicated multi-object type, set up general, the unified recording thinking of the software operation recording that complex object type participates in.
In view of this, the present invention proposes a kind of operation record device of Android software, comprising: terminal connection unit 102, be connected for mobile phone is held with PC, under USB debugging mode, at PC end, the driving matched with mobile phone model is installed; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection; Characteristic information resolution unit 104, for the facility information based on acquisition, take out the key message that can read corresponding mobile phone, this key message comprises device resolution; Operation coordinate acquiring unit 106, for based on the key message obtained, obtains the monitoring to mobile phone and the operation coordinate fed back to PC end; Object-oriented script generation unit 108, for being operand by the operation coordinate transformation of acquisition, formation object script; Key message in the object script of generation is stored; Sequential chart recording elements 110, for based on the object script generated, records corresponding sequential chart.In this technical scheme, on the smart mobile phone of android operating system, the operation behavior action of user can be recorded; Two kinds of recording modes are combined and bring out the best in each other, make to record result accurately quick.
In technique scheme, preferably, described terminal connection unit 102, specifically comprises: debugging and driver module 1022, be connected for being held with PC by mobile phone, under USB debugging mode, installs at PC end the driving matched with mobile phone model; Connect and feedback module 1024, for based on the driving of installing, mobile phone is held with PC and is connected; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection.In this technical scheme, can OO script, once record playback everywhere.
In technique scheme, preferably, described operation coordinate acquiring unit 106, specifically comprise: flow of event mode gets index module 1062, for based on the key message obtained, mobile phone inputs long order thread, to mobile phone take up an official post what operation flow of event monitor, and the flow of event of monitoring is turned back to PC end; By returning the quantity of flow of event, determine the fundamental type of event, this fundamental type comprise click, double-click, slide, drag, system key; What return based on system key flow of event is connect the 16 system relative coordinates that key name claims, other flow of event returns and the device resolution taken out, and calculates, obtains the particular location coordinate of corresponding operating, and carry out sectional drawing; PC screen taps gets index module 1064, for based on the device resolution in the key message obtained, generates the U1 view area onesize with mobile phone at PC end, obtains the sectional drawing of this U1 view area and is kept at PC end; Show the sectional drawing of this U1 view area at the view area of PC end and add the system button of mobile phone, mobile phone being mapped to PC end; Click the mouse at the view area of PC end, the coordinate figure that record is clicked; Meanwhile, the action of clicking the mouse is fed back to mobile phone, after handset response, then to the view area sectional drawing again that PC holds, realize synchronous.In this technical scheme, can identification maneuver in many ways, ensure that recording process is complete, accurate.
In technique scheme, preferably, the key message in the object script that described object-oriented script generation unit 108 generates, comprises coordinate, action, resolution, operand class, operand title, operand attribute description statement; And/or described flow of event mode gets the operation that index module 1062 carries out sectional drawing, comprises further: single-click operation screenshot capture; And/or, slide screenshot capture; And/or, function key function screen sectional drawing.
In technique scheme, preferably, described sequential chart recording elements 110, specifically comprises: mobile phone direct recording module 1102, for based on the object script generated, by mobile phone direct recording sequential chart; Screen taps records module 1104, and for the object script based on generation, screen taps records sequential chart.In this technical scheme, with the mode generation script recorded, the mode of manual compiling script in the past can be replaced.
According to a further aspect of the invention, also proposed a kind of operation method for recording of Android software, comprising: step 202: mobile phone is held with PC and is connected, under USB debugging mode, at PC end, the driving matched with mobile phone model is installed; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection; Step 204: based on the facility information obtained, take out the key message that can read corresponding mobile phone, this key message comprises device resolution; Step 206: based on the key message obtained, obtains the monitoring to mobile phone and the operation coordinate fed back to PC end; Step 208: be operand by the operation coordinate transformation of acquisition, formation object script; Key message in the object script of generation is stored; Step 210: based on the object script generated, record corresponding sequential chart.In this technical scheme, on the smart mobile phone of android operating system, the operation behavior action of user can be recorded; Two kinds of recording modes are combined and bring out the best in each other, make to record result accurately quick.
In technique scheme, preferably, described step 202, specifically comprises: step 302: held with PC by mobile phone and be connected, and under USB debugging mode, installs at PC end the driving matched with mobile phone model; Step 304: based on the driving of installing, mobile phone is held with PC and is connected; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection.In this technical scheme, can OO script, once record playback everywhere.
In technique scheme, preferably, described step 206, specifically comprises: step 402: based on the key message obtained, and mobile phone inputs long order thread, to mobile phone take up an official post what operation flow of event monitor, and the flow of event of monitoring is turned back to PC end; By returning the quantity of flow of event, determine the fundamental type of event, this fundamental type comprise click, double-click, slide, drag, system key; What return based on system key flow of event is connect the 16 system relative coordinates that key name claims, other flow of event returns and the device resolution taken out, and calculates, obtains the particular location coordinate of corresponding operating, and carry out sectional drawing; Step 404: based on the device resolution in the key message obtained, generates the U1 view area onesize with mobile phone at PC end, obtains the sectional drawing of this U1 view area and is kept at PC end; Show the sectional drawing of this U1 view area at the view area of PC end and add the system button of mobile phone, mobile phone being mapped to PC end; Click the mouse at the view area of PC end, the coordinate figure that record is clicked; Meanwhile, the action of clicking the mouse is fed back to mobile phone, after handset response, then to the view area sectional drawing again that PC holds, realize synchronous.In this technical scheme, can identification maneuver in many ways, ensure that recording process is complete, accurate.
In technique scheme, preferably, the key message in the object script that described step 202 generates, comprises coordinate, action, resolution, operand class, operand title, operand attribute description statement; And/or described step 404 carries out the operation of sectional drawing, comprises further: single-click operation screenshot capture; And/or, slide screenshot capture; And/or, function key function screen sectional drawing.
In technique scheme, preferably, described step 210, specifically comprises: step 502: based on the object script generated, by mobile phone direct recording sequential chart; Step 504: based on the object script generated, screen taps records sequential chart.In this technical scheme, with the mode generation script recorded, the mode of manual compiling script in the past can be replaced.
By above technical scheme, can record on mode basis in existing software operation, make full use of the software operation recording that simple object type completes complicated multi-object type, set up general, the unified recording thinking of the software operation recording that complex object type participates in.
Accompanying drawing explanation
Fig. 1 shows the block diagram of the operation record device of Android software according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of the operation method for recording of Android software according to an embodiment of the invention;
Fig. 3 shows the process flow diagram of terminal connection unit according to an embodiment of the invention;
Fig. 4 shows the process flow diagram operating coordinate acquiring unit according to an embodiment of the invention;
Fig. 5 shows the process flow diagram of sequential chart recording elements according to an embodiment of the invention;
Fig. 6 shows flow of event result sectional drawing according to an embodiment of the invention;
Fig. 7 shows single-click operation screenshot capture according to an embodiment of the invention;
Fig. 8 shows slide screenshot capture according to an embodiment of the invention;
Fig. 9 shows function key function screen sectional drawing according to an embodiment of the invention;
Figure 10 shows mobile phone direct recording sequential chart according to an embodiment of the invention;
Figure 11 shows screen taps according to an embodiment of the invention and records sequential chart.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of the operation record device of Android software according to an embodiment of the invention.
As shown in Figure 1, the operation record device 100 of Android software, comprising: terminal connection unit according to an embodiment of the invention, is connected for being held with PC by mobile phone, under USB debugging mode, installs at PC end the driving matched with mobile phone model; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection; Characteristic information resolution unit, for the facility information based on acquisition, take out the key message that can read corresponding mobile phone, this key message comprises device resolution; Operation coordinate acquiring unit, for based on the key message obtained, obtains the monitoring to mobile phone and the operation coordinate fed back to PC end; Object-oriented script generation unit, for being operand by the operation coordinate transformation of acquisition, formation object script; Key message in the object script of generation is stored; Sequential chart recording elements, for based on the object script generated, records corresponding sequential chart.In this technical scheme, on the smart mobile phone of android operating system, the operation behavior action of user can be recorded; Two kinds of recording modes are combined and bring out the best in each other, make to record result accurately quick.
In technique scheme, preferably, terminal connection unit, specifically comprises: debugging and driver module, be connected for being held with PC by mobile phone, under USB debugging mode, installs at PC end the driving matched with mobile phone model; Connect and feedback module, for based on the driving of installing, mobile phone is held with PC and is connected; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection.In this technical scheme, can OO script, once record playback everywhere.
In technique scheme, preferably, coordinate acquiring unit is operated, specifically comprise: flow of event mode gets index module, for based on the key message obtained, mobile phone inputs long order thread, to mobile phone take up an official post what operation flow of event monitor, and the flow of event of monitoring is turned back to PC end; By returning the quantity of flow of event, determine the fundamental type of event, this fundamental type comprise click, double-click, slide, drag, system key; What return based on system key flow of event is connect the 16 system relative coordinates that key name claims, other flow of event returns and the device resolution taken out, and calculates, obtains the particular location coordinate of corresponding operating, and carry out sectional drawing; PC screen taps gets index module, for based on the device resolution in the key message obtained, generates the U1 view area onesize with mobile phone at PC end, obtains the sectional drawing of this U1 view area and is kept at PC end; Show the sectional drawing of this U1 view area at the view area of PC end and add the system button of mobile phone, mobile phone being mapped to PC end; Click the mouse at the view area of PC end, the coordinate figure that record is clicked; Meanwhile, the action of clicking the mouse is fed back to mobile phone, after handset response, then to the view area sectional drawing again that PC holds, realize synchronous.In this technical scheme, can identification maneuver in many ways, ensure that recording process is complete, accurate.
In technique scheme, preferably, the key message in the object script that object-oriented script generation unit generates, comprises coordinate, action, resolution, operand class, operand title, operand attribute description statement; And/or flow of event mode gets the operation that index module carries out sectional drawing, comprises further: single-click operation screenshot capture; And/or, slide screenshot capture; And/or, function key function screen sectional drawing.
In technique scheme, preferably, sequential chart recording elements, specifically comprises: mobile phone direct recording module, for based on the object script generated, by mobile phone direct recording sequential chart; Screen taps records module, and for the object script based on generation, screen taps records sequential chart.In this technical scheme, with the mode generation script recorded, the mode of manual compiling script in the past can be replaced.
Fig. 2 shows the process flow diagram of the operation method for recording of Android software according to an embodiment of the invention.
As shown in Figure 2, the operation method for recording of Android software according to an embodiment of the invention, comprising: step 202: held with PC by mobile phone and be connected, and under USB debugging mode, installs at PC end the driving matched with mobile phone model; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection; Step 204: based on the facility information obtained, take out the key message that can read corresponding mobile phone, this key message comprises device resolution; Step 206: based on the key message obtained, obtains the monitoring to mobile phone and the operation coordinate fed back to PC end; Step 208: be operand by the operation coordinate transformation of acquisition, formation object script; Key message in the object script of generation is stored; Step 210: based on the object script generated, record corresponding sequential chart.In this technical scheme, on the smart mobile phone of android operating system, the operation behavior action of user can be recorded; Two kinds of recording modes are combined and bring out the best in each other, make to record result accurately quick.
In technique scheme, preferably, as shown in Figure 3, step 202, specifically comprises: step 302: held with PC by mobile phone and be connected, and under USB debugging mode, installs at PC end the driving matched with mobile phone model; Step 304: based on the driving of installing, mobile phone is held with PC and is connected; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection.In this technical scheme, can OO script, once record playback everywhere.
In technique scheme, preferably, as shown in Figure 4, step 206, specifically comprises: step 402: based on the key message obtained, and mobile phone inputs long order thread, to mobile phone take up an official post what operation flow of event monitor, and the flow of event of monitoring is turned back to PC end; By returning the quantity of flow of event, determine the fundamental type of event, this fundamental type comprise click, double-click, slide, drag, system key; What return based on system key flow of event is connect the 16 system relative coordinates that key name claims, other flow of event returns and the device resolution taken out, and calculates, obtains the particular location coordinate of corresponding operating, and carry out sectional drawing; Step 404: based on the device resolution in the key message obtained, generates the U1 view area onesize with mobile phone at PC end, obtains the sectional drawing of this U1 view area and is kept at PC end; Show the sectional drawing of this U1 view area at the view area of PC end and add the system button of mobile phone, mobile phone being mapped to PC end; Click the mouse at the view area of PC end, the coordinate figure that record is clicked; Meanwhile, the action of clicking the mouse is fed back to mobile phone, after handset response, then to the view area sectional drawing again that PC holds, realize synchronous.In this technical scheme, can identification maneuver in many ways, ensure that recording process is complete, accurate.
In technique scheme, preferably, the key message in the object script that step 202 generates, comprises coordinate, action, resolution, operand class, operand title, operand attribute description statement; And/or step 404 carries out the operation of sectional drawing, comprises further: single-click operation screenshot capture; And/or, slide screenshot capture; And/or, function key function screen sectional drawing.
In technique scheme, preferably, as shown in Figure 5, step 210, specifically comprises: step 502: based on the object script generated, by mobile phone direct recording sequential chart; Step 504: based on the object script generated, screen taps records sequential chart.In this technical scheme, with the mode generation script recorded, the mode of manual compiling script in the past can be replaced.
Technical scheme of the present invention, provides a kind of Android software operation recording technology being applied to automatic test; On the smart mobile phone of android operating system, record the operation behavior action of user.
Technical scheme of the present invention, has following characteristics:
(1) automatized script generates; With the mode generation script recorded, replace the mode of manual compiling script in the past;
(2) good action recognition rate; Identification maneuver in many ways, ensures that recording process is complete, accurate;
(3) OO script, once records playback everywhere;
(4) playback script can combine with main flow playback framework.
The technical scheme that the present invention solves prior art problem is as follows:
1, mobile phone is connected with PC.
Mobile phone connects computer and USB debugging mode of performing fighting by USB line, installs at PC end the driving matched with mobile phone model.After successful connection, can see that facility information represents successful connection after order line input adb devices.
2, mobile phone characteristic information analysis.
Android system when each cell phone manufacturer produces all through customized development, so the facility information obtained after order line input adb devices is not quite similar, as long as but reading this mobile phone of taking out that key message just can be correct.
>adb shell getevent –p
In feedback information, found 0035, the row of 0036 mark, this group facility information represents the screen message of mobile phone, can parse the resolution (720*1280) of mobile phone, determine screen event stream title simultaneously, be generally/dev/input/event0.Flow of event result as shown in Figure 6.
3, operation coordinate is obtained
Flow of event mode gets coordinate:
>adb shell getevent –d –l –t
This is a long order thread, and after this order of input, carry out any operation to mobile phone, flow of event is monitored, and the action of all operations mobile phone all can turn back to PC end.Can determine the type of event by returning flow of event quantity, fundamental type is: click, double-click, slide, drag, system key.System key flow of event returns and is connect the title of key, and what other event returned is 16 system relative coordinates, calculates mutually with the device resolution that we take out before, can obtain the particular location coordinate operated.As Fig. 7 example: single-click operation screenshot capture.Slide screenshot capture, as shown in Figure 8.Function key function screen sectional drawing, as shown in Figure 9.
PC screen taps gets coordinate.
Get in the mode of coordinate above-mentioned, owing to operating the reasons such as too fast, multithreading, sometimes correctly can not obtain coordinate, at this moment need to use the second way.On PC, an onesize U1 view area is generated by the mobile phone resolution obtained before,
>adb shell /system/bin/screencap –p /sdcard/screenshot.png
>adb pull /sdcard/screenshot.png C:/my_screen
Obtain sectional drawing with mentioned order again and leave the position of C:/my_screen in PC in, this picture of screenshot.png is presented at view area, and view area also will add cell phone system button, and such mobile phone has just been mapped on PC.View area on PC taps mouse, and we can record the coordinate figure of click.With sendkey order, this action is returned to mobile phone simultaneously, after handset response, then to PC view area again sectional drawing, realize synchronous.
4, object-oriented script is generated.
Obtain handset program object, need by uiautomator.At every turn after to mobile phone operation, all uses uiautomator to obtain the object tree of all objects in mobile phone screen, then with operation coordinate points go each object coordinates point of comparison with it shared by area, just can show which object this Action Target is.Thus be operand operation coordinate transformation.Even if such test script changes different resolution, the mobile phone of different brands all can playback.
The script generated xml file is preserved, and namely this storage format has OO feature, is again static literary composition, is convenient to editor and transplants.In xml file, key message has coordinate, action, resolution, operand class, operand title, operand attribute description etc.
5, mobile phone direct recording sequential chart, see Figure 10.
6, screen taps records sequential chart, see Figure 11.
In the inventive solutions, the advantage of the recording mode of flow of event is that writing speed is fast, but is easily subject to the interference of repeatedly repetitive operation, occurs recording accuracy problem.PC screen taps recording mode advantage records accurately, but because each action need sectional drawing synchronizing picture, speed effect is slow.Above two kinds of recording modes are combined and bring out the best in each other, and become a kind of inner complementary method for recording, make to record result accurately quick.Use-case objectification makes the reusability of use-case greatly strengthen.
The present invention can also combine with automated test tool or robotization framework, forms the testing process of complete set.
More than be described with reference to the accompanying drawings technical scheme of the present invention, considered in correlation technique there is no easy, the unified solution recorded for complicated type software operation.The software operation recording process that cannot complete complicated type and participate in is recorded in existing software operation.Therefore, the present invention proposes a kind of operation record device of Android software and a kind of operation method for recording of Android software, can record on mode basis in existing software operation, make full use of the software operation recording that simple object type completes complicated multi-object type, set up general, the unified recording thinking of the software operation recording that complex object type participates in.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. an operation record device for Android software, is characterized in that, comprising:
Terminal connection unit, is connected for being held with PC by mobile phone, under USB debugging mode, installs at PC end the driving matched with mobile phone model; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection;
Characteristic information resolution unit, for the facility information based on acquisition, take out the key message that can read corresponding mobile phone, this key message comprises device resolution;
Operation coordinate acquiring unit, for based on the key message obtained, obtains the monitoring to mobile phone and the operation coordinate fed back to PC end;
Object-oriented script generation unit, for being operand by the operation coordinate transformation of acquisition, formation object script; Key message in the object script of generation is stored;
Sequential chart recording elements, for based on the object script generated, records corresponding sequential chart.
2. the operation record device of Android software according to claim 1, is characterized in that, described terminal connection unit, specifically comprises:
Debugging and driver module, be connected for being held with PC by mobile phone, under USB debugging mode, installs at PC end the driving matched with mobile phone model;
Connect and feedback module, for based on the driving of installing, mobile phone is held with PC and is connected; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection.
3. the operation record device of Android software according to claim 1 and 2, is characterized in that, described operation coordinate acquiring unit, specifically comprises:
Flow of event mode gets index module, for based on the key message obtained, mobile phone inputs long order thread, to mobile phone take up an official post what operation flow of event monitor, and the flow of event of monitoring is turned back to PC end; By returning the quantity of flow of event, determine the fundamental type of event, this fundamental type comprise click, double-click, slide, drag, system key; What return based on system key flow of event is connect the 16 system relative coordinates that key name claims, other flow of event returns and the device resolution taken out, and calculates, obtains the particular location coordinate of corresponding operating, and carry out sectional drawing;
PC screen taps gets index module, for based on the device resolution in the key message obtained, generates the U1 view area onesize with mobile phone at PC end, obtains the sectional drawing of this U1 view area and is kept at PC end; Show the sectional drawing of this U1 view area at the view area of PC end and add the system button of mobile phone, mobile phone being mapped to PC end; Click the mouse at the view area of PC end, the coordinate figure that record is clicked; Meanwhile, the action of clicking the mouse is fed back to mobile phone, after handset response, then to the view area sectional drawing again that PC holds, realize synchronous.
4. the operation record device of Android software according to claim 3, it is characterized in that, key message in the object script that described object-oriented script generation unit generates, comprises coordinate, action, resolution, operand class, operand title, operand attribute description statement;
And/or,
Described flow of event mode gets the operation that index module carries out sectional drawing, comprises further:
Single-click operation screenshot capture;
And/or,
Slide screenshot capture;
And/or,
Function key function screen sectional drawing.
5. the operation record device of Android software according to claim 1 and 2, is characterized in that, described sequential chart recording elements, specifically comprises:
Mobile phone direct recording module, for based on the object script generated, by mobile phone direct recording sequential chart;
Screen taps records module, and for the object script based on generation, screen taps records sequential chart.
6. an operation method for recording for Android software, is characterized in that, comprising:
Step 202: held with PC by mobile phone and be connected, under USB debugging mode, installs at PC end the driving matched with mobile phone model; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection;
Step 204: based on the facility information obtained, take out the key message that can read corresponding mobile phone, this key message comprises device resolution;
Step 206: based on the key message obtained, obtains the monitoring to mobile phone and the operation coordinate fed back to PC end;
Step 208: be operand by the operation coordinate transformation of acquisition, formation object script; Key message in the object script of generation is stored;
Step 210: based on the object script generated, record corresponding sequential chart.
7. the operation method for recording of Android software according to claim 6, is characterized in that, described step 202, specifically comprises:
Step 302: held with PC by mobile phone and be connected, under USB debugging mode, installs at PC end the driving matched with mobile phone model;
Step 304: based on the driving of installing, mobile phone is held with PC and is connected; After successful connection, in the instruction of order line input inquiry, obtain the facility information of successful connection.
8. the operation method for recording of the Android software according to claim 6 or 7, is characterized in that, described step 206, specifically comprises:
Step 402: based on the key message obtained, mobile phone inputs long order thread, to mobile phone take up an official post what operation flow of event monitor, and the flow of event of monitoring is turned back to PC end; By returning the quantity of flow of event, determine the fundamental type of event, this fundamental type comprise click, double-click, slide, drag, system key; What return based on system key flow of event is connect the 16 system relative coordinates that key name claims, other flow of event returns and the device resolution taken out, and calculates, obtains the particular location coordinate of corresponding operating, and carry out sectional drawing;
Step 404: based on the device resolution in the key message obtained, generates the U1 view area onesize with mobile phone at PC end, obtains the sectional drawing of this U1 view area and is kept at PC end; Show the sectional drawing of this U1 view area at the view area of PC end and add the system button of mobile phone, mobile phone being mapped to PC end; Click the mouse at the view area of PC end, the coordinate figure that record is clicked; Meanwhile, the action of clicking the mouse is fed back to mobile phone, after handset response, then to the view area sectional drawing again that PC holds, realize synchronous.
9. the operation method for recording of Android software according to claim 3, it is characterized in that, key message in the object script that described step 202 generates, comprises coordinate, action, resolution, operand class, operand title, operand attribute description statement;
And/or,
Described step 404 carries out the operation of sectional drawing, comprises further:
Single-click operation screenshot capture;
And/or,
Slide screenshot capture;
And/or,
Function key function screen sectional drawing.
10. the operation method for recording of the Android software according to claim 6 or 7, is characterized in that, described step 210, specifically comprises:
Step 502: based on the object script generated, by mobile phone direct recording sequential chart;
Step 504: based on the object script generated, screen taps records sequential chart.
CN201410790339.6A 2014-12-17 2014-12-17 The operation record device and method of Android software Active CN104461894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410790339.6A CN104461894B (en) 2014-12-17 2014-12-17 The operation record device and method of Android software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410790339.6A CN104461894B (en) 2014-12-17 2014-12-17 The operation record device and method of Android software

Publications (2)

Publication Number Publication Date
CN104461894A true CN104461894A (en) 2015-03-25
CN104461894B CN104461894B (en) 2017-11-07

Family

ID=52907983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410790339.6A Active CN104461894B (en) 2014-12-17 2014-12-17 The operation record device and method of Android software

Country Status (1)

Country Link
CN (1) CN104461894B (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN105183647A (en) * 2015-09-01 2015-12-23 北京瑞汛世纪科技有限公司 Application testing method, apparatus and system
CN105262798A (en) * 2015-09-18 2016-01-20 北京金山安全软件有限公司 Method, system and device for connecting terminals
CN105843734A (en) * 2016-03-18 2016-08-10 厦门美图移动科技有限公司 Automatic test method and device and computing device
CN105955881A (en) * 2016-04-22 2016-09-21 百度在线网络技术(北京)有限公司 Automated test step recording and playback method and apparatus
CN106383765A (en) * 2016-08-31 2017-02-08 北京百分点信息科技有限公司 Data monitoring method and apparatus
CN106648668A (en) * 2016-12-26 2017-05-10 上海斐讯数据通信技术有限公司 Folder system and method for simultaneously containing and starting multiple mobile phone functions
CN106874208A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 The processing method of test script, device and electronic equipment
CN107179890A (en) * 2016-03-10 2017-09-19 北京君正集成电路股份有限公司 A kind of method and system for synchronizing operation to mobile terminal by PC ends
CN107193729A (en) * 2017-04-19 2017-09-22 北京云测信息技术有限公司 A kind of application compatibility method of testing and device
CN107637073A (en) * 2015-06-07 2018-01-26 苹果公司 Videograph and playback
CN108170593A (en) * 2017-12-22 2018-06-15 北京奇虎科技有限公司 The method and device of application program operation
CN109298994A (en) * 2017-07-24 2019-02-01 中国移动通信集团公司 A kind of script records, method for testing software and equipment
CN111124567A (en) * 2019-12-02 2020-05-08 腾讯科技(深圳)有限公司 Operation recording method and device for target application
US10659405B1 (en) 2019-05-06 2020-05-19 Apple Inc. Avatar integration with multiple applications
CN112685279A (en) * 2019-10-17 2021-04-20 腾讯科技(深圳)有限公司 Script recording method and device and terminal equipment
US11054973B1 (en) 2020-06-01 2021-07-06 Apple Inc. User interfaces for managing media
US11103161B2 (en) 2018-05-07 2021-08-31 Apple Inc. Displaying user interfaces associated with physical activities
US11321731B2 (en) 2015-06-05 2022-05-03 Apple Inc. User interface for loyalty accounts and private label accounts
US11580608B2 (en) 2016-06-12 2023-02-14 Apple Inc. Managing contact information for communication applications
CN115842884A (en) * 2022-12-27 2023-03-24 润芯微科技(江苏)有限公司 Method for completing mobile phone test based on recording mobile phone interface coordinates

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method
CN103928038B (en) * 2014-04-29 2017-06-30 广东欧珀移动通信有限公司 The test recording of electronic equipment and back method

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11734708B2 (en) 2015-06-05 2023-08-22 Apple Inc. User interface for loyalty accounts and private label accounts
US11321731B2 (en) 2015-06-05 2022-05-03 Apple Inc. User interface for loyalty accounts and private label accounts
CN107637073B (en) * 2015-06-07 2020-11-13 苹果公司 Video recording and playback
US10271084B2 (en) 2015-06-07 2019-04-23 Apple Inc. Video recording and replay
CN107637073A (en) * 2015-06-07 2018-01-26 苹果公司 Videograph and playback
CN105183647A (en) * 2015-09-01 2015-12-23 北京瑞汛世纪科技有限公司 Application testing method, apparatus and system
CN105262798A (en) * 2015-09-18 2016-01-20 北京金山安全软件有限公司 Method, system and device for connecting terminals
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN107179890A (en) * 2016-03-10 2017-09-19 北京君正集成电路股份有限公司 A kind of method and system for synchronizing operation to mobile terminal by PC ends
CN105843734A (en) * 2016-03-18 2016-08-10 厦门美图移动科技有限公司 Automatic test method and device and computing device
CN105843734B (en) * 2016-03-18 2019-03-15 厦门美图移动科技有限公司 A kind of automated testing method, device and calculate equipment
CN105955881A (en) * 2016-04-22 2016-09-21 百度在线网络技术(北京)有限公司 Automated test step recording and playback method and apparatus
CN105955881B (en) * 2016-04-22 2019-02-12 百度在线网络技术(北京)有限公司 A kind of automatic test step is recorded and back method and device
US11580608B2 (en) 2016-06-12 2023-02-14 Apple Inc. Managing contact information for communication applications
US11922518B2 (en) 2016-06-12 2024-03-05 Apple Inc. Managing contact information for communication applications
CN106383765A (en) * 2016-08-31 2017-02-08 北京百分点信息科技有限公司 Data monitoring method and apparatus
CN106648668A (en) * 2016-12-26 2017-05-10 上海斐讯数据通信技术有限公司 Folder system and method for simultaneously containing and starting multiple mobile phone functions
CN106874208A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 The processing method of test script, device and electronic equipment
CN107193729A (en) * 2017-04-19 2017-09-22 北京云测信息技术有限公司 A kind of application compatibility method of testing and device
CN109298994A (en) * 2017-07-24 2019-02-01 中国移动通信集团公司 A kind of script records, method for testing software and equipment
CN108170593A (en) * 2017-12-22 2018-06-15 北京奇虎科技有限公司 The method and device of application program operation
US11103161B2 (en) 2018-05-07 2021-08-31 Apple Inc. Displaying user interfaces associated with physical activities
US10659405B1 (en) 2019-05-06 2020-05-19 Apple Inc. Avatar integration with multiple applications
CN112685279A (en) * 2019-10-17 2021-04-20 腾讯科技(深圳)有限公司 Script recording method and device and terminal equipment
CN112685279B (en) * 2019-10-17 2024-02-20 深圳市腾讯网域计算机网络有限公司 Script recording method, script recording device and terminal equipment
CN111124567B (en) * 2019-12-02 2021-06-25 腾讯科技(深圳)有限公司 Operation recording method and device for target application
CN111124567A (en) * 2019-12-02 2020-05-08 腾讯科技(深圳)有限公司 Operation recording method and device for target application
US11330184B2 (en) 2020-06-01 2022-05-10 Apple Inc. User interfaces for managing media
US11617022B2 (en) 2020-06-01 2023-03-28 Apple Inc. User interfaces for managing media
US11054973B1 (en) 2020-06-01 2021-07-06 Apple Inc. User interfaces for managing media
CN115842884A (en) * 2022-12-27 2023-03-24 润芯微科技(江苏)有限公司 Method for completing mobile phone test based on recording mobile phone interface coordinates

Also Published As

Publication number Publication date
CN104461894B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN104461894A (en) Android App operating recording device and method
US10853232B2 (en) Adaptive system for mobile device testing
An Performance assessment
US8924912B2 (en) Method of recording and replaying call frames for a test bench
CN109739855B (en) Method and system for realizing data sheet splicing and automatically training machine learning model
CN102999419B (en) A kind of Android test incident record back method and device
US10176078B1 (en) Debugging process
CN111756575A (en) Performance analysis method and device of storage server and electronic equipment
US9152539B2 (en) Tag-based graphical user interface production systems and methods
CN102184138A (en) Method and system for automatically reproducing and positioning software error
CN103268289B (en) Record the method and system of application testing script on mobile terminals
TWI566090B (en) Debugging firmware / software to produce tracking systems and methods, recording media and computer program products
CN104375934B (en) Method for testing reliability of Android mobile phone software
CN105022694B (en) Method for generating test case and system for mobile terminal test
CN105653438B (en) The striding course automated testing method and device of Android device
CN103577310A (en) Method and device for recording software debugging logs
CN103984626A (en) Method and device for generating test-case script
CN103180834A (en) An automated operating system test framework
CN110659197B (en) Application test case generation method and device and software test system
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
US8381188B2 (en) Leveraging the relationship between object IDs and functions in diagnosing software defects during the post-deployment phase
US20170220452A1 (en) Performing a mirror test for localization testing
CN103649912A (en) Method, apparatus, and computer program product for generation of traceability matrices from video media
Canny et al. Model-based testing of GUI applications featuring dynamic Instanciation of widgets
CN110597704B (en) Pressure test method, device, server and medium for application program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant after: Yonyou Network Technology Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant before: UFIDA Software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant