CN107423207A - System compatibility automated testing method and device - Google Patents

System compatibility automated testing method and device Download PDF

Info

Publication number
CN107423207A
CN107423207A CN201610348263.0A CN201610348263A CN107423207A CN 107423207 A CN107423207 A CN 107423207A CN 201610348263 A CN201610348263 A CN 201610348263A CN 107423207 A CN107423207 A CN 107423207A
Authority
CN
China
Prior art keywords
log files
test
test report
preserved
log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610348263.0A
Other languages
Chinese (zh)
Inventor
徐敏
王鹏
陈玥
李彤
于晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin 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 Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN201610348263.0A priority Critical patent/CN107423207A/en
Publication of CN107423207A publication Critical patent/CN107423207A/en
Pending legal-status Critical Current

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of system compatibility automated testing method and device.Methods described includes:The test starting order inputted according to user, the configuration interface of mobile terminal prerequisite is shown, in order to which user carries out the configuration of prerequisite to mobile terminal to be tested;Media file for test is sent to mobile terminal to be tested;Execution system compatibility test bag, while open at least one log files tracking window;After this pending complete test, each log files of at least one log files tracking window record are preserved to the first log files of local, the first test report file that at least one test report of this Self -adaptive is preserved to local is pressed from both sides;Each log files of at least one log files tracking window record and at least one test report of this Self -adaptive are uploaded to server.The present invention can be automatically performed the operation uploaded from test configurations, test execution and log files, to improve testing efficiency and intelligence degree.

Description

