CN104932479B - A kind of automated testing method and system - Google Patents

A kind of automated testing method and system Download PDF

Info

Publication number
CN104932479B
CN104932479B CN201510204671.4A CN201510204671A CN104932479B CN 104932479 B CN104932479 B CN 104932479B CN 201510204671 A CN201510204671 A CN 201510204671A CN 104932479 B CN104932479 B CN 104932479B
Authority
CN
China
Prior art keywords
emulation
test
tested
data
module
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
CN201510204671.4A
Other languages
Chinese (zh)
Other versions
CN104932479A (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.)
CEIEC ELECTRIC TECHNOLOGY Inc
Original Assignee
CEIEC ELECTRIC TECHNOLOGY Inc
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 CEIEC ELECTRIC TECHNOLOGY Inc filed Critical CEIEC ELECTRIC TECHNOLOGY Inc
Priority to CN201510204671.4A priority Critical patent/CN104932479B/en
Publication of CN104932479A publication Critical patent/CN104932479A/en
Application granted granted Critical
Publication of CN104932479B publication Critical patent/CN104932479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0243Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model

Abstract

The invention provides a kind of automated testing method and system, in the automated testing method, is included in the AD emulation modes of operation in device being tested, the AD emulation modes include:Order receiving step, receive the order that computer control unit is sent;Input signal simulation process, according to the order received, consistent emulation signal is drawn to analog input signal of change caused by needs;Sampling output step, emulation signal is sampled with processing logic according to the data sampling consistent with true A/D module, discrete data values is obtained, is saved in samples storage module, there is provided to data processing module, realize the emulation input process for replacing true A/D module.Present invention has the advantages that:Controlled by computer, effectively utilize tested device resource, make to run on the AD emulation modules output emulation data inside tested device, as the input condition of test, can thoroughly break away from conventional method needs the limitation of tester, reduces test resource input.

Description

