CN109756394B - Communication product on-site network testing method and system - Google Patents
Communication product on-site network testing method and system Download PDFInfo
- Publication number
- CN109756394B CN109756394B CN201811623937.9A CN201811623937A CN109756394B CN 109756394 B CN109756394 B CN 109756394B CN 201811623937 A CN201811623937 A CN 201811623937A CN 109756394 B CN109756394 B CN 109756394B
- Authority
- CN
- China
- Prior art keywords
- data
- test
- communication product
- core network
- module
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a communication product network test method and a system, comprising the following steps: automatically generating corresponding test data according to different communication product characteristics; acquiring the test data; sending the test data; calling a core network interface for query to acquire core network data; comparing the test data with the core network data to obtain a single test result; repeating the steps, and integrating to obtain all test results; and (4) obtaining a test conclusion by using a data fusion algorithm and taking all test results as data. And automatically generating corresponding test data according to different communication product characteristics, acquiring core network data by calling a core network interface to inquire so as to obtain a test result, and finally calculating by using a data fusion algorithm to obtain a test conclusion. The communication product on-site testing method and system can be automatically realized, so that the defects in the prior art are overcome, the testing efficiency is obviously improved, and the cheating problem caused by manual testing is avoided.
Description
Technical Field
The invention belongs to the technical field of network testing, and particularly relates to a method and a system for testing a communication product on the spot.
Background
The existing network test work of communication products involves modules, gateways and core networks, and a closed loop must be formed among the three. Most of the currently adopted test methods are manual tests, and the sending and the detection of uplink data and downlink data are finished manually.
Therefore, the existing network testing method provided by the prior art has the following disadvantages:
1. manual testing cannot traverse large amounts of test data;
2. the efficiency of manually sending data at the PC end is not high;
3. the judgment of the test result is seriously influenced by artificial subjective factors.
Disclosure of Invention
The invention aims to provide a communication product network-on-site testing method and a system, which are used for overcoming the defects in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for testing a communication product in a current network, comprising the following steps:
automatically generating corresponding test data according to different communication product characteristics;
acquiring the test data;
sending the test data;
calling a core network interface for query to acquire core network data;
comparing the test data with the core network data to obtain a single test result;
repeating the steps, and integrating to obtain all test results;
and (4) obtaining a test conclusion by using a data fusion algorithm and taking all test results as data.
Optionally, the automatically generating corresponding test data according to different communication product characteristics includes:
acquiring general data for testing from a pre-stored data database;
acquiring characteristic data of a communication product;
and splicing the general data into the test data according to the characteristic data.
Optionally, after assembling the general data into the test data according to the characteristic data, the method further includes:
and exporting the test data into an excel table.
Optionally, the sending of the test data and the invoking of the core network interface query to obtain the core network data are both performed at the PC end.
In a second aspect, the present invention provides a system for testing a communication product on-site, comprising:
the generating module is used for automatically generating corresponding test data according to different communication product characteristics;
the acquisition module is used for acquiring the test data;
the sending module is used for sending the test data;
the calling module is used for calling the core network interface for inquiry so as to acquire core network data;
the comparison module is used for comparing the test data with the core network data to obtain a single test result;
the integration module is used for repeating the steps and integrating to obtain all test results;
and the algorithm module is used for obtaining a test conclusion by using a data fusion algorithm and taking all test results as data.
Optionally, the generating module includes:
the first acquisition unit is used for acquiring general data for testing from a pre-stored data database;
a second acquisition unit that acquires characteristic data of the communication product;
and the assembling unit is used for assembling general data into the test data according to the characteristic data.
Optionally, the generating module further includes:
and the exporting unit is used for exporting the test data into an excel table.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a communication product network test method and a system, which can automatically generate corresponding test data according to different communication product characteristics, obtain core network data by calling a core network interface to inquire so as to obtain a test result, and finally calculate by using a data fusion algorithm to obtain a test conclusion. The communication product on-site testing method and system can be automatically realized, so that the defects in the prior art are overcome, the testing efficiency is obviously improved, and the cheating problem caused by manual testing is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for testing a communication product in a current network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for testing a communication product in a current network to overcome the disadvantages of the prior art.
Specifically, the test method comprises the following steps:
step S1: and automatically generating corresponding test data according to different communication product characteristics. Because different communication product characteristics may not be consistent in supported data protocols, transmission data sizes, and the like, different test data is required for testing communication products with different characteristics.
Step S2: acquiring the test data; after the system generates the test data, the system needs to retrieve the test data for performing a one-step sending operation.
Step S3: sending the test data; and when the existing network is tested, the test data can be sent through a test tool. Alternatively, the test tool may be a PC (personal computer) computer.
Step S4: calling a core network interface for query to acquire core network data; an important step of the test method is that after sending out the test data, the test tool queries by calling the core network interface to acquire the core network data. Therefore, the core network data can be regarded as data received by the receiving end of the communication product, and can be compared with the test data to obtain a single test result.
Step S5: and comparing the test data with the core network data to obtain a single test result.
Step S6: repeating the steps, and integrating to obtain all test results; it should be noted that, repeating the above steps here can be understood as: since there may be many test data, which needs to be sent many times, it also means that the core network interface needs to be called many times to query and obtain the core network data. Furthermore, the core network data can be called and obtained every time the test data is sent, and then the single test result is obtained through comparison.
Step S7: and (4) obtaining a test conclusion by using a data fusion algorithm and taking all test results as data. The purpose of judging the test results by the data fusion algorithm is to integrate each single test result to obtain a conclusion.
Therefore, the network test method for the communication product provided by the embodiment of the invention can automatically generate corresponding test data according to different communication product characteristics, obtain core network data by calling a core network interface to query, obtain a test result and finally calculate by using a data fusion algorithm to obtain a test conclusion. The communication product on-site testing method and system can be automatically realized, so that the defects in the prior art are overcome, the testing efficiency is obviously improved, and the cheating problem caused by manual testing is avoided.
Further, the automatically generating corresponding test data according to different communication product characteristics includes:
acquiring general data for testing from a pre-stored data database;
acquiring characteristic data of a communication product;
and splicing the general data into the test data according to the characteristic data.
The data to be tested in general communication products are different in size, but different communication products may support different communication protocols and different transmission data sizes. Therefore, the general data for testing can be stored in the database in advance, and then the test data of each communication product can be obtained by limiting or screening the general data information according to the characteristic data of the communication product. It should be noted that, for the same communication product, the final test data may be different according to different practical application scenarios, that is, the test data may add, delete, or change the general data or the characteristic data according to the practical requirements to obtain different test data.
Furthermore, after assembling the general data into the test data according to the characteristic data, the method further includes: and exporting the test data into an excel table. Exporting the excel table is beneficial to later-stage reference.
Specifically, in the existing network testing method, the sending of the test data and the invoking of the core network interface query to obtain the core network data are both performed at the PC terminal. Compared with the prior art that test data and received data need to be acquired at two ends of a communication product respectively, the test efficiency of the existing network test method provided by the application is obviously improved.
It should be noted that the existing network testing method provided by the present application may be implemented in the form of a software program by using Javascript programming.
Further, in another embodiment of the present application, a data fusion algorithm is disclosed. The implementation principle of the data fusion algorithm for judging the test result is as follows.
Suppose with Xi=(x1,x2,x3) Feature vectors, T, representing performance, stress, and exception tests of test items1、T2、T3、……、TiDenotes a single test module, Yi=(y1,y2,y3) Representing the correct feature vectors in the known database with respect to the module test results. Wherein i is an integer, i is 1, 2, 3 … …
First, similarity detection is performed, and X · X ═ Σ (X) is definedi,xi);X·Y=∑(xi,yi);Y·Y=∑(yi,yi);
Wherein R isXYRepresenting a correlation coefficient having a value between 0.0 and 1.0, we generally consider:
if R isXY→ 1.0, when we consider the test to pass;
if RXY→ 0.0, when we consider the test to fail.
In the communication product network-on-site testing method provided by the application, R is more than or equal to 0.9XYAnd if the test result is less than or equal to 1.0, determining that no serious defect exists in the test, and only occasional data loss exists. Bayesian statistical model detection can be performed.
Specifically, the process of Bayesian statistical model detection is as follows.
XiIf the multi-dimensional normal distribution is satisfied, the probability density function is:
wherein: (∑ j)-1For testing the sample TiThe inverse covariance of (a); (Y)j-Xi)TIs (Y)j-Xi) The transposed vector of (1).
Test sample TkThe posterior probability of occurrence is:
wherein: pr(Tk) -detection of qualified sample flag TkA priori probability of (a);
Pr(Xi/Ti) -the known test sample is TiIn the case of (1), test passed XiThe probability of occurrence.
The test statistics of the test samples were:
Dj(Xi)=(Yj-Xi)T(∑j)-1(Yj-Xi)
in combination with the decision rule of the fusion algorithm, if Pr(Tk/Xi)=max{Pr(Ti/Xi)},Dk(Xi)=minDj(Xi) (true for all j ═ 1, 2, … …, n); the test conclusion is passed.
Further, the application also provides a communication product network test system, which is used for realizing the communication product network test method.
Specifically, the present network test system for communication products comprises:
the generating module is used for automatically generating corresponding test data according to different communication product characteristics;
the acquisition module is used for acquiring the test data;
the sending module is used for sending the test data;
the calling module is used for calling the core network interface for inquiry so as to acquire core network data;
the comparison module is used for comparing the test data with the core network data to obtain a single test result;
the integration module is used for repeating the steps and integrating to obtain all test results;
and the algorithm module is used for obtaining a test conclusion by using a data fusion algorithm and taking all test results as data.
Further, the generating module includes:
the first acquisition unit is used for acquiring general data for testing from a pre-stored data database;
a second acquisition unit that acquires characteristic data of the communication product;
and the assembling unit is used for assembling general data into the test data according to the characteristic data.
Further, the generating module further comprises: and the exporting unit is used for exporting the test data into an excel table.
As to how the system implements the above-mentioned testing method, it is not described herein again because it has already been described above.
The embodiment of the invention provides a communication product network test system, which can automatically generate corresponding test data according to different communication product characteristics, obtain core network data by calling a core network interface to inquire so as to obtain a test result, and finally calculate by using a data fusion algorithm to obtain a test conclusion. The communication product on-site testing method and system can be automatically realized, so that the defects in the prior art are overcome, the testing efficiency is obviously improved, and the cheating problem caused by manual testing is avoided.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (7)
1. A communication product network-present testing method is characterized by comprising the following steps:
automatically generating corresponding test data according to different communication product characteristics;
acquiring the test data;
sending the test data;
calling a core network interface for query to acquire core network data;
comparing the test data with the core network data to obtain a single test result;
repeating the steps, and integrating to obtain all test results;
obtaining a test conclusion by using a data fusion algorithm and taking all test results as data;
the data fusion algorithm comprises the following steps:
a detection step, namely carrying out similarity detection; suppose with Xi=(x1,x2,x3) Feature vectors, Y, representing performance, stress, and exception tests of test itemsi=(y1,y2,y3) Representing the correct feature vector for the module test results in a known database, X · X ═ Σ (X) is definedi,xi),X·Y=∑(xi,yi),Y·Y=∑(yi,yi),Wherein i is an integer and has a value range of 1-3; rXYRepresenting a correlation coefficient having a value between 0.0 and 1.0;
a judgment step, i.e. if R is more than or equal to 0.9XYIf the test is less than or equal to 1.0, the test is passed.
2. The present network test method of communication product of claim 1, wherein the automatically generating corresponding test data according to different communication product characteristics comprises:
acquiring general data for testing from a pre-stored data database;
acquiring characteristic data of a communication product;
and splicing the general data into the test data according to the characteristic data.
3. The method for network presence testing of communication products of claim 2, wherein after assembling the test data from the generic data according to the characteristic data, the method further comprises:
and exporting the test data into an excel table.
4. The present network testing method of claim 1, wherein the sending of the test data and the invoking of the core network interface query to obtain the core network data are both performed at a PC terminal.
5. A communication product network-present test system is characterized by comprising:
the generating module is used for automatically generating corresponding test data according to different communication product characteristics;
the acquisition module is used for acquiring the test data;
the sending module is used for sending the test data;
the calling module is used for calling the core network interface for inquiry so as to acquire core network data;
the comparison module is used for comparing the test data with the core network data to obtain a single test result;
the integration module is used for integrating to obtain all test results;
the algorithm module is used for obtaining a test conclusion by using a data fusion algorithm and taking all test results as data;
the data fusion algorithm comprises the following steps:
a detection step, namely carrying out similarity detection; suppose with Xi=(x1,x2,x3) Feature vectors, Y, representing performance, stress, and exception tests of test itemsi=(y1,y2,y3) Representing the correct feature vector for the module test results in a known database, X · X ═ Σ (X) is definedi,xi),X·Y=∑(xi,yi),Y·Y=∑(yi,yi),Wherein i is an integer and has a value range of 1-3; rXYRepresenting a correlation coefficient having a value between 0.0 and 1.0;
a judgment step, i.e. if R is more than or equal to 0.9XYIf the test is less than or equal to 1.0, the test is passed.
6. The communication product presence network test system of claim 5, wherein the generation module comprises:
the first acquisition unit is used for acquiring general data for testing from a pre-stored data database;
a second acquisition unit that acquires characteristic data of the communication product;
and the assembling unit is used for assembling general data into the test data according to the characteristic data.
7. The networking test system of claim 6, wherein the generating module further comprises:
and the exporting unit is used for exporting the test data into an excel table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811623937.9A CN109756394B (en) | 2018-12-28 | 2018-12-28 | Communication product on-site network testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811623937.9A CN109756394B (en) | 2018-12-28 | 2018-12-28 | Communication product on-site network testing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109756394A CN109756394A (en) | 2019-05-14 |
CN109756394B true CN109756394B (en) | 2022-04-05 |
Family
ID=66403187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811623937.9A Active CN109756394B (en) | 2018-12-28 | 2018-12-28 | Communication product on-site network testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109756394B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101360015A (en) * | 2008-09-02 | 2009-02-04 | 北京星网锐捷网络技术有限公司 | Method, system and apparatus for test network appliance |
CN101383731A (en) * | 2007-09-07 | 2009-03-11 | 英业达股份有限公司 | Network card test system |
CN102315981A (en) * | 2010-06-29 | 2012-01-11 | 大唐移动通信设备有限公司 | Equipment and method for testing evolved packet core network equipment |
CN106534289A (en) * | 2016-11-03 | 2017-03-22 | 京信通信技术(广州)有限公司 | Automatic testing method, device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8515015B2 (en) * | 2008-05-09 | 2013-08-20 | Verizon Patent And Licensing Inc. | Method and system for test automation and dynamic test environment configuration |
-
2018
- 2018-12-28 CN CN201811623937.9A patent/CN109756394B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383731A (en) * | 2007-09-07 | 2009-03-11 | 英业达股份有限公司 | Network card test system |
CN101360015A (en) * | 2008-09-02 | 2009-02-04 | 北京星网锐捷网络技术有限公司 | Method, system and apparatus for test network appliance |
CN102315981A (en) * | 2010-06-29 | 2012-01-11 | 大唐移动通信设备有限公司 | Equipment and method for testing evolved packet core network equipment |
CN106534289A (en) * | 2016-11-03 | 2017-03-22 | 京信通信技术(广州)有限公司 | Automatic testing method, device and system |
Non-Patent Citations (1)
Title |
---|
GSM/WCDMA终端的现网测试;姚斌;《电信网技术》;20070115(第01期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109756394A (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108877839B (en) | Voice quality perception evaluation method and system based on voice semantic recognition technology | |
CN111563275B (en) | Data desensitization method based on generation countermeasure network | |
CN105678324B (en) | Method for building up, the apparatus and system of question and answer knowledge base based on similarity calculation | |
CN111143428A (en) | Protection abnormity alarm processing method based on correlation analysis method | |
CN110444224B (en) | Voice processing method and device based on generative countermeasure network | |
CN114239807A (en) | RFE-DAGMM-based high-dimensional data anomaly detection method | |
CN114067168A (en) | Cloth defect image generation system and method based on improved variational self-encoder network | |
CN112463848A (en) | Method, system, device and storage medium for detecting abnormal user behavior | |
CN109756394B (en) | Communication product on-site network testing method and system | |
CN108470251B (en) | Community division quality evaluation method and system based on average mutual information | |
CN111444094A (en) | Test data generation method and system | |
CN114662666A (en) | Decoupling method and system based on beta-GVAE and related equipment | |
CN111625467B (en) | Automatic testing method and device, computer equipment and storage medium | |
CN112416800B (en) | Intelligent contract testing method, device, equipment and storage medium | |
CN113177078B (en) | Approximate query processing algorithm based on condition generation model | |
CN110868731A (en) | VoLTE network fault detection method and system | |
CN112860870A (en) | Noise data identification method and equipment | |
Li et al. | Adaptive traffic data augmentation using generative adversarial networks for optical networks | |
Nikityuk et al. | Optimization of the process of selecting of the IoT-platform for the specific technical solution IoT-sphere | |
CN114417433A (en) | Policy decision training method based on block chain security authentication and cloud authentication server | |
CN112711864B (en) | Distribution network cable quality index correlation model construction and data expansion method | |
CN114627340B (en) | Image steganography detection feature self-adaptive selection method based on triple measurement | |
CN115267462B (en) | Partial discharge type identification method based on self-adaptive label generation | |
CN111475500B (en) | Method for automatically discovering audit rule and abnormal data | |
Shi et al. | Using Analytic Hierarchy Process to Assess Network Video Quality |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |