CN104866418B - Automated testing method and system - Google Patents

Automated testing method and system Download PDF

Info

Publication number
CN104866418B
CN104866418B CN201410067352.9A CN201410067352A CN104866418B CN 104866418 B CN104866418 B CN 104866418B CN 201410067352 A CN201410067352 A CN 201410067352A CN 104866418 B CN104866418 B CN 104866418B
Authority
CN
China
Prior art keywords
test
program
switching
shutting down
tested client
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
CN201410067352.9A
Other languages
Chinese (zh)
Other versions
CN104866418A (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.)
Yanxiang Smart Iot Technology Co ltd
Original Assignee
EVOC Intelligent 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 EVOC Intelligent Technology Co Ltd filed Critical EVOC Intelligent Technology Co Ltd
Priority to CN201410067352.9A priority Critical patent/CN104866418B/en
Publication of CN104866418A publication Critical patent/CN104866418A/en
Application granted granted Critical
Publication of CN104866418B publication Critical patent/CN104866418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of automated testing method and systems.The automated testing method is the following steps are included: start the unit testing program in tested client;Judge whether current unit testing program is switching on and shutting down proving program, if, then switching on and shutting down validation test instruction is sent to testing service end, switching on and shutting down test is carried out to tested client by power control according to switching on and shutting down validation test instruction by the testing service end, if not, then complete current unit testing program, obtain the test result of the unit testing program, and the test result is sent to the testing service end by communication interface, and judge whether each unit test program is completed, if, then terminate, if not, then start next unit testing program, until each unit test program is completed.It is automatically performed the test of each unit test program, is not required to manually carry out different units test switching, improves testing efficiency.

Description

