CN104932479A - Automatic test method and system - Google Patents

Automatic test method and system Download PDF

Info

Publication number
CN104932479A
CN104932479A CN201510204671.4A CN201510204671A CN104932479A CN 104932479 A CN104932479 A CN 104932479A CN 201510204671 A CN201510204671 A CN 201510204671A CN 104932479 A CN104932479 A CN 104932479A
Authority
CN
China
Prior art keywords
test
module
tested
data
computer control
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.)
Granted
Application number
CN201510204671.4A
Other languages
Chinese (zh)
Other versions
CN104932479B (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
Expired - Fee Related 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides an automatic test method and system. The automatic test method comprises an AD simulation method which runs in a tested device. The AD simulation method comprises a command receiving step in which a command sent from a computer control unit is received; an input signal simulation step in which needed analog input signals are calculated to obtain consistent simulation signals according to the received command; and a sampling and output step in which the simulation signals are sampled according to the data sampling and processing logics the same with that of a real AD module to obtain discrete data values, the discrete data values are stored in a sampling and storage module and provided for a data processing module, and a simulation input process which can replace the real AD module is realized. The automatic test method and system have the advantages that resource of the tested device is effectively used via computer control, so that an AD simulation module operated in the tested device outputs simulation data, the simulation data serves as input condition of test, the problem that testers are needed in traditional methods is solved, and the cost of test resources is reduced.

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, particularly relate to a kind of automated testing method and system.
Background technology
Need a large amount of measuring and controlling equipments measure primary equipment and control in electric system, gather the analog signals through conversion, realize test and controlling functions.Traditional method of testing exports electric signal data to device being tested with working environment that is virtually reality like reality by tester, due to the development of embedded technology, intelligent monitoring equipment has possessed more more complicated functions, brings more loaded down with trivial details more macrocyclic test operation to traditional test process.Existing test process needs artificially manually revise the output parameter of tester, the functional parameter of configuration device being tested and manually read the object information of device being tested and check, to obtain test result, testing procedure is loaded down with trivial details and the artificial step that performs needs the test duration of cost very long more slowly.In whole test process, need constantly to apply electric signal, tester works always, needs to consume electric energy; Tester unit price is expensive, introduces cost high.Traditional a large amount of test resource of method of testing consumption.Because test process adopts manual testing, there is the operation that a large amount of machinery repeats, manually repeat and easily make mistakes or ignore details, and artificial repeated test, all needs the cost of spending same, and the test performed above cannot accumulate and repeat at every turn, when test phase enters regression test, because the restriction of the cost of manual testing and time schedule, often can not carry out full test, test coverage can decline.
Summary 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, be included in the AD emulation mode run in device being tested, described AD emulation mode comprises:
Order receiving step, the order that receiving computer control module sends;
Input signal simulation process, according to the order received, calculates consistent simulate signal to needing the analog input signal produced;
Sampling exports step, samples, obtains discrete data values, be saved in samples storage module, be supplied to data processing module according to the data sampling consistent with true A/D module and processing logic to simulate signal, realizes the emulation input process of replacing true A/D module.
As a further improvement on the present invention, in described AD emulation mode, emulate, cover all input channels to all analog quantity channels of device being tested, quantification control parameter is amplitude, frequency and phase place.
As a further improvement on the present invention, in described AD emulation mode, the output of the form control emulated data of using state sequence, single status sequence comprises all analog quantity channels, export the analog signals of identical amplitude, phase place and frequency and continue the default time, switched the output changing emulated data by different status switches, realize the change of waveform and the output of various stable state and transient waveform.
As a further improvement on the present invention, in this automated testing method, also comprise computer control method, comprise at this computer control method:
Computer control unit and device being tested communication, the execution that control AD emulation module exports, test process is adjusted, controlled to the functional parameter of device being tested, read test result data compare with expected results and draw test result, all condition entries, parameter tuning, process performs and result output is all pooled to computer control unit, computer control unit performs all test processs, possess the function that test case is preserved, is loaded into and performs in batches, automatically perform all Test cases technology test report.
As a further improvement on the present invention,
In described AD emulation mode, open communication interface is to the communication protocol module of device being tested, the output of received communication instruction control imitation data, the configurable parameter of each status switch, by a communication instruction write, starts the output of the emulated data set by an enabled instruction after completing parameter configuration;
Computer control unit performs the transmission of configuration-direct, does not need manual intervention communication control process, provides the visualization interface at tester interface to arrange AD emulation module;
In described computer control method, by setting up communication protocol communication with device being tested, the condition entry of test can be performed, optimum configurations, result generate the complete test case of formation one and perform, the data comprising controls AD emulation module export, arrange easily the functional parameter of device being tested, input expected test result, the test result data of reading device being tested, comparing result draw test result;
In described computer control method, single test case can be saved as use-case file, import all use-case files of testing scheme, automatically perform one by one, complete all test events, realize automatic test.
Present invention also offers a kind of automatization test system, be included in the AD emulation module run in device being tested, described AD emulation module comprises:
Order receiver module, for the order that receiving computer control module sends;
Input signal emulation module, for according to the order received, calculates consistent simulate signal to needing the analog input signal produced;
Sampling output module, for sampling to simulate signal according to the data sampling consistent with true A/D module and processing logic, obtaining discrete data values, being saved in samples storage module, be supplied to data processing module, realize the emulation input process of replacing true A/D module.
As a further improvement on the present invention, sampling output module, for sampling to simulate signal according to the data sampling consistent with true A/D module and processing logic, obtain discrete data values, be saved in samples storage module, be supplied to data processing module, realize the emulation input process of replacing true A/D module.。
As a further improvement on the present invention, in described AD emulation module, the output of the form control emulated data of using state sequence, single status sequence comprises all analog quantity channels, export the analog signals of identical amplitude, phase place and frequency and continue the default time, switched the output changing emulated data by different status switches, realize the change of waveform and the output of various stable state and transient waveform.
As a further improvement on the present invention, in this automatization test system, also comprise computer control unit, comprise at this computer control unit:
Computer control unit and device being tested communication, the execution that control AD emulation module exports, test process is adjusted, controlled to the functional parameter of device being tested, read test result data compare with expected results and draw test result, all condition entries, parameter tuning, process performs and result output is all pooled to computer control unit, computer control unit performs all test processs, possess the function that test case is preserved, is loaded into and performs in batches, automatically perform all Test cases technology test report.
As a further improvement on the present invention,
In described AD emulation module, open communication interface is to the communication protocol module of device being tested, the output of received communication instruction control imitation data, the configurable parameter of each status switch, by a communication instruction write, starts the output of the emulated data set by an enabled instruction after completing parameter configuration;
Computer control unit performs the transmission of configuration-direct, does not need manual intervention communication control process, provides the visualization interface at tester interface to arrange AD emulation module;
In described computer control unit, by setting up communication protocol communication with device being tested, the condition entry of test can be performed, optimum configurations, result generate the complete test case of formation one and perform, the data comprising controls AD emulation module export, arrange easily the functional parameter of device being tested, input expected test result, the test result data of reading device being tested, comparing result draw test result;
In described computer control unit, single test case can be saved as use-case file, import all use-case files of testing scheme, automatically perform one by one, complete all test events, realize automatic test.
The invention has the beneficial effects as follows:
1. do not need to use testing tool, the emulated data using AD emulation module to export, as the initial conditions of test, can break away from restriction and the resource consumption of testing tool;
2. do not need at device being tested and the enterprising line operate of tester, computer control unit performs all condition entries, parameter tuning, process and result exports and is all pooled on computing machine, provides more convenient, mode of operation intuitively, and simplify the operation step;
3. by AD emulation module, realization makes test input condition of computerizeing control, communication protocol is coordinated to control device being tested again, all operations are all performed by computer control system, computing machine is used to carry out test operation, realize preservation and the 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 performs in batches, automatically performs all Test cases technology test report, realizes automatic test.All tests once performed all are recorded, formed complete, cover comprehensive use-case storehouse, when entering the regression test stage, test is automatically used to carry out covering comprehensive test, ensure that product does not return, increase testing cost hardly, and testing efficiency is high, ensures the time schedule in regression test stage.
Accompanying drawing explanation
Fig. 1 is workflow diagram in AD emulation module main thread of the present invention;
Fig. 2 is workflow diagram in AD emulation module Sampling interrupt thread of the present invention;
Fig. 3 is theory diagram of the present invention.
Embodiment
As shown in Figure 3, the invention discloses a kind of automated testing method, be included in the AD emulation mode run in device being tested, described AD emulation mode comprises:
Order receiving step, the order that receiving computer control module sends;
Input signal simulation process, according to the order received, draws consistent simulate signal to needing the analog input signal produced by fourier series formulae discovery;
Sampling exports step, samples, obtains discrete data values, be saved in samples storage module, be supplied to data processing module according to the data sampling consistent with true A/D module and processing logic to simulate signal, realizes the emulation input process of replacing true A/D module.
In described AD emulation mode, emulate, cover all input channels to all analog quantity channels of device being tested, quantification control parameter is amplitude, frequency and phase place.
In described AD emulation mode, the output of the form control emulated data of using state sequence, single status sequence comprises all analog quantity channels, export the analog signals of identical amplitude, phase place and frequency and continue the default time, switched the output changing emulated data by different status switches, realize the change of waveform and the output of various stable state and transient waveform.
In this automated testing method, also comprise computer control method, comprise at this computer control method:
Computer control unit and device being tested communication, the execution that control AD emulation module exports, test process is adjusted, controlled to the functional parameter of device being tested, read test result data compare with expected results and draw test result, all condition entries, parameter tuning, process performs and result output is all pooled to computer control unit, computer control unit performs all test processs, possess the function that test case is preserved, is loaded into and performs in batches, automatically perform all Test cases technology test report.
In described AD emulation mode, open communication interface is to the communication protocol module of device being tested, the output of received communication instruction control imitation data, the configurable parameter of each status switch, by a communication instruction write, starts the output of the emulated data set by an enabled instruction after completing parameter configuration;
Computer control unit performs the transmission of configuration-direct, does not need manual intervention communication control process, provides the visualization interface at tester interface to arrange AD emulation module;
In described computer control method, by setting up communication protocol communication with device being tested, the condition entry of test can be performed, optimum configurations, result generate the complete test case of formation one and perform, the data comprising controls AD emulation module export, arrange easily the functional parameter of device being tested, input expected test result, the test result data of reading device being tested, comparing result draw test result;
In described computer control method, single test case can be saved as use-case file, import all use-case files of testing scheme, automatically perform one by one, complete all test events, realize automatic test.
The invention also discloses a kind of automatization test system, comprise computer control unit and device being tested and built-in AD emulation module thereof, AD emulation module, realized by the program being implanted to device being tested inside, replace real A/D module, emulated data passes to data processing module, AD sampling process that is virtually reality like reality, AD emulation module has communication interface, can control the content of Output simulation data, just can carry out functional test without the need to tester; Device being tested refers to the object that emulation test system is tested, the various embedded intelligence observing and controlling mainly in secondary equipment in power system and protective device.
At this automatization test system, be included in the AD emulation module run in device being tested, described AD emulation module comprises:
Order receiver module, for the order that receiving computer control module sends;
Input signal emulation module, for according to the order received, calculates consistent simulate signal to needing the analog input signal produced;
Sampling output module, for sampling to simulate signal according to the data sampling consistent with true A/D module and processing logic, obtaining discrete data values, being saved in samples storage module, be supplied to data processing module, realize the emulation input process of replacing true A/D module.Data processing module obtains sampling and exports data, carries out data processing, output function result, thus uses emulated data can obtain function treatment result as test input condition during test.
In described AD emulation module, emulate, cover all input channels to all analog quantity channels of device being tested, quantification control parameter is amplitude, frequency and phase place.
In described AD emulation module, the output of the form control emulated data of using state sequence, single status sequence comprises all analog quantity channels, export the analog signals of identical amplitude, phase place and frequency and continue the default time, switched the output changing emulated data by different status switches, realize the change of waveform and the output of various stable state and transient waveform.
In this automatization test system, also comprise computer control unit, comprise at this computer control unit:
Computer control unit and device being tested communication, the execution that control AD emulation module exports, test process is adjusted, controlled to the functional parameter of device being tested, read test result data compare with expected results and draw test result, all condition entries, parameter tuning, process performs and result output is all pooled to computer control unit, computer control unit performs all test processs, possess the function that test case is preserved, is loaded into and performs in batches, automatically perform all Test cases technology test report.
In described AD emulation module, open communication interface is to the communication protocol module of device being tested, the output of received communication instruction control imitation data, the configurable parameter of each status switch, by a communication instruction write, starts the output of the emulated data set by an enabled instruction after completing parameter configuration.
Computer control unit performs the transmission of configuration-direct, does not need manual intervention communication control process, provides the visualization interface at tester interface to arrange AD emulation module, the convenient setting carrying out test input condition intuitively.
In described computer control unit, by setting up communication protocol communication with device being tested, the condition entry of test can be performed, optimum configurations, result generate the complete test case of formation one and perform, the data comprising controls AD emulation module export, arrange easily the functional parameter of device being tested, input expected test result, the test result data of reading device being tested, comparing result draw test result.
In described computer control unit, single test case can be saved as use-case file, import all use-case files of testing scheme, automatically perform one by one, complete all test events, realize automatic test.
In the present invention, data simulation can be carried out to all sampling channels of device being tested, by the communication protocol of device being tested, Control on Communication be carried out to the output of AD emulation module, just can add data controlled arbitrarily to CPU without the need to using tester; Computer control unit for control AD emulation module the way of output and perform test process, by communication protocol and device being tested communication, send communication instruction to export, the functional parameter of device being tested of adjusting, obtain the result data that test process needs by control AD emulation module, compare with expected results and draw test result, possess the function that test case is preserved, is loaded into and performs in batches, automatically perform all Test cases technology test report.
In the present invention, the data handling procedure of built-in AD emulation is consistent with the true AD of logical and, only change signal source, true AD gathers real simulating signal, AD emulation module adopts emulated data, is consistent to the process of signal, and the process exporting data to data processing module is also consistent, therefore the test adopting emulation AD to carry out and the test adopting true AD to carry out, the result obtained is consistent.When adopt AD emulation module carry out test find that smart machine exists function treatment problem time, true A/D module exist equally problem.Use emulation testing module to carry out testing and can not impact to the actual use of smart machine, in the actual use procedure of smart machine, AD emulation module does not drop into, and only uses during test.
For the analog quantity sampling channel that device being tested has, the program that realizes of AD emulation module can produce the analogue simulation amount passage consistent with it.According to the cyclophysis of ac analog in electrical system, be quantified as the configuration parameter of amplitude, frequency and phase place.By the amplitude of adjustment analogue simulation amount each passage, frequency and phase place, produce and export consistent signal data with analog generator tester.Identical analog data keeps exporting a period of time, and synthesize a status switch, the setting of status switch comprises the parameter of all analog quantity channels and the duration of status switch.Different amplitudes, frequency and phase place are switched by status switch.After retention time of a status switch terminates, be switched to the analog output of next status switch, the rest may be inferred.After retention time of all status switches terminates, recover without data mode.A certain status switch also can being set for keeping, terminating, exporting the analog quantity of this state all the time, re-writing the status switch of band retention time, terminate after the retention time.The opening of AD emulation module can be adjusted the status switch quantity of quantity, the configurable value of each status switch, comprises the setting value of all analog quantity channels, duration and whether service marking position.Each status switch of AD emulation module has a communication instruction configuring all parameters of this status switch, and an enabled instruction with each status switch whether service marking position.First send the configuration-direct of each status switch, after completing configuration, send a startup command, AD emulation module, according to the status switch situation of configuration, carries out signal output and switching according to the duration.Whether each status switch can be selected to enable, and if do not enabled, is 0 in the mark position of startup command, does not trigger the output of this status switch when sending startup command; The status switch do not enabled can not write configuration parameter.Each configurable value, is written to AD emulation module by the communication protocol of device being tested.Emulated data applies, and takes to be loaded into optimum configurations in advance, is triggered by enabled instruction, and the data starting AD emulation module export, and ageing to ensure, workflow as shown in Figure 1, 2.
Computer control unit, comprises the computing machine of automatic testing software and operation; Automatic testing software comprises emulation AD control module, fixed value adjusting module, expected results module, testing execution module, use-case file access module and automatic test module; Computer run automatic testing software, is established a communications link by communication interface and device being tested, carries out the exchanges data of automatic testing software and device being tested according to the communication protocol of device being tested.
Described emulation AD control module, the visualized data configuration interface being similar to tester is provided by computer control system, for arranging the parameter of AD emulation module, under comprising each status switch all analog quantity channels amplitude, phase place, frequency, duration and enable mark, according to the parameter of configuration, be used for the status switch configuration-direct of control imitation module by testing execution module by the order format generation of communication according to stipulations and export enabled instruction.When starting AD emulation module data and exporting, computer control unit starts timing, the switching of synchronization interface display status switch, keeps, with the timing synchronization of AD emulation module, making tester's observation test process intuitively.
Described fixed value adjusting module, be loaded into the parameter configuration list of device being tested, thered is provided by computer control unit and fixed value adjusting interface like interface phase is set with device being tested definite value, use the mode of quick indexing and operation indicating, intuitively, configure the functional parameter of device being tested quickly on computers, eliminate the manual process of button operation.According to the data of fixed value adjusting module installation, communication protocol write parameters is utilized to be configured to device being tested by testing execution module.
Described expected results module, is provided the interface of the anticipatory data of configuration testing result, is supplied to testing execution module by computer control unit.
Described testing execution module, the communication protocol information of integrated device being tested, carries out Code And Decode to communication instruction, for communicating with device being tested, sets up the exchanges data of modules and device being tested above, reads the result data needing to obtain; Comprising the instruction of communication, the description, test phase, object information etc. of instruction resolves to Word message, is recorded in text box, allows tester can get information about measuring executing process; After test terminates, the result data reading device being tested, with expected result Data Comparison, show that whether function is correct, record test result.
Described use-case file access module, by computer control system, the setting data of AD emulation module, fixed value adjusting module, expected results module is recorded, save as use-case file, when being again loaded into, the data that can obtain each module are arranged, perform test process by testing execution module, form a complete test case implementation.
Described automatic test module, can be loaded into multiple use-case file in batches, uses above-mentioned module to perform use-case file one by one, gathers the test result of all use-cases, generates survey report; The test case checked for device being tested various functions is gone out by aforementioned each block configuration, the test case collecting all functions forms the complete testing scheme to device being tested, when test enters the regression test stage, computer control system is used to be loaded into all use-case files preserved, performed by the batch of automatic test module, draw the test report of device being tested.
Concrete operating process:
1, computing machine is coupled together by communication interface and device being tested, sets up the communication connection of computer control unit and device being tested;
2, by the configuration interface of computer control unit, the output valve of configuration AD emulation module, the functional parameter of device being tested and expected results;
3, on computer control unit, test is started, testing execution module send configuration-direct to device being tested arrange function test parameter, send configuration-direct to AD emulation module, start emulated data to export, the data that the CPU of device being tested obtains inputting carry out function treatment, output test result; Testing execution module reads the Output rusults data of device being tested by communication protocol;
4, computer control unit compares the result data got with expected results, draws test result;
5, computer control unit is by automatic test module, performs all use-case files, exports test report.
Computer control method of the present invention comprises: step 1, connection setup, by special communication protocol, and computer control unit and device being tested communication; Step 2, the functional parameter of device being tested is adjusted, and the Test Sample Design of each state, is saved to test case library; Step 3, is exported by the mode control AD emulation module of status switch, use-case storehouse Testcase execution; Step 4, read test result data also compares with expected results and draws test result, generates test report.The invention has the beneficial effects as follows: controlled by computing machine, effectively utilize the resource of tested device, make the AD emulation module Output simulation data running on tested device inside, as the initial conditions of test, thoroughly can break away from the restriction that classic method needs testing tool, reduce test resource and drop into.
In sum, by the cooperation of computer control unit and AD emulation module, the input of test condition can be carried out to device being tested by control AD emulation module, the effect of replacement test instrument; Then setting function parameter, record expected results, executive communication process and contrast test result, draw the test result of use-case; Reach automatic test by batch implementation of test cases, and export test report.The present invention draws the functional test of result to being based upon CPU from sampled data, can be completely alternative; True A/D module is supplemented by manual test the partial function that external input signal is sampled.In test process, form test case file, being loaded into use-case file can repeated test, and the use-case file being performed all accumulation by batch realizes automatic test, realizes complete Test coverage and high-level efficiency test in the regression test stage.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. an automated testing method, is characterized in that, be included in the AD emulation mode run in device being tested, described AD emulation mode comprises:
Order receiving step, the order that receiving computer control module sends;
Input signal simulation process, according to the order received, calculates consistent simulate signal to needing the analog input signal produced;
Sampling exports step, samples, obtains discrete data values, be saved in samples storage module, be supplied to data processing module according to the data sampling consistent with true A/D module and processing logic to simulate signal, realizes the emulation input process of replacing true A/D module.
2. automated testing method according to claim 1, is characterized in that, in described AD emulation mode, emulate, cover all input channels to all analog quantity channels of device being tested, quantification control parameter is amplitude, frequency and phase place.
3. automated testing method according to claim 1, it is characterized in that, in described AD emulation mode, the output of the form control emulated data of using state sequence, single status sequence comprises all analog quantity channels, export the analog signals of identical amplitude, phase place and frequency and continue the default time, being switched the output changing emulated data by different status switches, realize the change of waveform and the output of various stable state and transient waveform.
4. the automated testing method according to any one of claims 1 to 3, it is characterized in that, also computer control method is comprised in this automated testing method, comprise at this computer control method: computer control unit and device being tested communication, control AD emulation module exports, the functional parameter of device being tested is adjusted, control the execution of test process, read test result data also compares with expected results and draws test result, all condition entries, parameter tuning, process performs and result output is all pooled to computer control unit, computer control unit performs all test processs, possess test case to preserve, the function being loaded into and performing in batches, automatically perform all Test cases technology test report.
5. automated testing method according to claim 4, is characterized in that,
In described AD emulation mode, open communication interface is to the communication protocol module of device being tested, the output of received communication instruction control imitation data, the configurable parameter of each status switch, by a communication instruction write, starts the output of the emulated data set by an enabled instruction after completing parameter configuration;
Computer control unit performs the transmission of configuration-direct, does not need manual intervention communication control process, provides the visualization interface at tester interface to arrange AD emulation module;
In described computer control method, by setting up communication protocol communication with device being tested, the condition entry of test can be performed, optimum configurations, result generate the complete test case of formation one and perform, the data comprising controls AD emulation module export, arrange easily the functional parameter of device being tested, input expected test result, the test result data of reading device being tested, comparing result draw test result;
In described computer control method, single test case can be saved as use-case file, import all use-case files of testing scheme, automatically perform one by one, complete all test events, realize automatic test.
6. an automatization test system, is characterized in that, be included in the AD emulation module run in device being tested, described AD emulation module comprises:
Order receiver module, for the order that receiving computer control module sends;
Input signal emulation module, for according to the order received, calculates consistent simulate signal to needing the analog input signal produced;
Sampling output module, for sampling to simulate signal according to the data sampling consistent with true A/D module and processing logic, obtaining discrete data values, being saved in samples storage module, be supplied to data processing module, realize the emulation input process of replacing true A/D module.
7. automatization test system according to claim 6, is characterized in that, in described AD emulation module, emulate, cover all input channels to all analog quantity channels of device being tested, quantification control parameter is amplitude, frequency and phase place.
8. automatization test system according to claim 6, it is characterized in that, in described AD emulation module, the output of the form control emulated data of using state sequence, single status sequence comprises all analog quantity channels, export the analog signals of identical amplitude, phase place and frequency and continue the default time, being switched the output changing emulated data by different status switches, realize the change of waveform and the output of various stable state and transient waveform.
9. the automatization test system according to any one of claim 6 to 8, it is characterized in that, also computer control unit is comprised in this automatization test system, comprise at this computer control unit: computer control unit and device being tested communication, control AD emulation module exports, the functional parameter of device being tested is adjusted, control the execution of test process, read test result data also compares with expected results and draws test result, all condition entries, parameter tuning, process performs and result output is all pooled to computer control unit, computer control unit performs all test processs, possess test case to preserve, the function being loaded into and performing in batches, automatically perform all Test cases technology test report.
10. automatization test system according to claim 9, is characterized in that,
In described AD emulation module, open communication interface is to the communication protocol module of device being tested, the output of received communication instruction control imitation data, the configurable parameter of each status switch, by a communication instruction write, starts the output of the emulated data set by an enabled instruction after completing parameter configuration;
Computer control unit performs the transmission of configuration-direct, does not need manual intervention communication control process, provides the visualization interface at tester interface to arrange AD emulation module;
In described computer control unit, by setting up communication protocol communication with device being tested, the condition entry of test can be performed, optimum configurations, result generate the complete test case of formation one and perform, the data comprising controls AD emulation module export, arrange easily the functional parameter of device being tested, input expected test result, the test result data of reading device being tested, comparing result draw test result;
In described computer control unit, single test case can be saved as use-case file, import all use-case files of testing scheme, automatically perform one by one, complete all test events, realize automatic test.
CN201510204671.4A 2015-04-27 2015-04-27 A kind of automated testing method and system Expired - Fee Related 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 true CN104932479A (en) 2015-09-23
CN104932479B CN104932479B (en) 2018-01-05

Family

ID=54119683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510204671.4A Expired - Fee Related 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)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955232A (en) * 2016-04-22 2016-09-21 北京广利核系统工程有限公司 I/O module channel automatic testing method and system in power station DCS
CN106094794A (en) * 2016-06-27 2016-11-09 北京广利核系统工程有限公司 The functional test equipment of distribution type control system, control server and method
CN106405286A (en) * 2016-08-30 2017-02-15 深圳市中电电力技术股份有限公司 Electric energy quality monitoring device automatic test method and system
CN106950870A (en) * 2016-01-06 2017-07-14 北京电子工程总体研究所 A kind of general configurable signal imitation device
CN107065837A (en) * 2017-05-31 2017-08-18 河南思维轨道交通技术研究院有限公司 Simulation test platform, automatic simulation test system and method for testing
CN110022239A (en) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 A kind of detection method, equipment and storage medium
CN110554680A (en) * 2018-05-30 2019-12-10 横河电机株式会社 Device maintenance apparatus and method, and computer-readable non-transitory recording medium
CN110908354A (en) * 2018-09-17 2020-03-24 浙江宇视科技有限公司 Automatic test detection device and method
CN112540266A (en) * 2020-12-07 2021-03-23 广西电网有限责任公司电力科学研究院 Distribution network feeder automation field test system
CN113178109A (en) * 2021-04-28 2021-07-27 西安迈格纳特医疗科技有限公司 Operation simulation test method, device, equipment and storage medium
CN113405586A (en) * 2021-06-15 2021-09-17 重庆信息通信研究院 Method for testing sensing sensitivity of terminal based on Internet of things
TWI811607B (en) * 2020-12-31 2023-08-11 新唐科技股份有限公司 Microcontroller, testing method for microcontroller and system including microcontroller
CN110309056B (en) * 2019-05-23 2023-11-24 郑州万特电气股份有限公司 Cross-platform simulation system for testing software input and output functions

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239373A1 (en) * 2009-09-14 2012-09-20 Abb Technology Ltd Method and a system for simulation in a substation
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239373A1 (en) * 2009-09-14 2012-09-20 Abb Technology Ltd Method and a system for simulation in a substation
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

