CN105022694B - Method for generating test case and system for mobile terminal test - Google Patents

Method for generating test case and system for mobile terminal test Download PDF

Info

Publication number
CN105022694B
CN105022694B CN201510510670.2A CN201510510670A CN105022694B CN 105022694 B CN105022694 B CN 105022694B CN 201510510670 A CN201510510670 A CN 201510510670A CN 105022694 B CN105022694 B CN 105022694B
Authority
CN
China
Prior art keywords
test
test case
application program
mobile terminal
mistake
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510510670.2A
Other languages
Chinese (zh)
Other versions
CN105022694A (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.)
Hunan Dashangbang Technology Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510510670.2A priority Critical patent/CN105022694B/en
Publication of CN105022694A publication Critical patent/CN105022694A/en
Application granted granted Critical
Publication of CN105022694B publication Critical patent/CN105022694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention is provided to the method for generating test case of mobile terminal test and systems, at least running of mobile terminal application program when the error occurs, record with generate the relevant user's operation information of mistake;The wrong and corresponding user's operation information of the record is sent by network;The mistake and corresponding user's operation information are received by network, and generates the test case of the corresponding application program according to this;The running software problem that user generates in the actual use of mobile terminal can be acquired by high in the clouds, to the corresponding test case for generating test case, being generated using instance data, be more close to the users, covering scope is more fully.

Description