System compatibility automated testing method and device
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of system compatibility automated testing method And device.
Background technology
CTS (Compatibility Test Suite, compatibility test external member), it is the Android that Google is released Platform compatibility test.This is the test frame program of a set of test case for containing individual automatic runnings up to ten thousand. It is mainly used to test the Android platform that OEM vendor realizes and whether meets Android api interface and determine Justice, to ensure that the application program of standard can be run on android system platform.Existing CTS tests Step is as follows:
1) testing mobile phone is brushed into version to be tested;
2) prerequisite of manual configuration mobile phone terminal, for example, connection WIFI, set->Safety->Screen is protected safely Shield->Automatic locking be set to "None", set->Developer's option->Stay awake for, operating language, fortune Screen is allowed to be in home main interfaces, not touch screen and button etc. in running during row;
3) adb orders are manually entered at PC ends by media file copies to mobile phone terminal;
4) it is manually entered at PC ends as ordered:Run cts-plan CTS, to perform CTS tests.
During the present invention is realized, inventor has found following technical problem in the prior art at least be present:
Existing CTS test, test need manually complete associative operation:The preset bar at configurating mobile end Part;In the media file needed for the corresponding apk installation kits of PC ends installation CTS, copy test to mobile phone terminal And input test performs order to start test;Also need to manually be uploaded to log files after test terminates Server.It can be seen that there is the defects of low testing efficiency, test intelligence degree difference in existing CTS tests.
The content of the invention
System compatibility automated testing method and device provided by the invention, can realize system compatibility Automatic test, that is, the operation uploaded from test configurations, test execution and log files is automatically performed, so as to Greatly improve testing efficiency and intelligence degree.
In a first aspect, the present invention provides a kind of system compatibility automated testing method, applied to PC ends, bag Include:
The test starting order inputted according to user, the configuration interface of mobile terminal prerequisite is shown, so as to The configuration of prerequisite is carried out to mobile terminal to be tested in the user;
Media file for test is sent to the mobile terminal to be tested;
Execution system compatibility test bag, while open at least one log files tracking window;
After this pending complete test, by each log texts of at least one log files tracking window record Part is preserved to the first log files of local, and at least one test report of this Self -adaptive is preserved to this The first test report file folder on ground;
Upload each log files and this Self -adaptive of at least one log files tracking window record At least one test report is to server.
Alternatively, each log files by least one log files tracking window record preserve to The first local log files include:
The log files that the last time preserved in the first log files tests are transferred to the 2nd local log In file;
Each log files of at least one log files tracking window record are preserved to the first log In file.
Alternatively, it is described to preserve at least one test report of this Self -adaptive to the first test of local Report file folder includes:
The test report that last time for preserving tests during first test report file is pressed from both sides is transferred to local the In two test report files folder;
At least one test report of this Self -adaptive is preserved to first test report file folder In.
Alternatively, each log files and sheet for uploading at least one log files tracking window record At least one test report to the server of secondary Self -adaptive includes:
Each the log files and this Self -adaptive recorded at least one log files tracking window is extremely A few test report, is named according to predetermined naming rule;
The specified location that each log files after name and at least one test report are uploaded onto the server.
Second aspect, the present invention provide a kind of system compatibility automatic test device, are arranged at PC ends, its It is characterised by, described device includes display module, sending module, execution module, preserving module and uploads mould Block, wherein,
The display module, for the test starting order inputted according to user, show the preset bar of mobile terminal The configuration interface of part, in order to which the user carries out the configuration of prerequisite to mobile terminal to be tested;
The sending module, for the media file for test to be sent to the mobile terminal to be tested;
The execution module, for execution system compatibility test bag, while open at least one log files with Track window;
The preserving module, after this pending complete test, by least one log files track window Each log files of mouth record are preserved to the first log files of local, by least the one of this Self -adaptive The first test report file that individual test report is preserved to local is pressed from both sides;
The uploading module, for uploading each log texts of at least one log files tracking window record At least one test report of part and this Self -adaptive is to server.
Alternatively, the preserving module includes the first unloading unit and the first storage unit, wherein, described One unloading unit, the log files for the last time preserved in the first log files to be tested are transferred to this In the 2nd log files on ground;
First storage unit, for each log for recording at least one log files tracking window File is preserved into the first log files.
Alternatively, the preserving module also includes the second unloading unit and the second storage unit, wherein, it is described Second unloading unit, the test report that the last time for being preserved during first test report file is pressed from both sides tests It is transferred in local the second test report file folder;
Second storage unit, at least one test report of this Self -adaptive is preserved to In the first test report file folder.
Alternatively, the uploading module includes name unit and uploading unit, wherein, the name unit, For each the log files and this Self -adaptive at least one log files tracking window record extremely A few test report, is named according to predetermined naming rule;
The uploading unit, for each log files after name and at least one test report to be uploaded into clothes The specified location of business device.
System compatibility automated testing method and device provided in an embodiment of the present invention, inputted according to user Test starting order, the configuration interface of mobile terminal prerequisite is shown, in order to which the user is to be tested Mobile terminal carry out prerequisite configuration;Media file for test is sent to described to be tested Mobile terminal;Execution system compatibility test bag, while open at least one log files tracking window;Wait to hold Gone after this test, by each log files of at least one log files tracking window record preserve to The first local log files, at least one test report of this Self -adaptive is preserved to the first of local Test report file is pressed from both sides;Upload each log files and sheet of at least one log files tracking window record At least one test report of secondary Self -adaptive is to server.Compared with prior art, it is by that can realize The automatic test of system compatibility, that is, it is automatically performed from test configurations, test execution and log files and uploads Operation, so as to greatly improve testing efficiency and intelligence degree.
Brief description of the drawings
Fig. 1 is the flow chart of one embodiment of the invention system compatibility automated testing method;
Fig. 2 is the structural representation of one embodiment of the invention system compatibility automatic test device.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that Described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the institute that those of ordinary skill in the art are obtained under the premise of creative work is not made There is other embodiment, belong to the scope of protection of the invention.
The present invention provides a kind of system compatibility automated testing method, applied to PC ends, as shown in figure 1, institute The method of stating includes:
S11, the test starting order inputted according to user, the configuration interface of mobile terminal prerequisite is shown, In order to which the user carries out the configuration of prerequisite to mobile terminal to be tested.
S12, the media file for test sent to the mobile terminal to be tested.
S13, execution system compatibility test bag, while open at least one log files tracking window.
After S14, this pending complete test, by each of at least one log files tracking window record Log files are preserved to the first log files of local, and at least one test report of this Self -adaptive is protected The first test report file deposited to local is pressed from both sides.
S15, each log files for uploading at least one log files tracking window record and this test At least one test report of generation is to server.
System compatibility automated testing method provided in an embodiment of the present invention, compared with prior art, it is logical The automatic test of system compatibility can be realized by crossing, that is, be automatically performed from test configurations, test execution and The operation that log files upload, so as to greatly improve testing efficiency and intelligence degree.
Further, each log files by least one log files tracking window record preserve The first log files to local include:
The log files that the last time preserved in the first log files tests are transferred to the 2nd local log In file;
Each log files of at least one log files tracking window record are preserved to the first log In file.
Specifically, the log files include events log files, main log files, radio log files With system log files.
As can be seen here, the present invention is after each test terminates, and will can have been preserved automatically in the first log files Last time test process recorded in log files be transferred in the alternative document folder specified, to cause described the What is preserved all the time in one log files is all the log files recorded in single test process.So, it is easy to Tester searches the log files currently tested, and it also avoid because the first log file memory spaces are asked Inscribe and cause that the log files currently tested can not be stored in time.
It is described to preserve at least one test report of this Self -adaptive to the first test report file of local Folder includes:
The test report that last time for preserving tests during first test report file is pressed from both sides is transferred to local the In two test report files folder;
At least one test report of this Self -adaptive is preserved to first test report file folder In.
As can be seen here, the present invention is after each test terminates, during can the first test report file be pressed from both sides automatically The test report of the last time Self -adaptive preserved is transferred in the alternative document folder specified, to cause described the What is preserved all the time in one test report file folder is all the test report of single Self -adaptive.So, it is easy to survey The test report that examination people finder currently tests, it also avoid because the storage of the first test report file folder is empty Between cause the test report that can not store current Self -adaptive in time.
Alternatively, each log files and sheet for uploading at least one log files tracking window record At least one test report to the server of secondary Self -adaptive includes:
Each the log files and this Self -adaptive recorded at least one log files tracking window is extremely A few test report, is named according to predetermined naming rule;
The specified location that each log files after name and at least one test report are uploaded onto the server.
As can be seen here, the present invention be after test execution completion, automatically by the test report of Self -adaptive and The log files of record are backed up in the server in time, in order to which tester and research staff check survey Examination document simultaneously analyzes BUG.
The embodiment of the present invention also provides a kind of system compatibility automatic test device, is arranged at PC ends, such as schemes Shown in 2, described device includes:Display module 21, sending module 22, execution module 23, preserving module 24 With uploading module 25, wherein,
The display module 21, it is preset for the test starting order inputted according to user, display mobile terminal The configuration interface of condition, in order to which the user carries out the configuration of prerequisite to mobile terminal to be tested;
The sending module 22, for the media file for test to be sent to the mobile end to be tested End;
The execution module 23, for execution system compatibility test bag, while open at least one log texts Part tracking window;
The preserving module 24, for it is pending it is complete this test after, by least one log files with Track window record each log files preserve to local the first log files, by this Self -adaptive extremely The first test report file that a few test report is preserved to local is pressed from both sides;
The uploading module 25, for uploading each log of at least one log files tracking window record At least one test report of file and this Self -adaptive is to server.
System compatibility automatic test device provided in an embodiment of the present invention, compared with prior art, it is logical The automatic test of system compatibility can be realized by crossing, that is, be automatically performed from test configurations, test execution and The operation that log files upload, so as to greatly improve testing efficiency and intelligence degree.
Further, the preserving module 24 includes the first unloading unit and the first storage unit, wherein, institute The first unloading unit is stated, for the log file unloadings for the last time test that will be preserved in the first log files Into the 2nd log files of local;First storage unit, for by least one log files Each log files of tracking window record are preserved into the first log files.
Specifically, the log files include events log files, main log files, radio log files With system log files.
As can be seen here, the present invention is after each test terminates, and will can have been preserved automatically in the first log files Last time test process recorded in log files be transferred in the alternative document folder specified, to cause described the What is preserved all the time in one log files is all the log files recorded in single test process.So, it is easy to Tester searches the log files currently tested, and it also avoid because the first log file memory spaces are asked Inscribe and cause that the log files currently tested can not be stored in time.
The preserving module 24 also includes the second unloading unit and the second storage unit, wherein, described second turn Memory cell, the test report that the last time for being preserved during first test report file is pressed from both sides tests are transferred to In local the second test report file folder;Second storage unit, for this described Self -adaptive At least one test report preserve to first test report file press from both sides in.
As can be seen here, the present invention is after each test terminates, during can the first test report file be pressed from both sides automatically The test report of the last time Self -adaptive preserved is transferred in the alternative document folder specified, to cause described the What is preserved all the time in one test report file folder is all the test report of single Self -adaptive.So, it is easy to survey The test report that examination people finder currently tests, it also avoid because the storage of the first test report file folder is empty Between cause the test report that can not store current Self -adaptive in time.
Alternatively, the uploading module 25 includes name unit and uploading unit, wherein, the name unit, For each the log files and this Self -adaptive at least one log files tracking window record extremely A few test report, is named according to predetermined naming rule;The uploading unit, for that will name The specified location that each log files and at least one test report afterwards uploads onto the server.
As can be seen here, the present invention be after test execution completion, automatically by the test report of Self -adaptive and The log files of record are backed up in the server in time, in order to which tester and research staff check survey Examination document simultaneously analyzes BUG.
One of ordinary skill in the art will appreciate that all or part of flow in above-described embodiment method is realized, It is that by computer program the hardware of correlation can be instructed to complete, described program can be stored in a calculating In machine read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method. Wherein, described storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to This, any one skilled in the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention It should be defined by scope of the claims.

