CN104954204B - A kind of method of testing and equipment - Google Patents

A kind of method of testing and equipment Download PDF

Info

Publication number
CN104954204B
CN104954204B CN201510405623.1A CN201510405623A CN104954204B CN 104954204 B CN104954204 B CN 104954204B CN 201510405623 A CN201510405623 A CN 201510405623A CN 104954204 B CN104954204 B CN 104954204B
Authority
CN
China
Prior art keywords
computer terminal
disk
disk computer
test
equipment under
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
CN201510405623.1A
Other languages
Chinese (zh)
Other versions
CN104954204A (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.)
Mafengwo Guizhou Tourism Group 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 CN201510405623.1A priority Critical patent/CN104954204B/en
Publication of CN104954204A publication Critical patent/CN104954204A/en
Application granted granted Critical
Publication of CN104954204B publication Critical patent/CN104954204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The present invention provides a kind of method of testing and equipment, and reset command is sent without disk computer terminal by what is electrically connected to each port with the equipment under test;And after judging that whetheing there is disk computer terminal carries out restarting action, judge whether each no disk computer terminal is normal and start;When judging in the presence of can not normally start without disk computer terminal, the status information of the equipment under test is obtained to form test result, can quickly find equipment under test with without disk computer terminal can not proper communication port, whole process is that automation is carried out, simple to operate, saving manpower and raising testing efficiency.And Internet bar's interchanger of various models can be tested using this method, it is widely applicable.

Description

