CN102916848A - Automatic test method of Ethernet interface equipment based on script technology - Google Patents

Automatic test method of Ethernet interface equipment based on script technology Download PDF

Info

Publication number
CN102916848A
CN102916848A CN2012102488186A CN201210248818A CN102916848A CN 102916848 A CN102916848 A CN 102916848A CN 2012102488186 A CN2012102488186 A CN 2012102488186A CN 201210248818 A CN201210248818 A CN 201210248818A CN 102916848 A CN102916848 A CN 102916848A
Authority
CN
China
Prior art keywords
test
script
model
engineering
data
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
CN2012102488186A
Other languages
Chinese (zh)
Other versions
CN102916848B (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201210248818.6A priority Critical patent/CN102916848B/en
Publication of CN102916848A publication Critical patent/CN102916848A/en
Application granted granted Critical
Publication of CN102916848B publication Critical patent/CN102916848B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to an automatic test method of Ethernet interface equipment based on a script technology, which comprises the following steps: 1, establishing a test project: establishing the test project by using test management software positioned on a control end; 2, constructing a model: constructing the test model, and enabling a test system to distribute and initialize various resources required for one test, wherein the test model is also managed by a management end, the model is one or a given number of subitems of the test project, the control end provides a graphical model construction tool, and the construction of the model can be conveniently finished by using the tool; 3, writing a test script; 4, loading the project, wherein the test control end stores the test project and the model and script contained therein after the previous three steps are finished; 5, implementing the test; and 6, collecting the results. According to the invention, the independent test implementation end is used to perform the test, so that the reliability and accuracy of the test can be ensured, the use is simple and convenient, the work efficiency of users is greatly improved, and the labor cost is saved.

Description

A kind of automatic test approach of the Ethernet interface equipment based on script technology
[technical field]
The present invention relates to a kind of automatic test approach that utilizes the Ethernet interface equipment of script technology realization, it is relevant with computer network, hardware system detection technique and software testing technology, belongs to the automatization testing technique field.
[background technology]
Development along with science and technology, Ethernet is as the communication interface of a kind of high speed, cheapness, use more and more extensive at military affairs, Aero-Space and industrial department etc., yet along with the complexity of equipment under test and agreement improves gradually, traditional requirement that only has been difficult to satisfy various complicated test scenes with ethernet test software or the system of the mode work such as Data Packet Seize.
Aspect automatic test, popularize based on the automatization test system of traditional industry bus, and because Ethernet has the characteristics such as data volume is large, protocol layer is complicated, therefore can carry out the method for automatic test to Ethernet interface at present also rarely found.
[summary of the invention]
1, purpose:
The automatic test approach that the purpose of this invention is to provide a kind of Ethernet interface equipment based on script technology, a kind of automated testing method towards Ethernet interface equipment namely is provided, it has overcome the deficiencies in the prior art, have functional strong, the characteristics such as be simple and easy to use.It can be widely used in the equipment automatization test of the Ethernet interface of various 10M, 100M or 1000M.It has following characteristics:
1) can simulate simultaneously a plurality of IP and equipment under test communication, can be simultaneously and a plurality of equipment under test communications;
2) can support TCP, UDP network layer protocol
3) can support multicast and multicast
4) but the link layer protocols such as test I CMP, IGMP, ARP;
5) use the script control technology, realize automatic test;
2, technical scheme:
(1) automatic testing equipment of Ethernet interface equipment (being the industry ethernet checkout equipment) brief introduction:
The present invention is a kind of method of testing based on main frame/target machine structure.The industry ethernet checkout equipment is comprised of A. test control end (abbreviation control end) and B. test implementation end (be called for short and implement end).Wherein, control end is used for configuration information, the real-time demonstration that starts or stops test, test data and the data analysis of test result etc. of management testing engineering.Implement end and in whole test, play the part of the role of data input and output.It has two ethernet network interface cards, be respectively applied to the equipment under test communication and with the control end communication.
(2) technical scheme:
The automatic test approach of a kind of Ethernet interface equipment based on script technology of the present invention, as shown in Figure 4, its step is as follows:
1) step 1 is set up testing engineering
Testing engineering is the administrative unit of test, and each testing engineering can comprise several test models and test script; Testing engineering is managed by test control end, is positioned at the supervision test software of control end by use, can set up testing engineering; Click the engineering menu at the menu bar of supervision test software, in popup menu, click newly-built option, click rear ejection new construction dialog box; In this dialog box, need to input the title of engineering, in modelling file and test script tabulation, can import simultaneously existing model file or script file in newly-built engineering; After finishing the filling in of relevant information, can click confirming button, engineering is set up and is finished; If the test script of importing is arranged, then script information can be listed in the test script list box;
2) step 2 makes up model
Test model is the abstract of equipment under test and interface relationship thereof in the test process, and by making up test model, test macro can distribute and initial work for once testing required various resources; By the management end management, model is one or several subitems of testing engineering to test model equally; Control end provides patterned model construction instrument, can finish easily model construction work by using this instrument; Concrete modeling process is as follows:
At first click " realistic model " in the tabulation of the tool box in left side and it is dragged in the design panel, " realistic model " is used for describing equipment under test; Can revise the information such as title, position of model by the attribute column on right side; Click afterwards " simulation model " and it is dragged in the design panel from tool box, left side tabulation, " simulation model " is used for describing native system the role of test, and namely native system needs which virtual unit of emulation and equipment under test to carry out communication;
After finishing the design of model, need to make up the communication relation between model; By " line " and " simulation model " of clicking respectively in order just now foundation and " the true model " of clicking the left side toolbar, namely made up one by the oriented line of " simulation model " sensing " true model "; This line represents that " simulation model " needs to send data to " true model ", represents namely that for native system needs send data; With clicking two models with top opposite order, namely made up an oriented line by " true model " sensing " simulation model "; This line represents that " simulation model " need to from " true model " receive data, need namely represent receive data for native system;
For the form of definition data, then solve by making up variable at line; By being positioned at the variable window on modelling instrument right side, can set up variable at line; Newly-built variable also by its association attributes of property window editor on right side, mainly comprises the information such as name variable, type, cycle; Wherein name variable can use in test script, and test script obtains or revise the value of variable by this title;
3) step 3 is write test script
Test script is the form of presentation of test case, and test script has stipulated when which kind of excitation which kind of interface applies; Different test scripts has represented different test cases, and once test can be carried out a plurality of test scripts; The user can stipulate Starting Executing Time, execution number of times and the time of implementation interval of script in test script, can write easily test script by using general text editor (such as notepad) or script-editor (such as the Python script);
4) step 4 is written into engineering
After having finished first three step work, test control end has namely been preserved engineering and the model that comprises and the script of test; The engineering menu of the instrument of user by clicking control end is clicked opening option and can select project file in the popup menu; After opening engineering, can list the script relevant with this test in the test script tabulation, by clicking the initialization button on the script listing, the mode that testing engineering is namely uploaded by network uploads to the test implementation end, comprising the test model test script relevant with all; After the enforcement termination is received engineering, model and script file can be kept at this locality temporarily, then reading model file, by task manager analytic modell analytical model file, and initialization related resource, comprising registering timed task (the transmitting-receiving task that comprises data to timer, test result is collected task dispatching), open the network equipment to the equipment manager request, the binding network address and port, register the variable information of required record etc. to data recordin module, simultaneously, script interpreter is resolved test script file, and cycle and the data message of script offered task manager;
5) step 5 is implemented test
After finishing the work of the 4th step, control end can be by the start button on the hit testing script listing, assign the test sign on by network to implementing end, after the test implementation termination is received this instruction, all test assignments that create before starting, comprise the transmitting-receiving of test data, test result collection etc., and carry out item by item test script according to user-defined order and time in the script, after all scripts all are finished, implement end and automatically stop all test assignments, close the network equipment and discharge related resource, the user also can stop test in the test implementation process at any time, and data transmit-receive and collection are then finished automatically by test macro;
6) step 6 collection
After finishing for the 5th step, test control end can download to control end with the result who implements the test of end preservation in the test implementation process, use embedded real-time operating system owing to implementing end, be difficult in this system, test result be checked and analytical work, therefore need to be after test implementation finishes, by network result data is transferred to control end, at control end, the result preserves with the form of database, and the user can usage data analysis tool reading out data or data exported as the forms such as Excel, OriginLab.
3, advantage and effect:
The present invention uses independent test implementation end to test, and has guaranteed reliability and the precision of test.It unmannedly intervenes test by what real-time oss unified that automatic test script realizes ethernet device, is a kind of novel solution prioritization scheme of field of automatic testing.The present invention uses simply, convenient, especially possess the function of High-Speed Automatic detection, whether the decision signal switching accurate, wrongly then warns the user, has greatly improved user's operating efficiency, saves cost of labor.
Its outstanding advantage imbody is in the following areas:
(1) can implement test to a plurality of equipment simultaneously
The present invention can simulate a plurality of IP address device simultaneously, simultaneously also can with the communication of a plurality of IP address device, the Reality simulation complex network environment improves the confidence level of test.
(2) support the multiple network agreement
The present invention can support the functions such as the data transmit-receive, fault injection of TCP, UDP network layer protocol, supports simultaneously the transmitting-receiving of the link layer protocols such as ICMP, IGMP.
(3) support generic script
The present invention uses the generic script language as test control and the effective language of system, is user-friendly to.
(4) simple to operate
The invention provides patterned modeling and panel designs instrument, have simultaneously script prompt and the audit function of hommization.
[description of drawings]
Fig. 1 is the test implementation structure chart.
Fig. 2 is the test control end system construction drawing.
Fig. 3 is test implementation end system structure chart.
Fig. 4 is method of testing flow chart of the present invention.
Fig. 5 is the test control end software flow pattern.
Fig. 6 is test implementation end software flow pattern.
Fig. 7 is the model construction tools interfaces.
Fig. 8 is test control end engineering menu.
Fig. 9 is test control end new construction dialog box.
Figure 10 is test control end test script list box.
Figure 11 is modelling tool properties list box.
Figure 12 is that the test control end test data derives menu.
[embodiment]
The automatic test approach of a kind of Ethernet interface equipment based on script technology of the present invention, as shown in Figure 4, its step is as follows:
1) step 1 is set up engineering
Testing engineering is the administrative unit of test, and each testing engineering can comprise several test models and test script.Testing engineering is managed by test control end, is positioned at the supervision test software of control end by use, can set up testing engineering.Click the engineering menu at the menu bar of supervision test software, in popup menu, click newly-built option, as shown in Figure 8.Click rear ejection new construction dialog box, as shown in Figure 9.In this dialog box, need to input the title of engineering, in modelling file and test script tabulation, can import simultaneously existing model file or script file in newly-built engineering.After finishing the filling in of relevant information, can click confirming button, engineering is set up and is finished.If the test script of importing is arranged, then script information can be listed in the test script list box, as shown in figure 10.
2) step 2 makes up model
Test model is the abstract of equipment under test and interface relationship thereof in the test process, and by making up test model, test macro can distribute and initial work for once testing required various resources.By the management end management, model is one or several subitems of testing engineering to test model equally.Control end provides patterned model construction instrument, and its interface as shown in Figure 7.Can finish easily model construction work by using this instrument.Concrete modeling process is as follows:
At first click " realistic model " in the tabulation of the tool box in left side and it is dragged in the design panel, " realistic model " is used for describing equipment under test.Can revise the information such as title, position of model by the attribute column on right side, as shown in figure 11.Click afterwards " simulation model " and it is dragged in the design panel from tool box, left side tabulation, " simulation model " is used for describing native system the role of test, and namely native system needs which virtual unit of emulation and equipment under test to carry out communication.
After finishing the design of model, need to make up the communication relation between model.By " line " and " simulation model " of clicking respectively in order just now foundation and " the true model " of clicking the left side toolbar, namely made up one by the oriented line of " simulation model " sensing " true model ".This line represents that " simulation model " needs to send data to " true model ", represents namely that for native system needs send data.With clicking two models with top opposite order, namely made up an oriented line by " true model " sensing " simulation model ".This line represents that " simulation model " need to from " true model " receive data, need namely represent receive data for native system.
For the form of definition data, then solve by making up variable at line.By being positioned at the variable window on modelling instrument right side, can set up variable at line.Newly-built variable also by its association attributes of property window editor on right side, mainly comprises the information such as name variable, type, cycle.Wherein name variable can use in test script.Test script obtains or revises the value of variable by this title.
3) step 3 compile script
Test script is the form of presentation of test case, and test script has stipulated when which kind of excitation which kind of interface applies.Different test scripts has represented different test cases, and once test can be carried out a plurality of test scripts.The user can stipulate Starting Executing Time, execution number of times and the time of implementation interval of script in test script.Can write easily test script by using general text editor (such as notepad) or script-editor (such as the Python script).
4) step 4 is written into engineering
After having finished first three step work, test control end has namely been preserved engineering and the model that comprises and the script of test.The engineering menu of the instrument of user by clicking control end is clicked opening option and can select project file in the popup menu.After opening engineering, can list the script relevant with this test in the test script tabulation.By clicking the initialization button on the script listing, as shown in figure 10.The mode that testing engineering is namely uploaded by network uploads to the test implementation end, comprising the test model test script relevant with all.After the enforcement termination is received engineering, model and script file can be kept at this locality temporarily, then reading model file, by task manager analytic modell analytical model file, and initialization related resource, comprising registering timed task (the transmitting-receiving task that comprises data, test result is collected task dispatching) to timer, opening the network equipment, the binding network address and port, register the variable information of required record etc. to data recordin module to the equipment manager request.Simultaneously, script interpreter is resolved test script file, and cycle and the data message of script offered task manager.
5) step 5 is implemented test
After finishing the work of the 4th step, control end can by the start button on the hit testing script listing, as shown in figure 10, be assigned the test sign on by network to implementing end.After the test implementation termination was received this instruction, all test assignments that create before starting comprised the transmitting-receiving, test result collection of test data etc.And carry out item by item test script according to user-defined order and time in the script, and after all scripts all are finished, implement end and automatically stop all test assignments, close the network equipment and discharge related resource.The user also can stop test in the test implementation process at any time.Data transmit-receive and collection are then finished automatically by test macro.
6) step 6 collection
After finishing for the 5th step, test control end can download to control end with the result who implements the test of end preservation in the test implementation process, use embedded real-time operating system owing to implementing end, be difficult in this system, test result be checked and analytical work, therefore need to after test implementation finishes, by network result data be transferred to control end.At control end, the result preserves with the form of database, and the user can usage data analysis tool reading out data or data are exported as the forms such as Excel, OriginLab, as shown in figure 12.
In sum, the present invention is a kind of method of testing based on main frame/target machine structure, as shown in Figure 1 and Figure 4.The industry ethernet checkout equipment is comprised of A. test control end (abbreviation control end) and B. test implementation end (be called for short and implement end).Wherein, control end is used for configuration information, the real-time demonstration that starts or stops test, test data and the data analysis of test result etc. of management testing engineering.Implement end and in whole test, play the part of the role of data input and output.It has two ethernet network interface cards, be respectively applied to the equipment under test communication and with the control end communication.
Test control end of the present invention runs on Microsoft Windows operating system platform, utilizes the C# language exploitation.Test control end comprises altogether four module of model construction, script editor, test implementation and collection.Wherein model construction is the initial period of test design, and in this stage, the user can use patterned operation interface to describe the network topology structure at equipment under test place, and the network address of equipment under test etc. and protocol-dependent information; Script is compiled as the text environments that the user provides compile script, and this environment has the keyword automatic prompting function, is user-friendly to.In script, the user can define the processing method of various system action events or interface event, realizes closed loop test; Test implementation is mainly used in control and implements end, finishes the human intervention work in the test process; After test finishes, can use the collection module to collect test data, and it is kept in the local data base.The collection module can also convert test result to other data analysis tools discernible data format.
Test control end is used for test design and management, comprises following functions:
1) sets up testing engineering;
2) make up test model;
3) write test script, design test case;
4) the real-time intervention in the test processs such as the beginning of control test, end;
5) collection of test result and derivation;
The system configuration of test control end as shown in Figure 2.Wherein comprise with lower module:
● the engineering management module
The engineering management module is used for creating testing engineering, and testing engineering is used for management testing model and script.
● model construction module
Model construction module provides patterned user interface.The user can set up test model by this instrument, configures various test parameters.
● the script editor module
The script editting function that the script editor module is provided convenience for the user by the intelligent information mode such as replenish.
● test is intervened in real time
Test intervenes in real time the main beginning of being responsible for test, stop and various real-time wrong process etc.
● test result is collected
After test finished, test result downloaded to test control end, preserves with the database form.
● result database
Result database has been preserved test data, so that ex-post analysis and data readback are used.
● test data derives
Test data derives analysis instrument acceptable forms such as test result data can being converted to Excel, OriginLab, so that the user utilizes corresponding tool to determine fault or carries out the work such as failure predication, reliability assessment.
The software flow of test control end as shown in Figure 5.The operating process of this software and the step of whole method of testing are similar.At first need to create engineering, this project comprises model and some test scripts.After creating engineering, need to make up model and compile script, the user can finish this task by model construction module and script editor module respectively.Afterwards, the user is written into beginning, the execution of engineering and control test and finishes by testing real-time intervention module.Test is collected test data in the result database by the test result collection module after finishing.
The test implementation end then mainly is responsible for explanation and execution, the transmitting-receiving of test data and the functions such as data buffer storage in the test process of test script.
The test implementation end uses the VxWorks real time operating system of WindRver company, uses 82543 ethernet network interface cards of Intel Company as data input and data output equipment.
Vxworks operating system is a kind of embedded real-time operating system (RTOS) that U.S. WindRiver company designed and developed in nineteen eighty-three, is the key components of embedded-development environment.VxWorks has following characteristics: 1, reliability: the user of operating system wishes to work in the environment that can trust at a working stability, so the reliability of operating system is the problem that the user at first will consider.And stablize, reliably be an outstanding advantages of VxWorks always.2, real-time: real-time refers to execute setting function and the asynchronous event of outside is responded in limiting time ability.The power of real-time is to finish predetermined function to weigh with the length of the time that responds.The expense of its system of VxWorks itself is very little, and the system utility programs such as process scheduling, interprocess communication, interruption processing are concise and effective, and the delay that they cause is very short.Adopted priority to seize and robin scheduling mechanism to the control of task in the multi-task mechanism that VxWorks provides, also fully guaranteed reliable real-time, make same hardware configuration can satisfy stronger requirement of real-time, for the exploitation of using stays larger leeway.3, tailorability: VxWorks is comprised of the very little kernel of volume and the system module that some can customize as required.VxWorks kernel minimum is 8kB, even if add other necessary module, shared space is also very little, and do not lose its in real time, the system features of multitask.Because its high degree of flexibility, the user can customize or do suitable exploitation to this operating system at an easy rate, satisfies the practical application needs of oneself.
The Intel82543GC chip is the Intel second generation PCI-Express chip of just having released a calendar year 2001, and it is one of labeled product of pci interface PCI-Express.The 82543GC controller can be on a MAC single-chip network connection of integrated support 10Mbps, 100Mbps and 1000Mbps, this can make Ethernet, Fast Ethernet and Billibit Ethernet Technique seamless synergistic application in consolidated network, simultaneously old-fashioned Ethernet is moved at a high speed to Gigabit Ethernet of new generation a clearly path is provided, it is more suitable for carrying use in the LOM plate.
The 82543GC chip meets IEEE802.3ab and 802.3z standard, supports the transmission speed of 10M/100M even 1000M; Network enabled is waken up and the modulator-demodulator arousal function.Numerous operating systems be can extensively support, Windows, Linux, Netware, Solaris and SCO UnixWare etc. comprised; Have advanced self adaptation (auto-negotiation) and self-induction (auto-sensing) function.Its main characteristics: the standby outstanding Gigabit Neng Biao Now of Intel82543GC Gigabit controling appliance; Transmission range can reach 275 meters (optical fiber SX transmission range can reach 550 meters) farthest.
The system configuration of end for process as shown in Figure 3 in real time.Wherein comprise with lower module:
● timer
Timer need to provide trigger event for task manager according to time or the cycle of appointment, and the notice task manager is new variables or invoke script more.
● task manager
Task manager is managed all variable tasks, script task, and when variable changes the notification event manager.
● script interpreter
Script interpreter is used for encapsulating existing interpreter, provides unified interface to call for task manager.
● task manager
Task manager is in charge of contingent variety of event in the system, and with other functional units of this event notice.
● error manager
Error manager is responsible for collecting and store the various software and hardware mistakes that occur in the test run process, and offers in some way the user.
● equipment manager
Equipment manager is responsible for the work such as the initialization, resource distribution, data transmit-receive of Network Interface Unit.
● data record
Data recordin module is responsible for the test data real time record work in the test process.
Test implementation end software flow as shown in Figure 6, in the incipient stage of test, implementing end needs the initialization related resource, comprises script interpreter, timer and hardware etc.After the test beginning, script interpreter is resolved directive script item by item.According to instruction, implement transmission or the reception work of end executing data.After receiving data, implement end and also can the calling data logging modle be preserved by test data.Data for preiodic type send, and it will continue to carry out the script parsing and send instruction after will waiting for designated period.After the test END instruction that receives test control end, implement end and can close the modules such as script interpreter, timer, close ethernet device, releasing resource is also prepared test data is sent to control end.

