CN102355515A - Automatic test method of cell phone file operation - Google Patents

Automatic test method of cell phone file operation Download PDF

Info

Publication number
CN102355515A
CN102355515A CN201110309772XA CN201110309772A CN102355515A CN 102355515 A CN102355515 A CN 102355515A CN 201110309772X A CN201110309772X A CN 201110309772XA CN 201110309772 A CN201110309772 A CN 201110309772A CN 102355515 A CN102355515 A CN 102355515A
Authority
CN
China
Prior art keywords
file
mobile phone
execution
cell phone
test
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
CN201110309772XA
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201110309772XA priority Critical patent/CN102355515A/en
Publication of CN102355515A publication Critical patent/CN102355515A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an automatic test method of cell phone file operation, which comprises the steps that: a cell phone file folder creation test method, a cell phone file folder deletion test method and a cell phone file folder shifting test method. The cell phone file folder creation test method comprises the step of creating in a cell phone T card or in a cell phone memory card; the cell phone file folder deletion test method comprise the step of deleting in the cell phone T card or in the cell phone memory card; and the cell phone file folder shifting test method comprise the step of repeatedly shifting a file folder between the cell phone T card and the cell phone memory card. An automatic test can be taken after the tool is run on a cell phone terminal based on an android system without connecting other equipment and a tester only needs to run the program according to the instructions, so that the operation is convenient, and a cell phone can be started for the test anywhere at anytime; and a log is automatically saved in the specified file folder in the memory of the cell phone, the occurrence time and causes for errors are recorded in an operation process, so that points at which the errors happen are positioned conveniently and quickly.

Description