Method for generating test case and system for mobile terminal test
Technical field
The present invention relates to software testing technology fields, more particularly to the Test cases technology side for mobile terminal test Method and system.
Background technology
With the fusion development at full speed of mobile Internet of Things and smart mobile phone and computer communication technology, smart mobile phone exists It influences also bring puzzlement while we live to user, customer group, mobile digital terminal is gradually developed by being embedded in The Intelligent mobile platform that formula operating system is supported, especially Android mobile terminal, apple equipment is even more that development speed is fast Suddenly, Market competition, the application software run thereon is more and more abundant, also becomes increasingly complex.
Software reliability test is to ensure one of software reliability essential condition, consider test resource and Test the quantitative measuring method of desired optimization.When carrying out reliability test, testing example design is write and is tested Execution is a time-consuming and laborious job, and hand-designed, writing test case and testing results, cannot to have met software reliable Property test needs, thus propose the requirement of Android phone software reliability automatic test, right existing technology is basic All it is how to have realized that automatic test is to import starting point, but the quality of automatic test, being must in automatic test Complete automatic test cases must be imported.
Single existing intelligent machine cell phone software Test cases technology technology there are the problem of:Manual creation test case mode Inefficiency, and record and generate test case mode because not being the operating habit generation test case for user, because Modern intelligence system user causes the method for system fault also not in accordance with laboratory test use-case, and the test case of generation is not User is obeyed using the probability distribution with operating software, so not meeting the requirement of reliability test.And two kinds generate test The mode of use-case will be completed by professional, generate the not basic universal significance of test case.
Automatic test case generating mode in the prior art is to realize that Android is answered by way of recording-playback With the automatic test of program, i.e., the executable test script of Android platform is generated by recording operation event first;Secondly Corresponding testing procedure is executed after the order that device object receives test script.But these patents are all not according to software Practical operation be distributed and generate test case, software test in this way will certainly be caused not have, and specific aim, test period are long, survey Try the problems such as of high cost.
Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide the tests for mobile terminal test Case generation method and system solve the problems, such as Test cases technology existing defects in the prior art.
To realize that above-mentioned target and other related objectives, the present invention provide a kind of test case for mobile terminal test Generation method, including:Running of mobile terminal application program when the error occurs, record with generate the relevant user behaviour of the mistake Make information;The wrong and corresponding user's operation information of the record is sent by network;The mistake is received by network And corresponding user's operation information, and the test case of the corresponding application program is generated according to this.
Optionally, the generating mode of the test case further includes at least one of the following:1) according to the application having in advance Program description material writes test case;2) it records to the behavioral test of the application program to generate test case.
Optionally, the method for generating test case for mobile terminal test, including:Each test will be passed through The test case that use-case generating mode is generated is converted into unified format.
Optionally, the method for generating test case for mobile terminal test, including:Whether detect test case Complete step, the test case completely refer to establishing to have between test case and corresponding application program being at least used to index Incidence relation;It is detected as completely in test case, which allows called to complete test.
Optionally, the method for generating test case for mobile terminal test, including:To the mistake of each reception It is stored after accidentally carrying out classification and/or duplicate removal by default classification.
To realize that above-mentioned target and other related objectives, the present invention provide a kind of test case for mobile terminal test Generation system, including:Logging modle, for running of mobile terminal application program when the error occurs, record with generate the mistake Accidentally relevant user's operation information;Communication module, for the wrong and corresponding user's operation information of the record to be passed through net Network is sent;Test cases technology module receives the mistake and corresponding user's operation information for passing through network, and gives birth to according to this At the test case of the correspondence application program.
Optionally, the mode that the Test cases technology module generates test case further includes at least one of the following: 1) illustrate that material writes test case according to the application program having in advance;2) behavioral test to the application program is recorded to survey to generate Example on probation.
Optionally, the Test cases technology system for mobile terminal test, including:Format conversion module is used In converting the test case generated by each Test cases technology mode to unified format.
Optionally, the Test cases technology system for mobile terminal test, including:Test case detects mould Block, whether complete for detecting test case, the test case completely refers to building between test case and corresponding application program It is vertical to have the incidence relation that be at least used for indexing;Wherein, it is detected as completely in the test case, the test case Allow called to complete test.
Optionally, the Test cases technology system for mobile terminal test, including:Mistake memory module is used It is stored after the mistake to each reception carries out classification and/or duplicate removal by default classification.
As described above, the present invention is provided to the method for generating test case of mobile terminal test and systems, at least moving Dynamic terminal operating application program when the error occurs, records and generates the relevant user's operation information of mistake;By the record Wrong and corresponding user's operation information sent by network;The mistake and corresponding user's operation letter are received by network Breath, and the test case of the corresponding application program is generated according to this;User can be acquired by high in the clouds actually makes in mobile terminal More sticked on to the corresponding test case for generating test case, being generated using instance data with the running software problem of middle generation Nearly user, covering scope is more fully.
Description of the drawings
Fig. 1 is shown as the flow signal of the method for generating test case for mobile terminal test in one embodiment of the invention Figure.
Fig. 2 is shown as the structural representation of the Test cases technology system for mobile terminal test in one embodiment of the invention Figure.
Component label instructions
1 Test cases technology system
11 logging modles
12 communication modules
13 Test cases technology modules
S1~S3 method and steps
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, the embodiment in the application And the feature in embodiment can be combined with each other.
As shown in Figure 1, the present invention provides a kind of method for generating test case for mobile terminal test, including:
Step S1:Running of mobile terminal application program when the error occurs, record with generate the relevant user of mistake Operation information.
In one embodiment, the mobile terminal is, for example, the intelligent electronic devices such as mobile phone or tablet computer, and operation has example Such as Android or IOS operating systems, the application program are, for example, the application program run in those operating systems or operation system It unites existing software function module, such as short message SMS modules, library module etc. may go out in those program operation process Existing various program errors (error), such as dodge and move back etc., it may be possible to it is related with user's operation, such as in the insufficient situation of memory Under do not stop and open application program etc. the program is caused mistake occur, it is also possible to be that user's operation triggers the potential bug of program Deng, the then corresponding operating of corresponding record user, it should be noted that, ordinary user here includes the masses using mobile terminal Crowd is covered more fully hereinafter by acquiring the operation of general population's trigger mistake during routine use mobile terminal Covered the problem of being likely to occur in application program operation, without such as it is existing be typically limited to only the theoretic wrong of anticipation or It is the result that limited test experiments obtain.
Preferably, the record can and can be stored in mobile terminal on mobile terminals by software realization In memory, such as flash memory, SD card, TF card etc.;For example, process of the ordinary user in normal operating intelligent movable system In, in the event of mistake, before software carries out the marketization, intelligence system can generally record corresponding error-logging information (information about mistake itself and relevant operation), these error messages can not be by the confirmation of user, temporarily in inside It is preserved in storage card.
Step S2:The wrong and corresponding user's operation information of the record is sent by network.
In one embodiment, the network is, for example, wired or wireless Ethernet internet or mobile communication Network (2G/3G/4G) is completed information and is collected by the server-side (or " high in the clouds ") of the mobile terminal described in network connection.
For example, from the above, error message is stored in memory space, until the regular hour, works as mobile terminal When getting network, the error message of storage can be fed back to high in the clouds to be collected into corresponding database.
Step S3:The mistake and corresponding user's operation information are received by network, and generates answered described in correspondence according to this With the test case of program.
Preferably, in one embodiment, the generating mode of the test case further includes at least one of the following:1) root Illustrate that material writes test case according to the application program having in advance;2) behavioral test to the application program is recorded to use to generate test Example.
Specifically, writing generation test case:The system typing test case in corresponding test system, test case can be root The test case that the software program service logic write according to system user specification or development specification is write;Manual typing Test case mainly carries out self-defined test case using tester to system software, it is therefore an objective to which system can be according to these use Example, discovery system as early as possible expose problem, this is traditional test software usual way.
For example, common typing message is as follows, records the serial number of typing, the module of test, typing test case Step, the information such as repository address:
Another kind records test case:According to general automatic test software, for example write using Java Swing Program mends the operation information for receiving tester in mobile terminal according to software program, in automation typing page after being inserted into USB line Millet cake hits typing button, and automatic test program accesses the information such as class according to the coordinate that tester clicks in intelligence system, The typing information of the desired format such as xml, txt is automatically generated, then automated procedures are according to user's deliberate action software, The test case of typing.
In one embodiment, the method for generating test case for mobile terminal test, including:Each institute will be passed through That states the test case that Test cases technology mode is generated is converted into unified format, for example, the purpose of the unified format of conversion exists In that can carry out unified operation, unified safeguard, common to carry out the unitized use-case operation of automatic test stage later Unified format txt, excel etc..
In one embodiment, the method for generating test case for mobile terminal test, including:Detection test is used Example whether complete step, the test case, which completely refers between test case and corresponding application program that foundation has, can at least use In the incidence relation of index, such as can not judge it is which corresponding software program module, than such as whether bend in short message SMS modules, Or library module, then be considered incomplete;Alternatively, can also by judge whether be unified format test case, If it is not, and incomplete;It is detected as completely in test case, which allows called to complete to survey Examination.
Preferably, the storage address that its correspondence application program module is obtained to being detected as complete test case, exists in this way It can be using storage address as index field when being converted to unified format.
In one embodiment, the method for generating test case for mobile terminal test, including:It described is connect to each The mistake of receipts stores after carrying out classification and/or duplicate removal by default classification.
Specifically, can be divided by test phase, software module type (such as short message SMS modules or library module) etc. Class, to be distinguished to each mistake, and the mistake to repeating and respective operations information carry out duplicate removal.
As shown in Fig. 2, the present invention provides a kind of Test cases technology system 1 for mobile terminal test, principle with The above method is roughly the same, therefore identical technical detail will be not repeated and repeat, and the system 1 includes:Logging modle 11 is used In running of mobile terminal application program when the error occurs, record with generate the relevant user's operation information of mistake;Communication Module 12, for sending the wrong and corresponding user's operation information of the record by network;Test cases technology module 13, the mistake and corresponding user's operation information are received for passing through network, and generate the corresponding application program according to this Test case.
In one embodiment, the mode that the Test cases technology module generates test case further include it is following at least It is a kind of:1) illustrate that material writes test case according to the application program having in advance;2) record to the behavioral test of the application program with Generate test case.
In one embodiment, the Test cases technology system 1 for mobile terminal test, including:Format conversion Module, for converting the test case generated by each Test cases technology mode to unified format.
In one embodiment, the Test cases technology system 1 for mobile terminal test, including:Test case Detection module, whether complete for detecting test case, the test case completely refers to that test case applies journey with corresponding The incidence relation for having and capable of being at least used for indexing is established between sequence;Wherein, it is detected as completely in the test case, the survey Example on probation allows called to complete test.
In one embodiment, the Test cases technology system 1 for mobile terminal test, including:Mistake stores Module stores after carrying out classification and/or duplicate removal by default classification for the mistake to each reception.
In conclusion the present invention is provided to the method for generating test case of mobile terminal test and systems, at least moving Dynamic terminal operating application program when the error occurs, records and generates the relevant user's operation information of mistake;By the record Wrong and corresponding user's operation information sent by network;The mistake and corresponding user's operation letter are received by network Breath, and the test case of the corresponding application program is generated according to this;User can be acquired by high in the clouds actually makes in mobile terminal More sticked on to the corresponding test case for generating test case, being generated using instance data with the running software problem of middle generation Nearly user, covering scope is more fully.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause This, having usually intellectual in bent technical field such as, institute is complete without departing from the spirit and technical ideas disclosed in the present invention At all equivalent modifications or change, should by the present invention claim be covered.

