CN106844883A - It is a kind of that the method that interface is tested automatically is carried out by script - Google Patents

It is a kind of that the method that interface is tested automatically is carried out by script Download PDF

Info

Publication number
CN106844883A
CN106844883A CN201611242967.6A CN201611242967A CN106844883A CN 106844883 A CN106844883 A CN 106844883A CN 201611242967 A CN201611242967 A CN 201611242967A CN 106844883 A CN106844883 A CN 106844883A
Authority
CN
China
Prior art keywords
interface
carried out
script
test
tested automatically
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611242967.6A
Other languages
Chinese (zh)
Inventor
谢光益
李起宏
刘伟平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huada Empyrean Software Co Ltd
Beijing CEC Huada Electronic Design Co Ltd
Original Assignee
Beijing CEC Huada Electronic Design Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing CEC Huada Electronic Design Co Ltd filed Critical Beijing CEC Huada Electronic Design Co Ltd
Priority to CN201611242967.6A priority Critical patent/CN106844883A/en
Publication of CN106844883A publication Critical patent/CN106844883A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/398Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

It is a kind of that the method that interface is tested automatically, including step are carried out by script:The command set of self-defined one group of record interface operation;Play back customized command set, the process of modeling interface operation.It is of the invention that the method that interface is tested automatically is carried out by script, the workload of manual testing not only drops significantly, automatically regression test can also be carried out to improving function, and also the mistake for manually operating and bringing can be prevented effectively from, drastically increase the efficiency of integrated circuit instrument test.

Description

It is a kind of that the method that interface is tested automatically is carried out by script
Technical field
The present invention relates to integrated circuit CAD field, more particularly to one kind to carry out interface by script automatic The method of test.
Background technology
The design tool used in design flow of integrated circuit, in order to realize with user interact all can Presence of an interface, Particularly in the instrument such as schematic diagram editor and layout editing.Every order can all have many ginsengs in such instrument Number, all parameter configurations can be all put into command interface, these parameters can realize individual feature and meanwhile also can and other specification It is applied in combination, this requires that interface program assurance function in single parameter and various parameters combination is correct and right every time The improvement of function does not interfere with correct function originally.
The correct of each function point should be ensured while it is also to be ensured that various parameters combination is correct, so that carrying out effectively Test., it is necessary to whole correlation functions be carried out with retest, manual testing is difficult to cover whole after point function is improved, meeting Often there is test point to leave, so as to cause to be gone wrong repeatedly during modification function point.If modification is required for manually testing every time Card, manual testing's workload is huge, and effect can not be effectively ensured, it is difficult to ensure that various parameters combination function is all correct.
It is therefore proposed that a kind of carry out the method that interface is tested automatically by script, IC design can be automatically carried out The functional test and regression test of instrument, it is ensured that the correctness of interface function, as problem demanding prompt solution.
The content of the invention
In order to solve the deficiency of prior art presence, interface is carried out certainly by script it is an object of the invention to provide one kind The method of dynamic test, can automatically carry out the functional test and regression test of integrated circuit design tool, it is ensured that interface function Correctness.
To achieve the above object, what the present invention was provided carries out the method that interface is tested automatically, including following step by script Suddenly:
(1)The command set of self-defined one group of record interface operation;(2)Play back customized command set, the mistake of modeling interface operation Journey.
Further, the command set includes:User carries out left mouse button clicking operation in drawing area, clicks behaviour by right key Work, left double-click operation, left button frame selection operation and right button frame selection operation, and user character string is input into interface, to control Content carries out the operation of selection.
Further, the interface operation is specifically included:Manual test multiple combination functions, a certain function of manual test and Hand drawn mos tube devices.
The step(1)Including step:(11)Based on test data, by script file, test case is generated;(12)To single Test case is tested.
Further, the step(1)Also include step:(13)Test case described in batch testing.
Further, the step(13)Including step:(121)When the test case has problem, the test case is changed; (122)When the function goes wrong, the function is changed.
The step(2)Further include step:Control the speed of playback speed.
The method that interface test automatically is carried out by script of the invention, by the operation behavior for recording control in interface The corresponding operating process of order, realizes the basic operation behavior of Playback controls, reaches record and simulates all interface operations Purpose.And also can be while the interface behavior of interface operation is recorded, the script command under usage record is to interface operation It is simulated manual hand manipulation.
It is of the invention that the method that interface is tested automatically is carried out by script, the workload of manual testing not only drops significantly, also Automatically regression test can be carried out to improving function, and also the mistake for manually operating and bringing can be prevented effectively from, greatly carried The efficiency of integrated circuit instrument test high.
Other features and advantages of the present invention will be illustrated in the following description, also, the partly change from specification Obtain it is clear that or being understood by implementing the present invention.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, and with it is of the invention Embodiment together, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is to carry out the method flow diagram that interface is tested automatically by script according to of the invention;
Fig. 2 is the generation and playback test process flow chart according to custom command collection of the invention;
Fig. 3 is the schematic diagram according to record interface operation process of the invention;
Fig. 4 is the command diagram of the script file according to record interface operation of the invention;
Fig. 5 is the schematic diagram according to the script file for performing record of the invention;
Fig. 6 is the schematic diagram of the interface operation according to the script file for performing record of the invention.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is to carry out the method flow diagram that interface is tested automatically by script according to of the invention, below with reference to Fig. 1, The method for by script test automatically at interface of the invention is described in detail.
In step 101, the command set of self-defined one group of record interface operation;
Wherein, command set includes:User carries out left mouse button clicking operation, right click operation, left double click in drawing area Operation, left button frame selection operation and right button frame selection operation etc., and user are input into character string in interface, control content are selected The operation such as select.
Fig. 2 is this according to the generation of the custom command collection of invention and plays back test process flow chart, as shown in Fig. 2 certainly The generation and playback test of definition command collection specifically include following steps:
(1)By test data, interface operation is carried out;
Wherein, interface operation is specifically included:Manual test multiple combination function, a certain function of manual test and hand drawn mos Tube device etc..
(2)Command file is automatically generated, test case is formed;
In this step, interface operation is recorded by script file and generates command file;
(3)Single test case is tested automatically;
(4)Detection test case whether there is problem, no, then go to step(5), it is then to go to step(6);
(5)Test case is put into test set;
(6)Modification test case, then go back to step(4);
(7)Test case in the automatic test test set of batch;
(8)Automatic test playback, success then terminates test;Otherwise, when test case has problem, step is gone to(6), and work as When function goes wrong, step is gone to(9);
(9)Modification function, returns again to step(3).
In above process, by the command set of self-defined one group of record interface operation, the behavior of control in record interface, All programs using the control interfaces are tested so as to have the ability.
In step 102, customized command set, the process of modeling interface operation are played back.
In this step, by playing back self registering script file, analog manual operation's process performs the mouse of simulation With keyboard operation so that realize automatically carried out in layout tool figure establishment, editor etc. operate.By this automatic time Journey is let off, manually operated workload can be greatly reduced, so as to lift design tool efficiency of research and development in itself.
In this step, the speed of playback speed can also be controlled.
It is of the invention that the method that interface is tested automatically is carried out by script, the row of basic control is realized by recording playback For, the ability for testing all interfaces can be reached, manually operated mode can not only be imitated and played back automatically, additionally it is possible to covered Cover the automatic test at all interfaces.And test can be the automatic test of individual feature point, or multiple work(automatically The combined test that can be put, or create an automatic test for completed device.
Fig. 3 is the schematic diagram according to record interface operation process of the invention;Fig. 4 is to be grasped according to record interface of the invention The command diagram of the script file of work;Fig. 5 is the schematic diagram according to the script file for performing record of the invention;Fig. 6 is according to this The schematic diagram of the interface operation of the script file of the execution record of invention.
Below with reference to Fig. 3 to Fig. 6, by taking IC Layout instrument as an example, illustrate of the invention with reference to practical operation Operation principle.
Embodiment one
The method that interface is tested automatically is carried out by script using of the invention, is modified for existing data, specific behaviour Make flow as follows:
1)It is self-defined and realize one group of command set of operation;
2)Using preprepared test data, start domain instrument;
21)One design cell of selection, opens layout data;
22)Choose the rectangle object in domain;
23)Start move order objects;
24)Start save orders and preserve data;
25)Start gdsOut orders, export design data;
Wherein, 21)、22)、23)、24)With 25)Script command file is automatically generated in step;
3)After test case and command file packing, tested automatically, be put into test set;
4)After automatic test, judge whether this test result is consistent with preset behavior before.
Embodiment two
The method that interface is tested automatically is carried out by script using of the invention, automatic coverage test design is created from scratch Process, concrete operations flow is as follows:
1)It is self-defined and realize one group of command set of operation;
2)Using preprepared test data, start domain instrument;
21)A new design cell is created using create cell orders, needs to select lib library names, input during establishment Cell;
22)Start create rect orders, clicking on drawing area using mouse creates rect;
23)Start create path orders, clicking on drawing area using mouse creates path;
24)Start save orders and preserve data;
25)Start gdsOut orders, export design data;
Wherein, 21)、22)、23)、24)With 25)Script command file is automatically generated in step;
3)After test case and command file packing, it is put into test set;
4)During automatic test, each test case is run one by one using a script batch and is tested automatically;
5)After automatic test, judge whether this test result is consistent with preset behavior before.
Embodiment three
The devices such as the method that interface is tested automatically, covering design MOS, resistance, electric capacity are carried out certainly by script using of the invention Dynamic test, concrete operations flow is as follows:
1)It is self-defined and realize one group of command set of operation;
2)Using preprepared test data, start domain instrument;
21)A new design cell name of MOS18 is created using create cell orders;
22)According to different designs rule, the regions such as source, grid, leakage, the substrate of metal-oxide-semiconductor are drawn;Create can be used in operating process Rect, move, stretch, align, copy, ruler etc. are ordered.
23)Start save orders and preserve data;
24)Start gdsOut orders, export design data;
Wherein, 21)、22)、23)With 24)Script command file is automatically generated in step;
3)After test case and command file packing, it is put into test set;
4)During automatic test, each test case is run one by one using a script batch and is tested automatically;
5)After automatic test, judge whether this test result is consistent with preset behavior before.
One of ordinary skill in the art will appreciate that:The foregoing is only the preferred embodiments of the present invention, and without In the limitation present invention, although being described in detail to the present invention with reference to the foregoing embodiments, for those skilled in the art For, it can still be modified to the technical scheme that foregoing embodiments are recorded, or which part technical characteristic is entered Row equivalent.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., all should include Within protection scope of the present invention.

Claims (7)

1. it is a kind of that the method that interface is tested automatically is carried out by script, it is characterised in that to comprise the following steps:
(1)The command set of self-defined one group of record interface operation;
(2)Play back customized command set, the process of modeling interface operation.
2. the method that interface is tested automatically is carried out by script according to claim 1, it is characterised in that
The command set includes:User carries out left mouse button clicking operation, right click operation, left double click behaviour in drawing area Work, left button frame selection operation and right button frame selection operation, and user are input into character string in interface, carry out selection to control content Operation.
3. the method that interface is tested automatically is carried out by script according to claim 1, it is characterised in that
The interface operation is specifically included:Manual test multiple combination function, a certain function of manual test and hand drawn mos pipes Device.
4. the method that interface is tested automatically is carried out by script according to claim 1, it is characterised in that the step(1) Including step:
(11)Based on test data, by script file, test case is generated;
(12)Single test case is tested.
5. the method that interface is tested automatically is carried out by script according to claim 1, it is characterised in that the step(1) Also include step:
(13)Test case described in batch testing.
6. the method that interface is tested automatically is carried out by script according to claim 5, it is characterised in that the step(13) Including step:
(121)When the test case has problem, the test case is changed;
(122)When the function goes wrong, the function is changed.
7. the method that interface is tested automatically is carried out by script according to claim 1, it is characterised in that the step(2) Further include step:Control the speed of playback speed.
CN201611242967.6A 2016-12-29 2016-12-29 It is a kind of that the method that interface is tested automatically is carried out by script Pending CN106844883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611242967.6A CN106844883A (en) 2016-12-29 2016-12-29 It is a kind of that the method that interface is tested automatically is carried out by script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611242967.6A CN106844883A (en) 2016-12-29 2016-12-29 It is a kind of that the method that interface is tested automatically is carried out by script

Publications (1)

Publication Number Publication Date
CN106844883A true CN106844883A (en) 2017-06-13

Family

ID=59113815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611242967.6A Pending CN106844883A (en) 2016-12-29 2016-12-29 It is a kind of that the method that interface is tested automatically is carried out by script

Country Status (1)