Claims (8)

  1. A kind of 1. system compatibility automated testing method, applied to PC ends, it is characterised in that including:
    The test starting order inputted according to user, the configuration interface of mobile terminal prerequisite is shown, so as to The configuration of prerequisite is carried out to mobile terminal to be tested in the user;
    Media file for test is sent to the mobile terminal to be tested;
    Execution system compatibility test bag, while open at least one log files tracking window;
    After this pending complete test, by each log texts of at least one log files tracking window record Part is preserved to the first log files of local, and at least one test report of this Self -adaptive is preserved to this The first test report file folder on ground;
    Upload each log files and this Self -adaptive of at least one log files tracking window record At least one test report is to server.
  2. 2. according to the method for claim 1, it is characterised in that described by least one log texts The first log files that each log files of part tracking window record are preserved to local include:
    The log files that the last time preserved in the first log files tests are transferred to the 2nd local log In file;
    Each log files of at least one log files tracking window record are preserved to the first log In file.
  3. 3. according to the method for claim 2, it is characterised in that it is described by this Self -adaptive at least The first test report file folder that one test report is preserved to local includes:
    The test report that last time for preserving tests during first test report file is pressed from both sides is transferred to local the In two test report files folder;
    At least one test report of this Self -adaptive is preserved to first test report file folder In.
  4. 4. according to the method for claim 1, it is characterised in that described to upload at least one log Each log files of file tracking window record and at least one test report of this Self -adaptive extremely service Device includes:
    Each the log files and this Self -adaptive recorded at least one log files tracking window is extremely A few test report, is named according to predetermined naming rule;
    The specified location that each log files after name and at least one test report are uploaded onto the server.
  5. 5. a kind of system compatibility automatic test device, is arranged at PC ends, it is characterised in that the dress Put including display module, sending module, execution module, preserving module and uploading module, wherein,
    The display module, for the test starting order inputted according to user, show the preset bar of mobile terminal The configuration interface of part, in order to which the user carries out the configuration of prerequisite to mobile terminal to be tested;
    The sending module, for the media file for test to be sent to the mobile terminal to be tested;
    The execution module, for execution system compatibility test bag, while open at least one log files with Track window;
    The preserving module, after this pending complete test, by least one log files track window Each log files of mouth record are preserved to the first log files of local, by least the one of this Self -adaptive The first test report file that individual test report is preserved to local is pressed from both sides;
    The uploading module, for uploading each log texts of at least one log files tracking window record At least one test report of part and this Self -adaptive is to server.
  6. 6. device according to claim 5, it is characterised in that the preserving module includes the first unloading Unit and the first storage unit, wherein, the first unloading unit, for by the first log files The log files of the last time test of preservation are transferred in the 2nd local log files;
    First storage unit, for each log for recording at least one log files tracking window File is preserved into the first log files.
  7. 7. device according to claim 6, it is characterised in that the preserving module also includes second turn Memory cell and the second storage unit, wherein, the second unloading unit, for by first test report The test report of the last time test preserved in file is transferred in local the second test report file folder;
    Second storage unit, at least one test report of this Self -adaptive is preserved to In the first test report file folder.
  8. 8. device according to claim 5, it is characterised in that the uploading module includes name unit And uploading unit, wherein, the name unit, for being recorded at least one log files tracking window Each log files and this Self -adaptive at least one test report, carried out according to predetermined naming rule Name;
    The uploading unit, for each log files after name and at least one test report to be uploaded into clothes The specified location of business device.