A kind of automated testing method and system
Technical field
The present invention relates to the technical field of measurement and test of secondary equipment in power system embedded intelligence measure and control device, more particularly to one Kind automated testing method and system.
Background technology
Substantial amounts of measuring and controlling equipment is needed to measure and control primary equipment in power system, simulation of the collection by conversion Signal is measured, realizes test and control function.Traditional method of testing be by tester export electric signal data to be tested Device is to simulate real working environment, and due to the development of embedded technology, intelligent monitoring equipment possesses more more complicated Function, more cumbersome more macrocyclic test operation is brought to traditional test process.Existing test process needs artificial manual The output parameter of ground modification tester, the functional parameter for configuring device being tested and the artificial object information for reading device being tested And verification, to obtain test result, testing procedure is cumbersome and manually perform step needs testing time for spending very long more slowly. , it is necessary to constantly apply electric signal in whole test process, tester works, it is necessary to consume electric energy always;Tester unit price Costliness, it is high to introduce cost.Traditional method of testing consumes a large amount of test resources.Because test process uses manual testing, have big The operation that amount machinery repeats, manually repeats and easily malfunctions or ignore details, and artificial retest, be required for every time The cost of spending same, the test above performed can not be accumulated and repeated, when test phase enters regression test, because manually The limitation of the cost and time schedule of test, tend not to be tested comprehensively, test coverage can decline.
The content of the invention
In order to solve the problems of the prior art, the invention provides a kind of automated testing method.
The invention provides a kind of automated testing method, is included in the AD emulation modes run in device being tested, institute Stating AD emulation modes includes:
Order receiving step, receive the order that computer control unit is sent;
Input signal simulation process, according to the order received, analog input signal of change caused by needs is drawn Consistent emulation signal;
Sampling output step, emulation signal is adopted with processing logic according to the data sampling consistent with true A/D module Sample, discrete data values are obtained, be saved in samples storage module, there is provided to data processing module, realized and replace true A/D module Emulate input process.
As a further improvement on the present invention, in the AD emulation modes, all analog quantitys of device being tested are led to Road is emulated, and covers all input channels, and quantification control parameter is amplitude, frequency and phase.
As a further improvement on the present invention, in the AD emulation modes, the form control emulation of use state sequence The output of data, single status sequence include all analog quantity channels, export identical amplitude, the analog quantity of phase and frequency letter Number and continue the default time, switched by different status switch to change the output of emulation data, realize the change of waveform And the output of various stable states and transient waveform.
As a further improvement on the present invention, computer control method is also included in the automated testing method, at this Computer control method includes:
Computer control unit communicates with device being tested, the output of control AD emulation modules, the function ginseng of device being tested Count the execution for adjusting, controlling test process, read test result data and relatively draw test result with expected results, all Condition entry, parameter tuning, process perform and result output be all pooled to computer control unit, computer control unit is held All test process of row, possess the function that test case is preserved, is loaded into and performed in batches, perform all Test cases technologies automatically Test report.
As a further improvement on the present invention,
Communication protocol module of the open communication interface to device being tested in the AD emulation modes, receive communication instruction The output of control emulation data, the configurable parameter of each status switch are write by a communication instruction, complete parameter configuration Start the output of the emulation data set by an enabled instruction afterwards;
Computer control unit performs the transmission of configuration-direct, it is not necessary to manual intervention communication control process, there is provided test The visualization interface at instrument interface is configured to AD emulation modules;
In the computer control method, communicated by establishing communication protocol with device being tested, be able to carry out testing Condition entry, parameter setting, result generate and to form a complete test case and perform, include the number of control AD emulation modules According to output, the functional parameter of device being tested, the test knot for inputting expected test result, reading device being tested are easily set Fruit data, comparing result draw test result;
In the computer control method, single test case can be saved as use-case file, import testing scheme All use-case files, are performed one by one automatically, are completed all test events, are realized automatic test.
Present invention also offers a kind of automatization test system, is included in the AD emulation modules run in device being tested, The AD emulation modules include:
Order receiver module, for receiving the order of computer control unit transmission;
Input signal emulation module, the order received for basis, to analog input signal of change caused by needs Draw consistent emulation signal;
Output module is sampled, for entering according to the data sampling consistent with true A/D module with processing logic to emulation signal Row sampling, obtains discrete data values, is saved in samples storage module, there is provided to data processing module, realizes and replaces true AD moulds The emulation input process of block.
As a further improvement on the present invention, output module is sampled, for being adopted according to the data consistent with true A/D module Sample samples with processing logic to emulation signal, obtains discrete data values, is saved in samples storage module, there is provided at data Module is managed, realizes the emulation input process for replacing true A/D module..
As a further improvement on the present invention, in the AD emulation modules, the form control emulation of use state sequence The output of data, single status sequence include all analog quantity channels, export identical amplitude, the analog quantity of phase and frequency letter Number and continue the default time, switched by different status switch to change the output of emulation data, realize the change of waveform And the output of various stable states and transient waveform.
As a further improvement on the present invention, computer control unit is also included in the automatization test system, at this Computer control unit includes:
Computer control unit communicates with device being tested, the output of control AD emulation modules, the function ginseng of device being tested Count the execution for adjusting, controlling test process, read test result data and relatively draw test result with expected results, all Condition entry, parameter tuning, process perform and result output be all pooled to computer control unit, computer control unit is held All test process of row, possess the function that test case is preserved, is loaded into and performed in batches, perform all Test cases technologies automatically Test report.
As a further improvement on the present invention,
Communication protocol module of the open communication interface to device being tested in the AD emulation modules, receive communication instruction The output of control emulation data, the configurable parameter of each status switch are write by a communication instruction, complete parameter configuration Start the output of the emulation data set by an enabled instruction afterwards;
Computer control unit performs the transmission of configuration-direct, it is not necessary to manual intervention communication control process, there is provided test The visualization interface at instrument interface is configured to AD emulation modules;
In the computer control unit, communicated by establishing communication protocol with device being tested, be able to carry out testing Condition entry, parameter setting, result generate and to form a complete test case and perform, include the number of control AD emulation modules According to output, the functional parameter of device being tested, the test knot for inputting expected test result, reading device being tested are easily set Fruit data, comparing result draw test result;
In the computer control unit, single test case can be saved as use-case file, import testing scheme All use-case files, are performed one by one automatically, are completed all test events, are realized automatic test.
The beneficial effects of the invention are as follows:
1. tester need not be used, the input condition using the emulation data that AD emulation modules export as test, Limitation and the resource consumption of tester can be broken away from;
2. need not be operated on device being tested and tester, computer control unit is defeated all conditions Enter, parameter tuning, process are performed and result output is all pooled on computer, there is provided more convenient, intuitively mode of operation, letter Change operating procedure;
3. by AD emulation modules, realization makes the test input condition that computerizeds control, then coordinates communication protocol to tested Trial assembly, which is put, to be controlled, and all operations are all performed by computer control system, is carried out test operation using computer, is realized The preservation and repetition of test operation, and the entrance of automatic test is provided;
4. computer control unit possesses the function that test case is preserved, is loaded into and performed in batches, all surveys are performed automatically Example generation test report on probation, realizes automatic test.All tests once performed are all recorded, formed complete , the comprehensive use-case storehouse of covering, when entering the regression test stage, carry out covering comprehensive test using automatic test, ensure Product does not return, and hardly increases testing cost, and testing efficiency is high, ensures the time schedule in regression test stage.
Brief description of the drawings
Fig. 1 is workflow diagram in AD emulation module main threads of the invention;
Fig. 2 is workflow diagram in AD emulation module Sampling interrupt threads of the invention;
Fig. 3 is the theory diagram of the present invention.
Embodiment
As shown in figure 3, the invention discloses a kind of automated testing method, the AD for being included in operation in device being tested is imitated True method, the AD emulation modes include:
Order receiving step, receive the order that computer control unit is sent;
Input signal simulation process, according to the order received, Fourier is passed through to analog input signal caused by needs Consistent emulation signal is calculated in leaf series formulas;
Sampling output step, emulation signal is adopted with processing logic according to the data sampling consistent with true A/D module Sample, discrete data values are obtained, be saved in samples storage module, there is provided to data processing module, realized and replace true A/D module Emulate input process.
In the AD emulation modes, all analog quantity channels of device being tested are emulated, cover all inputs Passage, quantification control parameter are amplitude, frequency and phase.
In the AD emulation modes, the output of the form control emulation data of use state sequence, single status sequence Including all analog quantity channels, identical amplitude, the analog signalses of phase and frequency and lasting default time are exported, is passed through Different status switch switches the defeated of the change for change the output of emulation data, realizing waveform and various stable states and transient waveform Go out.
Also include computer control method in the automated testing method, include in the computer control method:
Computer control unit communicates with device being tested, the output of control AD emulation modules, the function ginseng of device being tested Count the execution for adjusting, controlling test process, read test result data and relatively draw test result with expected results, all Condition entry, parameter tuning, process perform and result output be all pooled to computer control unit, computer control unit is held All test process of row, possess the function that test case is preserved, is loaded into and performed in batches, perform all Test cases technologies automatically Test report.
Communication protocol module of the open communication interface to device being tested in the AD emulation modes, receive communication instruction The output of control emulation data, the configurable parameter of each status switch are write by a communication instruction, complete parameter configuration Start the output of the emulation data set by an enabled instruction afterwards;
Computer control unit performs the transmission of configuration-direct, it is not necessary to manual intervention communication control process, there is provided test The visualization interface at instrument interface is configured to AD emulation modules;
In the computer control method, communicated by establishing communication protocol with device being tested, be able to carry out testing Condition entry, parameter setting, result generate and to form a complete test case and perform, include the number of control AD emulation modules According to output, the functional parameter of device being tested, the test knot for inputting expected test result, reading device being tested are easily set Fruit data, comparing result draw test result;
In the computer control method, single test case can be saved as use-case file, import testing scheme All use-case files, are performed one by one automatically, are completed all test events, are realized automatic test.
The invention also discloses a kind of automatization test system, including computer control unit and device being tested and its interior AD emulation modules are put, AD emulation modules, is realized by being implanted to the program inside device being tested, replaces real A/D module, imitate True data is transmitted to data processing module, simulates real AD sampling processes, and AD emulation modules have communication interface, can control output imitative The content of true data, without tester with regard to functional test can be carried out;Device being tested refers to the object of emulation test system test, Various embedded intelligence observing and controlling and protection device mainly in secondary equipment in power system.
In the automatization test system, it is included in the AD emulation modules run in device being tested, the AD emulation modules Including:
Order receiver module, for receiving the order of computer control unit transmission;
Input signal emulation module, the order received for basis, to analog input signal of change caused by needs Draw consistent emulation signal;
Output module is sampled, for entering according to the data sampling consistent with true A/D module with processing logic to emulation signal Row sampling, obtains discrete data values, is saved in samples storage module, there is provided to data processing module, realizes and replaces true AD moulds The emulation input process of block.Data processing module, which obtains, samples output data, progress data processing, output function result, During so as to test function treatment result is can obtain using emulation data as test input condition.
In the AD emulation modules, all analog quantity channels of device being tested are emulated, cover all inputs Passage, quantification control parameter are amplitude, frequency and phase.
In the AD emulation modules, the output of the form control emulation data of use state sequence, single status sequence Including all analog quantity channels, identical amplitude, the analog signalses of phase and frequency and lasting default time are exported, is passed through Different status switch switches the defeated of the change for change the output of emulation data, realizing waveform and various stable states and transient waveform Go out.
Also include computer control unit in the automatization test system, include in the computer control unit:
Computer control unit communicates with device being tested, the output of control AD emulation modules, the function ginseng of device being tested Count the execution for adjusting, controlling test process, read test result data and relatively draw test result with expected results, all Condition entry, parameter tuning, process perform and result output be all pooled to computer control unit, computer control unit is held All test process of row, possess the function that test case is preserved, is loaded into and performed in batches, perform all Test cases technologies automatically Test report.
Communication protocol module of the open communication interface to device being tested in the AD emulation modules, receive communication instruction The output of control emulation data, the configurable parameter of each status switch are write by a communication instruction, complete parameter configuration Start the output of the emulation data set by an enabled instruction afterwards.
Computer control unit performs the transmission of configuration-direct, it is not necessary to manual intervention communication control process, there is provided test The visualization interface at instrument interface is configured to AD emulation modules, the convenient setting for intuitively carrying out testing input condition.
In the computer control unit, communicated by establishing communication protocol with device being tested, be able to carry out testing Condition entry, parameter setting, result generate and to form a complete test case and perform, include the number of control AD emulation modules According to output, the functional parameter of device being tested, the test knot for inputting expected test result, reading device being tested are easily set Fruit data, comparing result draw test result.
In the computer control unit, single test case can be saved as use-case file, import testing scheme All use-case files, are performed one by one automatically, are completed all test events, are realized automatic test.
In the present invention, data simulation can be carried out to all sampling channels of device being tested, passes through device being tested Communication protocol AD emulation modules exported carry out Control on Communication, can just be added without using tester to CPU any controllable Data;Computer control unit be used for control AD emulation modules the way of output and perform test process, by communication protocol with Device being tested communicates, and sends communication instruction and can control the output of AD emulation modules, the functional parameter for adjusting device being tested, obtains The result data that test process needs, test result is relatively drawn with expected results, possesses test case preservation, loading and batch The function of execution, all Test cases technology test report are performed automatically.
In the present invention, the data handling procedure of built-in AD emulation is consistent with the true AD of logical AND, only changes signal source, True AD gathers real analog signal, and for AD emulation modules using emulation data, the processing to signal is consistent, output data Process to data processing module is also consistent, therefore using the emulation AD tests carried out and the survey carried out using true AD Examination, obtained result is consistent.Find that smart machine has function treatment and asked when carrying out test using AD emulation modules During topic, true A/D module equally exists the problem of the same.Carrying out test using emulation testing module will not be to the reality of smart machine Border use is impacted, and, AD emulation modules are not put into smart machine in actual use, is used when only testing.
The analog quantity sampling channel having for device being tested, AD emulation modules to realize that program can produce consistent with its Analogue simulation amount passage.According to the cyclophysis of ac analog in electrical system, matching somebody with somebody for amplitude, frequency and phase is quantified as Put parameter.By adjusting the amplitude, frequency and phase of each passage of analogue simulation amount, produce and exported with analog generator tester Consistent signal data.Identical analog data is kept for output a period of time, synthesizes a status switch, and status switch is set Putting includes the parameter of all analog quantity channels, and the duration of status switch.Different amplitude, frequency and phases pass through state Sequence switches over.After the retention time of one status switch terminates, the analog output of next status switch is switched to, according to This analogizes.After the retention time of all status switches terminates, recover no data state.A certain status switch be may also set up to protect Hold, do not terminate, export the analog quantity of the state all the time, re-write the status switch with the retention time, tied after the retention time Beam.AD emulation modules open the status switch quantity that can adjust quantity, the configurable value of each status switch, including all simulations Measure the setting value of passage, duration and whether use flag bit.Each status switch of AD emulation modules has a configuration should The communication instruction of all parameters of status switch, and an enabled instruction that flag bit whether is used with each status switch.First send out Send the configuration-direct of each status switch, complete with postponing, send one and start order, AD emulation modules according to configuration state Sequence situation, signal output and switching are carried out according to the duration.Each status switch may choose whether to enable, if do not enabled, It is 0 in the mark position for starting order, starts the output for not triggering the status switch when order sending;The shape not enabled State sequence can be not written into configuration parameter.Each configurable value, AD emulation is written to by the communication protocol of device being tested Module.Emulate data to apply, take and be pre-loaded into parameter setting, triggered by enabled instruction, start the data of AD emulation modules Output, ageing to ensure, workflow is as shown in Figure 1, 2.
Computer control unit, including automatic testing software and the computer of operation;Automatic testing software includes emulation AD Control module, fixed value adjusting module, expected results module, testing execution module, use-case file access module and mould is tested automatically Block;Computer runs automatic testing software, is established and communicated to connect by communication interface and device being tested, according to device being tested Communication protocol carry out the data exchange of automatic testing software and device being tested.
The emulation AD control modules, visualization data configuration circle similar to tester is provided by computer control system Face, for setting the amplitude of all analog quantity channels under the parameter of AD emulation modules, including each status switch, phase, frequency, holding Continue the time and enable mark, according to the parameter of configuration, generated and be used for according to the instruction format of stipulations by communication by testing execution module Control status switch configuration-direct and the output enabled instruction of emulation module.When starting AD emulation module data outputs, calculate Machine control unit starts timing, the switching of synchronization interface dispaly state sequence, keeps the timing synchronization with AD emulation modules, makes survey Examination personnel intuitively observe test process.
The fixed value adjusting module, be loaded into the parameter configuration list of device being tested, by computer control unit provide with Device being tested definite value sets the similar fixed value adjusting interface in interface, directly perceived, fast using the mode of quick indexing and operation indicating Prompt ground configures the functional parameter of device being tested on computers, eliminates the manual process of button operation.According to fixed value adjusting The data that module is set, device being tested is configured to by testing execution module using communication protocol write parameters.
The expected results module, the interface of the anticipatory data of configuration testing result is provided by computer control unit, carried Supply testing execution module.
The testing execution module, the communication protocol information of device being tested is integrated, coding reconciliation is carried out to communication instruction Code, for being communicated with device being tested, the above data exchange of modules and device being tested is established, reading needs what is obtained Result data;Instruction including communication, the description of instruction, test phase, object information etc. are resolved to text information, recorded In text box, tester is allowed to get information about measuring executing process;After test terminates, the knot for reading device being tested Fruit data, with expected result data comparison, show whether function is correct, record test result.
The use-case file access module, by computer control system AD emulation modules, fixed value adjusting module, expected knot The setting data record of fruit module is got off, and saves as use-case file, and when being loaded into again, the data that can obtain each module are set, Test process is performed by testing execution module, forms a complete test case implementation procedure.
The automatic test module, can be loaded into multiple use-case files in batches, and use-case file is performed one by one using above-mentioned module, Collect the test result of all use-cases, generate survey report;Configured by foregoing each module for device being tested various functions The test case of inspection, collect institute's functional test case and form complete testing scheme to device being tested, when test into When entering the regression test stage, all use-case files preserved are loaded into using computer control system, pass through automatic test module Batch performs, and draws the test report of device being tested.
Specific operating process:
1st, computer is connected by communication interface and device being tested, establishes computer control unit and tested trial assembly The communication connection put;
2nd, the configuration interface of computer control unit, the output valve of configuration AD emulation modules, the work(of device being tested are passed through Can parameter and expected results;
3rd, test is started on computer control unit, testing execution module send configuration instructs to be set to device being tested The test parameter of function, send configuration, which instruct, gives AD emulation modules, starts emulation data output, and the CPU of device being tested is obtained The data of input carry out function treatment, output test result;Testing execution module reads device being tested by communication protocol Output result data;
4th, computer control unit draws test result the result data got compared with expected results;
5th, computer control unit performs all use-case files, exports test report by automatic test module.
The computer control method of the present invention includes:Step 1, connection setup, special communication protocol, computer control are passed through Unit communicates with device being tested;Step 2, the functional parameter of device being tested is adjusted, the Test Sample Design of each state, is preserved To test case library;Step 3, AD emulation modules are controlled to export by way of status switch, use-case storehouse Testcase execution;Step Rapid 4, read test result data simultaneously relatively draws test result with expected results, generates test report.The beneficial effect of the present invention Fruit is:Controlled by computer, effectively using the resource of tested device, the AD emulation modules for making to run on inside tested device are defeated Go out to emulate data, as the input condition of test, can thoroughly break away from conventional method needs the limitation of tester, reduces test Resource input.
In summary, can be by controlling AD emulation modules by the cooperation of computer control unit and AD emulation modules The input of test condition, the effect of replacement test instrument are carried out to device being tested;Then the expected knot of setting function parameter, record Fruit, communication process and contrast test result are performed, draw the test result of use-case;Reach automatic by batch implementation of test cases Change test, and export test report.The present invention, can to establishing in CPU from sampled data draws the functional test of result To substitute completely;The partial function that true A/D module samples to external input signal is supplemented by manual test.In test process, shape Into test case file, the repeatable test of use-case file is loaded into, the use-case file by performing all accumulation in batches is realized automatic Change test, complete Test coverage and high efficiency test are realized in the regression test stage.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to is assert The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (6)

1. a kind of automated testing method, it is characterised in that be included in the AD emulation modes of operation in device being tested, the AD Emulation mode includes:
Order receiving step, receive the order that computer control unit is sent;
Input signal simulation process, according to the order received, analog input signal of change caused by needs is drawn unanimously Emulation signal;
Sampling output step, emulation signal is sampled with processing logic according to the data sampling consistent with true A/D module, Discrete data values are obtained, are saved in samples storage module, there is provided to data processing module, realize the emulation for replacing true A/D module Input process;
Also include computer control method in the automated testing method, include in the computer control method:
Computer control unit communicates with device being tested, and the output of control AD emulation modules, the functional parameter of device being tested are whole Fixed, control test process execution, read test result data simultaneously relatively draw test result with expected results, all bars Part input, parameter tuning, process performs and result output is all pooled to computer control unit, and computer control unit performs institute There is test process, possess the function that test case is preserved, is loaded into and performed in batches, perform all Test cases technologies tests automatically Report;
Communication protocol module of the open communication interface to device being tested in the AD emulation modes, receive communication instruction control The output of data is emulated, the configurable parameter of each status switch is write by a communication instruction, is led to after completing parameter configuration Cross the output that an enabled instruction starts the emulation data set;
Computer control unit performs the transmission of configuration-direct, it is not necessary to manual intervention communication control process, there is provided tester circle The visualization interface in face is configured to AD emulation modules;
In the computer control method, communicated by establishing communication protocol with device being tested, be able to carry out the bar of test Part input, parameter setting, result generate to form a complete test case execution, including the data of control AD emulation modules are defeated Functional parameter, input expected test result, the test result number for reading device being tested go out, device being tested being easily set Test result is drawn according to, comparing result;
In the computer control method, single test case can be saved as use-case file, import all of testing scheme Use-case file, is performed one by one automatically, is completed all test events, is realized automatic test.
2. automated testing method according to claim 1, it is characterised in that in the AD emulation modes, to tested All analog quantity channels that trial assembly is put are emulated, and cover all input channels, and quantification control parameter is amplitude, frequency and phase Position.
3. automated testing method according to claim 1, it is characterised in that in the AD emulation modes, use shape The output of the form control emulation data of state sequence, single status sequence includes all analog quantity channels, export identical amplitude, The analog signalses of phase and frequency simultaneously continue the default time, are switched by different status switches to change emulation data Output, realizes the change of waveform and the output of various stable states and transient waveform.
4. a kind of automatization test system, it is characterised in that be included in the AD emulation modules of operation in device being tested, the AD Emulation module includes:
Order receiver module, for receiving the order of computer control unit transmission;
Input signal emulation module, for according to the order received, being drawn to analog input signal of change caused by needs Consistent emulation signal;
Output module is sampled, for being adopted according to the data sampling consistent with true A/D module with processing logic to emulation signal Sample, discrete data values are obtained, be saved in samples storage module, there is provided to data processing module, realized and replace true A/D module Emulate input process;
Also include computer control unit in the automatization test system, include in the computer control unit:
Computer control unit communicates with device being tested, and the output of control AD emulation modules, the functional parameter of device being tested are whole Fixed, control test process execution, read test result data simultaneously relatively draw test result with expected results, all bars Part input, parameter tuning, process performs and result output is all pooled to computer control unit, and computer control unit performs institute There is test process, possess the function that test case is preserved, is loaded into and performed in batches, perform all Test cases technologies tests automatically Report;
Communication protocol module of the open communication interface to device being tested in the AD emulation modules, receive communication instruction control The output of data is emulated, the configurable parameter of each status switch is write by a communication instruction, is led to after completing parameter configuration Cross the output that an enabled instruction starts the emulation data set;
Computer control unit performs the transmission of configuration-direct, it is not necessary to manual intervention communication control process, there is provided tester circle The visualization interface in face is configured to AD emulation modules;
In the computer control unit, communicated by establishing communication protocol with device being tested, be able to carry out the bar of test Part input, parameter setting, result generate to form a complete test case execution, including the data of control AD emulation modules are defeated Functional parameter, input expected test result, the test result number for reading device being tested go out, device being tested being easily set Test result is drawn according to, comparing result;
In the computer control unit, single test case can be saved as use-case file, import all of testing scheme Use-case file, is performed one by one automatically, is completed all test events, is realized automatic test.
5. automatization test system according to claim 4, it is characterised in that in the AD emulation modules, to tested All analog quantity channels that trial assembly is put are emulated, and cover all input channels, and quantification control parameter is amplitude, frequency and phase Position.
6. automatization test system according to claim 4, it is characterised in that in the AD emulation modules, use shape The output of the form control emulation data of state sequence, single status sequence includes all analog quantity channels, export identical amplitude, The analog signalses of phase and frequency simultaneously continue the default time, are switched by different status switches to change emulation data Output, realizes the change of waveform and the output of various stable states and transient waveform.
CN201510204671.4A 2015-04-27 2015-04-27 A kind of automated testing method and system Active CN104932479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510204671.4A CN104932479B (en) 2015-04-27 2015-04-27 A kind of automated testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510204671.4A CN104932479B (en) 2015-04-27 2015-04-27 A kind of automated testing method and system

Publications (2)

Publication Number Publication Date
CN104932479A CN104932479A (en) 2015-09-23
CN104932479B true CN104932479B (en) 2018-01-05

Family

ID=54119683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510204671.4A Active CN104932479B (en) 2015-04-27 2015-04-27 A kind of automated testing method and system

Country Status (1)

Country Link
CN (1) CN104932479B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106950870A (en) * 2016-01-06 2017-07-14 北京电子工程总体研究所 A kind of general configurable signal imitation device
CN105955232B (en) * 2016-04-22 2018-10-19 北京广利核系统工程有限公司 I/O module channels automated testing method and system in a kind of power station DCS
CN106094794B (en) * 2016-06-27 2019-07-19 北京广利核系统工程有限公司 Functional test equipment, control server and the method for distribution type control system
CN106405286B (en) * 2016-08-30 2019-08-30 深圳市中电电力技术股份有限公司 The automatic test approach and system of quality monitoring device of electrical energy
CN110022239A (en) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 A kind of detection method, equipment and storage medium
CN110908354A (en) * 2018-09-17 2020-03-24 浙江宇视科技有限公司 Automatic test detection device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103245855A (en) * 2013-04-23 2013-08-14 国家电网公司 Digital simulation based method and system for testing relay protection function of intelligent substation
CN203260219U (en) * 2012-12-25 2013-10-30 国家电网公司 Simulated merging unit simulation device
CN103792448A (en) * 2014-01-22 2014-05-14 国家电网公司 Digitized protective device automatic test control system and control method thereof
CN104237681A (en) * 2014-08-29 2014-12-24 南京国联电力工程设计有限公司 Digitization relay protection testing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR112012005778A2 (en) * 2009-09-14 2018-03-20 Abb Technology Ltd method and system for simulation in a substation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203260219U (en) * 2012-12-25 2013-10-30 国家电网公司 Simulated merging unit simulation device
CN103245855A (en) * 2013-04-23 2013-08-14 国家电网公司 Digital simulation based method and system for testing relay protection function of intelligent substation
CN103792448A (en) * 2014-01-22 2014-05-14 国家电网公司 Digitized protective device automatic test control system and control method thereof
CN104237681A (en) * 2014-08-29 2014-12-24 南京国联电力工程设计有限公司 Digitization relay protection testing device

Also Published As

Publication number Publication date
CN104932479A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN104932479B (en) A kind of automated testing method and system
CN104345262B (en) A kind of universal circuit Board Test System
CN105224345B (en) A kind of programmable logic device remote update system and its method
CN201421487Y (en) On-line function detecting and fault removing system of circuit board
CN104090259B (en) Automatic gauge test platform and method based on Python script
CN103019940B (en) A kind of electric energy meter embedded software half simulation testing device
CN205958728U (en) Power module test fixture
CN102722107A (en) Intelligent integrated development and test system for high-voltage frequency converter and establishment method thereof
CN104007348A (en) Automated testing system and method thereof
CN106526457A (en) Circuit board detection instrument and system
CN208818807U (en) Exit relay performance test apparatus and test macro
CN107870271A (en) Automated testing method and device
CN109324601A (en) The test platform of robot controller or control system based on hardware in loop
CN109814530A (en) A kind of satellite power supply controller performance Auto-Test System
CN104391501B (en) A kind of condition monitoring system and method for Supervisory Computer Control System For Hydroelectic Power Plant
CN107562969B (en) Method and device for integrating aero-engine control system software
CN202267716U (en) Test system of CPU plug-in unit used for relay protection measurement and control apparatus
CN203761519U (en) New edition automatic test system of panel TV set
CN107909952A (en) Detect the method and gauge of display screen
CN104506849A (en) Lab ageing test reminding device
CN106776229A (en) Power consumption of terminal method of testing and device
CN207557362U (en) A kind of full production cycle automatic test device of distribution terminal
CN203981800U (en) A kind of analog quantity automatic checking system based on safety instrument
CN110362486A (en) Cycle tests construction method and device and automated testing method and system
CN208207604U (en) A kind of automatization test system of vehicle body domain multi-controller

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
CB03 Change of inventor or designer information

Inventor after: Zeng Yousong

Inventor after: Li Jun

Inventor after: Chen Jian

Inventor after: Li Huabin

Inventor after: Li Xuetao

Inventor after: Lei Yufen

Inventor after: Wen Xianghui

Inventor after: Liu Jun

Inventor after: Liu Dachuan

Inventor after: Liu Yun

Inventor after: Chen Xinliang

Inventor after: Tang Wei

Inventor after: Mei Kun

Inventor after: Wang Xinhua

Inventor before: Wen Xianghui

Inventor before: Li Xuetao

Inventor before: Lei Yufen

Inventor before: Chen Li

Inventor before: Liu Jun

Inventor before: Liu Dachuan

Inventor before: Liu Yun

Inventor before: Chen Xinliang

Inventor before: Tang Wei

Inventor before: Mei Kun

Inventor before: Wang Xinhua

Inventor before: Li Huabin

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant