Embodiment
Below in conjunction with the drawings and specific embodiments, further illustrate the technical scheme of the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of network layer method of testing and device, at test environment, by a test macro, by difference test performance aspect and agreement aspect, is completed network layer test, and improves test accuracy and testing efficiency.
For complicated test request, integrated black, the white-box testing model of the test of network layer test macro range site, integration testing and system testing in the embodiment of the present invention, network test based on wireless transmission, data security and agreement is classified as to Black-box Testing, and reflect test case and the correctness of inferring test result by test, in test using network desired use as important evidence, according to network throughput, synchronous and stratification requirement, judge whether procotol meets these requirement profile.And the test of network hierarchical structure and some functional software are ranged to white-box testing, by test, tested program is carried out to internal structure analysis on its rationality, and according to network layer structure design test case, so white-box testing has comprised the test of the software inhouse structures such as logic covering, path analysis, program mutation.In test environment, this test environment can be laboratory, also can be other lab simulation test environments, by test control center according to content measurement, the simulate signal of output testing equipment environment for use, testing equipment is tested, and the comprehensive test data obtaining of analyzing, completes the test to testing equipment.
Network layer test macro in the embodiment of the present invention can be tested the radio-frequency transmissions performance of the wireless interconnected interwork unit of micropower, and radio-frequency transmissions performance comprises that carrier frequency error, carrier output power, number pass frequency deviation, spuious radio-frequency component, baseband transmission speed; Can test the radio frequency reception performance of the wireless interconnected interwork unit of micropower, radio frequency reception performance comprises biography sensitivity test, can accept centre frequency deviation, field strength measurement; Can test the agreement of the wireless interconnected interwork unit of micropower, agreement comprises the agreements such as physical layer, medium access control (MAC, Media Access Control) layer, network layer, application layer.
Network layer method of testing in the embodiment of the present invention has versatility, can be applicable to information gathering network system, also can be applicable in the network system of other various multipaths.
Refer to Fig. 1, an embodiment of the network layer method of testing in the embodiment of the present invention comprises:
101, test control center sends Test input signal to the test macrocell in testing equipment;
In test environment, test control center is connected with testing equipment, refers to Fig. 2, and testing equipment is placed in testing equipment shielded box, and this testing equipment shielded box is used for getting rid of extraneous various signal to be disturbed.
Further, consider that the performance of network layer and protocol test face involve content too many, in the embodiment of the present invention, adopted grand test model, particularly, testing equipment can be divided into a plurality of test macrocells according to content measurement, for example, when carrying out performance test, testing equipment is divided into incoming frequency drift test macrocell, bandwidth occupancy test macrocell, transmitting power test macrocell, the test macrocells such as modulating characteristic test macrocell, when carrying out protocol test, testing equipment is divided into the beacon frame validation test macrocell that meets protocol requirement, field intensity collects request and test macrocell is replied in field intensity collection, the request of configurating terminal module and configurating terminal module are replied test macrocell, the test macrocells such as network operation request and network answer test macrocell, the division of concrete test macrocell is relevant to content measurement, do not do concrete restriction herein.
Test control center is determined content measurement, to test macrocell corresponding with content measurement in this testing equipment, send Test input signal, test, described Test input signal comprises: performance test input signal or protocol test input signal, can carry out performance test, also can carry out protocol test, described test macrocell is functional test unit corresponding with content measurement in described testing equipment.
102, receive the test output signal of described test macrocell feedback;
In the present embodiment, testing equipment is placed in testing equipment shielded box, and this testing equipment shielded box is used for getting rid of extraneous various signal to be disturbed, and improves the accuracy of test.
Test control center sends Test input signal, this Test input signal is through after test macrocell, be converted to test output signal, test control center receives this test output signal, and described test output signal comprises: performance test output signal or protocol test output signal.
103, analyze described test output signal, obtain the test result data of described test macrocell;
The test output signal that test control center analysis receives, obtain the test result data that this test macrocell is corresponding, test fault and the fault coverage of this test macrocell, this test result data can be the performance test results data, also can be protocol test result data, therefore the performance test results analysis can be carried out, also protocol test interpretation of result can be carried out.
104, add up the test result data of all test macrocells, obtain the test result data of described testing equipment.
Complete after the test of all test macrocells corresponding with content measurement, each test result data of all test macrocells of test control center statistical test equipment, obtains the integrated testability result data of this testing equipment, and exports this test result data.
In the embodiment of the present invention, in test environment, test control center sends Test input signal according to content measurement to test macrocell corresponding with this content measurement in testing equipment, Test input signal comprises: performance test input signal or protocol test input signal, can carry out performance test, also can carry out protocol test, analyze the test output signal of this test macrocell feedback, obtain the test result data of described test macrocell, complete after the test of all test macrocells corresponding with content measurement, add up the test result data of all test macrocells, obtain the integrated testability result data of this testing equipment, thus, in test environment, utilize same set of test macro to complete performance test and the protocol test of network layer, simplify test process, the compare test mode of Points replacing surfaces, test accuracy is higher, according to content measurement, testing equipment is divided into a plurality of test macrocells, can simplify test process, improve testing efficiency.
For ease of understanding, with another embodiment, describe the network layer method of testing in the present invention in detail below, refer to Fig. 3, another embodiment of the network layer method of testing in the embodiment of the present invention comprises:
201, the selection test condition corresponding with described test macrocell adds in Test input signal;
Test control center is selected the test condition corresponding with described test macrocell, selects the test condition corresponding with described content measurement, adds in Test input signal.
It should be noted that, usually, use exhaustive testing mode to test in method of testing, this method of testing is according to the combination of the individual input test condition of n (n is positive integer), obtains 2
nindividual test condition vector, and by this 2
nindividual test condition vector is loaded in input signal one by one, by observing network layer performance and agreement to the reflection of test vector record trouble rate.But when n value is very large, the testing time expense of this test process and complicated degree of analysis all rise greatly, so, the embodiment of the present invention selects to adopt test condition subset compound mode, test condition in this method of testing is because of the difference difference of content measurement, can shield the various input test conditions that do not occur or do not occur, rather than input whole test conditions, with this test condition subset combining form, network layer performance and agreement are tested compressible testing time quick obtaining test result.
202, to the test macrocell in testing equipment, send Test input signal;
Testing equipment can be divided into a plurality of test macrocells according to content measurement, for example, when carrying out performance test, testing equipment is divided into incoming frequency drift test macrocell, bandwidth occupancy test macrocell, transmitting power test macrocell, the test macrocells such as modulating characteristic test macrocell, when carrying out protocol test, testing equipment is divided into the beacon frame validation test macrocell that meets protocol requirement, field intensity collects request and test macrocell is replied in field intensity collection, the request of configurating terminal module and configurating terminal module are replied test macrocell, the test macrocells such as network operation request and network answer test macrocell.
Test control center is determined content measurement, to test macrocell corresponding with content measurement in this testing equipment, send Test input signal to test, described input signal carries the test condition corresponding with described test macrocell, described Test input signal comprises: performance test input signal or protocol test input signal, can carry out performance test, also can carry out protocol test, described test macrocell is functional test unit corresponding with content measurement in described testing equipment.
203, receive the test output signal of described test macrocell feedback;
In the present embodiment, testing equipment is placed in testing equipment shielded box, and this testing equipment shielded box is used for getting rid of extraneous various signal to be disturbed, and improves the accuracy of test.
Test control center sends Test input signal, this Test input signal is through after test macrocell, be converted to test output signal, test control center receives this test output signal, and described test output signal comprises: performance test output signal or protocol test output signal.
204, analyze described test output signal, obtain the test result data of described test macrocell;
The test output signal that test control center analysis receives, obtains the test result data that this test macrocell is corresponding, can carry out the performance test results analysis, also can carry out protocol test interpretation of result.
Be specially, if carry out the performance test results analysis, analyze described performance test output signal, obtain the performance test results data of described test macrocell, specifically described test result data and preset desired result data are compared, obtain the performance test results data of described test macrocell; If carry out protocol test interpretation of result, analyze described protocol test output signal, obtain the protocol test result data of described test macrocell, the concrete described standard agreement signal that receives the transmission of standard agreement signal source, described test result data and standard agreement signal are compared, obtain the protocol test result data of described test macrocell.
205, add up the test result data of all test macrocells, obtain the test result data of described testing equipment.
Complete after the test of all test macrocells corresponding with content measurement, each test result data of all test macrocells of test control center statistical test equipment, obtains the integrated testability result data of this testing equipment, and exports this test result data.
The embodiment of the present invention, in the test to Wireless Information Collecting System network layer and agreement, has comprised the tests such as transmitting power, transmission frequency, frequency deviation, speed and the error rate, receiving sensitivity, and its test specification is as follows:
(1) the radio-frequency transmissions performance of the wireless interconnected interwork unit of micropower is tested, and test specification comprises that carrier frequency error, carrier output power, number pass frequency deviation, spuious radio-frequency component, baseband transmission speed;
(2) the radio frequency reception performance of the wireless interconnected interwork unit of micropower is tested, and test specification comprises biography sensitivity test, can accept centre frequency deviation, field strength measurement;
(3) agreement of the wireless interconnected interwork unit of micropower is tested, and test specification comprises the agreements such as physical layer, MAC layer, network layer, application layer.
Applied in network performance test comprises spuious test in network node wireless device emitting performance test and radio-frequency component test, frequency drift test, bandwidth occupancy test, transmitting power test, modulating characteristic test, frequency shift (FS) test, transmitter data rate is tested.Sensitivity test in the test of network node wireless device receptivity, shared channel suppress test, neighboring trace is selected test, spurious response, the test of intermodulation response suppression.
Network protocol testing comprise the beacon frame checking, the field intensity that meet protocol requirement collect request and field intensity collect reply, the request of configurating terminal module and configurating terminal module is replied, network operation request and network operation is replied, route requests and route replies, inundation are checked meter down order and inundation stops order, read configuring request and read configuration reply, write configuring request and write configuration reply, broadcast transmitting power is set, broadcast arranges field intensity thresholding, node reset request and node reset and replys.
In the embodiment of the present invention, in test environment, test control center selects the test condition corresponding with described test macrocell to add in Test input signal, can shield the various input test conditions that do not occur or do not occur, can compression verification time quick obtaining test result, according to content measurement, to test macrocell corresponding with this content measurement in testing equipment, send Test input signal, Test input signal comprises: performance test input signal or protocol test input signal, can carry out performance test, also can carry out protocol test, analyze the test output signal of this test macrocell feedback, obtain the test result data of described test macrocell, complete after the test of all test macrocells corresponding with content measurement, add up the test result data of all test macrocells, obtain the integrated testability result data of this testing equipment, thus, in test environment, utilize same set of test macro to complete performance test and the protocol test of network layer, simplify test process, the compare test mode of Points replacing surfaces, test accuracy is higher, according to content measurement, testing equipment is divided into a plurality of test macrocells, can simplify test process, improve testing efficiency.
Introduce the network layer testing apparatus in the embodiment of the present invention below, refer to Fig. 4, an embodiment of the network layer testing apparatus in the embodiment of the present invention comprises:
Transmitting element 301, for the test macrocell to testing equipment, send Test input signal, described Test input signal comprises: performance test input signal or protocol test input signal, and described test macrocell is functional test unit corresponding with content measurement in described testing equipment;
Receiving element 302, for receiving the test output signal of described test macrocell feedback, described test output signal comprises: performance test output signal or protocol test output signal;
Analytic unit 303, for analyzing the described test output signal of receiving element 302 receptions, obtains the test result data of described test macrocell;
Statistic unit 304, the test result data of all test macrocells of analyzing for statistical analysis unit 303, obtains the test result data of described testing equipment.
In network layer testing apparatus in the embodiment of the present invention, the process of function is separately realized in each unit, refers to the particular content of aforementioned middle description embodiment illustrated in fig. 1, repeats no more herein.
In the embodiment of the present invention, transmitting element 301 sends Test input signal to the test macrocell in testing equipment, described Test input signal comprises performance test input signal or protocol test input signal, can carry out performance test, also can carry out protocol test, described test macrocell is functional test unit corresponding with content measurement in described testing equipment, receiving element 302 receives the test output signal of described test macrocell feedback, described test output signal comprises performance test output signal or protocol test output signal, analytic unit 303 is analyzed the described test output signal that receiving element 302 receives, obtain the test result data of described test macrocell, the test result data of all test macrocells that statistic unit 304 statistical analysis unit 303 are analyzed, obtain the test result data of described testing equipment, thus, in test environment, utilize same set of test macro to complete performance test and the protocol test of network layer, simplify test process, the compare test mode of Points replacing surfaces, test accuracy is higher, according to content measurement, testing equipment is divided into a plurality of test macrocells, can simplify test process, improve testing efficiency.
For ease of understanding, introduce in detail the network layer testing apparatus in the embodiment of the present invention below, refer to Fig. 5, another embodiment of the network layer testing apparatus in the embodiment of the present invention comprises:
Transmitting element 401, for the test macrocell to testing equipment, send Test input signal, described Test input signal comprises: performance test input signal or protocol test input signal, and described test macrocell is functional test unit corresponding with content measurement in described testing equipment;
Receiving element 402, for receiving the test output signal of described test macrocell feedback, described test output signal comprises: performance test output signal or protocol test output signal;
Analytic unit 403, for analyzing the described test output signal of receiving element 402 receptions, obtains the test result data of described test macrocell;
Statistic unit 404, the test result data of all test macrocells of analyzing for statistical analysis unit 403, obtains the test result data of described testing equipment.
Further, analytic unit 403, also, for analyzing described performance test output signal, obtains the performance test results data of described test macrocell, or, analyze described protocol test output signal, obtain the protocol test result data of described test macrocell.
Further, analytic unit 403, also for described test result data and preset desired result data are compared, obtain the performance test results data of described test macrocell, or, described test result data and standard agreement signal are compared, obtain the protocol test result data of described test macrocell.
It should be noted that, the network layer testing apparatus in the embodiment of the present invention can further include:
Selected cell 405, for selecting the test condition corresponding with described test macrocell to add described Test input signal.
In network layer testing apparatus in the embodiment of the present invention, the process of function is separately realized in each unit, refers to the particular content of earlier figures 1 and middle description embodiment illustrated in fig. 3, repeats no more herein.
In the embodiment of the present invention, selected cell 405 selects the test condition corresponding with test macrocell to add in Test input signal, test macrocell is functional test unit corresponding with content measurement in described testing equipment, transmitting element 401 sends Test input signal to the test macrocell in testing equipment, described Test input signal comprises performance test input signal or protocol test input signal, described test macrocell is functional test unit corresponding with content measurement in described testing equipment, can carry out performance test, also can carry out protocol test, receiving element 402 receives the test output signal of described test macrocell feedback, described test output signal comprises performance test output signal or protocol test output signal, analytic unit 403 is analyzed the described test output signal that receiving element 402 receives, obtain the test result data of described test macrocell, particularly, analytic unit 403 is analyzed described performance test output signal, obtain the performance test results data of described test macrocell, or analyze described protocol test output signal, obtain the protocol test result data of described test macrocell, further, analytic unit 403 compares described test result data and preset desired result data, obtain the performance test results data of described test macrocell, or, described test result data and standard agreement signal are compared, obtain the protocol test result data of described test macrocell, and then, the test result data of all test macrocells that statistic unit 404 statistical analysis unit 403 are analyzed, obtain the test result data of described testing equipment, thus, in test environment, utilize same set of test macro to complete performance test and the protocol test of network layer, simplify test process, the compare test mode of Points replacing surfaces, test accuracy is higher, according to content measurement, testing equipment is divided into a plurality of test macrocells, can simplify test process, improve testing efficiency.
It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Above a kind of network layer method of testing provided by the present invention and device are described in detail, for those skilled in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.