Cited By (18)

* 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
CN105955232A (en) * 2016-04-22 2016-09-21 北京广利核系统工程有限公司 I/O module channel automatic testing method and system in power station DCS
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
CN106094794A (en) * 2016-06-27 2016-11-09 北京广利核系统工程有限公司 The functional test equipment of distribution type control system, control server and method
CN106405286A (en) * 2016-08-30 2017-02-15 深圳市中电电力技术股份有限公司 Electric energy quality monitoring device automatic test method and system
CN106405286B (en) * 2016-08-30 2019-08-30 深圳市中电电力技术股份有限公司 The automatic test approach and system of quality monitoring device of electrical energy
CN107065837A (en) * 2017-05-31 2017-08-18 河南思维轨道交通技术研究院有限公司 Simulation test platform, automatic simulation test system and method for testing
CN107065837B (en) * 2017-05-31 2023-05-23 河南思维轨道交通技术研究院有限公司 Simulation test platform, automatic simulation test system and test method
CN110022239A (en) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 A kind of detection method, equipment and storage medium
CN110554680A (en) * 2018-05-30 2019-12-10 横河电机株式会社 Device maintenance apparatus and method, and computer-readable non-transitory recording medium
CN110908354A (en) * 2018-09-17 2020-03-24 浙江宇视科技有限公司 Automatic test detection device and method
CN110309056B (en) * 2019-05-23 2023-11-24 郑州万特电气股份有限公司 Cross-platform simulation system for testing software input and output functions
CN112540266A (en) * 2020-12-07 2021-03-23 广西电网有限责任公司电力科学研究院 Distribution network feeder automation field test system
TWI811607B (en) * 2020-12-31 2023-08-11 新唐科技股份有限公司 Microcontroller, testing method for microcontroller and system including microcontroller
CN113178109A (en) * 2021-04-28 2021-07-27 西安迈格纳特医疗科技有限公司 Operation simulation test method, device, equipment and storage medium
CN113178109B (en) * 2021-04-28 2023-09-26 西安迈格纳特医疗科技有限公司 Operation simulation test method, device, equipment and storage medium
CN113405586A (en) * 2021-06-15 2021-09-17 重庆信息通信研究院 Method for testing sensing sensitivity of terminal based on Internet of things