CN201610348263.0A 2016-05-24 2016-05-24 System compatibility automated testing method and device Pending CN107423207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610348263.0A CN107423207A (en) 2016-05-24 2016-05-24 System compatibility automated testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610348263.0A CN107423207A (en) 2016-05-24 2016-05-24 System compatibility automated testing method and device

Publications (1)

Publication Number Publication Date
CN107423207A true CN107423207A (en) 2017-12-01

Family

ID=60422529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610348263.0A Pending CN107423207A (en) 2016-05-24 2016-05-24 System compatibility automated testing method and device

Country Status (1)

Country Link
CN (1) CN107423207A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684204A (en) * 2018-12-03 2019-04-26 杭州仟金顶信息科技有限公司 A kind of http interface automatic test approach
CN113535578A (en) * 2021-07-28 2021-10-22 展讯半导体(成都)有限公司 CTS (clear to send) testing method, device and testing equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331373A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Monkey test system and method
US20150169158A1 (en) * 2013-12-17 2015-06-18 International Business Machines Corporation Recording gui data
CN105224453A (en) * 2015-09-18 2016-01-06 惠州Tcl移动通信有限公司 The automatic test approach of system compatibility and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169158A1 (en) * 2013-12-17 2015-06-18 International Business Machines Corporation Recording gui data
CN104331373A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Monkey test system and method
CN105224453A (en) * 2015-09-18 2016-01-06 惠州Tcl移动通信有限公司 The automatic test approach of system compatibility and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684204A (en) * 2018-12-03 2019-04-26 杭州仟金顶信息科技有限公司 A kind of http interface automatic test approach
CN113535578A (en) * 2021-07-28 2021-10-22 展讯半导体(成都)有限公司 CTS (clear to send) testing method, device and testing equipment