Claims (1)

1. automatic test approach based on the Ethernet interface equipment of script technology, it is characterized in that: the method concrete steps are as follows:
Step 1 is set up testing engineering
Testing engineering is the administrative unit of test, and each testing engineering comprises and gives surely a test model and test script; Testing engineering is managed by test control end, is positioned at the supervision test software of control end by use, sets up testing engineering; Click the engineering menu at the menu bar of supervision test software, in popup menu, click newly-built option, click rear ejection new construction dialog box; In this dialog box, need to input the title of engineering, in modelling file and test script tabulation, import simultaneously existing model file or script file in newly-built engineering; After finishing the filling in of relevant information, click confirming button, engineering is set up and is finished; If the test script of importing is arranged, then script information can be listed in the test script list box;
Step 2 makes up model
Test model is the abstract of equipment under test and interface relationship thereof in the test process, and by making up test model, test macro distributes and initial work for once testing required various resources; Test model is equally by the management end management, and model is of testing engineering and gives a surely subitem; Control end provides patterned model construction instrument, finishes easily model construction work by using this instrument; Concrete modeling process is as follows:
At first click " realistic model " in the tabulation of the tool box in left side and it is dragged in the design panel, " realistic model " is used for describing equipment under test; Revise title, the positional information of model by the attribute column on right side; Click afterwards " simulation model " and it is dragged in the design panel from tool box, left side tabulation, " simulation model " is used for describing native system the role of test, and namely native system needs which virtual unit of emulation and equipment under test to carry out communication;
After finishing the design of model, need to make up the communication relation between model; By " line " and " simulation model " of clicking respectively in order just now foundation and " the true model " of clicking the left side toolbar, namely made up one by the oriented line of " simulation model " sensing " true model "; This line represents that " simulation model " needs to send data to " true model ", represents namely that for native system needs send data; With clicking two models with top opposite order, namely made up an oriented line by " true model " sensing " simulation model "; This line represents that " simulation model " need to from " true model " receive data, need namely represent receive data for native system;
For the form of definition data, then solve by making up variable at line; By being positioned at the variable window on modelling instrument right side, set up variable at line; Newly-built variable also by its association attributes of property window editor on right side, mainly comprises name variable, type, cycle information; Wherein name variable uses in test script, and test script obtains and revise the value of variable by this title;
Step 3 is write test script
Test script is the form of presentation of test case, and test script has stipulated when which kind of excitation which kind of interface applies; Different test scripts has represented different test cases, a plurality of test scripts of test execution; The user stipulates Starting Executing Time, execution number of times and the time of implementation interval of script in test script, by using general text editor and script-editor to write easily test script;
Step 4 is written into engineering
After having finished first three step work, test control end has namely been preserved engineering and the model that comprises and the script of test; The user is by the engineering menu of the instrument of click control end, and the option of opening of clicking in the popup menu is selected project file; After opening engineering, can list the script relevant with this test in the test script tabulation, by clicking the initialization button on the script listing, the mode that testing engineering is namely uploaded by network uploads to the test implementation end, comprising the test model test script relevant with all; After the enforcement termination is received engineering, model and script file can be kept at this locality temporarily, then reading model file, by task manager analytic modell analytical model file, and initialization related resource, comprising registering timed task to timer, the transmitting-receiving task that comprises data, test result is collected task, open the network equipment, the binding network address and port, register the variable information of required record to data recordin module to the equipment manager request, simultaneously, script interpreter is resolved test script file, and cycle and the data message of script offered task manager;
Step 5 is implemented test
After finishing the work of the 4th step, control end is by the start button on the hit testing script listing, assign the test sign on by network to implementing end, after the test implementation termination is received this instruction, all test assignments that create before starting, comprise the transmitting-receiving of test data, test result is collected, and carry out item by item test script according to user-defined order and time in the script, after all scripts all are finished, implement end and automatically stop all test assignments, close the network equipment and discharge related resource, stop at any time test in the user test implementation process, data transmit-receive and collection are then finished automatically by test macro;
Step 6 collection
After finishing for the 5th step, test control end downloads to control end with the result who implements the test of end preservation in the test implementation process, use embedded real-time operating system owing to implementing end, be difficult in this system, test result be checked and analytical work, therefore need to be after test implementation finishes, by network result data is transferred to control end, at control end, the result preserves with the form of database, user's usage data analysis tool reading out data or data are exported as Excel, OriginLab form.
CN201210248818.6A 2012-07-13 2012-07-13 Automatic test method of Ethernet interface equipment based on script technology Expired - Fee Related CN102916848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210248818.6A CN102916848B (en) 2012-07-13 2012-07-13 Automatic test method of Ethernet interface equipment based on script technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210248818.6A CN102916848B (en) 2012-07-13 2012-07-13 Automatic test method of Ethernet interface equipment based on script technology

