CN106598857A - Method and device for testing electronic equipment based on automatic testing tool - Google Patents
Method and device for testing electronic equipment based on automatic testing tool Download PDFInfo
- Publication number
- CN106598857A CN106598857A CN201611154173.4A CN201611154173A CN106598857A CN 106598857 A CN106598857 A CN 106598857A CN 201611154173 A CN201611154173 A CN 201611154173A CN 106598857 A CN106598857 A CN 106598857A
- Authority
- CN
- China
- Prior art keywords
- test
- testing
- plural number
- packet
- electrical equipment
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Abstract
The invention provides a method and a device for testing electronic equipment based on an automatic testing tool. The method and the device are used for solving the problem that the existing testing efficiency is not high. The device comprises an automatic testing tool processing unit, wherein the automatic testing tool processing unit is used for reading preset configuration information containing testing groups obtained by setting testing projects according to different attributes, a starting sequence of the testing groups and script files for operating the testing groups, and calling the corresponding script files in sequence to test the catalogue of the testing groups according to the starting sequence; each testing group in the testing groups comprises one or more test projects with same attribute and/or one or more testing groups with same attribute, and the testing time of each testing project in the testing groups is similar and is not influence to each other. Moreover, the invention also provides a corresponding method, and the testing efficiency can be greatly promoted.
Description
Technical field
The present invention relates to the measuring technology in electronic equipment production, more particularly to a kind of electricity based on automatic testing instrument
Sub- apparatus testing method and device.
Background technology
In current electronic equipment production process, such as notebook computer can all carry out the test of correlation before dispatching from the factory, and lead to
Cross this detection to judge whether the basic function of the electronic equipment intact or whether relevant interface is normal, also or relative program
Normal operation etc..But existing method of testing is mainly surveyed by the detection script on artificial click electronic equipment desktop
Try, and this still one way of testing is carried out, so as to cause testing efficiency not high;And lose if there is test in test process
Lose and manually retested, if more it is noted that the detection script surprisingly changed so can't be by
It was found that, this has buried certain uncertain factor to test job.
The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of based on automatic testing instrument
Testing for electrical equipment method and apparatus, it is inefficient for solving the problems, such as existing method of testing.
For achieving the above object and other related purposes, the present invention provides technical scheme below:
A kind of testing for electrical equipment device based on automatic testing instrument, including:One automatic testing instrument processing unit, uses
In read it is pre-setting, comprising the plural number test point that obtains is configured according to different tax group attributes to plural test event
One configuration of one script file of one of group and plural number test packet boot sequence and the operation plural number test packet
Information, and call the corresponding script file to survey the plural number test packet catalogue successively by the boot sequence
Examination;
Wherein, the plural number tests each test packet in packet includes one or institute of the plural number with identical tax group attribute
State test event or/and one or the test packet of the plural number with identical tax group attribute, and each institute in the test packet
The testing time for stating test event is close and be independent of each other.
In a preferred version, also include:One error log unit, for surveying in test process to the test event
Generate an error code and preserved during examination failure.
In a preferred version, also include:One test result reporting unit, for after the completion of the test process to survey
The test event of examination failure is marked and uploads its corresponding described error code.
In a preferred version, also include:One configuration information verification unit, enters for the configuration information to reading
Row verification simultaneously stops test when verification has modification to which.
In a preferred version, also include:One sentences unit automatically again, for all in the survey in the test packet
The test event of the test crash of examination process is retested automatically.
Present invention also offers a kind of testing for electrical equipment method based on automatic testing instrument, including:Reading is set in advance
It is putting, comprising the plural number test packet, and described multiple that obtains is configured according to different tax group attributes to plural test event
One configuration information of one script file of one of number test packet boot sequence and the operation plural number test packet, and by described
Boot sequence calls the corresponding script file to test the plural number test packet catalogue successively;Wherein, it is described multiple
Number tests each test packet in packet includes one or the test event of the plural number with identical tax group attribute or/and one
Or plural number has the test packet of identical tax group attribute, and the testing time for testing each test event in packet
It is close and be independent of each other.
In a preferred version, a mistake is generated in test process during test crash including test event described in a pair also
Code the step of preserved.
In a preferred version, also the test event of test crash is entered after the completion of the test process including one
Line flag the step of its corresponding described error code is uploaded.
In a preferred version, also verified including the configuration information that a pair read and repaiied to which in verification
The step of stopping test when changing.
In a preferred version, also including all test crash in the test process in test packet described in a pair
The step of test event is retested automatically.
As described above, the invention has the advantages that:The present invention by with reference to existing rapid test kits, according to
The problem of the testing for electrical equipment efficiency faced by this enterprise production process, there is provided a kind of that test event is grouped, so
Carry out the mode of concurrent testing afterwards to lift testing efficiency to the test event in each group so that production efficiency is improved, and
A scheme for more optimizing is additionally provided on the basis of this, the related safety and reliability of test is further improved.
Description of the drawings
Fig. 1 is a kind of original in one embodiment of testing for electrical equipment device based on automatic testing instrument of the present invention
Reason figure.
Fig. 2 be a kind of testing for electrical equipment device based on automatic testing instrument of the present invention in another embodiment
Schematic diagram.
Fig. 3 be a kind of testing for electrical equipment device based on automatic testing instrument of the present invention in another embodiment
Schematic diagram.
Fig. 4 be a kind of testing for electrical equipment device based on automatic testing instrument of the present invention in another embodiment
Schematic diagram.
Drawing reference numeral explanation
100 testing for electrical equipment devices
110 automatic testing instrument processing units
120 configuration informations
130 error log units
140 test result reporting units
150 configuration information verification units
160 sentence unit automatically again
Specific embodiment
Embodiments of the present invention are illustrated below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through concrete realities different in addition
The mode of applying is carried out or applies, the every details in this specification can also based on different viewpoints with application, without departing from
Various modifications and changes are carried out under the spirit of the present invention.It should be noted that, in the case where not conflicting, following examples and enforcement
Feature in example can be mutually combined.
Embodiment 1
See Fig. 1, the present embodiment provides a kind of testing for electrical equipment device based on automatic testing instrument, as illustrated, should
Testing for electrical equipment device 100 includes:One automatic testing instrument processing unit 110, for read pre-set, comprising foundation
Different tax group attributes plural test event is configured obtain plural number test packet, and it is described plural number test packet open
One configuration information 120 of the script file of dynamic order and the operation plural number test packet, and adjusted by the boot sequence successively
The plural number test packet catalogue is tested with the corresponding script file;Wherein, it is every in the plural number test packet
One tests packet includes one or the test event of the plural number with identical tax group attribute or/and one or plural with identical
In the test packet of tax group attribute, and the test packet, the testing time of each test event is close and mutual not shadow
Ring.
Wherein, with reference to Fig. 1, plural number test packet refers to test packet 1 ... tests this N number of test packet of packet N,
And multiple test events in each test packet, can be included, for example, there can be test event 11 in test packet 1, survey
Examination project 12 ... test event 1M, accordingly, can have test event N1, test event N2 ... to survey in test packet N
Examination project NM, specifically, N and M here can be the positive integers such as 1,2,3 ... N.
In addition, each test packet such as has test foot in test packet 1 also at least to there is a corresponding test script
Sheet 1, it is corresponding, if in test packet N, having test script N.
It will be appreciated that:First, test script 1 here can both be the test script for whole test packet,
It can also be comprising test event one test script of correspondence or one test script of multiple test event correspondences
Plural test script;Secondly, the boot sequence for testing the test of packet is carried out according to order is preset, such as by testing
The order of packet 1 ... test packet N is carried out successively, after each test packet terminates just enters next test packet;Most
Afterwards, each test packet in can also comprising one or more test packet, you can be test packet with nesting in the form of deposit
.
Based on such scheme, tax group is carried out according to the principle that a testing time is close and is independent of each other to all test events
Attribute is arranged, and so as to form different test packets, can have identical tax group comprising one or more in each test packet
The test event of attribute, then using automatic testing instrument come call corresponding script successively to it is each test packet test,
Test event in due to being grouped in test is carried out parallel, and the testing time is close, therefore can lift testing efficiency.
Wherein, the automatic testing instrument is QTP (abbreviation of Quick Test Professional), is existing one
Plant automatic testing instrument.
In a preferred embodiment, see Fig. 2, above-mentioned testing for electrical equipment device can also include an error log unit
130, for generating an error code to the test event in test process during test crash and being preserved.According to the mistake
The reason for code quickly can recognize test crash by mistake, the problem investigation being easy to during test crash.
Based on above preferred embodiment, in conjunction with Fig. 2, above-mentioned testing for electrical equipment device can also include a test result
Reporting unit 140, for being marked and which is right to the test event of test crash after the completion of the test process
The error code answered is uploaded.Testing for electrical equipment can be understood in order to engineer by error code is carried out upload
The ruuning situation of device, and carry out some corresponding modifications and adjust.
With reference to the various embodiments described above, Fig. 3 is seen, above-mentioned testing for electrical equipment device can also include that configuration information verification is single
Unit 150, is verified for the configuration information to reading and is stopped test when verification has modification to which.By this
Setting can prevent test script in the situation for having modification or be still operated by the situation of accidental destruction, improve test
Safety and reliability.
For example, the inspection of MD5 values can be carried out by the file being located to configuration information, judges whether file is illegally repaiied
Change, if the information that so send that is illegally modified, force to stop test, protect correct test result.
With reference to the various embodiments described above, Fig. 4 is seen, above-mentioned testing for electrical equipment device can also sentence single 160 automatically again including one,
For carrying out surveying again automatically to the test event of all test crash in the test process in the test packet
Examination.Based on above-mentioned automatic testing instrument, it is possible to achieve the test event of test crash is automatically retested, Er Qiesuo
The test event for having failure is equally carried out according to test packet test philosophy, i.e., the test event of all failures is all to hold parallel
Row is retested, therefore can greatly promote testing efficiency.
Embodiment 2
The present embodiment additionally provides a kind of testing for electrical equipment method based on automatic testing instrument, the testing for electrical equipment
Method includes:It is that reading pre-sets, the plural number for obtaining is configured to plural test event comprising according to different tax group attributes
Test packet, and the plural number test packet boot sequence and run one matching somebody with somebody for script file that the plural number test is grouped
Confidence ceases, and calls the corresponding script file to survey the plural number test packet catalogue successively by the boot sequence
Examination;Wherein, the plural number tests each test packet in packet includes one or the survey of the plural number with identical tax group attribute
The test that examination project or/and one or plural number have identical tax group attribute is grouped, and each survey in the test packet
Testing time of examination project is close and is independent of each other.
Wherein, it is contemplated that testing for electrical equipment method technical problem to be solved in the present embodiment and realize principle with
Above-mentioned testing for electrical equipment device is identical, therefore is not repeated to repeating part here.
In a preferred embodiment, the testing for electrical equipment method can also be being tested including test event described in a pair
A step of error code being generated in journey during test crash and is preserved.
In a preferred embodiment, the testing for electrical equipment method can also be right after the completion of the test process including one
The step of test event of test crash is marked and uploads its corresponding described error code.
In a preferred embodiment, the testing for electrical equipment method can also include the configuration information for reading for a pair
The step of being verified and stopped test when verification has modification to which.
In a preferred embodiment, the testing for electrical equipment method can also including in test packet described in a pair it is all
The step of test event of the test crash of the test process is retested automatically.
In actual applications, it is also based on such scheme to set up a test application program with interactive interface, i.e.,
According to the testing for electrical equipment method of above-mentioned offer, formation one is built with reference to the basic computer programming language of art technology
The individual computer program with interactive interface, you can to correspond to above-mentioned testing for electrical equipment device.
In sum, the present invention is by with reference to existing rapid test kits, being faced according to this enterprise production process
The problem of testing for electrical equipment efficiency, there is provided a kind of to be grouped to test event, then enters to the test event in each group
The mode of row concurrent testing is lifting testing efficiency so that production efficiency is improved, and additionally provides one on this basis more
For the scheme of optimization, the related safety and reliability of test is further improved.So, the present invention effectively overcomes existing skill
Various shortcoming in art and have high industrial utilization.
The principle and its effect of above-described embodiment only illustrative present invention, it is of the invention not for limiting.It is any ripe
The personage for knowing this technology all can carry out modifications and changes to above-described embodiment under the spirit and the scope without prejudice to the present invention.Cause
This, those of ordinary skill in the art is complete with institute under technological thought without departing from disclosed spirit such as
Into all equivalent modifications or change, should by the present invention claim be covered.
Claims (10)
1. a kind of testing for electrical equipment device based on automatic testing instrument, it is characterised in that include:
One automatic testing instrument processing unit, for read it is pre-setting, comprising according to different tax group attributes to plural number test
Project be configured obtain plural number test packet, and one of plural number test packet boot sequence and run the plural number
One configuration information of one script file of test packet, and the corresponding script file pair is called successively by the boot sequence
The plural number test packet catalogue is tested;
Wherein, the plural number tests each test packet in packet includes one or the survey of the plural number with identical tax group attribute
The test that examination project or/and one or plural number have identical tax group attribute is grouped, and each survey in the test packet
Testing time of examination project is close and is independent of each other.
2. the testing for electrical equipment device based on automatic testing instrument according to claim 1, it is characterised in that also wrap
Include:
One error log unit, for generating an error code to the test event in test process during test crash and giving
To preserve.
3. the testing for electrical equipment device based on automatic testing instrument according to claim 2, it is characterised in that also wrap
Include:
One test result reporting unit, for entering rower to the test event of test crash after the completion of the test process
Its corresponding described error code is simultaneously uploaded by note.
4. according to the arbitrary described testing for electrical equipment device based on automatic testing instrument of claim 1-3, it is characterised in that
Also include:
One configuration information verification unit, is verified for the configuration information to reading and when verification has modification to which
Stop test.
5. according to the arbitrary described testing for electrical equipment device based on automatic testing instrument of claim 1-3, it is characterised in that
Also include:
One sentences unit automatically again, for the test to all test crash in the test process in the test packet
Project is retested automatically.
6. a kind of testing for electrical equipment method based on automatic testing instrument, it is characterised in that include:
It is that reading pre-sets, comprising the plural number test point that obtains is configured according to different tax group attributes to plural test event
One configuration of one script file of one of group and plural number test packet boot sequence and the operation plural number test packet
Information, and call the corresponding script file to survey the plural number test packet catalogue successively by the boot sequence
Examination;
Wherein, the plural number tests each test packet in packet includes one or the survey of the plural number with identical tax group attribute
The test that examination project or/and one or plural number have identical tax group attribute is grouped, and each survey in the test packet
Testing time of examination project is close and is independent of each other.
7. the testing for electrical equipment method based on automatic testing instrument according to claim 6, it is characterised in that also include
Test event described in a pair generates an error code in test process and is preserved during test crash the step of.
8. the testing for electrical equipment method based on automatic testing instrument according to claim 7, it is characterised in that also include
One was marked to the test event of test crash after the completion of the test process and by its corresponding described wrong generation
The step of code is uploaded.
9. according to the arbitrary described testing for electrical equipment method based on automatic testing instrument of claim 6-8, it is characterised in that
The step of also being verified including the configuration information that a pair read and stopped test when verification has modification to which.
10., according to the arbitrary described testing for electrical equipment method based on automatic testing instrument of claim 6-8, its feature exists
In in being also grouped including test described in a pair, the test event of all test crash in the test process is carried out automatically
The step of retesting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611154173.4A CN106598857A (en) | 2016-12-14 | 2016-12-14 | Method and device for testing electronic equipment based on automatic testing tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611154173.4A CN106598857A (en) | 2016-12-14 | 2016-12-14 | Method and device for testing electronic equipment based on automatic testing tool |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106598857A true CN106598857A (en) | 2017-04-26 |
Family
ID=58801255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611154173.4A Pending CN106598857A (en) | 2016-12-14 | 2016-12-14 | Method and device for testing electronic equipment based on automatic testing tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598857A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108802517A (en) * | 2018-03-06 | 2018-11-13 | 许继集团有限公司 | A kind of test method and system of site protective device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1519721A (en) * | 2003-01-23 | 2004-08-11 | 英业达股份有限公司 | Dynamic extendable computer testing system as well as method |
CN1570873A (en) * | 2003-07-25 | 2005-01-26 | 英业达股份有限公司 | Testing tool integration system and method for computer production line |
CN101894058A (en) * | 2010-05-31 | 2010-11-24 | 北京航空航天大学 | Method and device for analyzing test coverage automatically aiming at automatic test system |
CN105511951A (en) * | 2016-01-06 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Task scheduling method and task scheduling system for automatic WIFI performance test platform |
CN105760296A (en) * | 2016-01-21 | 2016-07-13 | 深圳市同创国芯电子有限公司 | Automation testing control method, device and terminal |
-
2016
- 2016-12-14 CN CN201611154173.4A patent/CN106598857A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1519721A (en) * | 2003-01-23 | 2004-08-11 | 英业达股份有限公司 | Dynamic extendable computer testing system as well as method |
CN1570873A (en) * | 2003-07-25 | 2005-01-26 | 英业达股份有限公司 | Testing tool integration system and method for computer production line |
CN101894058A (en) * | 2010-05-31 | 2010-11-24 | 北京航空航天大学 | Method and device for analyzing test coverage automatically aiming at automatic test system |
CN105511951A (en) * | 2016-01-06 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Task scheduling method and task scheduling system for automatic WIFI performance test platform |
CN105760296A (en) * | 2016-01-21 | 2016-07-13 | 深圳市同创国芯电子有限公司 | Automation testing control method, device and terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108802517A (en) * | 2018-03-06 | 2018-11-13 | 许继集团有限公司 | A kind of test method and system of site protective device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9389849B2 (en) | Test case pattern matching | |
CN107992409A (en) | Method for generating test case, device, computer equipment and storage medium | |
Nguyen et al. | Detection of embedded code smells in dynamic web applications | |
CN108959068A (en) | Software interface test method, equipment and storage medium | |
CN106326108A (en) | New application testing method and device | |
Yulianto et al. | Automatic grader for programming assignment using source code analyzer | |
CN105760296A (en) | Automation testing control method, device and terminal | |
CN103530209B (en) | A kind of code keypad automated testing method | |
CN110119348B (en) | Software upgrading test method and terminal | |
CN103049374B (en) | Automatic testing method and device | |
CN103823665B (en) | SDK (software development kit) activeness analyzing method, network server and system | |
US9268944B2 (en) | System and method for sampling based source code security audit | |
CN107832176A (en) | Hard disk pressure automatic test approach and system under a kind of Windows | |
CN106598857A (en) | Method and device for testing electronic equipment based on automatic testing tool | |
CN107688534A (en) | Zonal testing method, apparatus, computer equipment and storage medium | |
CN111124894A (en) | Code coverage rate processing method and device and computer equipment | |
CN102521124B (en) | Method and system for outputting failure reasons | |
US10481969B2 (en) | Configurable system wide tests | |
CN104361012A (en) | Testing method and device for route data of urban rail traffic engineering | |
CN113282504A (en) | Incremental code coverage rate detection method and service development method and device | |
CN111078549B (en) | Code coverage rate processing method and device and computer equipment | |
CN114064489A (en) | Automatic testing method, device, equipment and readable storage medium | |
CN110362471A (en) | Test case processing method, system, terminal and storage medium | |
CN111736893A (en) | Software package version verification method and related device | |
Pathania et al. | Role of test case prioritization based on regression testing using clustering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170426 |
|
WD01 | Invention patent application deemed withdrawn after publication |