Country Link
CN (1) CN106844883A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348127A (en) * 2019-07-12 2019-10-18 北京物芯科技有限责任公司 A kind of generation method of test case, device, equipment and storage medium
CN111104192A (en) * 2018-10-25 2020-05-05 长沙博为软件技术股份有限公司 Method for simulating manual operation of webpage based on desktop application program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727384A (en) * 2008-10-16 2010-06-09 致伸科技股份有限公司 Control method for automatically testing application software
CN104699598A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 Automatic testing method, device, equipment and system
US9075918B1 (en) * 2014-02-25 2015-07-07 International Business Machines Corporation System and method for creating change-resilient scripts
US20160103761A1 (en) * 2014-10-11 2016-04-14 Toshiba Global Commerce Solutions Holdings Corporation Systems and methods for preparing an application testing environment and for executing an automated test script in an application testing environment
CN105512031A (en) * 2015-11-30 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and automatic test method
CN106126424A (en) * 2016-06-29 2016-11-16 厦门美图移动科技有限公司 A kind of visual automated testing method of script, device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727384A (en) * 2008-10-16 2010-06-09 致伸科技股份有限公司 Control method for automatically testing application software
CN104699598A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 Automatic testing method, device, equipment and system
US9075918B1 (en) * 2014-02-25 2015-07-07 International Business Machines Corporation System and method for creating change-resilient scripts
US20160103761A1 (en) * 2014-10-11 2016-04-14 Toshiba Global Commerce Solutions Holdings Corporation Systems and methods for preparing an application testing environment and for executing an automated test script in an application testing environment
CN105512031A (en) * 2015-11-30 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and automatic test method
CN106126424A (en) * 2016-06-29 2016-11-16 厦门美图移动科技有限公司 A kind of visual automated testing method of script, device and mobile terminal

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
孟磊: "《软件质量与测试》", 31 March 2015 *
王志功 等: "《集成电路设计与九天EDA工具应用》", 31 August 2014 *
褚永栋: "《一种EDA软件的功能测试方法和策略》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
韩雁 等: "《集成电路设计制造中EDA工具实用教程》", 31 August 2007, 浙江大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104192A (en) * 2018-10-25 2020-05-05 长沙博为软件技术股份有限公司 Method for simulating manual operation of webpage based on desktop application program
CN110348127A (en) * 2019-07-12 2019-10-18 北京物芯科技有限责任公司 A kind of generation method of test case, device, equipment and storage medium
CN110348127B (en) * 2019-07-12 2023-05-09 北京物芯科技有限责任公司 Method, device, equipment and storage medium for generating test cases

Similar Documents

Publication Publication Date Title
US9754059B2 (en) Graphical design verification environment generator
CN100492316C (en) System and method for test automation
CN102521118B (en) Automatic testing method of Android program
CN101311897B (en) Method and device for snatching at application program graphical user interface resource
KR101477287B1 (en) Test module generating apparatus, test sequence generating apparatus, generating method, program and test apparatus
CN103345446B (en) A kind of automated testing method being applicable to remote control series products
CN104035873A (en) Method and device for generating testing codes
JPS62212867A (en) Multi-mode simulation system
CN103365643A (en) Method and device for automatically generating testing script of graphical user interface
CN104063286B (en) The fluency method of testing and device of display content change
CN103853863B (en) Implementation method for PDK (process design kit) automatic test interface
CN104375934B (en) Method for testing reliability of Android mobile phone software
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN103838894A (en) Method for achieving automatic PDK testing
CN106844883A (en) It is a kind of that the method that interface is tested automatically is carried out by script
US20200074040A1 (en) Hierarchical expression coverage clustering for design verification
CN104199770B (en) A kind of automated testing method of mobile phone music APK
JP2005300324A (en) Method for analyzing measurement data of device under test, program, and measurement data analysis system
CN104156308B (en) Mobile application testing method on basis of playback of execution trace of users
CN112380800B (en) Online FPGA (field programmable gate array) experimental platform for automatic evaluation and related method
Rothkopf et al. Towards the usability of reactive synthesis: Building blocks of temporal logic
CN104331358B (en) A kind of test and management system and method
CN106407122A (en) Testing method used for software automatic generation system
CN101183400B (en) Debugging and checking method and system in graph hardware design
CN101727384B (en) Control method for automatically testing application software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613

RJ01 Rejection of invention patent application after publication