CN104363059B - The method of testing and system of integration testing instrument - Google Patents

The method of testing and system of integration testing instrument Download PDF

Info

Publication number
CN104363059B
CN104363059B CN201410720591.XA CN201410720591A CN104363059B CN 104363059 B CN104363059 B CN 104363059B CN 201410720591 A CN201410720591 A CN 201410720591A CN 104363059 B CN104363059 B CN 104363059B
Authority
CN
China
Prior art keywords
test
module
instrumentation
log
started
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
CN201410720591.XA
Other languages
Chinese (zh)
Other versions
CN104363059A (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.)
Benxi Steel Group Information Automation Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410720591.XA priority Critical patent/CN104363059B/en
Publication of CN104363059A publication Critical patent/CN104363059A/en
Application granted granted Critical
Publication of CN104363059B publication Critical patent/CN104363059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention provides a kind of method of testing and system of integration testing instrument.According to the method for testing, the test system is during equipment under test is tested by calling the pre-configured corresponding test module of interface startup with each test module in test instrumentation;When it is determined that the test module started runs completion, the test log comprising test process and/or test result that the test module is recorded is obtained;And the test to the equipment under test is continued executing with based on acquired test log.Two entirely different test equipments of performing environment are combined by the present invention by the interface configured with each test module in test instrumentation, be effectively prevent the uncoordinated of two test equipments, are effectively increased the testing efficiency to equipment under test;Meanwhile the test system utilizes the test log in the test instrumentation, automatically extracts required test record and continues to test, realizes the test of the full automation between two entirely different test environments.

Description