Claims (4)

1. a kind of method for generating test case for mobile terminal test, which is characterized in that including:
Running of mobile terminal application program when the error occurs, record with generate the relevant user's operation information of mistake;
The wrong and corresponding user's operation information of the record is sent by network;
The mistake and corresponding user's operation information are received by network, and generates the test of the corresponding application program according to this Use-case;
The generating mode of the test case further includes at least one of the following:
1) illustrate that material writes test case according to the application program having in advance;
2) it records to the behavioral test of the application program to generate test case;
The method further includes:
The whether complete step of test case is detected, the test case completely refers between test case and corresponding application program Establish the incidence relation for having and capable of being at least used for indexing;
It is detected as completely in test case, which allows called to complete test;
The method further includes:
It is stored after carrying out classification and/or duplicate removal by default classification to the mistake of each reception.
2. the method for generating test case according to claim 1 for mobile terminal test, which is characterized in that including:
Convert the test case generated by each Test cases technology mode to unified format.
3. a kind of Test cases technology system for mobile terminal test, which is characterized in that including:
Logging modle, for running of mobile terminal application program when the error occurs, record with generate the relevant use of mistake Family operation information;
Communication module, for sending the wrong and corresponding user's operation information of the record by network;
Test cases technology module receives the mistake and corresponding user's operation information for passing through network, and generates according to this The test case of the corresponding application program;
Test case detection module, whether complete for detecting test case, the test case completely refers to test case The incidence relation for having and capable of being at least used for indexing is established between corresponding application program;Wherein, it is detected as completely in the test case In the case of, which allows called to complete test;
Mistake memory module stores after carrying out classification and/or duplicate removal by default classification for the mistake to each reception;
The mode that the Test cases technology module generates test case further includes at least one of the following:
1) illustrate that material writes test case according to the application program having in advance;
2) it records to the behavioral test of the application program to generate test case.
4. the Test cases technology system according to claim 3 for mobile terminal test, which is characterized in that including:
Format conversion module, for converting the test case generated by each Test cases technology mode to unification Format.
CN201510510670.2A 2015-08-19 2015-08-19 Method for generating test case and system for mobile terminal test Active CN105022694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510510670.2A CN105022694B (en) 2015-08-19 2015-08-19 Method for generating test case and system for mobile terminal test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510510670.2A CN105022694B (en) 2015-08-19 2015-08-19 Method for generating test case and system for mobile terminal test