Automated testing method and system
Technical field
The present invention relates to industrial personal computer testing fields, more particularly to a kind of automated testing method and system.
Background technique
With the development of computer science and technology, people have used information equipment to replace traditional manual work.Information equipment Reliability is widely paid close attention to.For this purpose, needing to carry out reliability test to it after information equipment output.It is biggish for yield The test of information equipment generally requires to make dedicated jig equipment, and is equipped with dedicated test software, these professional equipment valences Lattice are higher, and since test content and the difference of test emphasis, these professional equipments are not appropriate for being applied to industrial personal computer reliability In test.
The reliability test of industrial personal computer includes various switching on and shutting down tests, long-time stability test, memory test etc..Tradition Industrial personal computer test in, because needing to be tested using different testing tools, and different testing tools and divergence, need It manually to access, testing efficiency is low.
Summary of the invention
Based on this, it is necessary to for traditional industrial personal computer test problem low dependent on its testing efficiency of manual testing, mention For a kind of tested client that can improve testing efficiency and testing service end.
A kind of automatization test system that can improve testing efficiency is provided.
A kind of automated testing method that can improve testing efficiency is provided.
A kind of tested client, comprising:
Starting module, for tested client to be connected with testing service end by communication interface, by tested client It is connected by power control with testing service end, and after powering on booting to tested client, is started in tested client Unit testing program;
Judgment module, for judging whether current unit testing program is switching on and shutting down proving program;
Sending module, for judge current unit testing program be switching on and shutting down proving program when, to testing service End sends switching on and shutting down validation test instruction, passes through the electricity according to switching on and shutting down validation test instruction by the testing service end Source control device carries out switching on and shutting down test to tested client;
Test module, it is current for completing when judging current unit testing program is not switching on and shutting down proving program Unit testing program, obtain the test result of the unit testing program;
The sending module is also used to the test result being sent to the testing service end by communication interface;
The judgment module is also used to after the test result for obtaining the unit testing program, judges that each unit tests journey Whether sequence is completed, if so, terminate, if it is not, then the starting module is also used to start next unit testing program, and The judgment module, sending module and test module work on, until each unit test program is completed.
A kind of testing service end, comprising:
Receiving module, the switching on and shutting down validation test instruction sent for receiving the tested client, and described in reception The test result for remaining each unit test program in addition to switching on and shutting down test program that tested client is sent, and receive the quilt Survey the instruction that each unit test program that client is sent is completed;
Switching on and shutting down authentication module, for passing through the power control to institute according to switching on and shutting down validation test instruction It states tested client and carries out switching on and shutting down test, obtain switching on and shutting down test result;
Test record processing module, each list of remaining in addition to switching on and shutting down test program sent for recording tested client The test result and switching on and shutting down test result of first test program, and the tested client hair is received in the receiving module The test result sent when the instruction that each unit test program sent is completed according to tested client and the switching on and shutting down are surveyed Test result generates the test report of the tested client.
A kind of automatization test system, including tested client, testing service end and power control, the tested visitor Family end is connected with the testing service end by communication interface, and the tested client passes through the power control and institute Testing service end is stated to be connected;
The tested client includes:
Starting module, for tested client to be connected with testing service end by communication interface, by tested client It is connected by power control with testing service end, and after powering on booting to tested client, is started in tested client Unit testing program;
Judgment module, for judging whether current unit testing program is switching on and shutting down proving program;
Sending module, for judge current unit testing program be switching on and shutting down proving program when, to testing service End sends switching on and shutting down validation test instruction;
Test module, it is current for completing when judging current unit testing program is not switching on and shutting down proving program Unit testing program, obtain the test result of the unit testing program, and receive each list that the tested client is sent The instruction that first test program is completed;
The sending module is also used to the test result being sent to the testing service end by communication interface;
The judgment module is also used to after the test result for obtaining the unit testing program, judges that each unit tests journey Whether sequence is completed, if so, terminate, if it is not, then the starting module is also used to start next unit testing program, and The judgment module, sending module and test module work on, until each unit test program is completed;
The testing service end includes:
Receiving module, the switching on and shutting down validation test instruction sent for receiving the tested client, and described in reception The test result for remaining each unit test program in addition to switching on and shutting down test program that tested client is sent;
Switching on and shutting down authentication module, for passing through the power control to institute according to switching on and shutting down validation test instruction It states tested client and carries out switching on and shutting down test, obtain switching on and shutting down test result;
Test record processing module, each list of remaining in addition to switching on and shutting down test program sent for recording tested client The test result and switching on and shutting down test result of first test program, and the tested client hair is received in the receiving module The test result sent when the instruction that each unit test program sent is completed according to tested client and the switching on and shutting down are surveyed Test result generates the test report of the tested client.
A kind of automated testing method, comprising the following steps:
Tested client is being connected with testing service end by communication interface, tested client is controlled by power supply and is filled It sets and is connected with testing service end, and after powering on booting to tested client, start the unit testing program in tested client;
Judge whether current unit testing program is switching on and shutting down proving program, is opened if so, being sent to testing service end Validation test of shutting down instructs, and passes through power supply control dress according to switching on and shutting down validation test instruction by the testing service end It sets and the unit testing journey is obtained if it is not, then completing current unit testing program to the progress switching on and shutting down test of tested client The test result of sequence, and the test result is sent to the testing service end by communication interface, and judge that each unit is surveyed Whether examination program is completed, if so, terminating, if it is not, then starting next unit testing program, until each unit tests journey Sequence is completed.
Above-mentioned automated testing method and system, tested client, testing service end, after powering on booting, start tested visitor Unit testing program on the end of family is automatically performed the test of each unit test program, and test result is sent to testing service End, after testing a unit testing program, judge whether each unit test program is completed, without when, continue under starting One unit testing program is not required to manual operation and carries out cutting for different units test until each unit test program is completed It changes, improves testing efficiency.
Detailed description of the invention
Fig. 1 is the realization environment map of automated testing method and system;
Fig. 2 is the internal structure block diagram that client is tested in one embodiment;
Fig. 3 is the internal structure block diagram that client is tested in another embodiment;
Fig. 4 is the structural block diagram at testing service end in one embodiment;
Fig. 5 is the structural block diagram of automatization test system in one embodiment;
Fig. 6 is the flow chart of automated testing method in one embodiment;
Fig. 7 is that testing service end is instructed according to the switching on and shutting down validation test through the power control in one embodiment The specific flow chart for the step of switching on and shutting down test is carried out to tested client;
Fig. 8 is the detail flowchart of automated testing method in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the realization environment map of automated testing method and system.As shown in Figure 1, the realization environment includes tested visitor Family end 100, testing service end 200 and power control 300.Tested client 100 is connect with testing service end 200 by communication Mouth (such as serial ports) is connected, and tested client 100 is connected by power control 300 with testing service end 200.The present embodiment In, testing service end 200 and power control 300 are general defeated by GPIO(General Purpose Input Output Enter output) interface be connected.Power control 300 is connected with the power supply of tested client 100.
Tested client 100 can be one or more.Testing service end 200 there are multiple communication interfaces and GPIO interface, Communication interface, the GPIO interface at testing service end 200 are connect with tested client 100 and power control 300 respectively, quilt The identification code that client 100 sends itself to testing service end is surveyed, testing service end 200 receives one survey of starting after identification code Examination process, and corresponding interface resource is initialized simultaneously.When multiple tested clients 100 are tested, then there are multiple tested visitors Family end 100 is accessed simultaneously, will be started multiple processes at this time and is initialized the respective interface resource for being tested client 100, each process It operates on the operating system of multitask, is completely independent and does not interfere with each other with other test processes.Therefore it may be implemented to more A tested client 100 carries out mutually indepedent, non-interfering test.Tested client 100 can carry out GPIO test, repeatedly Switching on and shutting down caused by POWER LOSS(power-off illegally) test, RTC(Real-Time Clock, real-time clock) test, WDT (Watch Dog Timer, house dog) test, (it is soft for the synthesis microcomputer testing that a third party provides for PC-CHECK test Part), Memtest(Memory Test, memory test) test etc..POWER LOSS test refers to that power-off illegally is tested, i.e. microcomputer A state illegally shut down can be in after alternating current is sudden shut off, if microcomputer has POWER LOSS function behind city power recovery Then it can voluntarily can power on booting by microcomputer.
Tested client 100 starts each unit test program, and after the test for completing unit testing program, test result is sent out It gives testing service end 200, and sends switching on and shutting down validation test instruction to testing service end 200, by 200, testing service end It is instructed according to the switching on and shutting down validation test and sends power on/off instruction and power-on instruction to power control 300, controlled and filled by power supply It sets 300 and switching on and shutting down test is carried out to tested client 100 according to power on/off instruction and power-on instruction.
Fig. 2 is the internal structure block diagram that client is tested in one embodiment.The tested client application is in the realization of Fig. 1 In environment.As depicted in figs. 1 and 2, the tested client 100, including starting module 110, judgment module 120, sending module 130 With test module 140.
Starting module 110, will be by for tested client 100 to be connected with testing service end 200 by communication interface Survey client logical 100 crosses power control 300 and is connected with testing service end 200, and powers on booting to tested client 100 Afterwards, start the unit testing program in tested client 100.
Judgment module 120 is for judging whether current unit testing program is switching on and shutting down proving program.The unit testing Program includes GPIO test program, multiple POWER LOSS test program, RTC test program, WDT test program, PC-CHECK It is one or more in test program and Memtest test program.
Sending module 130 is used to take when judging current unit testing program is switching on and shutting down proving program to test Business end 200 sends switching on and shutting down validation test instruction, by the testing service end 200 according to switching on and shutting down validation test instruction by being somebody's turn to do Power control 300 carries out switching on and shutting down test to tested client 100.
Test module 140 is used for when judging current unit testing program is not switching on and shutting down proving program, completes to work as Preceding unit testing program, obtains the test result of the unit testing program.
After test module 140 completes current unit testing program, the test mode of the unit testing program can also update, Will the unit testing program test mode labeled as having tested.The mark mode of test mode can be preset by user or System default setting, for example, test mode is to have tested that one token can be used, test mode is not test that " 0 " label can be used Deng.
The sending module 130 is also used to the test result being sent to the testing service end 200 by communication interface.
The judgment module 120 is also used to after the test result for obtaining the unit testing program, judges that each unit tests journey Whether sequence is completed, if so, terminate, if it is not, then the starting module 110 is also used to start next unit testing program, And the judgment module 120, sending module 130 and test module 140 work on, until each unit test program is completed.
Specifically, judgment module 120 judges whether each unit test program is completed, detection each unit test can be passed through The test mode of program, if the test mode of each unit test program is to have tested, test terminates, if each unit tests journey The test mode of sequence, which exists, does not test, then starting test mode is that the unit testing program that do not test is tested, that is, under starting One unit testing program, until each unit test program is completed.
Above-mentioned tested client 100 after powering on booting, starts the unit testing program in tested client 100, automatic complete It is sent to testing service end 200 at the test of each unit test program, and by test result, tests a unit testing program Afterwards, judge whether each unit test program is completed, without when, continue to start next unit testing program, until each list First test program is completed, and is not required to the switching that manual operation carries out different units test, is improved testing efficiency.
Fig. 3 is the internal structure block diagram that client is tested in another embodiment.The tested client application is in Fig. 1 It realizes in environment.As shown in figures 1 and 3, the tested client is in addition to including starting module 110, judgment module 120, sending mould Block 130 and test module 140 further include detection module 150 and empty module 160.Wherein:
Whether for the first time detection module 150 for judging tested client electrifying startup.
Module 160 is emptied for emptying in tested client when judging tested client is electrifying startup for the first time Then test recording area is started the unit testing program in tested client by the starting module 110 again.
The judgment module 120 is also used to judge that each unit is tested when judging tested client is not electrifying startup for the first time Whether program is completed.Judgment module 120 can judge that each unit is tested according to the test mode of current each unit test program Whether program is completed.It is completed, terminates, if test is not complete, the list that starting is not tested is continued by starting module 110 First test program.
Above-mentioned tested client, after powering on booting, judges whether it is and starts for the first time, if for the first time, then empties tested client The test recording area at end, to ensure the accuracy of test result.
Fig. 4 is the structural block diagram at testing service end in one embodiment.The testing service end is applied to the realization environment of Fig. 1 In.As shown in Figure 1 and Figure 4, the testing service end 200, including receiving module 220, switching on and shutting down authentication module 230 and test record Processing module 240.
Receiving module 220 is used to receive the switching on and shutting down validation test instruction that tested client 100 is sent, and receives the quilt The test result for remaining each unit test program in addition to switching on and shutting down test program that client 100 is sent is surveyed, and is received tested The instruction that each unit test program that client 100 is sent is completed.
Switching on and shutting down authentication module 230 is used for according to switching on and shutting down validation test instruction through power control 300 to this Tested client 100 carries out switching on and shutting down test, obtains switching on and shutting down test result.
Test record processing module 240 is used to record its in addition to switching on and shutting down test program that tested client 100 is sent The test result and switching on and shutting down test result of remaining each unit test program, and the tested visitor is received in the receiving module 220 When the instruction that each unit test program that family end 100 is sent is completed, according to the test result of tested client transmission and it is somebody's turn to do Switching on and shutting down test result generates the test report of the tested client 100.
The switching on and shutting down authentication module 230 is also used to be instructed according to the switching on and shutting down validation test, to the power control 300 Send cut-offing instruction, client 100 is tested to this according to the cut-offing instruction by the power control 300 and is powered off, and to this Power control 300 sends electrical instruction and power-on instruction, by the power control 300 according to the electrical instruction to the quilt It surveys client 100 to be powered and control the tested booting of client 100 according to the power-on instruction, and receives power supply control Tested 100 open state of client that device 300 detects handles the open state to obtain corresponding switching on and shutting down test knot Fruit.
Fig. 5 is the structural block diagram of automatization test system in one embodiment.As shown in figure 5, the automatization test system, Including tested client 100, testing service end 200 and power control 300, the tested client 100 and the testing service End 200 is connected by communication interface, and the tested client 100 passes through the power control 300 and the testing service end 200 It is connected.
The tested client 100 includes starting module 110, judgment module 120, sending module 130 and test module 140.
Starting module 110 is for tested client to be connected with testing service end by communication interface, by tested client End is connected by power control with testing service end, and after powering on booting to tested client, starting is tested in client Unit testing program.
Judgment module 120 is for judging whether current unit testing program is switching on and shutting down proving program.
Sending module 130 is used to take when judging current unit testing program is switching on and shutting down proving program to test Business end 200 sends switching on and shutting down validation test instruction.
Test module 140 is used for when judging current unit testing program is not switching on and shutting down proving program, completes to work as Preceding unit testing program, obtains the test result of the unit testing program.
The sending module 130 is also used to the test result being sent to the testing service end 200 by communication interface.
The judgment module 120 is also used to after the test result for obtaining the unit testing program, judges that each unit tests journey Whether sequence is completed, if so, terminate, if it is not, then the starting module 110 is also used to start next unit testing program, And the judgment module 120, sending module 130 and test module 140 work on, until each unit test program is completed.
The tested client 100 further includes detection module 150 and empties module 160.Wherein:
Whether for the first time detection module 150 for judging tested client electrifying startup.
Module 160 is emptied for emptying in tested client when judging tested client is electrifying startup for the first time Then test recording area is started the unit testing program in tested client by the starting module 110 again.
The judgment module 120 is also used to judge each unit survey when judging tested client 100 not for electrifying startup for the first time Whether examination program is completed.
The testing service end 200 includes receiving module 220, switching on and shutting down authentication module 230 and test record processing module 240.The operating system at testing service end 200 can be any intelligent operating system, such as ARM, X86, Android system, WINDOWS system System etc..
Receiving module 220 is used to receive the switching on and shutting down validation test instruction that the tested client 100 is sent, and receiving should The test result for remaining each unit test program in addition to switching on and shutting down test program that tested client 100 is sent, and receive quilt Survey the instruction that each unit test program that client 100 is sent is completed.
Switching on and shutting down authentication module 230 is used for right by the power control 300 according to switching on and shutting down validation test instruction The tested client 100 carries out switching on and shutting down test, obtains switching on and shutting down test result.
The switching on and shutting down authentication module 230 is also used to be instructed according to the switching on and shutting down validation test, to the power control 300 Cut-offing instruction is sent, client power-off is tested to this according to the cut-offing instruction by the power control 300, and to the power supply Control device 300 sends electrical instruction and power-on instruction, by the power control 300 according to the electrical instruction to the tested visitor Family end 100 is powered and controls the tested client 100 according to the power-on instruction and is switched on, and receives the power control Tested 100 open state of client of 300 detections, handles the open state to obtain corresponding switching on and shutting down test result.
Specifically, switching on and shutting down authentication module 230 sends cut-offing instruction or electrical instruction, power control 300 is according to this Cut-offing instruction or electrical instruction control the power-off or energization of the power supply in tested client 100.Open state may include that booting is lost It loses or is switched on successfully.
Test record processing module 240 is used to record its in addition to switching on and shutting down test program that tested client 100 is sent The test result and switching on and shutting down test result of remaining each unit test program, and the tested visitor is received in the receiving module 220 Family end 100 send each unit test program be completed instruction when, according to tested client 100 send test result and The switching on and shutting down test result generates the test report of the tested client 100.
As shown in figure 5, the power control 300 includes switch control module 310, switch module 320, booting control mould Block 330 and power on feedback module 340.
The switch control module 310 is used to receive the cut-offing instruction of the switching on and shutting down authentication module 230 transmission, according to the power-off Instruction controls the switch module 320 and disconnects the power supply for being tested client to this, and receives switching on and shutting down authentication module transmission Electrical instruction controls the power supply that the switch module 320 conducting is tested client 100 to this according to the electrical instruction.The present embodiment In, switch control module 310 can control for relay switch, and switch module 320 is relay.In other embodiments, it switchs Module 320 can be transistor controllable switch etc..
The booting control module 330 is used to receive the power-on instruction of the switching on and shutting down authentication module 230 transmission, according to the booting The instruction control tested client 100 is switched on.
This powers on feedback module 340 for detecting the open state of the tested client 100, and the open state is fed back Give the testing service end 200.
Specifically, open state may include boot failure or be switched on successfully.
Above-mentioned automatization test system after powering on booting, judges whether it is and starts for the first time, if for the first time, then empties tested The test recording area of client starts the unit testing program in tested client, automatically to ensure the accuracy of test result The test of each unit test program is completed, and test result is sent to testing service end, tests a unit testing program Afterwards, judge whether each unit test program is completed, without when, continue to start next unit testing program, until each list First test program is completed, and is not required to the switching that manual operation carries out different units test, improves testing efficiency, and test report Announcement is automatically generated by testing service end, is saved manual operation, is improved report generation efficiency, reduce cost of labor, pass through Testing service end 200 sends corresponding power on/off instruction to power control 300, controls the power on/off of tested client 100, Realize automatic detection, it is easy to detect, and by power control 300, it is easy to implement control.
Fig. 6 is the flow chart of automated testing method in one embodiment.The automated testing method is applied to the reality of Fig. 1 In existing environment.As shown in figures 1 to 6, the automated testing method, comprising the following steps:
Step 602, tested client 100 is being connected with testing service end 200 by communication interface, by tested client 100 are connected by power control 300 with testing service end 200, and after powering on booting to tested client 100, starting quilt Survey the unit testing program in client 100.
Specifically, the user interface at testing service end 200 receives the operation that user starts testing service, start and tested The corresponding process of client 100, each process corresponding to tested client 100 is mutually indepedent.The process is tested for monitoring The test process of client 100.Testing service end 200 controls power control 300 and powers to tested client 100, realizes To powering on for tested client 100, guarantee that the alternating current link of one or more tested clients is in the conductive state.
After tested client 100 powers on booting, start the unit testing program in tested client 100.Unit testing journey Sequence may include GPIO test program, multiple POWER LOSS test program, RTC test program, WDT test program, PC-CHECK It is one or more in test program and Memtest test program.
Step 604, judge whether current unit testing program is switching on and shutting down proving program, if so, step 206 is executed, If it is not, executing step 208.
Step 606, switching on and shutting down validation test instruction is sent to testing service end 200, by the testing service end 200 according to this Switching on and shutting down validation test instruction carries out switching on and shutting down test to tested client 100 by the power control 300.
Specifically, being tested client 100 to testing service end when current unit testing program is switching on and shutting down proving program 200 send switching on and shutting down validation tests instruction, by testing service end 200 combine power control 300 to tested client 100 into Row switching on and shutting down test.
Step 608, current unit testing program is completed, obtains the test result of the unit testing program, and by the survey Test result is sent to the testing service end 200 by communication interface.
Specifically, can also update the test mode of the unit testing program after completing current unit testing program, i.e., will The test mode of the unit testing program is labeled as having tested.The mark mode of test mode can be preset by user or system Default setting, for example, test mode is to have tested that one token can be used, test mode is not test that " 0 " label etc. can be used.
Step 610, judge whether each unit test program is completed, if so, terminating, if it is not, starting next list First test program, until each unit test program is completed.
Specifically, judging whether each unit test program is completed, the test of detection each unit test program can be passed through State, if the test mode of each unit test program is to have tested, test terminates, if the test shape of each unit test program State, which exists, does not test, then starting test mode is that the unit testing program that do not test is tested, that is, starts next unit and survey Program is tried, until each unit test program is completed.
Above-mentioned automated testing method after powering on booting, starts the unit testing program in tested client 100, automatically The test of each unit test program is completed, and test result is sent to testing service end 200, tests a unit testing journey After sequence, judge whether each unit test program is completed, without when, continue to start next unit testing program, until each Unit testing program test finishes, and is not required to the switching that manual operation carries out different units test, improves testing efficiency.
Fig. 7 is that testing service end 200 is controlled according to switching on and shutting down validation test instruction by the power supply in one embodiment The specific flow chart for the step of device 300 carries out switching on and shutting down test to tested client 100.As shown in fig. 7, the testing service end 200 carry out switching on and shutting down survey to tested client 100 by the power control 300 according to switching on and shutting down validation test instruction Examination, comprising:
Step 702, which instructs according to the switching on and shutting down validation test, sends out to the power control 300 Cut-offing instruction is sent, client 100 is tested to this according to the cut-offing instruction by the power control 300 and is powered off.
Step 704, which sends electrical instruction and power-on instruction to the power control 300, by this Power control 300 is tested client 100 to this according to the electrical instruction and is powered and according to power-on instruction control The tested client 100 is switched on.
Step 706, which receives the tested client open state of power control detection, opens this Machine state processing obtains corresponding switching on and shutting down test result, and records the switching on and shutting down test result.
In above-mentioned automated testing method, corresponding on-off is sent to power control 300 by testing service end 200 Electricity instruction, the power on/off of the tested client 100 of control realize automatic detection, easy to detect, and pass through power control 300, It is easy to implement control.
In one embodiment, above-mentioned automated testing method further include: the testing service end 200 receives the tested client The test result for remaining each unit test program in addition to switching on and shutting down test program that end 100 is sent, and receive the tested visitor Family end 100 send each unit test program be completed instruction when, according to tested client 100 send test result and The switching on and shutting down test result of the 200 switching on and shutting down test record of testing service end generates the test report of the tested client 100.
Specifically, test report template can be arranged on testing service end 200 in advance.Testing service end 200 is by tested visitor In test result and switching on and shutting down test result the filling test report template that family end 100 is sent, the tested client 100 is generated Test report.It is understood that test report recipient can be arranged on testing service end 200 in advance, test report is led to It crosses the modes such as Email and is sent to test report recipient.
Above-mentioned automated testing method, the test result and survey sent by testing service end 200 according to tested client 100 Examination server-side 200 carries out the switching on and shutting down test result that switching on and shutting down are tested and automatically generates test report, is not required to manually defeated Enter to generate test report, save manual operation, improves report generation efficiency, reduce cost of labor.
Fig. 8 is the detail flowchart of automated testing method in one embodiment.As shown in figure 8, this is automatic in conjunction with Fig. 1 Changing test method includes three parts, is specifically included:
(1) preparation stage, comprising:
Step 802, it is tested client 100 and testing service end 200 is connected to by communication interface.
Step 804, testing service end 100 is connected to power control 300 by GPIO interface.
Step 806, the power supply for being tested client 100 is connected to power control 300, powers on to tested client 100 Then booting executes step 808.
(2) it is tested 100 testing process of client, comprising:
Step 808, tested client 100 whether for the first time electrifying startup is judged, if so, step 810 is executed, if it is not, executing Step 826.
Step 810, the test recording area in tested client 100 is emptied.
Specifically, the test result that tested client surveys 100 is recorded in local test recording area, which can For memory, which can be hard disk etc..When the memory is moved in next not tested client, then memory In data may influence the test result of new record, need to empty the test recording area in tested client thus.It is understood that , new memory is used to each tested client 100, because each memory is newly, then to be not required to carry out null clear operation.
Step 812, start the unit testing program in tested client 100, send the test of active cell test program State is to testing service end 200.
Specifically, send active cell test program test mode to testing service end 200, can be by testing service end 200 judge whether the active cell test program is completed to test according to test mode.Test mode includes having tested and not tested.
Step 814, judge whether active cell test program is switching on and shutting down proving program, if so, step 816 is executed, if It is no, execute step 818.
Step 816, switching on and shutting down validation test instruction is sent to testing service end.
Step 818, current unit testing program is executed.
Step 820, judge whether current unit testing program is completed, if so, step 822 is executed, if it is not, executing step 812。
Step 822, the test mode of current unit testing program is updated.
Step 824, the test result of current unit testing program is obtained, and test result is sent to testing service End.
Step 826, judge whether each unit test program is tested according to the test mode of current each unit test program Finish, if so, terminating, if it is not, thening follow the steps 812.
(3) testing process at testing service end, comprising:
Step 828, testing service end starts testing service, is waited for.
Step 830, instruction is verified in the switching on and shutting down that testing service end receives that tested client is sent, and is referred to according to switching on and shutting down verifying It enables and switching on and shutting down test is carried out to tested client, obtain switching on and shutting down test result.
Step 832, the survey for the remaining element test program in addition to switching on and shutting down proving program that tested client is sent is received Test result.
Step 834, test result is recorded.
The test result of the record include switching on and shutting down test result and tested client send except switching on and shutting down proving program The test result of outer remaining element test program.
Step 836, judge that each unit tests whether to finish, if so, step 838 is executed, if it is not, executing step 828.
Step 838, the survey of the remaining element test program in addition to switching on and shutting down proving program sent according to tested client Test result and switching on and shutting down test result generate the test report of the tested client.
Above-mentioned automated testing method after powering on booting, judges whether it is and starts for the first time, if for the first time, then empties tested The test recording area of client starts the unit testing program in tested client, automatically to ensure the accuracy of test result The test of each unit test program is completed, and test result is sent to testing service end, tests a unit testing program Afterwards, judge whether each unit test program is completed, without when, continue to start next unit testing program, until each list First test program is completed, and is not required to the switching that manual operation carries out different units test, improves testing efficiency, and test report Announcement is automatically generated by testing service end, is saved manual operation, is improved report generation efficiency, reduce cost of labor.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of tested client characterized by comprising
Starting module opens on testing service end for being connected by communication interface tested client with testing service end Process corresponding with tested client is moved, each process corresponding to tested client is mutually indepedent, and the process is for monitoring quilt The test process for surveying client, tested client is connected by power control with testing service end, and to tested client After end powers on booting, start the unit testing program in tested client;
Judgment module, for judging whether current unit testing program is switching on and shutting down proving program;
Sending module, for being sent out to testing service end when judging current unit testing program is switching on and shutting down proving program It send switching on and shutting down validation test to instruct, the power supply control is passed through according to switching on and shutting down validation test instruction by the testing service end Device processed carries out switching on and shutting down test to tested client;
Test module, for completing current list when judging current unit testing program is not switching on and shutting down proving program First test program updates the test mode of the unit testing program, and the test mode of the unit testing program is labeled as having tested, Obtain the test result of the unit testing program;
The sending module is also used to the test result being sent to the testing service end by communication interface;
The judgment module is also used to after the test result for obtaining the unit testing program, judges that each unit test program is It is no to be completed, if so, terminating, if it is not, then the starting module is also used to start next unit testing program, and described Judgment module, sending module and test module work on, until each unit test program is completed.
2. tested client according to claim 1, which is characterized in that the tested client further include:
Detection module, for judging tested client whether for the first time electrifying startup;
Module is emptied, for when judging tested client is electrifying startup for the first time, emptying the test note in tested client Area is recorded, then starts the unit testing program in tested client by the starting module again;
The judgment module is also used to judge that each unit test program is when judging tested client is not electrifying startup for the first time It is no to be completed.
3. a kind of testing service end characterized by comprising
Receiving module, the switching on and shutting down validation test instruction sent for receiving tested client, and receive the tested client The test result of remaining each unit test program in addition to switching on and shutting down test program sent is held, and receives the tested client The instruction that each unit test program of transmission is completed;
Switching on and shutting down authentication module, for passing through power control to the tested visitor according to switching on and shutting down validation test instruction Family end carries out switching on and shutting down test, obtains switching on and shutting down test result;
Test record processing module is surveyed for recording remaining each unit in addition to switching on and shutting down test program that tested client is sent The test result and switching on and shutting down test result of program are tried, and receives what the tested client was sent in the receiving module The test result sent when the instruction that each unit test program is completed according to tested client and switching on and shutting down test knot Fruit generates the test report of the tested client;
Wherein, start process corresponding with tested client on testing service end, each process corresponding to tested client Independently of each other, which is used to monitor the test process of tested client.
4. testing service end according to claim 3, which is characterized in that the switching on and shutting down authentication module is also used to according to institute Switching on and shutting down validation test instruction is stated, cut-offing instruction is sent to the power control, by the power control according to institute It states cut-offing instruction to power off the tested client, and sends electrical instruction and power-on instruction to the power control, The tested client is powered according to the electrical instruction by the power control and is referred to according to the booting The control tested client booting is enabled, and receives the tested client open state of the power control detection, The open state is handled to obtain corresponding switching on and shutting down test result.
5. a kind of automatization test system, which is characterized in that including being tested client, testing service end and power control, The tested client is connected with the testing service end by communication interface, and the tested client passes through the power supply control Device processed is connected with the testing service end;The tested client tested client as stated in claim 1 or 2, institute State testing service end testing service end as described in claim 3 or 4.
6. automatization test system according to claim 5, it is characterised in that
The power control includes switch control module, switch module, the control module that is switched on and powers on feedback module;
The switch control module is used to receive the cut-offing instruction that the switching on and shutting down authentication module is sent, according to the cut-offing instruction Power supply of the switch module disconnection to the tested client is controlled, and receives the logical of the switching on and shutting down authentication module transmission Electricity instruction controls power supply of the switch module conducting to the tested client according to the electrical instruction;
The booting control module is used to receive the power-on instruction that the switching on and shutting down authentication module is sent, according to the power-on instruction Control the tested client booting;
The open state is fed back to institute for detecting the open state of the tested client by the feedback module that powers on State testing service end.
7. a kind of automated testing method, comprising the following steps:
Tested client is being connected with testing service end by communication interface, starting and tested client on testing service end Corresponding process, each process corresponding to tested client is mutually indepedent, which is used to monitor the test of tested client Tested client is connected by power control with testing service end by process, and after powering on booting to tested client, is opened Unit testing program in dynamic tested client;
Judge whether current unit testing program is switching on and shutting down proving program, if so, sending switching on and shutting down to testing service end Validation test instruction passes through the power control pair according to switching on and shutting down validation test instruction by the testing service end Tested client carries out switching on and shutting down test and updates the survey of the unit testing program if it is not, then completing current unit testing program Examination state, the test mode of the unit testing program obtain the test result of the unit testing program labeled as having tested, and The test result is sent to the testing service end by communication interface, and judges whether each unit test program is tested Finish, if so, terminating, if it is not, then starting next unit testing program, until each unit test program is completed.
8. the method according to the description of claim 7 is characterized in that in the unit testing program started in tested client The step of before, the method also includes:
Tested client whether for the first time electrifying startup is judged, if so, emptying the test recording area in tested client, then again The step of starting the unit testing program in tested client is executed, if it is not, then executing the judgement each unit test program is No the step of being completed.
9. the method according to the description of claim 7 is characterized in that the testing service end is according to the switching on and shutting down validation test It instructs and includes: to the step of tested client progress switching on and shutting down test by the power control
The testing service end is instructed according to the switching on and shutting down validation test, sends cut-offing instruction to the power control, The tested client is powered off according to the cut-offing instruction by the power control;
The testing service end sends electrical instruction and power-on instruction to the power control, by the power control The tested client is powered according to the electrical instruction and the tested client is controlled according to the power-on instruction End booting;
The testing service end receives the tested client open state of the power control detection, to the open state Processing obtains corresponding switching on and shutting down test result, and records the switching on and shutting down test result.
10. method according to any one of claims 7 to 9, which is characterized in that the method also includes:
The testing service end receives remaining each unit test in addition to switching on and shutting down test program that the tested client is sent The test result of program, and when receiving the instruction that each unit test program that the tested client is sent is completed, The switching on and shutting down test result of the test result and the testing service end switch machine test record that are sent according to tested client is raw At the test report of the tested client.
CN201410067352.9A 2014-02-26 2014-02-26 Automated testing method and system Active CN104866418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410067352.9A CN104866418B (en) 2014-02-26 2014-02-26 Automated testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410067352.9A CN104866418B (en) 2014-02-26 2014-02-26 Automated testing method and system