The method of testing and system of integration testing instrument
Technical field
The present invention relates to a kind of testing field of communication equipment, more particularly to a kind of method of testing of integration testing instrument And system.
Background technology
To communicate class of electronic devices test have it is a variety of, as protocol conformance test, functional test, performance statistics survey Examination etc..In order to test equipment under test comprehensively, tester needs to test equipment under test using a variety of test platforms.
At present, tester needs to do equipment under test survey as much as possible on a test platform in test process Examination, then fights in different parts to another test platform again.Because the hardware of each test platform, software environment are inconsistent.Therefore, design Test module and maintenance test environment are required for tester individually to dispose.In addition, in many cases, it is flat in a certain test The test process of platform needs to rely on the test result of another test platform or the data of test process.At this moment, tester is consumed The energy and the composition of manual intervention taken will be more.This troublesome operation but also can not only be avoided, maintenance cost for tester It is just higher.
Therefore, it is necessary to effectively be integrated to existing more test systems.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of test of integration testing instrument Method and system, for solution, existing more test platform degrees of coupling are too low in the prior art, can not realize that tests automatically asks Topic.
In order to achieve the above objects and other related objects, the present invention provides a kind of method of testing of integration testing instrument, bag Include:It is pre-configured corresponding to the interface startup of each test module in test instrumentation by calling during equipment under test is tested Test module;It is determined that the test module that is started is run when completing, obtaining that the test module recorded comprising test The test log of process and/or test result;Test to the equipment under test is continued executing with based on acquired test log.
Preferably, the default interface with each test module in test instrumentation includes:Configuration corresponds to each survey The keyword of the startup code of die trial block.
Preferably, the default mode with the interface of each test module in test instrumentation of the calling includes:Using SSH skills The startup code for the test module called is transferred to the test instrumentation by art, so that the test instrumentation starts corresponding survey Die trial block.
Preferably, it is determined that the mode that the test module operation started is completed includes:The started test module of monitoring exists Process in the test instrumentation, when the process disappears, it is determined that the test module operation started is completed.
Preferably, the test instrumentation includes:Automatic test instrument based on CDRouter, IXIA or SmartBits Table.
Based on above-mentioned purpose, the present invention also provides a kind of test system of integration testing instrument, including:First module, use In pre-configured corresponding to the interface startup of each test module in test instrumentation by calling during equipment under test is tested Test module;Second module, for when it is determined that the test module started runs completion, obtaining the test module and being remembered The test log comprising test process and/or test result of record;3rd module, for based on acquired test log continuation Perform the test to the equipment under test.
Preferably, the default interface with each test module in test instrumentation includes in first module:Configuration is corresponding In the keyword of the startup code of each test module.
Preferably, first module is used to be transferred to the startup code for the test module called using SSH technologies The test instrumentation, so that the test instrumentation starts corresponding test module.
Preferably, tell that the second module is additionally operable to monitor process of the started test module in the test instrumentation, When the process disappears, it is determined that the test module operation started is completed.
Preferably, the test instrumentation includes:Automatic test instrument based on CDRouter, IXIA or SmartBits Table.
As described above, the method for testing and system of the integration testing instrument of the present invention, have the advantages that:By with Put and be combined two entirely different test equipments of performing environment with the interface of each test module in test instrumentation, effectively avoid Two test equipments it is uncoordinated, effectively increase the testing efficiency to equipment under test;Meanwhile the test system utilizes institute The test log in test instrumentation is stated, required test record is automatically extracted and continues to test, is realized at two completely The test of full automation between different test environments;In addition, determine to be started by the process in monitoring and test instrument Test module completed to test, then obtain test log, test log can not only be obtained in time to carry out follow-up test, moreover it is possible to Effectively prevent because can not learn test instrumentation whether complete test and blindly obtain data caused by test log it is not congruent lack Fall into;Further, using SSH technologies, the carry out remote control test instrumentation of energy safety, test system and test instrumentation are reduced by hard The trouble such as place caused by part connection.
Brief description of the drawings
Fig. 1 is shown as the flow chart of the method for testing of the integration testing instrument of the present invention.
Fig. 2 is shown as the structural representation of the test system of the integration testing instrument of the present invention.
Component label instructions
1 test system
11 first modules
12 second modules
13 the 3rd modules
2 test instrumentations
S1~S3 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where not conflicting, following examples and implementation Feature in example can be mutually combined.
Referring to Fig. 1, the present invention provides a kind of method of testing of integration testing instrument.The method of testing is mainly by installing Test system in test platform performs.Wherein, the test platform can be (automatic to survey based on RobotFramework Try framework), the level of QTP (Quick Test Professional quickly test professional version) test platform or independent research Test frame of change etc..The test instrumentation includes but is not limited to:Automation based on CDRouter, IXIA or SmartBits Test instrumentation
Wherein, the test instrumentation is mainly used to that the equipment under test progress test system can not be carried out or utilized The test system is not easy to the test carried out.For example, the test system is used for testing the function of equipment under test, and integrate Test instrumentation be protocol conformance for testing equipment under test, when the test system needs the survey in test process Try instrument test result or test process in packet capturing data when, will be complete with selftest environment which employs following method Different test instrumentations are integrated, to realize automatic test.Wherein, the equipment under test can be the electronics of any communication class Equipment, it includes but is not limited to:Router, interchanger etc..
In step sl, the test system during equipment under test is tested by calling pre-configured and tester The interface of each test module starts corresponding test module in table.
Wherein, the interface can be the hardware interface between the test system and test instrumentation.Here it is preferable, institute State interface for tester previously according in each test module in each test module and the test system in test instrumentation Corresponding relation be pre-configured with the test system.For example, the tester utilizes configuration file by the test The startup code match of the call instruction of each test module in system and the corresponding test module in the test instrumentation.More For preferably, the interface corresponds to the keyword of the startup code of each test module for configuration.For example, tester exists The keyword of the startup code corresponding to each test module is configured with the test system, then the test system is being transported The operation of test module is corresponded in the test instrumentation to start by calling corresponding keyword during row.
Here, the instruction between the test system and test instrumentation can pass through hardware interface (such as USB universal serial bus Interface) transmit.Preferably, the test system uses SSH (safety shell protocol) technologies by the test module called Start code and be transferred to the test instrumentation, so that the test instrumentation starts corresponding test module.For example, the test system Unite and test instrumentation network connection, then the test system uses SSH frameworks, and the startup code of encryption is transferred into the test Instrument.
Therefore the test system passes through the configured pass of calling when performing test script according to script setting Key word, the startup code corresponding to the keyword is passed to by test instrumentation using SSH technologies, then the test instrumentation starts And test module corresponding to running, at the same time, the current test of test system pause, and wait the survey of corresponding test module Examination is completed.
In step s 2, the test system obtains the test when it is determined that the test module started runs completion The test log comprising test process and/or test result that module is recorded.
Specifically, when the test module in the test instrumentation is activated operation, the test instrumentation is by test process And test result is stored in the form of daily record in default file, when the test instrumentation has performed corresponding test mould Block, the test log actively can be supplied to the test system, so that the test system is recovered again and continues to hold Row follow-up test.Its presentation mode can also use SSH technologies, to ensure safety.
In fact, most of test instrumentations do not have the function of actively exporting test log.The test system is temporary While stopping test, started test module is monitored in the test instrumentation by the mode such as telnet or interface access In process, when the process disappears, it is determined that the operation of the test module that is started is completed.
In the present embodiment, the test system enters the operating system of the test instrumentation using technologies such as telnets In, and the process title in the test instrumentation is monitored, when the process title of the test module started disappears, determine its fortune Row is completed, and now, corresponding test log is extracted from default file.
For example, the test system remotely enters the test instrumentation after test module A is started, and circulate and perform ps- Auwx | grep buddy's instructs to monitor buddy executive process, and reads the result of PS instructions, by return value with just Then expression formula is gone to match tclsh processes, if the match is successful, the corresponding test module A of explanation is also being run, it is on the contrary then from presetting File in test log corresponding to the test module A is provided, and perform step S3.
In step s3, the test system continues executing with the survey to the equipment under test based on acquired test log Examination.
Specifically, the test system is after test log is obtained, and by the analysis to test log, therefrom extraction is surveyed Test result or described packet capturing data etc. test information, and the survey of pause is substituted into using the test information extracted as parameter In training sheet, to continue executing with the test script.
For example, the test system extracts number of the equipment under test transmitted by by address ip 1 in acquired test log According to being forwarded to all forwarding data during address ip 2, and the forwarding data extracted are sent into the test script of pause, and The test script is continued executing with, it is whether consistent to detect extracted forwarding data and default expectation, and surveyed accordingly Test result.
Referring to Fig. 2, the present invention provides a kind of test system of integration testing instrument.The test system 1 is included by pacifying Software and hardware in test platform.Wherein, the test platform can be based on RobotFramework (automatic tests Framework), the stratification of QTP (Quick Test Professional quickly test professional version) test platform or independent research Test frame etc..The test instrumentation 2 includes but is not limited to:Automation based on CDRouter, IXIA or SmartBits Test instrumentation 2
Wherein, the test instrumentation 2, which is mainly used to carry out equipment under test 3 test system 1, can not be carried out or profit The test that carries out is not easy to the test system 1.For example, the test system 1 is used for testing the function of equipment under test 3, and The test instrumentation 2 integrated is the protocol conformance for testing equipment under test 3, when the test system 1 is in test process Need the test instrumentation 2 test result or test process in packet capturing data when, it have invoked following module will be with itself The entirely different test instrumentation 2 of test environment is integrated, to realize automatic test.Wherein, the equipment under test 3 can be to appoint The electronic equipment of what communication class, it includes but is not limited to:Router, interchanger etc..
The test system 1 includes:First module 11, the second module 12 and the 3rd module 13.
First module 11 is used for pre-configured with test instrumentation 2 by calling during equipment under test 3 is tested In the interface of each test module start corresponding test module.
Wherein, the interface can be the hardware interface between the test system 1 and test instrumentation 2.It is here preferable, The interface is tester previously according to each test mould in each test module in test instrumentation 2 and first module 11 What the corresponding relation in block was pre-configured with first module 11.For example, the tester utilizes configuration file by institute State the call instruction of each test module in the first module 11 and the startup code of the corresponding test module in the test instrumentation 2 Match.It is further preferable that keyword of the interface for configuration corresponding to the startup code of each test module.For example, Tester is configured with the keyword of the startup code corresponding to each test module in first module 11, then described First module 11 is started in the test instrumentation 2 by calling corresponding keyword in the process of running corresponds to test module Operation.
Here, instruction between first module 11 and test instrumentation 2 can (such as USB be serial by hardware interface EBI) transmit.Preferably, the test that first module 11 will be called using SSH (safety shell protocol) technologies The startup code of module is transferred to the test instrumentation 2, so that the test instrumentation 2 starts corresponding test module.For example, institute The first module 11 and the network connection of test instrumentation 2 are stated, then first module 11 uses SSH frameworks, by the startup code of encryption It is transferred to the test instrumentation 2.
Therefore first module 11 is configured when performing test script according to script setting by calling Keyword, the startup code corresponding to the keyword is passed to by test instrumentation 2 using SSH technologies, then the test instrumentation 2 Start and run corresponding test module, at the same time, first module 11 suspends current test, and waits corresponding test mould The test of block is completed.
Second module 12 is used to when it is determined that the test module started runs completion, obtain the test module institute The test log comprising test process and/or test result of record.
Specifically, when the test module in the test instrumentation 2 is activated operation, the test instrumentation 2 will be tested Journey and test result are stored in the form of daily record in default file, when the test instrumentation 2 has performed corresponding test Module, the test log actively can be supplied to second module 12, so that second module 12 is recovered simultaneously again Continue executing with follow-up test.Its presentation mode can also use SSH technologies, to ensure safety.
In fact, most of test instrumentations 2 do not have the function of actively exporting test log.Second module 12 exists While pause test, started test module is monitored in the tester by the mode such as telnet or interface access Process in table 2, when the process disappears, it is determined that the test module operation started is completed.
In the present embodiment, second module 12 enters the operation system of the test instrumentation 2 using technologies such as telnets In system, and the process title in the test instrumentation 2 is monitored, when the process title of the test module started disappears, it is determined that It, which runs, completes, and now, corresponding test log is extracted from default file.
For example, second module 12 remotely enters the test instrumentation 2 after test module A is started, and circulate execution Ps-auwx | grep buddy's instructs to monitor buddy executive process, and reads the result of PS instructions, is used by return value Regular expression is gone to match tclsh processes, if the match is successful, the corresponding test module A of explanation is also being run, it is on the contrary then from pre- If file in test log corresponding to the test module A is provided, and start the 3rd module 13.
3rd module 13 is used to continue executing with the test to the equipment under test 3 based on acquired test log.
Specifically, the 3rd module 13, by the analysis to test log, is therefrom extracted after test log is obtained Test result or described packet capturing data etc. test information, and substitute into pause using the test information extracted as parameter In test script, to continue executing with the test script.
For example, the 3rd module 13 extracts equipment under test 3 by transmitted by address ip 1 in acquired test log All forwarding data during data forwarding to address ip 2, and the forwarding data extracted are sent into the test script of pause, And the test script is continued executing with, it is whether consistent to detect extracted forwarding data and default expectation, and obtain corresponding Test result.
In summary, the method for testing and system of integration testing instrument of the invention, by configure with it is each in test instrumentation Two entirely different test equipments of performing environment are combined by the interface of test module, effectively prevent two test equipments It is uncoordinated, effectively increase the testing efficiency to equipment under test;Meanwhile the test system utilizes the survey in the test instrumentation Try daily record, automatically extract required test record and continue to test, realize two entirely different test environments it Between full automation test;In addition, determine that started test module has been completed by the process in monitoring and test instrument Test, then test log is obtained, test log can not only be obtained in time to carry out follow-up test, moreover it is possible to effectively prevented because that can not obtain Know whether test instrumentation completes test and blindly obtain the not congruent defect of data caused by test log;Further, using SSH skills Art, can safety carry out remote control test instrumentation, reduce test system with test instrumentation the field as caused by connecting hardware The trouble such as ground.So the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as Into all equivalent modifications or change, should by the present invention claim be covered.