Publications (2)

Publication Number Publication Date
CN105022694A CN105022694A (en) 2015-11-04
CN105022694B true CN105022694B (en) 2018-07-13

Family

ID=54412682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510510670.2A Active CN105022694B (en) 2015-08-19 2015-08-19 Method for generating test case and system for mobile terminal test

Country Status (1)

Country Link
CN (1) CN105022694B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893253A (en) * 2016-03-29 2016-08-24 百度在线网络技术(北京)有限公司 Application software testing method, device and equipment
CN106095690A (en) * 2016-06-23 2016-11-09 维沃移动通信有限公司 The method of testing of application and mobile terminal
CN106844211A (en) * 2017-01-22 2017-06-13 广东小天才科技有限公司 A kind of method for testing software, apparatus and system
CN107908541B (en) * 2017-07-26 2020-10-30 平安壹钱包电子商务有限公司 Interface testing method and device, computer equipment and storage medium
CN107678948B (en) * 2017-09-18 2021-09-07 茂佳科技(广东)有限公司 Test case generation method, terminal and storage medium
CN108415831A (en) * 2018-02-05 2018-08-17 五八有限公司 Method for generating test case and device, electronic equipment and readable storage medium storing program for executing
CN109558317A (en) * 2018-11-22 2019-04-02 网易(杭州)网络有限公司 The processing method and processing device of test case
CN114048147B (en) * 2022-01-12 2022-04-12 广东拓思软件科学园有限公司 Test case generation method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196817A (en) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 Test case generating method and system
CN101394646A (en) * 2008-11-06 2009-03-25 北京天碁科技有限公司 Software test method and system
CN103268286A (en) * 2013-06-04 2013-08-28 百度在线网络技术(北京)有限公司 Method, system and testing machine for testing flow of application program in mobile terminal
CN104407980A (en) * 2014-12-17 2015-03-11 用友软件股份有限公司 Mobile application automated testing device and method
CN104794049A (en) * 2014-01-20 2015-07-22 腾讯科技(深圳)有限公司 Application program test method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377406A (en) * 2012-04-25 2013-10-30 富泰华工业(深圳)有限公司 System and method for managing test files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196817A (en) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 Test case generating method and system
CN101394646A (en) * 2008-11-06 2009-03-25 北京天碁科技有限公司 Software test method and system
CN103268286A (en) * 2013-06-04 2013-08-28 百度在线网络技术(北京)有限公司 Method, system and testing machine for testing flow of application program in mobile terminal
CN104794049A (en) * 2014-01-20 2015-07-22 腾讯科技(深圳)有限公司 Application program test method and device
CN104407980A (en) * 2014-12-17 2015-03-11 用友软件股份有限公司 Mobile application automated testing device and method