Similar Documents

Publication Publication Date Title
US10108501B2 (en) Terminal backup and recovery method
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
US8560501B2 (en) Method for a cloning process to enable cloning a larger system drive to a smaller system
CN107577549A (en) It is a kind of to store the method for testing for deleting function again
CN111930703A (en) Automatic log file capturing method and device and computer equipment
CN105373339B (en) A kind of copy method and system of hard disc data
CN107423207A (en) System compatibility automated testing method and device
CN106294387A (en) Data migration method and device
CN101963931A (en) Hard disk testing method under extensible firmware interface
CN108228611B (en) Document information copying method and device
US9009430B2 (en) Restoration of data from a backup storage volume
CN106611138B (en) GHOST file security check method and device
CN107608633B (en) Storage management method and related device for storage equipment
CN111367710A (en) eMMC problem reduction method and device
CN206431605U (en) A kind of device of online read-write network interface card Nonvolatile memory
US10108537B2 (en) Mechanisms for reproducing storage system metadata inconsistencies in a test environment
CN101706745A (en) Method for testing storage equipment of mass storage system
CN114924914A (en) Disk partition table information backup and recovery method and system
US20170337213A1 (en) Metadata regeneration
US10031811B1 (en) Systems and methods for enhancing electronic discovery searches
KR102103590B1 (en) Method for automatic test of program compatibility and apparatus using the same
US8265975B2 (en) Adaptive project based practice selection schemes in a computing environment
CN105893394B (en) Large file simulation method and device
CN106951348A (en) A kind of mobile terminal control Flash erasable method of testings and system repeatedly

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171201