CN104915291B - Terminal restarts verification method and system - Google Patents

Terminal restarts verification method and system Download PDF

Info

Publication number
CN104915291B
CN104915291B CN201510283626.2A CN201510283626A CN104915291B CN 104915291 B CN104915291 B CN 104915291B CN 201510283626 A CN201510283626 A CN 201510283626A CN 104915291 B CN104915291 B CN 104915291B
Authority
CN
China
Prior art keywords
test
terminal
server
restarting
task
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
CN201510283626.2A
Other languages
Chinese (zh)
Other versions
CN104915291A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201510283626.2A priority Critical patent/CN104915291B/en
Publication of CN104915291A publication Critical patent/CN104915291A/en
Application granted granted Critical
Publication of CN104915291B publication Critical patent/CN104915291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of terminals to restart verification method and system, comprising: the verification step before terminal will shut down and after restarting is converted into test case and realizes pairing;Terminal shut down before test, and by the test assignment information preservation after the restarting of pairing in local;After terminal is restarted, obtains local test assignment information and notify server, so as to server nominative testing task and obtain feedback information.By the above-mentioned means, the present invention, which is able to solve terminal, restarts test relevant operation, it can newly be connect with server-side foundation again after guaranteeing off line, guarantee that entire test plan is not disrupted, and can correctly start specified test assignment after restarting.

Description