A kind of automated testing method of mobile phone file operation
Technical field
The present invention relates to a kind of handset testing method, particularly relate to a kind of automated testing method of mobile phone file operation based on android.
Background technology
File operation function in the mobile phone of the prior art; The for example establishment of file; Name; Deletion, duplicate when testing,, in manual testing's process, fatigue effect occurs easily because test intensity is big with Path Recognition; And test has certain limitation; Take time and effort, and might duplicate test or omit test, complicated operation.In test process, can not effectively judge and locate wrong origination point, can not conveniently find out error reason.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, a kind of automated testing method of mobile phone file operation is provided, move easyly, and move mobile phone whenever and wherever possible and test, the test intensity that can bear is big, and testing efficiency is high, easy to implement.
In order to achieve the above object; The technical scheme that the present invention adopts is; A kind of automated testing method of mobile phone file operation, described method of testing comprise creates mobile phone file method of testing, deletion mobile phone file method of testing and cell phone file method of testing; Described establishment mobile phone file is included in to be created in the mobile phone T card or in mobile phone memory card, creates; Described deletion mobile phone file is included in to be deleted in the mobile phone T card or in mobile phone memory card, deletes; Described cell phone file is move folder between mobile phone T card and mobile phone memory card repeatedly; The automatic test step of described mobile phone file operation is following:
Step 1, entering mobile phone file operation test program;
Step 2, judgement mobile phone get into and create the test of mobile phone file, deletion mobile phone file is tested or the test of cell phone file;
Step 3, entering corresponding testing program;
Step 4, the test program result is generated the log daily record, and be saved in specified folder;
Step 5, withdraw from mobile phone file operation test program.
The step of the establishment mobile phone file test of above-mentioned steps 2 described mobile phone file operations is following:
Step S101, begin get into to create mobile phone file test program;
Step S102, judging whether the create name file exists, is execution in step S103 then, otherwise execution in step S103;
Step S103, press create name and create file;
Whether file is created in step S104, judgement successful;
Step S105, be execution in step S106 then, otherwise preserve error message and execution in step S103;
Step S106, obtain spcial character at random and in the file of just creating, create file;
Step S107, judging whether to create successfully, is execution in step S108 then, otherwise preserves execution in step S106 after the error message;
Step S108, judging whether to create 100 layers of name file at random, is execution in step S109 then, otherwise execution in step S106;
Step S109, judging whether to create 10 create name files, is execution in step S110 then, otherwise execution in step S103;
The file test program is created in step S110, end.
Create the mixing that folder name is called character, numeral, English, Chinese and Mars word in the above-mentioned steps, some high frequency spcial characters are write into program, take random algorithm to obtain character as Folder Name.Described in the above-mentioned steps 100 counted layer by layer and 10 numbers are provided with number at random for test, can be according to the test adjustment.
The step of the deletion mobile phone file test of above-mentioned steps 2 described mobile phone file operations is following:
Step S201, entering deletion mobile phone file test program;
Step S202, judge whether 10 files of appointment exist;
Step S203, be the path that then obtains specified folder, otherwise finish deletion mobile phone file test program;
Step S204, judge whether there is sub-folder in the file;
Step S205, be then to obtain sub-folder path and execution in step S204, otherwise execution in step S206;
Step S206, the most last file that does not have sub-folder of deletion, and judge whether the deletion failure;
Step S207, be then to preserve failure information and execution in step S206, otherwise execution in step S208;
Step S208, whether what judge deletion is the file of appointment, is execution in step S209 then, otherwise execution in step S206;
Step S209, judge the whether all deletions of 10 files;
Step S210, be then to finish to delete mobile phone file test program, otherwise execution in step S202.
The described failure information of above-mentioned steps S207 is for when deleting file one by one, and delete procedure is made mistakes and skipped this file continuation deletion, and record is made mistakes reason to specified folder, otherwise the record successful information.Employed file is for creating the file of being created in the file test or creating in addition in the above-mentioned steps.
The step of the cell phone file test of above-mentioned steps 2 described mobile phone file operations is following:
Step S301, entering cell phone file test program;
Step S302, judging whether the moving source file exists, is execution in step S303 then, otherwise execution in step S307;
Step S303, each moves once in T card and mobile phone EMS memory with source file, and judges whether to move successfully;
Step S304, be execution in step S305 then, otherwise preserve error message and execution in step S303;
Step S305, judge whether the number of times of moving source file reaches system's predetermined movement number of times;
Step S306, be execution in step S307 then, otherwise execution in step S302;
Step S307, preservation LOG journal file are to specified folder, and end cell phone file test program.
Described source file is test program files stored in advance in the T card, and is single file resource.Described LOG journal file is each result who moves, and is included as which time moved, time started, concluding time, whether success.
Compared with prior art; The invention has the beneficial effects as follows: the first, can carry out automatic test at this instrument of mobile phone end operation based on the android system; Need not to connect other equipment; The tester only needs according to the explanation working procedure; Move easy; Can move mobile phone whenever and wherever possible, tests; The second, in the mobile phone EMS memory specified folder, automatically preserve the log daily record, misregistration time of origin and reason in running convenient and swiftly navigate to wrong origination point; Three, the visualization interface that provides in the test program, simple and convenient directly perceived, very strong project generic property is arranged, can avoid overlapping development, improve testing efficiency, reduce the testing time.
Description of drawings
Fig. 1 is a method flow diagram of the present invention;
Fig. 2 is establishment mobile phone file test of the present invention;
Fig. 3 is deletion mobile phone file test of the present invention;
Fig. 4 is cell phone file test of the present invention.
Embodiment
Purport of the present invention is to overcome the deficiency of prior art, and a kind of automated testing method of mobile phone file operation is provided, described mobile phone file operation comprise file establishment, name, delete, duplicate and Path Recognition; The establishment of file, name, delete, duplicate and Path Recognition; Various special strings are in order to do behind the Folder Name influence to its operation; System is to repeatedly moving the support status of large volume file; The judgement of system space state; The record of test result and preservation.This method is that the mobile phone products that uses the android system is accomplished file establishment, deletion and file autonomous testing scheme under automatic test such as mobile in mobile phone and storage card.Under autonomous case prerequisite, test macro duplicates for the establishment and the name of file and file, deletion.The identification of profound file with search, and the deletion of various special title files, system and hardware are to the support status of mobile large volume file repeatedly.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, so that technical characterictic of the present invention and advantage are carried out more deep annotation.
Method flow diagram of the present invention as shown in Figure 1; In order to achieve the above object; The technical scheme that the present invention adopts is; A kind of automated testing method of mobile phone file operation, described method of testing comprise creates mobile phone file method of testing, deletion mobile phone file method of testing and cell phone file method of testing; Described establishment mobile phone file is included in to be created in the mobile phone T card or in mobile phone memory card, creates; Described deletion mobile phone file is included in to be deleted in the mobile phone T card or in mobile phone memory card, deletes; Described cell phone file is move folder between mobile phone T card and mobile phone memory card repeatedly; The automatic test step of described mobile phone file operation is following:
Step 1, entering mobile phone file operation test program;
Step 2, judgement mobile phone get into and create the test of mobile phone file, deletion mobile phone file is tested or the test of cell phone file;
Step 3, entering corresponding testing program;
Step 4, the test program result is generated the log daily record, and be saved in specified folder;
Step 5, withdraw from mobile phone file operation test program.
Establishment mobile phone file of the present invention is tested as shown in Figure 2, and the step of the establishment mobile phone file of the described mobile phone file operation of step 2 test is following:
Step S101, begin get into to create mobile phone file test program;
Step S102, judging whether the create name file exists, is execution in step S103 then, otherwise execution in step S103;
Step S103, press create name and create file;
Whether file is created in step S104, judgement successful;
Step S105, be execution in step S106 then, otherwise preserve error message and execution in step S103;
Step S106, obtain spcial character at random and in the file of just creating, create file;
Step S107, judging whether to create successfully, is execution in step S108 then, otherwise preserves execution in step S106 after the error message;
Step S108, judging whether to create 100 layers of name file at random, is execution in step S109 then, otherwise execution in step S106;
Step S109, judging whether to create 10 create name files, is execution in step S110 then, otherwise execution in step S103;
The file test program is created in step S110, end.
Create the mixing that folder name is called character, numeral, English, Chinese and Mars word in the above-mentioned steps, some high frequency spcial characters are write into program, take random algorithm to obtain character as Folder Name.Described in the above-mentioned steps 100 counted layer by layer and 10 numbers are provided with number at random for test, can be according to the test adjustment.
Deletion mobile phone file of the present invention is tested as shown in Figure 3, and the step of the deletion mobile phone file of the described mobile phone file operation of step 2 test is following:
Step S201, entering deletion mobile phone file test program;
Step S202, judge whether 10 files of appointment exist;
Step S203, be the path that then obtains specified folder, otherwise finish deletion mobile phone file test program;
Step S204, judge whether there is sub-folder in the file;
Step S205, be then to obtain sub-folder path and execution in step S204, otherwise execution in step S206;
Step S206, the most last file that does not have sub-folder of deletion, and judge whether the deletion failure;
Step S207, be then to preserve failure information and execution in step S206, otherwise execution in step S208;
Step S208, whether what judge deletion is the file of appointment, is execution in step S209 then, otherwise execution in step S206;
Step S209, judge the whether all deletions of 10 files;
Step S210, be then to finish to delete mobile phone file test program, otherwise execution in step S202.
The described failure information of above-mentioned steps S207 is for when deleting file one by one, and delete procedure is made mistakes and skipped this file continuation deletion, and record is made mistakes reason to specified folder, otherwise the record successful information.Employed file is for creating the file of being created in the file test or creating in addition in the above-mentioned steps.
Cell phone file of the present invention is tested as shown in Figure 4, and the step of the cell phone file of the described mobile phone file operation of step 2 test is following:
Step S301, entering cell phone file test program;
Step S302, judging whether the moving source file exists, is execution in step S303 then, otherwise execution in step S307;
Step S303, each moves once in T card and mobile phone EMS memory with source file, and judges whether to move successfully;
Step S304, be execution in step S305 then, otherwise preserve error message and execution in step S303;
Step S305, judge whether the number of times of moving source file reaches system's predetermined movement number of times;
Step S306, be execution in step S307 then, otherwise execution in step S302;
Step S307, preservation LOG journal file are to specified folder, and end cell phone file test program.
Described source file is test program files stored in advance in the T card, and is single file resource.Described LOG journal file is each result who moves, and is included as which time moved, time started, concluding time, whether success.
Carrying out automatic test based on this instrument of the mobile phone end of android system operation, need not to connect other equipment, the tester only needs according to the explanation working procedure, moves easyly, whenever and wherever possible, can move mobile phone and test; In the mobile phone EMS memory specified folder, automatically preserve the log daily record, misregistration time of origin and reason in running convenient and swiftly navigate to wrong origination point; The visualization interface that provides in the test program, simple and convenient directly perceived, very strong project generic property is arranged, can avoid overlapping development, improve testing efficiency, reduce the testing time.
Although the present invention has made the clear description of accomplishing through instantiation to how realizing mobile phone file operation automated testing method; But the present invention is not limited only to said embodiment, and to reach identical purpose be contingent and all be included in the present invention through simple reprogramming.