Publications (2)

Publication Number Publication Date
CN102916848A true CN102916848A (en) 2013-02-06
CN102916848B CN102916848B (en) 2014-12-10

Family

ID=47615086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210248818.6A Expired - Fee Related CN102916848B (en) 2012-07-13 2012-07-13 Automatic test method of Ethernet interface equipment based on script technology

Country Status (1)

Country Link
CN (1) CN102916848B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125117A (en) * 2014-08-04 2014-10-29 上海斐讯数据通信技术有限公司 Packet receiving and transmission testing method
CN104899150A (en) * 2015-06-30 2015-09-09 上海斐讯数据通信技术有限公司 Object-oriented based automatic testing method and system and automatic platform
CN106326044A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Network interface card fault injection methods and apparatuses
CN107733743A (en) * 2017-11-10 2018-02-23 中国电子科技集团公司第四十研究所 Realize the method and system that industry ethernet data are tested automatically
CN110736920A (en) * 2019-09-25 2020-01-31 北京握奇智能科技有限公司 card testing method and system based on engineering management test script
CN110795993A (en) * 2019-09-12 2020-02-14 深圳云天励飞技术有限公司 Method and device for constructing model, terminal equipment and medium
CN112612710A (en) * 2020-12-28 2021-04-06 上海安畅网络科技股份有限公司 Automatic test method and system
CN115567564A (en) * 2022-12-06 2023-01-03 东方空间(西安)宇航技术有限公司 Testing method, device, system and equipment of aerospace equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000043880A1 (en) * 1999-01-21 2000-07-27 Bsquare Corporation A system and method for testing and validating devices having an embedded operating system
CN101136790A (en) * 2006-09-01 2008-03-05 中兴通讯股份有限公司 Cluster managerial automatization test system and method of ethernet switchboard
US20080320071A1 (en) * 2007-06-21 2008-12-25 International Business Machines Corporation Method, apparatus and program product for creating a test framework for testing operating system components in a cluster system
CN101847118A (en) * 2009-03-24 2010-09-29 迈普通信技术股份有限公司 Automatic test system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000043880A1 (en) * 1999-01-21 2000-07-27 Bsquare Corporation A system and method for testing and validating devices having an embedded operating system
CN101136790A (en) * 2006-09-01 2008-03-05 中兴通讯股份有限公司 Cluster managerial automatization test system and method of ethernet switchboard
US20080320071A1 (en) * 2007-06-21 2008-12-25 International Business Machines Corporation Method, apparatus and program product for creating a test framework for testing operating system components in a cluster system
CN101847118A (en) * 2009-03-24 2010-09-29 迈普通信技术股份有限公司 Automatic test system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
XIAOXU DIAO,BIN LIU: "Design and Research on Real-Time Interface Management Framework of the General Embedded Testing System for Model Driven Testing", 《SECOND INTERNATIONAL CONFERENCE, ICHCC 2011》, 31 May 2011 (2011-05-31), pages 359 - 365 *
YIN YONGFENG, LIU BIN, ZHONG DEMING, JIANG TONGMIN: "On modeling approach for embedded real-time software simulation testing", 《JOURNAL OF SYSTEMS ENGINEERING AND ELECTRONICS》, vol. 20, no. 2, 31 December 2009 (2009-12-31), pages 420 - 426, XP011377460, DOI: doi:10.1109/JSEE.2009.6074674 *
白立平,刘斌,杨顺昆,蒋崇武: "面向CAN应用的测试系统设计", 《2009年研究生学术交流会 通信与信息技术论文集》, 31 December 2009 (2009-12-31), pages 45 - 49 *
蒋崇武,杨顺昆,刘斌: "面向嵌入式软件测试的仿真建模", 《计算机工程》, vol. 34, no. 4, 29 February 2008 (2008-02-29), pages 87 - 89 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125117A (en) * 2014-08-04 2014-10-29 上海斐讯数据通信技术有限公司 Packet receiving and transmission testing method
CN104899150A (en) * 2015-06-30 2015-09-09 上海斐讯数据通信技术有限公司 Object-oriented based automatic testing method and system and automatic platform
CN106326044A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Network interface card fault injection methods and apparatuses
CN104899150B (en) * 2015-06-30 2018-03-02 上海斐讯数据通信技术有限公司 Automated testing method and system and automation platform based on object-oriented
CN106326044B (en) * 2015-06-30 2019-09-03 华为技术有限公司 A kind of net card failure method for implanting and device
CN107733743A (en) * 2017-11-10 2018-02-23 中国电子科技集团公司第四十研究所 Realize the method and system that industry ethernet data are tested automatically
CN110795993A (en) * 2019-09-12 2020-02-14 深圳云天励飞技术有限公司 Method and device for constructing model, terminal equipment and medium
CN110736920A (en) * 2019-09-25 2020-01-31 北京握奇智能科技有限公司 card testing method and system based on engineering management test script
CN112612710A (en) * 2020-12-28 2021-04-06 上海安畅网络科技股份有限公司 Automatic test method and system
CN115567564A (en) * 2022-12-06 2023-01-03 东方空间(西安)宇航技术有限公司 Testing method, device, system and equipment of aerospace equipment
CN115567564B (en) * 2022-12-06 2023-09-08 东方空间(西安)宇航技术有限公司 Method, device, system and equipment for testing aerospace equipment