A kind of method of testing and equipment
Technical field
The present invention relates to testing field, more particularly to a kind of method of testing and equipment.
Background technology
Internet bar's interchanger is in existing network application at present, due to the burst big flow of each port of cafe environment, it may appear that even Some ports of that can not start or start slower situation without disc system, and Internet bar's entirety traffic-operating period is had a great influence.Due to Switch ports themselves are a lot, and manual test will accomplish many ports while many flows that happen suddenly are relatively difficult, and due to problem Contingency, investigation and record problem are cumbersome.
Currently for problem above, the solution mainly used for 1) pass through tester simulate the various data traffics in Internet bar Stream is beaten for a long time, and whether each port of detection interchanger has packet loss phenomenon or packet drop to occur;2) Internet bar is disposed without disc system, is led to Cross artificial while restart more station terminal client computer, whether detection is restarted every time can normally start.But scheme 1) pass through test Instrument simulation internet bar flow is bigger with real cafe environment difference, and surface speed forwarding can be realized by being able to validate only switch ports themselves, Running situation of the switch ports themselves in actual cafe environment can not completely be reflected;Scheme 2) by disposing Internet bar without disk system System, can reduce Internet bar's practical service environment, but have to artificial on duty, and efficiency is very low.
So also need to a kind of more effectively switch test method and system.
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 method of testing and equipment, uses In solving the problems, such as efficiently easily to test interchanger in the prior art.
In order to achieve the above objects and other related objects, the present invention provides a kind of method of testing, applied to one without disk management In server, for testing an equipment under test being connected with the no disk management server communication, comprise the following steps: To what each port with the equipment under test electrically connected reset command is sent without disk computer terminal;And judging whether there is disk computer Terminal is carried out after restarting action, is judged whether each no disk computer terminal is normal and is started;Can not normally it start when judging to exist Without disk computer terminal when, obtain the status information of the equipment under test to form test result.
Optionally, when judging in the presence of can not normally start without disk computer terminal, stopping continues executing with the test side Method, to preserve current state.
Optionally, according to the network card data bag of the no disk management server to judge whether there is disk computer terminal is equal Carry out restarting action;And judge whether each no disk computer terminal is normal according to the network card data bag of the no disk management server Start.
Optionally, the test result is sent to mailbox set in advance.
Optionally, when judging in the presence of can not normally start without disk computer terminal, described be tested is obtained by serial ports and set Standby status information is to form test result.
In order to achieve the above objects and other related objects, the present invention also provides a kind of test equipment, for logical with it to one The equipment under test of letter connection is tested, including:Order sending module, for being electrically connected to each port with the equipment under test Without disk computer terminal send reset command;Judge module, for judging that whetheing there is disk computer terminal carries out restarting action Afterwards, judge whether each no disk computer terminal is normal to start;Test result forms module, can not normally be opened when judgement is present It is dynamic without disk computer terminal when, obtain the status information of the equipment under test to form test result.
Optionally, the test result forms module, also to whole without disk computer in the presence of can not normally start when judging During end, stopping continues executing with the method for testing, to preserve current state.
Optionally, the judge module according to the network card data bag of the no disk management server to judge whether there is disk electricity Whether brain terminal has carried out restarting action;And the judge module is sentenced according to the network card data bag of the no disk management server Whether disconnected each no disk computer terminal normally starts.
Optionally, the test result forms module, also the test result is sent to mailbox set in advance.
Optionally, the test result forms module, obtains the status information of the equipment under test by serial ports to be formed Test result.
As described above, a kind of method of testing and equipment of the present invention, by being electrically connected to each port with the equipment under test What is connect sends reset command without disk computer terminal;And after judging that whetheing there is disk computer terminal carries out restarting action, judge each Without the whether normal startup in disk computer terminal;When judging in the presence of can not normally start without disk computer terminal, the quilt is obtained The status information of measurement equipment is to form test result, you can it is quick find equipment under test with can not proper communication without disk computer terminal Port, whole process be automation carry out, it is simple to operate, save manpower and improve testing efficiency.And can using this method Internet bar's interchanger of various models is tested, it is widely applicable.
Brief description of the drawings
Fig. 1 is shown as a kind of schematic flow sheet of method of testing of the present invention in one embodiment.
Fig. 2 is shown as a kind of module diagram of test equipment of the present invention in one embodiment.
Fig. 3 is shown as the application schematic diagram of a kind of method of testing and equipment of the present invention in one embodiment.
Component label instructions
1 test equipment
11 order sending modules
12 judge modules
13 test results form module
S11~S13 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.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way Think, the component relevant with the present invention is only shown in illustrating then rather than according to component count, shape and the size during actual implement Draw, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel It is likely more complexity.
Referring to Fig. 1, it is shown as a kind of schematic flow sheet of method of testing of the present invention in one embodiment, application In one without in disk management server, for testing an equipment under test being connected with the no disk management server communication, The equipment under test is the network switch, is comprised the following steps:
S11:To what each port with the equipment under test electrically connected reset command is sent without disk computer terminal;
S12:And after judging that whetheing there is disk computer terminal carries out restarting action, judge whether each no disk computer terminal is equal It is normal to start;Such as by automating TCL script network card data bags to judge whether there is disk computer terminal is carried out Action is restarted, if it is not, continuing to send weight without disk computer terminal to what each port with the equipment under test electrically connected Open order;And by automating TCL script network card data bags to judge whether each no disk computer terminal normally starts.
S13:When judging in the presence of can not normally start without disk computer terminal, the status information of the equipment under test is obtained To form test result, and further, when judging in the presence of can not normally start without disk computer terminal, stop continuing executing with The method of testing, to preserve current state.The status information is, for example, preferably to be included by the Log of side apparatus, the log Version information, port status, the port bottom of equipment under test count, abnormal information records and transmitting-receiving count off counts etc..Its is pre- The Log can be first modified according to the model of equipment under test.
And after the test result is obtained, mailbox set in advance can be sent it to.Further, when each end of test When mouth without disk computer terminal with communicating normal, the normal test result that communicates is formed, and also send the test result to pre- The mailbox first set.It is preferred that the status information of the equipment under test can be obtained by serial ports to form test result.
And Fig. 3 is referred to, a kind of application schematic diagram of method of testing of the present invention in one embodiment is shown as, its In, no disk management server is connected to equipment under test by 10,000,000,000, meanwhile, pass through the serial ports of serial monitoring equipment under test;Without coil pipe Manage server and send automatic reset command to without disk computer terminal, then handling network card data bag by TCL scripts judges no disk Whether computer terminal normally starts;And the no disk management server can record equipment under test and without disk computer terminal by serial ports Log information;Such as collect the Log of equipment under test.The Log includes version information, port status, the port bottom meter of equipment Number, abnormal information record and transmitting-receiving count off statistics etc..It can also be checked without disk computer terminal by KVM (computer switch) Other fail the concrete condition without disk computer terminal normally started.And this is detecting equipment under test without disk management server When can not normally start without disk computer terminal corresponding to certain port, stop performing the action of test, to retain environment, fast and easy Where orientation problem.
Referring to Fig. 2, it is shown as a kind of module diagram of test equipment of the present invention in one embodiment.It is described The equipment under test that test equipment 1 is used to communicate with connection to one is tested, including order sending module 11, judge module 12 and test result formed module 13.
The order sending module 11 is used to send out without disk computer terminal to what each port with the equipment under test electrically connected Send reset command;
The judge module 12 is used for after judging that whetheing there is disk computer terminal carries out restarting action, judges each no disk electricity Whether brain terminal is normal to start;Such as by automating TCL script network card data bags to judge that whether there is disk computer is whole Whether end has carried out restarting action, if it is not, continuing to electrically connect to each port with the equipment under test electric without disk Brain terminal sends reset command;And by automating TCL script network card data bags whether to judge each no disk computer terminal It is normal to start.
The test result forms module 13 when judging in the presence of can not normally start without disk computer terminal, to obtain The status information of the equipment under test is to form test result.And it is further, when judge to exist can not normally start without disk During computer terminal, stopping continues executing with the method for testing, to preserve current state.The status information is, for example, by side apparatus Log, the log preferably including the version information of equipment under test, port status, port bottom count, abnormal information record, And transmitting-receiving count off statistics etc..It can be modified according to the model of equipment under test to the Log in advance.
And the test result forms module 13 after the test result is obtained, and can send it to postal set in advance Case.Further, when testing each port with communicating normal without disk computer terminal, the normal test result that communicates is formed, and also The test result is sent to mailbox set in advance.Preferably, the state letter of the equipment under test can be obtained by serial ports Cease to form test result.
And Fig. 3 is referred to, a kind of application schematic diagram of test equipment of the present invention in one embodiment is shown as, its In, no disk management server is connected to equipment under test by 10,000,000,000, meanwhile, pass through the serial ports of serial monitoring equipment under test;Without coil pipe Manage server and send automatic reset command to without disk computer terminal, then handling network card data bag by TCL scripts judges no disk Whether computer terminal normally starts;And the no disk management server can record equipment under test and without disk computer terminal by serial ports Log information;Such as collect the Log of equipment under test.The Log includes version information, port status, the port bottom meter of equipment Number, abnormal information record and transmitting-receiving count off statistics etc..It can also be checked without disk computer terminal by KVM (computer switch) Other fail the concrete condition without disk computer terminal normally started.And this is detecting equipment under test without disk management server When can not normally start without disk computer terminal corresponding to certain port, stop performing the action of test, to retain environment, fast and easy Where orientation problem.
In summary, a kind of method of testing and equipment of the invention, by being electrically connected to each port with the equipment under test What is connect sends reset command without disk computer terminal;And after judging that whetheing there is disk computer terminal carries out restarting action, judge each Without the whether normal startup in disk computer terminal;When judging in the presence of can not normally start without disk computer terminal, the quilt is obtained The status information of measurement equipment is to form test result, you can it is quick find equipment under test with can not proper communication without disk computer terminal Port, whole process be automation carry out, it is simple to operate, save manpower and improve testing efficiency.And can using this method Internet bar's interchanger of various models is tested, it is widely applicable.So the present invention effectively overcome 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 (8)