Claims (10)

1. the automated testing method of a mobile phone file operation, described method of testing comprise creates mobile phone file method of testing, deletion mobile phone file method of testing and cell phone file method of testing, it is characterized in that:
Described establishment mobile phone file is included in to be created in the mobile phone T card or in mobile phone memory card, creates; Described deletion mobile phone file is included in the mobile phone T card deletion or in mobile phone memory card, deletes, described cell phone file for repeatedly between mobile phone T card and mobile phone memory card move press from both sides;
The automatic test step of described mobile phone file operation is following:
Step 1, entering mobile phone file operation test program;
Step 2, judgement mobile phone get into and create the test of mobile phone file, deletion mobile phone file is tested or the test of cell phone file;
Step 3, entering corresponding testing program;
Step 4, the test program result is generated the log daily record, and be saved in specified folder;
Step 5, withdraw from mobile phone file operation test program.
2. the automated testing method of mobile phone file operation according to claim 1 is characterized in that, the step of the establishment mobile phone file test of above-mentioned steps 2 described mobile phone file operations is following:
Step S101, begin get into to create mobile phone file test program;
Step S102, judging whether the create name file exists, is execution in step S103 then, otherwise execution in step S103;
Step S103, press create name and create file;
Whether file is created in step S104, judgement successful;
Step S105, be execution in step S106 then, otherwise preserve error message and execution in step S103;
Step S106, obtain spcial character at random and in the file of just creating, create file;
Step S107, judging whether to create successfully, is execution in step S108 then, otherwise preserves execution in step S106 after the error message;
Step S108, judging whether to create 100 layers of name file at random, is execution in step S109 then, otherwise execution in step S106;
Step S109, judging whether to create 10 create name files, is execution in step S110 then, otherwise execution in step S103;
The file test program is created in step S110, end.
3. the automated testing method of mobile phone file operation according to claim 2; It is characterized in that: create the mixing that folder name is called character, numeral, English, Chinese and Mars word in the above-mentioned steps; Some high frequency spcial characters are write into program, take random algorithm to obtain character as Folder Name.
4. the automated testing method of mobile phone file operation according to claim 3 is characterized in that: 100 described in the above-mentioned steps counted layer by layer and 10 numbers are provided with number at random for test, can be according to the test adjustment.
5. the automated testing method of mobile phone file operation according to claim 1 is characterized in that, the step of the deletion mobile phone file test of the described mobile phone file operation of step 2 is following:
Step S201, entering deletion mobile phone file test program;
Step S202, judge whether 10 files of appointment exist;
Step S203, be the path that then obtains specified folder, otherwise finish deletion mobile phone file test program;
Step S204, judge whether there is sub-folder in the file;
Step S205, be then to obtain sub-folder path and execution in step S204, otherwise execution in step S206;
Step S206, the most last file that does not have sub-folder of deletion, and judge whether the deletion failure;
Step S207, be then to preserve failure information and execution in step S206, otherwise execution in step S208;
Step S208, whether what judge deletion is the file of appointment, is execution in step S209 then, otherwise execution in step S206;
Step S209, judge the whether all deletions of 10 files;
Step S210, be then to finish to delete mobile phone file test program, otherwise execution in step S202.
6. the automated testing method of mobile phone file operation according to claim 5; It is characterized in that: the described failure information of step S207 is for when deleting file one by one; Delete procedure is made mistakes and is skipped this file continuation deletion; Record is made mistakes reason to specified folder, otherwise the record successful information.
7. the automated testing method of mobile phone file operation according to claim 6 is characterized in that: employed file is for creating the file of being created in the file test or creating in addition in the above-mentioned steps.
8. the automated testing method of mobile phone file operation according to claim 1 is characterized in that, the step of the cell phone file test of the described mobile phone file operation of step 2 is following:
Step S301, entering cell phone file test program;
Step S302, judging whether the moving source file exists, is execution in step S303 then, otherwise execution in step S307;
Step S303, each moves once in T card and mobile phone EMS memory with source file, and judges whether to move successfully;
Step S304, be execution in step S305 then, otherwise preserve error message and execution in step S303;
Step S305, judge whether the number of times of moving source file reaches system's predetermined movement number of times;
Step S306, be execution in step S307 then, otherwise execution in step S302;
Step S307, preservation LOG journal file are to specified folder, and end cell phone file test program.
9. the automated testing method of mobile phone file operation according to claim 8 is characterized in that: described source file is test program files stored in advance in the T card, and is single file resource.
10. the automated testing method of mobile phone file operation according to claim 9 is characterized in that: described LOG journal file is each result who moves, and is included as which time moved, time started, concluding time, whether success.
CN201110309772XA 2011-10-13 2011-10-13 Automatic test method of cell phone file operation Pending CN102355515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110309772XA CN102355515A (en) 2011-10-13 2011-10-13 Automatic test method of cell phone file operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110309772XA CN102355515A (en) 2011-10-13 2011-10-13 Automatic test method of cell phone file operation