Terminal restarts verification method and system
Technical field
The present invention relates to terminal test fields, restart verification method and system more particularly, to a kind of terminal.
Background technique
As software continues to develop and grows, Experience of Software Testing Work amount is also continuously increased, and software automated testing is by pass Note.Realize that control the planned progress mass of test case by server tests automatically, can substantially reduce manual testing's throwing Enter, but intelligent terminal is restarted test and can not be realized on original test frame, once equipment shutdown can be disconnected with server immediately Connection, test plan not can guarantee correct operation (when starting test after restarting, which kind of test started) and be directed to this problem, The present invention realizes mobile terminal by technologies such as offline task technology, mobile terminal and computer socket (socket) communications Automatic test is restarted, to guarantee that entire test plan is carried out without interruption.
Summary of the invention
The invention mainly solves the technical problem of providing a kind of terminals to restart verification method and system, is able to solve terminal Restart test relevant operation, can newly be connect with server-side foundation again after guaranteeing off line, guarantee that entire test plan is not disrupted, And it can correctly start specified test assignment after restarting.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of terminal is provided and restarts authentication Method, comprising: the verification step before terminal will shut down and after restarting is converted into test case and realizes pairing;Before terminal is shut down Test, and by the test assignment information preservation after the restarting of pairing in local;After terminal is restarted, local test assignment is obtained Information simultaneously notifies server, so as to server nominative testing task and obtains feedback information.
Wherein, before the step of test before terminal is shut down, comprising: test assignment is arranged in server, is put into service Device test frame is tested together with general test task, and passes through the test assignment before task start terminal closedown.
Wherein, the test before terminal is shut down, and by the test assignment information preservation after the restarting of pairing local Step includes: the task test problem before terminal operating shutdown, if the verification passes, then by the test assignment after the restarting of pairing Information preservation is to memory space.
Wherein, the test before terminal is shut down, and by the test assignment information preservation after the restarting of pairing in local Afterwards, comprising: server constantly sounds out terminal, attempts to connect terminal by socket and wait to restart task.
Wherein, method further include: if found the problem in test process, this is collected and terminated to server error message It is secondary to restart verifying, error message is notified into relevant Developmental Engineer with mail he after all test assignments are finished.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of terminal and restart verifying System, including terminal and server, terminal include conversion module, test module and notification module, and conversion module will be for that will close Verification step before machine and after restarting is converted into test case and realizes pairing;Test module be used for shut down before test, And by the test assignment information preservation after the restarting of pairing in local;Notification module is used for after terminal is restarted, and is obtained local Test assignment information simultaneously notifies server, and server nominative testing task simultaneously obtains feedback information.
Wherein, before the step of test before terminal is shut down, test assignment is arranged in server, is put into server test Frame is tested together with general test task, and passes through the test assignment before task start terminal closedown.
Wherein, the task test problem before test module operation shutdown if the verification passes then will be after the restarting of pairing Test assignment information preservation is to memory space.
Wherein, the test before test module is shut down, and by the test assignment information preservation after the restarting of pairing at this After ground, server constantly sounds out terminal, attempts to connect terminal by socket and wait to restart task.
Wherein, if found the problem in test process, server, which collects error message and terminate this, restarts verifying, Error message is notified into relevant Developmental Engineer with mail he after all test assignments are finished.
The beneficial effects of the present invention are: being in contrast to the prior art, before the present invention will be shut down by terminal and restart Verification step afterwards is converted into test case and realizes pairing;Terminal shut down before test, and will be after the restarting of pairing Test assignment information preservation is in local;After terminal is restarted, obtains local test assignment information and notify server, to service Device nominative testing task simultaneously obtains feedback information, is able to solve terminal and restarts test relevant operation, guarantee after off line can again with Server-side establishes new connection, guarantees that entire test plan is not disrupted, and can correctly start specified test after restarting and appoint Business.
Detailed description of the invention
Fig. 1 is that the terminal of first embodiment of the invention restarts the flow diagram of verification method;
Fig. 2 is that the terminal of second embodiment of the invention restarts the flow diagram of verification method;
Fig. 3 is that the present invention saves the method schematic diagram for restarting rear mission bit stream;
Fig. 4 is the processing method schematic diagram that server of the invention restarts verifying to terminal;
Fig. 5 is that the terminal of the embodiment of the present invention restarts the structural schematic diagram of verifying system.
Specific embodiment
Referring to Fig. 1, the terminal that Fig. 1 is first embodiment of the invention restarts the flow diagram of verification method.Such as Fig. 1 institute Show, terminal restarts verification method and includes:
Step S10: the verification step before terminal will shut down and after restarting is converted into test case and realizes pairing.
In step slo, terminal generates use-case tool by a kind of automatic recording, and the verifying before shutdown and after restarting is walked It is rapid to record into two use-cases.Test assignment is arranged in server, is put into server test frame and carries out together with general test task Test, and pass through the test assignment before task start terminal closedown.
Step S11: terminal shut down before test, and by the test assignment information preservation after the restarting of pairing at this Ground.
In step s 11, server-side is by the test assignment before task start terminal closedown, and terminal brings into operation task survey Why inscribe, that is, the test before being shut down.If the verification passes, then by the test assignment information preservation after the restarting of pairing to depositing Store up space.Server constantly sounds out terminal later, attempts to connect terminal by socket and wait to restart task.
Step S12: after terminal is restarted, obtaining local test assignment information and notify server, so that server is specified Test assignment simultaneously obtains feedback information.
In step s 12, start completely after terminal is restarted to system, and connect with server, obtain local test plan Start to execute nominative testing task after notifying server, server to receive order, and obtains test feedback information in time.Server It is disconnected after receiving the mission bit stream that terminal sends over, then proceedes to wait, if next test in test frame Verifying is still restarted in plan, then can be again coupled to obtain the test assignment restarted after terminal is restarted.It is carried out if testing and passing through Next test assignment can be booting validation task, be also possible to general test task.If discovery is asked in test process Topic, then server, which collects error message and terminate this, restarts verifying, believes mistake after all test assignments are finished Breath notifies relevant Developmental Engineer with mail he.It is so able to solve terminal and restarts test relevant operation, after guaranteeing off line It can newly be connect with server-side foundation again, guarantee that entire test plan is not disrupted, and can correctly start after restarting specified Test assignment.
Specifically as shown in Fig. 2, terminal restarts verification method includes:
Step S200: screening needs the problem of restarting verifying in the defect occurred in previous project.
Step S201: it records to generate and restarts preceding test case and restart rear test case.
Step S202: test assignment is started by server.
Step S203: test plan timely feedbacks test log to server before operation is restarted.
Step S204: server inspection tests whether to pass through, if passed through, thens follow the steps S205, if do not passed through, Execute step S206.
Step S205: then the task after terminal record is restarted is shut down.
Step S206: key log is automatically recorded into mail and passes through correlation engineering teacher, the machine of verifying by analysis error message The problem of device appearance previous project, needs to solve.Then terminate.
Step S207: server waits terminal to restart.
Step S208: notice server executes restarting for task after terminal is restarted.
Step S209: server starts to give terminal distribution task.
Step S210: terminal starts the task after restarting and test information is fed back to server in time.
Step S211: server inspection tests whether to pass through, if passed through, thens follow the steps S212, if do not passed through, Execute step S206.
Step S212: the problem of test passes through, restarts verifying is proved to be successful.Then terminate.
In embodiments of the present invention, terminal includes mobile phone, tablet computer, smart television etc..Test case operation before shutting down Mission bit stream after insertion is restarted after code, information includes: the jar packet title where the test case to be called after restarting, is surveyed Packet title where example on probation, test case title.Before shutting down after the completion of use-case operation, it will be weighed if if this test, there is no problem The mission bit stream to be verified after opening is saved in memory headroom with document form, and after guaranteeing that terminal is restarted, arranging before for task is not It can lose.Referring specifically to Fig. 3, the method that rear mission bit stream is restarted in preservation includes:
Step S30: test case code before being powered off is finally inserted the method interface for restarting rear mission bit stream.
For example, the test case code before shutdown are as follows:
public void testImportContact()throws UiObjectNotFoundException{
... (specific steps of test case)
Following interface method is used after the preamble that shuts down is rapid
AddTaskForRebootTest (some parameters);
}
It is corresponding restart after use-case are as follows:
public void testImportSuccessfully()throws UiObjectNotFoundException{
... (specific steps of test case)
After test, mission bit stream is deleted
removeTask();
}
Step S31: it is packaged into test bag.
Step S32: mission bit stream is saved in terminal local after test by operation test.
Step S33: the mission bit stream that terminal was retained after restarting by the service acquisition last time being mounted with.
Step S34: connection server, notice server execute the corresponding distribution for restarting task.
After restarting, the application service of the terminal of the embodiment of the present invention obtains the code of task:
Terminal reconnects after restarting with server, and server starts a thread when operation test assignment starts, this Whether a thread has a movement restarted for monitoring tested terminal, and receives and restart mission bit stream, to tested terminal into Row restarts validation test, and obtains test information in time, after a test, next test assignment is waited to execute, until All test assignment execution terminate, end of service, referring specifically to Fig. 4.
For example, the thread code of server monitor terminal are as follows:
In the embodiment of the present invention, the verification step before terminal will shut down and after restarting is converted into test case and realizes to match It is right, and terminal when carrying out shutdown test by the test assignment information preservation after the restarting of pairing in local so that terminal exists After restarting, available local test assignment information simultaneously notifies server so as to server nominative testing task and obtains feedback Information is able to solve terminal and restarts test relevant operation, can newly connect, guarantee entire with server-side foundation again after guaranteeing off line Test plan is not disrupted, and can correctly start specified test assignment after restarting.
Fig. 5 is that the terminal of the embodiment of the present invention restarts the structural schematic diagram of verifying system.It is tested as shown in figure 5, terminal is restarted Card system 10 includes terminal 11 and server 12, and terminal 11 includes conversion module 110, test module 111 and notification module 112, conversion module 110 is used to the verification step before shutdown and after restarting being converted into test case and realizes pairing.Test mould Block 111 be used to be shut down before test, and by the test assignment information preservation after the restarting of pairing in local.Notification module 112 for obtaining local test assignment information and notifying server 12 after terminal 11 is restarted, and 12 nominative testing of server is appointed It is engaged in and obtains feedback information.
In embodiments of the present invention, terminal 11 includes mobile phone, tablet computer, smart television etc..Before terminal 11 is shut down Test the step of before, conversion module 110 generates use-case tool by a kind of automatic recording, will be before shutdown and testing after restarting Step is demonstrate,proved to record into two use-cases.Test assignment is arranged in server 12, is put into 12 test frame of server and general test task It is tested together, and passes through the test assignment before the shutdown of task start terminal 11.Specifically, server-side 12 passes through task start Terminal 11 shut down before test assignment, terminal 11 brings into operation task test problem, i.e. appointing before the operation of test module 111 shutdown It is engaged in test problem, if the verification passes, then by the test assignment information preservation after the restarting of pairing to memory space.It services later Device 12 constantly sounds out terminal, attempts to connect terminal by socket and wait to restart task.So it is able to solve terminal 11 with restart test relevant operation, new connection can be established with server 12 again after guaranteeing off line, guarantee entire test plan not It is interrupted, and can correctly start specified test assignment after restarting.
If found the problem in test process, server 12, which collects error message and terminate this, restarts verifying, to Error message is notified relevant Developmental Engineer after being finished with mail he by all test assignments.
In conclusion the verification step before the present invention will be shut down by terminal and after restarting is converted into test case and realizes Pairing;Terminal shut down before test, and by the test assignment information preservation after the restarting of pairing in local;Terminal is restarted Afterwards, it obtains local test assignment information and notifies server, so as to server nominative testing task and obtain feedback information, energy It enough solves terminal and restarts test relevant operation, can newly be connect with server-side foundation again after guaranteeing off line, guarantee entire tester It draws and is not disrupted, and can correctly start specified test assignment after restarting.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal restarts verification method, which is characterized in that the described method includes:
Verification step before terminal will shut down and after restarting is converted into test case and realizes pairing;
The terminal shut down before test, and by the test assignment information preservation after the restarting of pairing in local;
It after the terminal is restarted, obtains the local test assignment information and notifies server, so that the server is specified Test assignment simultaneously obtains feedback information;
Wherein, the server is notified error message with mail he after all test assignments are finished.
2. the method according to claim 1, wherein the terminal shut down before test the step of before, Include: the server setting test assignment, is put into server test frame and is tested together with general test task, and lead to Test assignment before crossing terminal closedown described in task start.
3. the method according to claim 1, wherein the terminal shut down before test, and by pairing Task test problem of the test assignment information preservation before local step includes: the terminal operating shutdown after restarting, such as Fruit is verified, then by the test assignment information preservation after the restarting of pairing to memory space.
4. the method according to claim 1, wherein the terminal shut down before test, and by pairing Test assignment information preservation after restarting is after local, comprising: the server constantly sounds out the terminal, attempts to pass through Socket connects the terminal waiting and restarts task.
5. the method according to claim 1, wherein the method also includes: if in test process discovery ask Topic, then the server, which collects error message and terminate this, restarts verifying, will be wrong after all test assignments are finished False information notifies relevant Developmental Engineer with mail he.
6. a kind of terminal restarts verifying system, which is characterized in that the system comprises terminal and server, the terminal includes turning Block, test module and notification module are changed the mold,
The conversion module is used to the verification step before shutdown and after restarting being converted into test case and realizes pairing;
The test module be used to be shut down before test, and by the test assignment information preservation after the restarting of pairing at this Ground;
The notification module is used for after the terminal is restarted, and is obtained the local test assignment information and is notified the service Device, the server nominative testing task simultaneously obtain feedback information;
Wherein, server is notified error message with mail he after all test assignments are finished.
7. system according to claim 6, which is characterized in that the terminal shut down before test the step of before, Test assignment is arranged in the server, is put into server test frame and is tested together with general test task, and by appointing Business starts the test assignment before the terminal closedown.
8. system according to claim 6, which is characterized in that the task test before the test module operation shutdown is asked Topic, if the verification passes, then by the test assignment information preservation after the restarting of pairing to memory space.
9. system according to claim 6, which is characterized in that the test module shut down before test, and will match Pair restart after test assignment information preservation after local, the server constantly sounds out the terminal, attempts to pass through Socket connects the terminal waiting and restarts task.
10. system according to claim 6, which is characterized in that if found the problem in test process, the server Error message is collected and terminates this and restarts verifying, by error message with mail he after all test assignments are finished Notify relevant Developmental Engineer.
CN201510283626.2A 2015-05-27 2015-05-27 Terminal restarts verification method and system Active CN104915291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510283626.2A CN104915291B (en) 2015-05-27 2015-05-27 Terminal restarts verification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510283626.2A CN104915291B (en) 2015-05-27 2015-05-27 Terminal restarts verification method and system