1. a kind of method of testing, it is characterised in that applied to one without in disk management server, for one and the no disk management The equipment under test of server communication connection is tested, and is comprised the following steps:
To what each port with the equipment under test electrically connected reset command is sent without disk computer terminal;
And after judging that whetheing there is disk computer terminal carries out restarting action, judge whether each no disk computer terminal normally opens It is dynamic;According to the network card data bag of the no disk management server to judge whether there is disk computer terminal is restarted Make;And judge whether each no disk computer terminal normally starts according to the network card data bag of the no disk management server;
When judging in the presence of can not normally start without disk computer terminal, the status information for obtaining the equipment under test is surveyed with being formed Test result.
2. method of testing according to claim 1, it is characterised in that:When judge exist can not normally start without disk computer During terminal, stopping continues executing with the method for testing, to preserve current state.
3. method of testing according to claim 1, it is characterised in that:The test result is sent to postal set in advance Case.
4. method of testing according to claim 1, it is characterised in that:When judge exist can not normally start without disk computer During terminal, the status information of the equipment under test is obtained by serial ports to form test result.
A kind of 5. test equipment, it is characterised in that the equipment under test for communicating with connection to one is tested, including:
Order sending module, restart life without the transmission of disk computer terminal for what is electrically connected to each port with the equipment under test Order;
Judge module, for after judging that whetheing there is disk computer terminal carries out restarting action, judging that each no disk computer terminal is No normal startup;The judge module is according to the network card data bag of the no disk management server to judge whether there is disk computer Whether terminal has carried out restarting action;And the judge module judges according to the network card data bag of the no disk management server Respectively whether normally start without disk computer terminal;
Test result forms module, described tested when judging in the presence of can not normally start without disk computer terminal, to obtain The status information of equipment is to form test result.
6. test equipment according to claim 5, it is characterised in that:The test result forms module, also sentences to work as It is disconnected exist can not normally start without disk computer terminal when, stopping continue executing with the method for testing, to preserve current state.
7. test equipment according to claim 5, it is characterised in that:The test result forms module, also to by institute Test result is stated to send to mailbox set in advance.
8. test equipment according to claim 5, it is characterised in that:The test result forms module, is obtained by serial ports The status information of the equipment under test is taken to form test result.
CN201510405623.1A 2015-07-10 2015-07-10 A kind of method of testing and equipment Active CN104954204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510405623.1A CN104954204B (en) 2015-07-10 2015-07-10 A kind of method of testing and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510405623.1A CN104954204B (en) 2015-07-10 2015-07-10 A kind of method of testing and equipment