Publications (1)

Publication Number Publication Date
CN102355515A true CN102355515A (en) 2012-02-15

Family

ID=45579008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110309772XA Pending CN102355515A (en) 2011-10-13 2011-10-13 Automatic test method of cell phone file operation

Country Status (1)

Country Link
CN (1) CN102355515A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016000546A1 (en) * 2014-06-30 2016-01-07 北京金山安全软件有限公司 Method and device for checking influence of deletion of cache file, and mobile terminal
CN108833654A (en) * 2018-09-28 2018-11-16 东莞华贝电子科技有限公司 A kind of mobile terminal radio frequency test method and mobile terminal radio frequency test macro

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020072359A1 (en) * 2000-12-08 2002-06-13 Moles Bryan J. System and method for performing diagnostics on a mobile station using over-the-air transfer of interpreted byte-code program
CN1963782A (en) * 2006-11-28 2007-05-16 北京中星微电子有限公司 Method and system for testing embeded file system
CN101335960A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and system implementing mobile phone automatic test
CN101373446A (en) * 2007-08-24 2009-02-25 英业达股份有限公司 Method for testing pressure of file system
CN102096626A (en) * 2010-12-27 2011-06-15 意法·爱立信半导体(北京)有限公司 Mobile terminal and processing method of test log thereof
CN101604272B (en) * 2008-06-13 2011-08-10 慧国(上海)软件科技有限公司 Apparatus and method for memory card testing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020072359A1 (en) * 2000-12-08 2002-06-13 Moles Bryan J. System and method for performing diagnostics on a mobile station using over-the-air transfer of interpreted byte-code program
CN1963782A (en) * 2006-11-28 2007-05-16 北京中星微电子有限公司 Method and system for testing embeded file system
CN101335960A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and system implementing mobile phone automatic test
CN101373446A (en) * 2007-08-24 2009-02-25 英业达股份有限公司 Method for testing pressure of file system
CN101604272B (en) * 2008-06-13 2011-08-10 慧国(上海)软件科技有限公司 Apparatus and method for memory card testing
CN102096626A (en) * 2010-12-27 2011-06-15 意法·爱立信半导体(北京)有限公司 Mobile terminal and processing method of test log thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016000546A1 (en) * 2014-06-30 2016-01-07 北京金山安全软件有限公司 Method and device for checking influence of deletion of cache file, and mobile terminal
CN105446864A (en) * 2014-06-30 2016-03-30 北京金山安全软件有限公司 Method and device for verifying influence of deletion of cache file and mobile terminal
CN105446864B (en) * 2014-06-30 2018-03-30 北京金山安全软件有限公司 Method and device for verifying influence of deletion of cache file and mobile terminal
US10191838B2 (en) 2014-06-30 2019-01-29 Beijing Kingsoft Internet Security Software Co., Ltd Method and device for checking influence of deleting cache file, and mobile terminal
CN108833654A (en) * 2018-09-28 2018-11-16 东莞华贝电子科技有限公司 A kind of mobile terminal radio frequency test method and mobile terminal radio frequency test macro