Claims (6)

  1. A kind of 1. method of testing of integration testing instrument, it is characterised in that including:
    Test system is when performing test script, according to script setting by calling pre-configured corresponding in test instrumentation respectively to survey The keyword of the startup code of die trial block, tester is passed to using SSH technologies by the startup code corresponding to the keyword Table, then test instrumentation start and run corresponding test module;At the same time, the current test of test system pause, and wait Treat that the test of corresponding test module is completed;
    It is determined that the test module that is started is run when completing, obtain that the test module recorded comprising test process and/ Or the test log of test result, and it is supplied to the test system;
    The test system is after test log is obtained, by the analysis to test log, therefrom extract test result or Described packet capturing data test information, and substituted into using the test information extracted as parameter in the test script of pause, with Just the test script is continued executing with.
  2. 2. the method for testing of integration testing instrument according to claim 1, it is characterised in that:Determine started test mould The mode that block operation is completed includes:Process of the started test module of monitoring in the test instrumentation, when the process disappears Lose, it is determined that the test module operation started is completed.
  3. 3. the method for testing of integration testing instrument according to claim 1, it is characterised in that:The test instrumentation includes: Automatic test instrument based on CDRouter, IXIA or SmartBits.
  4. A kind of 4. test system of integration testing instrument, it is characterised in that including:
    First module, for when performing test script, test instrumentation pre-configured is corresponded to by calling according to script setting In each test module startup code keyword, the startup code corresponding to the keyword is passed to using SSH technologies Test instrumentation, then test instrumentation start and run corresponding test module;At the same time, the current test of the first module pause, and The test of corresponding test module is waited to complete;
    Second module, for when it is determined that the test module started runs completion, obtaining the bag that the test module is recorded Test log containing test process and/or test result;
    3rd module, for after test log is obtained, by the analysis to test log, therefrom extract test result or Described packet capturing data test information, and substituted into using the test information extracted as parameter in the test script of pause, with Just the test script is continued executing with.
  5. 5. the test system of integration testing instrument according to claim 4, it is characterised in that:Tell that the second module is additionally operable to Process of the started test module of monitoring in the test instrumentation, when the process disappears, it is determined that the test started Module operation is completed.
  6. 6. the test system of integration testing instrument according to claim 4, it is characterised in that:The test instrumentation includes: Automatic test instrument based on CDRouter, IXIA or SmartBits.