Publications (2)

Publication Number Publication Date
CN104915291A CN104915291A (en) 2015-09-16
CN104915291B true CN104915291B (en) 2019-05-14

Family

ID=54084369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510283626.2A Active CN104915291B (en) 2015-05-27 2015-05-27 Terminal restarts verification method and system

Country Status (1)

Country Link
CN (1) CN104915291B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189618A (en) * 2018-08-10 2019-01-11 郑州云海信息技术有限公司 A kind of Server Restart test method, device and equipment
CN109324962A (en) * 2018-08-17 2019-02-12 中国平安人寿保险股份有限公司 A kind of test method and equipment of the application program based on cloud internet of things technology
CN113407438B (en) * 2021-05-10 2022-12-20 深圳市广和通无线股份有限公司 Module testing method, computer device, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119239A (en) * 2007-07-24 2008-02-06 中兴通讯股份有限公司 Off-lining test execution constructing method and apparatus
CN102981955A (en) * 2012-11-29 2013-03-20 浪潮电子信息产业股份有限公司 Automatic continuous restarting method based on Linux system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101087907B1 (en) * 2008-07-31 2011-11-30 에스케이플래닛 주식회사 Terminal function test system, test server, terminal function test method and method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119239A (en) * 2007-07-24 2008-02-06 中兴通讯股份有限公司 Off-lining test execution constructing method and apparatus
CN102981955A (en) * 2012-11-29 2013-03-20 浪潮电子信息产业股份有限公司 Automatic continuous restarting method based on Linux system

