CN104866420A - Precisely recorded mobile phone software testing method - Google Patents
Precisely recorded mobile phone software testing method Download PDFInfo
- Publication number
- CN104866420A CN104866420A CN201510204433.3A CN201510204433A CN104866420A CN 104866420 A CN104866420 A CN 104866420A CN 201510204433 A CN201510204433 A CN 201510204433A CN 104866420 A CN104866420 A CN 104866420A
- Authority
- CN
- China
- Prior art keywords
- testing
- mobile phone
- file
- record
- cell phone
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a precisely recorded mobile phone software testing method which comprises the following steps: a testing script file and a video recording program are prepared, and testing environment and parameters are initialized; a user sends a control command and carries out the testing script file execution and video recording; the user carries out operations on the mobile phone screen, and the video recording program and the testing script file record test logs in real time; in cast of a stop condition, the video recording process is stopped, the recorded test logs are systemized and written into a recording file; the recording file is filed and saved. With adoption of the precisely recorded mobile phone software testing method, the complete testing process and testing procedures can be displayed; process demonstration, trace and search are facilitated, the subsequent demonstration and the testing result display are facilitated, labor force is saved, and the testing efficiency is improved.
Description
Technical field
The present invention relates to field tests, be specifically related to a kind of cell phone software method of testing of accurate record.
Background technology
Along with popularizing of smart mobile phone, the expectation value of user to various application software is also more and more higher, improves the requirement to vast development and testing person undoubtedly.Current conventional method of testing: 1, use script edit to be directed to the test script of described mobile phone application APK by computer, test execution file is write by computer, content measurement and parameter are set, the mobile phone that need carry out this APK test is connected with computer, testing results execute file on computers, according to corresponding test case or test file, tests mobile phone APK, test result is compiled test result file, and is saved in described computer.The results contrast that the method is tested is directly perceived, but does not present complete test process and step, is not easy to process demonstration and reviews search.2, intercept the screen display content in software development process, record the operation steps relevant with described screen display content; Described step and screen display content are carried out one_to_one corresponding, writes detailed test record, effectively record whole test process.This process is more lengthy and tedious, needs real time record and arrangement, time and effort consuming, and require that the communication cable of mobile phone and computer can not interrupt, be very trouble simultaneously.
Summary of the invention
For the deficiencies in the prior art, the object of the present invention is to provide a kind of can the cell phone software method of testing of all test processs of precise synchronization record.
The technical matters that the present invention solves can realize by the following technical solutions: a kind of cell phone software method of testing of accurate record, comprises the steps:
(1) setup test script file and video record program, initialization test environment and parameter;
(2) user's sending controling instruction, performs test script file and video record;
(3) user is for cell phone software screen executable operations, video record program and test script file real time record test log;
(4) circulation performs step (3), when running into stop condition, stops video record process, and the test log that collates the minutes is written to recorded file filing and preserves.
In the cell phone software method of testing of above-mentioned accurate record, described test script file comprises and performing an action as follows: under mobile phone SD card storage space, set up information log file, all key-press event that real time print stylus point carries out mobile phone are in information log file, when running into stop condition, information log file is refreshed write recorded file.
In the cell phone software method of testing of above-mentioned accurate record, described video record program comprises and performing an action as follows: under mobile phone SD card storage space, set up recorded file, in mobile phone running memory, set up cache file simultaneously, Real-time Collection screen display content is cached in cache file, when running into stop condition, cache file is refreshed and is written to recorded file.
In the cell phone software method of testing of above-mentioned accurate record, described test log comprises mobile phone screen displaying contents and all key-press event for mobile phone, when running into stop condition, by record all mobile phone screen displaying contents and do synchronous process for all key-press event of mobile phone, be then written to recorded file filing preserve.
In the cell phone software method of testing of above-mentioned accurate record, described key-press event comprises for the button of mobile phone or the operation of touch screen soft key.
In the cell phone software method of testing of above-mentioned accurate record, the filename of described information log file is consistent with the filename of recorded file.
In the cell phone software method of testing of above-mentioned accurate record, described stop condition is: user sends halt instruction, or the data cached size of video record program reaches default storage threshold limit value, store threshold limit value and determine according to the size of mobile phone running memory or mobile phone SD card and testing requirement.
In the cell phone software method of testing of above-mentioned accurate record, initialization test parameter comprises: the record frame number FPS per second arranging recorded file, arranges the data cached storage threshold limit value of video record program.
The invention has the beneficial effects as follows: this method of testing passes through the cooperation of video record program and test script file, all mobile phone screen displaying contents and all key-press event for mobile phone can be recorded, completely can present complete test process and step, be convenient to process demonstration and review search, can improve small probability random operation very well causes defect to be difficult to the problem reappeared, simultaneously by the actuation of keys complete documentation of screen display content and bottom, the result of test can be shown intuitively, be convenient to follow-up demonstration and represent test result, save manpower, improve testing efficiency.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the cell phone software method of testing that the present invention accurately records.
Embodiment
The preferred embodiment of the present invention is described in detail below in conjunction with accompanying drawing.
Fig. 1 shows the embodiment of the cell phone software method of testing of a kind of accurate record of the present invention: the cell phone software method of testing that the present invention accurately records, comprises the steps:
S001: setup test script file and video record program, initialization test environment and parameter;
S002: user's sending controling instruction, performs test script file and video record;
S003: user for cell phone software screen executable operations, video record program and test script file real time record test log;
S004: circulation performs step S003, when running into stop condition, stops video record process, and the test log that collates the minutes is written to recorded file filing and preserves.
In the present embodiment, described test script file comprises and performing an action as follows: under mobile phone SD card storage space, set up information log file, in the process created, there is SD card, under being then stored in the ROOT root directory of SD card, if without SD card, then can be stored in mobile phone EMS memory RAM, all key-press event that real time print stylus point carries out mobile phone, with the format record of " time key-press event " in information log file, when running into stop condition, information log file is refreshed write recorded file.
In the present embodiment, described video record program comprises and performing an action as follows: under mobile phone SD card storage space, set up recorded file, in the process created, there is SD card, then under being stored in the ROOT root directory of SD card, if without SD card, then can be stored in mobile phone EMS memory RAM, in mobile phone running memory, set up cache file, Real-time Collection screen display content is cached in cache file simultaneously, when running into stop condition, cache file is refreshed and is written to recorded file.
In the present embodiment, described test log comprises mobile phone screen displaying contents and all key-press event for mobile phone, when running into stop condition, by record all mobile phone screen displaying contents and do synchronous process for all key-press event of mobile phone, be then written to recorded file filing preserve.
In the present embodiment, described key-press event comprises for the button of mobile phone or the operation of touch screen soft key.
In the present embodiment, the filename of described information log file is consistent with the filename of recorded file.
In the present embodiment, described stop condition is: user sends halt instruction, or the data cached size of video record program reaches default storage threshold limit value, store threshold limit value to determine according to the size of mobile phone running memory or mobile phone SD card and testing requirement, in test process, user can select to stop test at any time, once stop, the recorded file of all buffer memorys and information text journal file can be preserved automatically.As user does not stop, when the data recording file of buffer memory reaches preset value size, recording process also can terminate, and recorded file and information log file are preserved automatically.
In the present embodiment, the procedure file of preserving after terminating synchronously can arrange packing, as complete test record, can play on the PC computer of user at any time and demonstration, in presentation process, information text synchronously can broadcast as subtitle file in visual video, represents whole complete test process intuitively.
In the present embodiment, initialization test parameter comprises: the record frame number FPS per second arranging recorded file, arranges the data cached storage threshold limit value of video record program.
Shown in composition graphs 1, method of testing described in the present embodiment passes through the cooperation of video record program and test script file, all mobile phone screen displaying contents and all key-press event for mobile phone can be recorded, completely can present complete test process and step, be convenient to process demonstration and review search, can improve small probability random operation very well causes defect to be difficult to the problem reappeared, simultaneously by the actuation of keys complete documentation of screen display content and bottom, the result of test can be shown intuitively, be convenient to follow-up demonstration and represent test result, save manpower, improve testing efficiency.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (8)
1. the cell phone software method of testing accurately recorded, comprises the steps:
(1) setup test script file and video record program, initialization test environment and parameter;
(2) user's sending controling instruction, performs test script file and video record;
(3) user is for cell phone software screen executable operations, video record program and test script file real time record test log;
(4) circulation performs step (3), when running into stop condition, stops video record process, and the test log that collates the minutes is written to recorded file filing and preserves.
2. the cell phone software method of testing of a kind of accurate record according to claim 1, it is characterized in that, described test script file comprises and performing an action as follows: under mobile phone SD card storage space, set up information log file, all key-press event that real time print stylus point carries out mobile phone are in information log file, when running into stop condition, information log file is refreshed write recorded file.
3. the cell phone software method of testing of a kind of accurate record according to claim 1, it is characterized in that, described video record program comprises and performing an action as follows: under mobile phone SD card storage space, set up recorded file, in mobile phone running memory, set up cache file simultaneously, Real-time Collection screen display content is cached in cache file, when running into stop condition, cache file is refreshed and is written to recorded file.
4. the cell phone software method of testing of a kind of accurate record according to claim 1, it is characterized in that, described test log comprises mobile phone screen displaying contents and all key-press event for mobile phone, when running into stop condition, by record all mobile phone screen displaying contents and do synchronous process for all key-press event of mobile phone, be then written to recorded file filing preserve.
5. the cell phone software method of testing of a kind of accurate record according to claim 2 or 4, is characterized in that, described key-press event comprises for the button of mobile phone or the operation of touch screen soft key.
6. the cell phone software method of testing of a kind of accurate record according to claim 2, is characterized in that, the filename of described information log file is consistent with the filename of recorded file.
7. according to the cell phone software method of testing of a kind of accurate record described in claim 1-4, it is characterized in that, described stop condition is: user sends halt instruction, or the data cached size of video record program reaches default storage threshold limit value, store threshold limit value and determine according to the size of mobile phone running memory or mobile phone SD card and testing requirement.
8. the cell phone software method of testing of a kind of accurate record according to claim 1, it is characterized in that, in step (1), initialization test parameter comprises: the record frame number FPS per second arranging recorded file, arranges the data cached storage threshold limit value of video record program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510204433.3A CN104866420B (en) | 2015-04-27 | 2015-04-27 | A kind of cell phone software test method accurately recorded |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510204433.3A CN104866420B (en) | 2015-04-27 | 2015-04-27 | A kind of cell phone software test method accurately recorded |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104866420A true CN104866420A (en) | 2015-08-26 |
CN104866420B CN104866420B (en) | 2018-11-02 |
Family
ID=53912266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510204433.3A Expired - Fee Related CN104866420B (en) | 2015-04-27 | 2015-04-27 | A kind of cell phone software test method accurately recorded |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104866420B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105183654A (en) * | 2015-09-18 | 2015-12-23 | 厦门美图移动科技有限公司 | Android automatic testing screen recording mechanism and system disengaged from PC |
CN105183648A (en) * | 2015-09-08 | 2015-12-23 | 北京思特奇信息技术股份有限公司 | Visualized automatic dial testing method and system |
CN106598865A (en) * | 2016-12-22 | 2017-04-26 | 动视云(北京)科技有限公司 | Software testing method and device |
CN106789209A (en) * | 2016-12-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Abnormality eliminating method and device |
CN107608892A (en) * | 2017-09-22 | 2018-01-19 | 苏州惠邦科信息技术有限公司 | The method of testing of cell phone software |
CN107704379A (en) * | 2017-06-23 | 2018-02-16 | 上海斐讯数据通信技术有限公司 | A kind of video recording system and application method suitable for automatic test course |
CN109376129A (en) * | 2018-10-08 | 2019-02-22 | 郑州云海信息技术有限公司 | A method of storage log is collected when locking by SYS_TF automatically |
CN111400163A (en) * | 2019-01-03 | 2020-07-10 | 富泰华工业(深圳)有限公司 | Software testing monitoring device and method |
CN111652180A (en) * | 2020-06-16 | 2020-09-11 | 北京梧桐车联科技有限责任公司 | Defect positioning method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1067806A1 (en) * | 1999-07-09 | 2001-01-10 | CANAL+ Société Anonyme | Apparatus for and method of testing applications |
CN102314386A (en) * | 2011-09-05 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Method and equipment for testing mobile terminal |
CN103744787A (en) * | 2014-01-21 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Cellphone automated testing method |
CN103970649A (en) * | 2013-01-31 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Test method and device for Android terminal application programs |
-
2015
- 2015-04-27 CN CN201510204433.3A patent/CN104866420B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1067806A1 (en) * | 1999-07-09 | 2001-01-10 | CANAL+ Société Anonyme | Apparatus for and method of testing applications |
CN102314386A (en) * | 2011-09-05 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Method and equipment for testing mobile terminal |
CN103970649A (en) * | 2013-01-31 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Test method and device for Android terminal application programs |
CN103744787A (en) * | 2014-01-21 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Cellphone automated testing method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105183648A (en) * | 2015-09-08 | 2015-12-23 | 北京思特奇信息技术股份有限公司 | Visualized automatic dial testing method and system |
CN105183654A (en) * | 2015-09-18 | 2015-12-23 | 厦门美图移动科技有限公司 | Android automatic testing screen recording mechanism and system disengaged from PC |
CN106789209A (en) * | 2016-12-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Abnormality eliminating method and device |
CN106598865A (en) * | 2016-12-22 | 2017-04-26 | 动视云(北京)科技有限公司 | Software testing method and device |
CN106598865B (en) * | 2016-12-22 | 2021-05-07 | 动视云(北京)科技有限公司 | Software testing method and device |
CN107704379A (en) * | 2017-06-23 | 2018-02-16 | 上海斐讯数据通信技术有限公司 | A kind of video recording system and application method suitable for automatic test course |
CN107608892A (en) * | 2017-09-22 | 2018-01-19 | 苏州惠邦科信息技术有限公司 | The method of testing of cell phone software |
CN109376129A (en) * | 2018-10-08 | 2019-02-22 | 郑州云海信息技术有限公司 | A method of storage log is collected when locking by SYS_TF automatically |
CN111400163A (en) * | 2019-01-03 | 2020-07-10 | 富泰华工业(深圳)有限公司 | Software testing monitoring device and method |
CN111652180A (en) * | 2020-06-16 | 2020-09-11 | 北京梧桐车联科技有限责任公司 | Defect positioning method, device, equipment and computer readable storage medium |
CN111652180B (en) * | 2020-06-16 | 2023-11-17 | 北京梧桐车联科技有限责任公司 | Defect positioning method, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104866420B (en) | 2018-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866420A (en) | Precisely recorded mobile phone software testing method | |
US11561887B2 (en) | Test script debugging using an automated testing framework and UI rendering tree | |
CN104794050B (en) | The test method of application program, apparatus and system | |
WO2021003818A1 (en) | Interface test case generating method and apparatus, computer device, and storage medium | |
CN102272757B (en) | Method for server-side logging of client browser state through markup language | |
CN106126424B (en) | A kind of visual automated testing method of script, device and mobile terminal | |
CN102981954B (en) | The compatibility test method and electronic installation of a kind of input method | |
CN106681624A (en) | Comment display method and device based on touch display screen | |
CN106844181B (en) | Method, system and mobile terminal for recording user behavior | |
TW201342047A (en) | Recording and playback of trace and video log data for programs | |
WO2014044164A1 (en) | Content recording method and device | |
CN104699591A (en) | Reappearing method and device of test scenes | |
CN104866416B (en) | The method and apparatus for realizing application program capacity analysis | |
CN104951515B (en) | A method of it extracts and analyzes Android phone whereabouts trace information | |
CN103744787A (en) | Cellphone automated testing method | |
CN113076257B (en) | Test script recording method, device, medium and computer equipment | |
CN106055473A (en) | Test method and apparatus | |
CN110837474A (en) | Script recording method, device, terminal and storage medium | |
Akour et al. | Mobile software testing: Thoughts, strategies, challenges, and experimental study | |
CN112416775A (en) | Software automation testing method and device based on artificial intelligence and electronic equipment | |
CN110502414A (en) | Terminal device performance test methods, device, terminal device and storage medium | |
CN103176901A (en) | Method and system for embedded software test monitoring | |
KR102635847B1 (en) | Apparatus and method for application test automation | |
CN108874392A (en) | User's guideline interface generation method and device | |
CN101751283B (en) | Virtual machine monitor, dummy machine system and client operation system state acquiring method |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181102 |
|
CF01 | Termination of patent right due to non-payment of annual fee |