Also Published As

Publication number Publication date
CN105022694A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105022694B (en) Method for generating test case and system for mobile terminal test
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN104407980B (en) Mobile solution automatic test device and method
US8473916B2 (en) Method and system for providing a testing framework
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN107329890A (en) Test method and device based on Mock and server
WO2017000424A1 (en) Protocol detection method and apparatus
CN108984389A (en) A kind of applied program testing method and terminal device
CN105378680A (en) System and method for coordinating field user testing results for mobile application across various mobile devices
CN104320793B (en) A kind of Automated testing method of cell phone short messages and system
CN105824001A (en) Digital electric energy meter IEC61850 conformance testing method and system
WO2020096665A2 (en) System error detection
CN106557419B (en) Program testing method and device
CN109408309A (en) The test method and device of multiple terminals
CN106528429A (en) UI testing method and device
US9183117B2 (en) Method for developing and testing a connectivity driver for an instrument
CN112860587B (en) UI automatic test method and device
CN110287700A (en) A kind of iOS application safety analytical method and device
CN103902590B (en) Premises automation method of testing and its device
CN114679402B (en) Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN103914377A (en) Interface testing method and device
CN115422052A (en) Vehicle navigation app test system and method
CN113656319A (en) Regression testing method and device, electronic equipment and storage medium
KR102032180B1 (en) Apparatus for testing information exchange function of digital substation system
CN111694752A (en) Application testing method, electronic device and storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201127

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201207

Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240131

Address after: Room 612, Entrepreneurship Building, Hunan University Science and Technology Park, No. 186 Guyuan Road, Changsha High tech Development Zone, Changsha City, Hunan Province, 410000

Patentee after: HUNAN DASHANGBANG TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee before: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Country or region before: China