Publications (2)

Publication Number Publication Date
CN104954204A CN104954204A (en) 2015-09-30
CN104954204B true CN104954204B (en) 2018-01-16

Family

ID=54168578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510405623.1A Active CN104954204B (en) 2015-07-10 2015-07-10 A kind of method of testing and equipment

Country Status (1)

Country Link
CN (1) CN104954204B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562545A (en) * 2008-04-15 2009-10-21 英业达股份有限公司 WOL test method
CN104320313A (en) * 2014-11-28 2015-01-28 上海斐讯数据通信技术有限公司 System and method for testing ports of interchanger

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562545A (en) * 2008-04-15 2009-10-21 英业达股份有限公司 WOL test method
CN104320313A (en) * 2014-11-28 2015-01-28 上海斐讯数据通信技术有限公司 System and method for testing ports of interchanger

Also Published As

Publication number Publication date
CN104954204A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN103812726B (en) Automated testing method and device for data communication equipment
CN104394029B (en) A kind of total line detecting methods of AFDX based on hybrid channel
CN106452942B (en) The vehicle-mounted Ethernet exchanging software performance test system and method for track transportation industry
CN106547668B (en) Computer system fault alarming method, apparatus and system
CN104360922A (en) Method for automatically monitoring BMC working state based on ipmitool
CN105471620A (en) Broadband intelligent terminal embedded network analysis and diagnosis device and method thereof
CN106407059A (en) Server node testing system and method
CN104767657A (en) Optical modem registration and testing system and method
CN106094788B (en) Embedded board system for testing stability and method
CN104320313A (en) System and method for testing ports of interchanger
CN102291274B (en) A kind of system and method realizing automatic adaptation of network testing instrument
CN108111367A (en) Performance test methods and device
CN109104335A (en) A kind of industrial control equipment network attack test method and system
CN107742265A (en) One kind is based on big data analysis online testing invigilator's system
CN111130597B (en) HPLC communication unit detecting system
CN104535953A (en) Automatic detection system and method of liquid crystal display screen of intelligent ammeter
CN105550103B (en) A kind of automated testing method based on self-defined test script
CN105892609B (en) A kind of method and intelligent terminal of terminal booting and identification memory card synchronous operation
CN101252477B (en) Determining method and analyzing apparatus of network fault root
CN104954204B (en) A kind of method of testing and equipment
CN110489287A (en) Method, system and the storage medium of hot plug are tested by Ipmitool
CN201917293U (en) PCB through hole detection clamp
CN108933714A (en) It is a kind of to detect the method, apparatus and storage medium that IP address whether there is
CN105721226B (en) A kind of QoS automatic test device and test method
CN202735427U (en) Test apparatus and system for Ethernet consistency

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: 20201125

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou 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
TR01 Transfer of patent right

Effective date of registration: 20201221

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

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

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210207

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221014

Address after: No. 407, 4th Floor, Digital Content Industrial Park, Building 19, Group A3-3, Yuncheng Shangpin, Yuncheng Street, Baiyun District, Guiyang City, Guizhou Province, 550000

Patentee after: Mafengwo (Guizhou) Tourism Group Co.,Ltd.

Address before: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee before: Huzhou YingLie Intellectual Property Operation Co.,Ltd.