CN107122280A - The automated testing method and system of DUT basic tests - Google Patents

The automated testing method and system of DUT basic tests Download PDF

Info

Publication number
CN107122280A
CN107122280A CN201710292410.1A CN201710292410A CN107122280A CN 107122280 A CN107122280 A CN 107122280A CN 201710292410 A CN201710292410 A CN 201710292410A CN 107122280 A CN107122280 A CN 107122280A
Authority
CN
China
Prior art keywords
dut
test
testing method
automated testing
latest edition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710292410.1A
Other languages
Chinese (zh)
Inventor
朱渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication 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 CN201710292410.1A priority Critical patent/CN107122280A/en
Publication of CN107122280A publication Critical patent/CN107122280A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The automated testing method of the DUT basic tests of the present invention, including:S1:Automatic connection version management server, and DUT version path is entered to obtain DUT latest edition according to DUT entry names, and the latest edition is downloaded to local path;S2:DUT WEB pages are opened, and enter the upgrading page and import latest edition to upgrade to DUT;S3:The testing results use-case on DUT, and test result is sent to corresponding terminal;If also, test passes through, terminating operation;If test does not pass through, step S4 is continued executing with;S4:State, and the repeat step S1 and S2 after wait terminates are remained waiting in one section of preset time;S5:To it is preceding once test in failure item tested to verify bug reparation situation, if also, test do not pass through, continue executing with step S4, advantage is:Efficiency is improved, shortens test period, reduces cost.

Description