Also Published As

Publication number Publication date
CN104915291A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN108399114B (en) System performance testing method and device and storage medium
US8737980B2 (en) End to end application automatic testing
CN106776320A (en) Android intelligent terminal automatization test system and method
CN107704398A (en) Automated testing method and device, storage medium, electronic equipment
CN102421112B (en) Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
CN104424095A (en) Automatic testing method and system of mobile terminal
CN107453953B (en) Httpclient-based data updating system and method
CN104915291B (en) Terminal restarts verification method and system
CN103973858B (en) The Auto-Test System of mobile terminal
CN108241580B (en) Client program testing method and terminal
CN106339273A (en) Application program restoration method, terminal and server
WO2017028574A1 (en) Router testing method and testing device
CN111211934B (en) Cluster remote communication test method and system
CN112860569A (en) Automatic testing method and device, electronic equipment and storage medium
CN107168844B (en) Performance monitoring method and device
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN112105025B (en) eSIM-based operator network test system and method
CN110134558B (en) Method and device for detecting server
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN105827462A (en) Method and tool for detecting network device
CN107362537A (en) A kind of method and device of qualified role account login service device
CN106411657A (en) System for version completeness detection of network phone
CN112420019B (en) Equipment testing method and device
CN104506498A (en) Socket communication based audio/video accelerator card data processing method and device
CN114091687A (en) Method and device for automatic delivery and deployment of machine learning model

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