Similar Documents

Publication Publication Date Title
CN103019928B (en) A kind of automated testing method and system
CN102541740B (en) A kind of mobile phone notes automated testing method based on Android
EP2472417A1 (en) Method and device for accessing file resources
CN105095062B (en) Applied program testing method and system
Binkley et al. Locating dependence clusters and dependence pollution
CN102110053B (en) Random testing method based on Android
CN104063325A (en) Automatic generation device and method for test cases of embedded software
CN104951458A (en) Method and equipment for helping processing based on semantic recognition
CN110389898A (en) Acquisition methods, device, terminal and the computer readable storage medium of Test Strategy
CN102479084A (en) Method and device for acquiring log by Android terminal
CN106033393A (en) Method and system for testing application program, and mobile terminal
CN102662846A (en) Testing method combining automatic tool and testing case
CN108205560B (en) Data synchronization method and device
CN104375937A (en) Continuous integration method and system of automated testing results
US9451423B2 (en) Method and apparatus for recording information during a call
CN102681938A (en) Memory leakage detecting method and device
CN104754136A (en) Method and system for managing account numbers relevant to mobile phone numbers on basis of intelligent terminals
CN102355515A (en) Automatic test method of cell phone file operation
CN107590162A (en) The storage method and device of journal file
CN103095882A (en) Automated testing method and automated testing system for intelligent mobile terminal external field
CN104090838A (en) Method for generating test case
CN104298773A (en) Automatic base switching system and method for ETL operations
JP2021002326A (en) Refinement of repair patterns for static analysis violations in software programs
CN109543300A (en) A kind of method of pixel device in extraction domain
CN102355642B (en) Automated testing method of cell phone short messages

Legal Events

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

Application publication date: 20120215