Publications (2)

Publication Number Publication Date
CN104866418A CN104866418A (en) 2015-08-26
CN104866418B true CN104866418B (en) 2019-01-04

Family

ID=53912264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410067352.9A Active CN104866418B (en) 2014-02-26 2014-02-26 Automated testing method and system

Country Status (1)

Country Link
CN (1) CN104866418B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106093635A (en) * 2016-06-03 2016-11-09 深圳市樊溪电子有限公司 Mobile terminal ageing testing method, Apparatus and system
CN107608833A (en) * 2016-07-12 2018-01-19 研祥智能科技股份有限公司 Long-range control method and device based on test device for computer opening/closing
CN107870271A (en) * 2016-11-03 2018-04-03 珠海市杰理科技股份有限公司 Automated testing method and device
CN107632256A (en) * 2017-08-21 2018-01-26 上海斐讯数据通信技术有限公司 A kind of relay stability test method, apparatus and system
CN108536607B (en) * 2018-04-20 2021-06-08 深圳前海微众银行股份有限公司 UI test method, device and readable storage medium
CN110197698B (en) * 2019-05-23 2021-03-05 东莞记忆存储科技有限公司 Method and device for automatically testing influence of different power states of SSD (solid State drive)
CN111007336A (en) * 2019-11-29 2020-04-14 四川爱联科技有限公司 Module production test power-on and power-off automatic detection system and method based on serial port communication
CN112578758B (en) * 2020-12-24 2022-05-27 深圳市得一微电子有限责任公司 Multi-power-supply test control system and device
CN113630289B (en) * 2021-07-15 2023-06-30 深圳市亿联无限科技有限公司 Test system and test method for improving production efficiency of gateway equipment
CN113704039A (en) * 2021-09-03 2021-11-26 北京同方信息安全技术股份有限公司 Auxiliary test equipment, system and method for computer product test
CN115174430B (en) * 2022-06-30 2024-01-26 中车青岛四方车辆研究所有限公司 Method and device for testing starting time of track traffic vehicle-mounted equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060195894A1 (en) * 2005-02-25 2006-08-31 Microsoft Corporation Windows remote debugger service
CN101206600A (en) * 2006-12-22 2008-06-25 华硕电脑股份有限公司 Testing device and method for testing open/close machine of computer system
CN102147446A (en) * 2010-02-09 2011-08-10 佛山市顺德区顺达电脑厂有限公司 Automatic testing method and system applying same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060195894A1 (en) * 2005-02-25 2006-08-31 Microsoft Corporation Windows remote debugger service
CN101206600A (en) * 2006-12-22 2008-06-25 华硕电脑股份有限公司 Testing device and method for testing open/close machine of computer system
CN102147446A (en) * 2010-02-09 2011-08-10 佛山市顺德区顺达电脑厂有限公司 Automatic testing method and system applying same