CN201410720591.XA 2014-12-02 2014-12-02 The method of testing and system of integration testing instrument Active CN104363059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410720591.XA CN104363059B (en) 2014-12-02 2014-12-02 The method of testing and system of integration testing instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410720591.XA CN104363059B (en) 2014-12-02 2014-12-02 The method of testing and system of integration testing instrument

Publications (2)

Publication Number Publication Date
CN104363059A CN104363059A (en) 2015-02-18
CN104363059B true CN104363059B (en) 2017-11-28

Family

ID=52530290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410720591.XA Active CN104363059B (en) 2014-12-02 2014-12-02 The method of testing and system of integration testing instrument

Country Status (1)

Country Link
CN (1) CN104363059B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256363A (en) * 2016-12-29 2018-07-06 大唐移动通信设备有限公司 A kind of radio frequency test method and device
CN110347589B (en) * 2019-06-11 2022-04-29 烽火通信科技股份有限公司 Software unit test automatic detection method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7222255B1 (en) * 2001-02-28 2007-05-22 3Com Corporation System and method for network performance testing
CN101106787B (en) * 2006-07-12 2010-11-10 大唐移动通信设备有限公司 Base station RF index testing system and method, and RF box for TD-SCDMA system
CN102855155B (en) * 2012-06-21 2015-05-06 伟创力电子技术(苏州)有限公司 Automatic programming and functional test all-in-one machine for light-radio frequency transceiving module
CN102904777B (en) * 2012-10-15 2015-06-17 上海斐讯数据通信技术有限公司 Port-based multi-equipment testing implementing method