Also Published As

Publication number Publication date
CN102916848B (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN102916848B (en) Automatic test method of Ethernet interface equipment based on script technology
US7926024B2 (en) Method and apparatus for managing complex processes
CN106021099A (en) System and method for achieving UI automatic test of intelligent terminal
CN109814990A (en) A kind of distributed parallel collaborative simulation framework
CN110838961B (en) General aviation bus message scheduling system
CN102946616A (en) Internet of things middleware performance testing system and testing method
EP1157322A2 (en) Field upgradeable dynamic data exchange server
CN113722020A (en) Interface calling method, device and computer readable storage medium
CN110377283A (en) The realization of front end valid data and synchronous method when the separation exploitation of the front and back end Web
CN108333566A (en) A kind of portable radar test system and test method based on ZYNQ
CN109495293B (en) Method, system, equipment and storage medium for testing control surface of switch
CN109445384B (en) Multi-device control system
CN103049601A (en) Information system simulation modeling method
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN103294482B (en) Web service method for packing and system for PWscf concurrent computational system
CN103576667B (en) The method of testing of master control borad, Apparatus and system
CN103856466A (en) Acquisition terminal device capable of configuring protocols automatically
Bause et al. A simulation environment for hierarchical process chains based on OMNeT++
US9256700B1 (en) Public service for emulation of application load based on synthetic data generation derived from preexisting models
CN101976196A (en) Quality of service oriented code automatic code generating method
CN114428702A (en) Information physical test system containing general interface module
CN103457957A (en) Network penetration test system with self-adaption function and network penetration test method
Bause et al. Simulating process chain models with OMNeT++
CN206193458U (en) Many subscriber computer control system
Bodnarova et al. Virtual laboratory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141210

Termination date: 20160713

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