Also Published As

Publication number Publication date
CN104866418A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN104866418B (en) Automated testing method and system
US20180006840A1 (en) Wearable device and controlling method thereof, and system for controlling smart home
CN107870271A (en) Automated testing method and device
CN104766007B (en) A kind of method that the fast quick-recovery of sandbox is realized based on file system filter driver
CN106293734A (en) The method and device of detection android terminal information
CN104978266B (en) A kind of application testing method and device
US10182273B2 (en) Configurable secure mobile tool for AMI and AMR metering systems
CN105139470A (en) Checking-in method, device and system based on face recognition
CN107085380A (en) A kind of intelligent domestic system customer location determination methods and electronic equipment
CN108391278A (en) The test analysis of aerocraft system based on 4G networks and diagnostic system and method
CN113407393A (en) Chip verification method, terminal device, verification platform and storage medium
CN110480633B (en) Method and device for controlling equipment and storage medium
CN102902574B (en) Cooperative processing method and device of multiple information flow nodes
TW200819772A (en) Testing apparatus and method for testing boot and shut-down process of computer system
CN106708688B (en) Module test method and terminal
CN106331169A (en) Method for reporting loss of mobile terminal and cloud customer terminal, cloud server, mobile terminal
CN106533810A (en) Log management methods, terminal and cloud server
CN106612215A (en) Integrated remote detection device and method based on Ethernet
US20150178068A1 (en) Electric product and method for updating firmware of the same
CN106954281A (en) A kind of WIFI connection methods and device
CN107590062B (en) Multi-client interaction testing method and device
CN107046686B (en) The treating method and apparatus of radio network information
CN106161409A (en) A kind of agent framework service system including local component and method
CN104915291B (en) Terminal restarts verification method and system
CN109684142A (en) A kind of method, system and the equipment of the test of BMC time accuracy

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20230719

Address after: 518000 1701, Yanxiang Science and Technology Building, No. 31, High-tech Middle 4th Road, Maling Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong Province

Patentee after: Yanxiang smart IOT Technology Co.,Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.