Also Published As

Publication number Publication date
CN104363059A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN104216840B (en) The method and device that a kind of USB sets and operated to external equipment
CN106776294B (en) Automatic android mobile phone testing method and system
CN104796240A (en) Fuzz testing system for stateful network protocol
US20090156314A1 (en) System and method for re-generating packet load for load test
CN102301344B (en) Method for debugging kernel of operating system and virtual debugging service module
CN103761185B (en) A kind of automatization test system and method
JP2018010638A5 (en)
CN105740139B (en) A kind of debugging embedded software method based on virtual environment
CN101539877A (en) Embedded device testing system and testing method thereof
CN104363059B (en) The method of testing and system of integration testing instrument
CN104536900A (en) Method and device for controlling mobile terminal
CN106534130A (en) Method and system for debugging set-top box based on embedded web
CN103731663A (en) Method and device for testing smart television
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
CN105704484A (en) Testing device and method for simulating user operation on TV set
US9329960B2 (en) Methods, systems, and computer readable media for utilizing abstracted user-defined data to conduct network protocol testing
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN103701662B (en) Automated terminal test emulation mode and analogue system
CN105868112A (en) Interactive automatic testing method and system
CN111025916A (en) Household appliance detection control method and system
CN112671814B (en) Cross-platform equipment development method, device and system
CN104461629B (en) PC terminals and its method for installing application program of mobile phone
CN110309056B (en) Cross-platform simulation system for testing software input and output functions
CN114095409A (en) Remote detection method, device, equipment and storage medium for terminal equipment fault
CN107220149B (en) Method and system for capturing debugging data of wireless communication module in Linux system under Windows

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201030

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

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

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231019

Address after: 117000 No. 130, Guangyu Road, Pingshan District, Benxi City, Liaoning Province

Patentee after: BENXI STEEL (GROUP) INFORMATION AUTOMATION CO.,LTD.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right