Also Published As

Publication number Publication date
CN104932479B (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN104932479A (en) Automatic test method and system
CN107885097B (en) Nuclear power station simulator control system DCS transformation closed loop verification system and method
CN107562969B (en) Method and device for integrating aero-engine control system software
CN103941207B (en) Automatic power-measuring endpoint detection methods and system thereof
CN104345262A (en) Universal circuit board test system
CN109522229B (en) Testing method of efficient automatic testing system
CN104090259B (en) Automatic gauge test platform and method based on Python script
CN109814530A (en) A kind of satellite power supply controller performance Auto-Test System
CN103869260A (en) Power supply test system and method
CN104267715A (en) Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system
CN104793171A (en) Fault simulation based smart meter fault detection method
WO2014153764A1 (en) Method and device for automatic test of relay protection function of intelligent substation
CN106407108B (en) A kind of test method and system of train network logout software
CN105929278B (en) A kind of unsteady flow module high voltage test macro and method
CN104007348A (en) Automated testing system and method thereof
CN105425201A (en) Metering chip simulation test method used for intelligent electric energy meter software reliability detection
CN105223897A (en) A kind of rolling stock electrical control cabinet proving installation and method of testing
CN104978262A (en) Terminal test method and terminal test device
CN109491910A (en) A kind of the visual simulating adjustment method and system of relay protective scheme and control logic
CN110568339A (en) Instrument automatic testing system and method based on Internet of things
CN106841878A (en) A kind of photovoltaic inverter test system and method
CN111830345A (en) Non-intrusive load identification test method and system
CN104506849A (en) Lab ageing test reminding device
CN100476753C (en) System for realizing main-board envirnoment test
CN106033103B (en) Second power equipment intelligent test method based on information self-described

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
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

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180105

Termination date: 20210427