The automated testing method and system of DUT basic tests
Technical field
The invention belongs to the automated testing method and system of computer realm, more particularly to a kind of DUT basic tests.
Background technology
DUT refers to equipment in test, and equipment under test, generally, DTU include a variety of functions, it is necessary to by the survey of periphery Examination is recommended to test.At present, the function of diseases test for DUT each project is manual test, it is necessary to tester To each project these basic functions of retest again and again, a large amount of testing times are taken, tester is to project for influence Do deeper into test, and it is high and the shortcomings of can not test parallel DUT also to there is testing cost.
In order to solve the above-mentioned technical problem, people have carried out long-term exploration, Chinese patent disclose it is a kind of be used at full speed, Solution [the application number of parallel DUT tests:CN201180036990.9], the system includes:Configurable IC, its It is programmed to provide:Resolution chart for ATE;And towards at least one measured device DUT interface;With And towards the connection of at least one DUT, wherein the connection is directly coupled in the configurable I C and described at least one Between individual DUT.
This programme solves the problem of can not testing parallel DUT.
For another example, a kind of method of testing and system [application number:CN200910077512.7], this method includes:Equipment under test DUT obtains the test program from ATE ATE, is initialized according to the test program;The DUT, which is received, to be surveyed Trial signal, is tested, and output test result according to the test signal;The ATE readings test result, and according to The test result determines whether the DUT meets the requirements, and the ATE is by the test program to apply pattern force Pattern is sent on the port of the DUT;After electricity on the DUT, the test program on the port, this programme are read Testing cost and fault coverage can be reduced.
Although such scheme solves the subproblem of prior art to a certain extent, do not have also to basic function Fully achieve the automation of test, it is desired nonetheless to which tester puts into the more time, however it remains testing efficiency is low, test is difficult The problems such as spending high.
The content of the invention
Regarding the issue above, the present invention provides it is a kind of be used for improve testing efficiency DUT basic tests from Dynamicization method of testing;
It is another object of the present invention in view of the above-mentioned problems, offer is a kind of can to improve the DUT basic tests of testing efficiency Automatization test system.
To reach above-mentioned purpose, present invention employs following technical proposal:
A kind of automated testing method of DUT basic tests, comprises the following steps:
S1:After the system under starting state is connected to DUT, automatic connection version management server, and according to DUT projects Name enters DUT version path to obtain DUT latest edition, and downloads the latest edition to originally after latest edition is got Ground path;
S2:Open DUT WEB pages, and enter upgrading the page by the DUT in locally downloading path in step sl most Redaction imports to upgrade to DUT;
S3:The testing results use-case on DUT, and test result is sent to corresponding terminal after the completion of operation;Also,
If test passes through, terminate operation;
If test does not pass through, step S4 is continued executing with;
S4:State is remained waiting for wait bug to repair in one section of preset time, and the repeat step S1 after wait terminates And S2;
S5:Failure item in preceding once test is tested to verify bug reparation situation, also,
If test passes through, terminate operation;
If test does not pass through, step S4 is continued executing with.
By above-mentioned technical proposal, system is only needed in all Basic function testings of the DUT to first version one time, In later release, it is only necessary to the regression test verified to the bug that first version is tested out, realize project Basic function testing and bug checking integration.
In the automated testing method of above-mentioned DUT basic tests, in step sl, described DUT entry names are by surveying Examination personnel input;
In step s3, described test case is chosen or inputted by tester.
In the automated testing method of above-mentioned DUT basic tests, in step sl, affiliated version management server For ftp version management servers, and described system is serviced by calling ftp.connect orders to be connected to ftp version managements Device.
In the automated testing method of above-mentioned DUT basic tests, in step sl, described system is by calling Ftp.cwd orders with according to DUT entry names enter DUT version path.
In the automated testing method of above-mentioned DUT basic tests, in step sl, described system is by calling Ftp.nlst obtains DUT latest edition.
In the automated testing method of above-mentioned DUT basic tests, in step sl, described system is by calling Ftp.retrbinary command downloads DUT latest edition is to local path.
In the automated testing method of above-mentioned DUT basic tests, in step s 2, described system is by calling DUT WEB pages are opened in open browser and click element orders.
In the automated testing method of above-mentioned DUT basic tests, in step s 2, described system is by calling Choose file orders import local path latest edition and DUT are upgraded.
In the automated testing method of above-mentioned DUT basic tests, in step s3, described system is by calling Pybot-t orders testing results use-case on DUT, and by calling smtp.connect and smtp.sendmail orders to survey Test result is sent to corresponding terminal.
A kind of automatization test system of the DUT basic tests of the automated testing method based on DUT basic tests.
Present invention high efficiency extraction subscription client ID method and system from URL has following excellent compared to prior art Point:
1st, simplify difficulty of test, improve testing efficiency;
2nd, mitigate tester's work difficulty, shorten test period, reduce product cost.
Brief description of the drawings
Fig. 1 is the method for testing flow chart of the embodiment of the present invention one.
Embodiment
The present invention is applied to DUT basic test, can overcome cumbersome to product test process in the prior art, it is necessary to hand Difficulty of test that the dynamic basic function to each project carries out calibration tape is high, testing efficiency is low, test period is long, and product The various problems such as cost height, it is proposed that one kind, which has, can simplify difficulty of test, the DUT bases for the advantages of improving testing efficiency are surveyed The automated testing method and system of examination.
The following is the preferred embodiments of the present invention and with reference to accompanying drawing, technical scheme is further described, But the present invention is not limited to these embodiments.
Embodiment one
As shown in figure 1, the automated testing method of the DUT basic tests of the present embodiment, comprises the following steps:
DUT is connected to the system for test by tester;
The input DUT entry names after DUT is connected in test system, and choose the automatic test cases to be tested simultaneously Activation system;
Specifically, there is the automatic test cases option that multiple confession testers select, so test in test system Personnel need to only choose the option for needing to test in multiple automatic test cases options, can only choose an option, Multiple options can be chosen, test needs are specifically seen.
Certainly, input frame is also provided with test system, tester can also input in input frame and test Automatic test cases keyword, the corresponding option of test case that tester is inputted is prominent in all multi-options Display or preferential display are chosen with facilitating;Certainly, tester can also directly input the automation to be tested in input frame and survey Then the full name of example on probation is directly appended to test item.
This method by inputting automatic test cases keyword or full name is applied to have multiple automatic tests The situation of use-case option, saves the time that target automatic test cases option is searched in numerous automatic test cases options, Directly it is manually entered lookup or is directly manually entered to improve testing efficiency.
When the system detectio under starting state performs following steps to after there is DUT connections:
S1:System connects version management server automatically,
And according to DUT entry names enter DUT version path to obtain DUT latest edition, also,
The latest edition is downloaded after latest edition is got to local path;
Specifically,
Version management server is ftp version management servers, and system is by calling ftp.connect orders to be connected to Ftp version management servers;
Further, system by call ftp.cwd orders with according to DUT entry names enter DUT version path;
Further, system is by calling ftp.nlst orders to obtain DUT latest edition;
Further, system is by calling ftp.retrbinary command downloads latest edition to local path;
S2:DUT WEB pages are opened, and enter upgrading page importing and are preserved in step sl to the latest edition of local path This progress is upgraded;
Specifically,
System is by calling open browser and click element orders to open DUT WEB pages;
Further, system is risen by calling choose file orders to import local path latest edition to DUT Level;
S3:The test case that testing results personnel choose on DUT, operation completes detection test result;
And test result is sent to corresponding terminal, the corresponding terminal can for the corresponding director of the DUT projects and Research and development department etc., also,
If test passes through, i.e., test result is PASS, then terminates operation;
If test does not pass through, i.e., test result is FALL, then continues executing with step S4;
Specifically,
System is by calling pybot-t orders testing results use-case on DUT;
System is sent to corresponding end by calling smtp.connect and smtp.sendmail orders by test result End;
S4:State is remained waiting for wait bug to repair in one section of preset time, and the preset time is corresponding to repair Conventional Time needed for bug, and continue executing with following steps after wait terminates:
System calls ftp.connect orders to connect ftp version management servers;And ftp.cwd orders are called according to DUT Entry name enters DUT version path;
Then, call ftp.nlst to obtain latest edition, that is, the item of a preceding test crash is subjected to bug and repair it Version afterwards, and ftp.retrbinary command downloads latest edition is called to local path;
Unceasingly, system is called open browser and click element orders to open DUT WEB pages and enter and risen Level page invocation choose file orders import the upgrading of local path latest edition progress again;
DUT after upgrading each time is newest and the failure item in a preceding test process has been carried out into bug reparations Version.
S5:Failure item in preceding once test is tested to verify bug reparation situation, also,
If test passes through, terminate operation;
If test does not pass through, step S4 is continued executing with.
Specifically, in the test to the second edition, system is only tested to test the item that fails in being tested in the first edition Bug reparation situation is demonstrate,proved, is embodied in:
System calls pybot-r orders to carry out the reparation situation that bug is verified in test to the failure item in preceding once test, together Sample, test is completed after detection test result, calls smtp.connect and smtp.sendmail orders to send test result To corresponding terminal,
Or, test result can also be sent to corresponding terminal by system using other forms.
This time, during that is, testing the second edition, if the result tested all failure items is Test passes through, i.e., test result is PASS, then terminates operation;
But, if the result of test is does not pass through there are still project, i.e., test result is FALL, then repeat step S4, State is remained waiting in one section of preset time to wait after bug reparations, repeat step S1 and S2, and after step S2 terminates It is directly entered step S5;
The step of herein with testing the first edition, is not exclusively:
The first edition performs step S3 according to normal sequence upon step s 2, i.e., active to the institute of the first edition by step S3 Can all it be tested with the qualified project of filler test.
But when testing the second edition, the third edition and each version below, after step S2 is performed, directly Meet execution step S5.
It is specifically described below using the second edition:
Because step S1 and step S2 now is contained in step S4, step S4 performs step S5, institute after performing So that the step S2 in step S4 directly performs step S5 after performing, and the DUT now tested at step S5 repaiies for bug DUT after multiple, due to, the DUT of the second edition and DUT of the first edition except the item with failing in first time test process is different Outside (failure item repaired) remaining project is consistent, so step S5 is not tested the DUT repertoires of the second edition, The BUG tested out to previous release is needed to carry out validation test;
Further illustrate, run in the test result to the second edition for test by then terminating, still, if to the second edition Test result in there are still project not by then continuing to test the third edition;
Similarly, operation is then being terminated to passing through in the test result to the third edition for test, still, if to the third edition Test result in there are still project not by then continuing that fourth edition is carried out to test and so go round and begin again, until basic function Untill improving.
Further, the DUT described in the present embodiment is is devices under, and DUT basic function includes:
Log in test, quick guide (PPPoE, DHCP, StaticIP, wireless setting), (PPPoE is set substantially for online setting Put and special dialing, DHCP, StaticIP), wireless setting, system administration (upgrading, factory reset, restart, change management Member's password, exit) etc. the essential function of these user's scenes, it is ensured that configuration is normal, function is intact, can normally access net Network.
The method of the present embodiment is mainly used in DUT basic tests, and constantly upgrading repairs version and to preceding in test process The bug once tested out carries out regression test checking, simplifies difficulty of test;Improve testing efficiency;Mitigate tester's work Difficulty;Shorten test period;Reduce product cost.
Embodiment two
The present embodiment is similar with embodiment, and difference is, the present embodiment discloses a kind of based on DUT basic tests Automated testing method DUT basic tests automatization test system.
Specifically, the automatization test system of DUT basic tests include the interactive module that is interacted with tester and Automatic test module, tester inputs DUT entry names by interactive module, needs the test case of test, and to system It is configured;
Further, automatic test module includes first edition test module and repairs version test module again, first edition test Module to DUT institute it is functional all test one time, repair version test module the preceding bug once tested out is surveyed again Examination.
The system of the present embodiment can help tester to improve testing efficiency, project can automatically be tested, subtracted The work difficulty of light tester, improves testing efficiency, while shortening test period, reduces product cost.
The system of the present invention only needs to all to DUT Basic function testings in first version test one time, In later release, it is only necessary to the regression test verified to the bug that previous version is tested out, it is not necessary to carry out manually Test, need not more repeat test over and over again to each project, realize the Basic function testing of project manually And bug checking it is integrated while, liberate the testing time of tester, contribute to tester by the time saved Project is done deeper into test, improve basic function testing efficiency while improve product quality.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology neck belonging to of the invention The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode Generation, but on the premise of the principle and essence without departing substantially from the present invention, spirit without departing from the present invention or surmount appended power Scope defined in sharp claim, these changes and modification each fall within protection scope of the present invention.
Although more having used terminal, version management server, DUT, the upgrading page, test case, DUT projects herein Name, ftp.cwd orders, version path, ftp.nlst orders, ftp.retrbinary orders, open browser orders, The term such as click element orders, choose file orders, pybot-t, smtp.connect, smtp.sendmail, but It is not precluded from the possibility using other terms.It is used for the purpose of more easily describing and explaining the present invention's using these terms Essence;Any additional limitation is construed as all to disagree with spirit of the present invention.

Claims (10)

1. a kind of automated testing method of DUT basic tests, it is characterised in that comprise the following steps:
S1:After the system under starting state is connected to DUT, automatic connection version management server, and entered according to DUT entry names Enter DUT version path to obtain DUT latest edition, and the latest edition is downloaded to local road after latest edition is got Footpath;
S2:The DUTWEB pages are opened, and enter the upgrading page by the latest edition of the DUT in locally downloading path in step sl Import to upgrade to DUT;
S3:The testing results use-case on DUT, and test result is sent to corresponding terminal after the completion of operation;Also,
If test passes through, terminate operation;
If test does not pass through, step S4 is continued executing with;
S4:Remain waiting for state in one section of preset time to wait bug to repair, and after wait terminates repeat step S1 and S2;
S5:Failure item in preceding once test is tested to verify bug reparation situation, also,
If test passes through, terminate operation;
If test does not pass through, step S4 is continued executing with.
2. the automated testing method of DUT basic tests according to claim 1, it is characterised in that in step sl, institute The DUT entry names stated are inputted by tester;
In step s3, described test case is chosen or inputted by tester.
3. the automated testing method of DUT basic tests according to claim 1 or 2, it is characterised in that in step S1 In, described version management server is ftp version management servers, and described system is by calling ftp.connect to order Order is connected to ftp version management servers.
4. the automated testing method of DUT basic tests according to claim 3, it is characterised in that in step sl, institute The system stated by call ftp.cwd orders with according to DUT entry names enter DUT version path.
5. the automated testing method of DUT basic tests according to claim 3, it is characterised in that in step sl, institute The system stated is by calling ftp.nlst to obtain DUT latest edition.
6. the automated testing method of DUT basic tests according to claim 3, it is characterised in that in step sl, institute The system stated is by calling ftp.retrbinary command downloads DUT latest edition to local path.
7. the automated testing method of DUT basic tests according to claim 6, it is characterised in that in step s 2, institute The system stated is by calling open browser and click element orders to open DUT WEB pages.
8. the automated testing method of DUT basic tests according to claim 7, it is characterised in that in step s 2, institute The system stated is upgraded by calling choose file orders to import local path latest edition to DUT.
9. the automated testing method of DUT basic tests according to claim 1 or 2, it is characterised in that in step S3 In, described system by calling pybot-t orders testing results use-case on DUT, and by call smtp.connect and Test result is sent to corresponding terminal by smtp.sendmail orders.
10. a kind of DUT bases of automated testing method of the DUT basic tests based on described in claim 1-9 any one The automatization test system of test.
CN201710292410.1A 2017-04-28 2017-04-28 The automated testing method and system of DUT basic tests Pending CN107122280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710292410.1A CN107122280A (en) 2017-04-28 2017-04-28 The automated testing method and system of DUT basic tests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710292410.1A CN107122280A (en) 2017-04-28 2017-04-28 The automated testing method and system of DUT basic tests

Publications (1)

Publication Number Publication Date
CN107122280A true CN107122280A (en) 2017-09-01

Family

ID=59726064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710292410.1A Pending CN107122280A (en) 2017-04-28 2017-04-28 The automated testing method and system of DUT basic tests

Country Status (1)

Country Link
CN (1) CN107122280A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309072A (en) * 2019-06-27 2019-10-08 上海移远通信技术股份有限公司 Communications module test method, testing service device and test machine
CN112231228A (en) * 2020-11-06 2021-01-15 广州极飞科技有限公司 Firmware upgrade test method, device, platform, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110208469A1 (en) * 2008-05-15 2011-08-25 Simeon Falk Sheye Automatic testing of a computer software system
CN102331970A (en) * 2011-07-28 2012-01-25 北京航空航天大学 Safety critical system-oriented automatic testing resource management method and platform
CN102419727A (en) * 2011-09-30 2012-04-18 宇龙计算机通信科技(深圳)有限公司 Automatic test method and device
CN102799508A (en) * 2012-07-09 2012-11-28 深圳市共进电子股份有限公司 Automatic test system and method
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method
CN106326093A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Automated testing system and testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110208469A1 (en) * 2008-05-15 2011-08-25 Simeon Falk Sheye Automatic testing of a computer software system
CN102331970A (en) * 2011-07-28 2012-01-25 北京航空航天大学 Safety critical system-oriented automatic testing resource management method and platform
CN102419727A (en) * 2011-09-30 2012-04-18 宇龙计算机通信科技(深圳)有限公司 Automatic test method and device
CN102799508A (en) * 2012-07-09 2012-11-28 深圳市共进电子股份有限公司 Automatic test system and method
CN106326093A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Automated testing system and testing method
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ROBERT V.BINDER: "《面向对象系统的测试》", 30 April 2001, 人民邮电出版社 *
徐拥军 等: "《软件测试技术、方法和环境》", 30 June 2012, 北京航空航天大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309072A (en) * 2019-06-27 2019-10-08 上海移远通信技术股份有限公司 Communications module test method, testing service device and test machine
CN112231228A (en) * 2020-11-06 2021-01-15 广州极飞科技有限公司 Firmware upgrade test method, device, platform, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103631720B (en) The generation method and apparatus of test case
CN101241467B (en) Automatized white box test system and method facing to WEB application
CN105095059B (en) A kind of method and apparatus of automatic test
CN106569118A (en) Chip short circuit failure detection system and method
CN103823747A (en) Automatic regression testing method
CN105955749A (en) Continuous software project integration method and device
CN107896244A (en) A kind of distribution method of version file, client and server
CN109446075A (en) Interface testing method and device
CN107122293A (en) software performance testing method, device, server and system
CN106708716A (en) Software testing method, device and system
CN106326116A (en) Method and device for testing product
CN108984403A (en) The verification method and device of FPGA logical code
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN109710528A (en) A kind of test script generation method, device, equipment and medium
CN105117340B (en) URL detection methods and device for iOS browser application quality evaluations
CN107122280A (en) The automated testing method and system of DUT basic tests
CN104572225A (en) Novel method for testing online updating stability of BIOS
CN110297749B (en) Method and terminal for testing new function
CN110119348A (en) A kind of method and terminal of software upgrading test
CN107885627A (en) A kind of server automated test system and method
CN107590064A (en) A kind of application upgrade method of testing, device and system
CN115794639B (en) Visual test based on flow and visual simulation test system and method
CN109976963A (en) A kind of method and apparatus that the BMC test macro based on general-purpose platform is realized
CN107509215A (en) A kind of wireless authentication automated testing method and system
CN111010308B (en) KVM service test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Shanghai Feixun Data Communication Technology Co., Ltd.

Address before: 201616 Shanghai City, Songjiang District Road No. 3666

Applicant before: Shanghai Feixun Data Communication Technology Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170901