CN111600776B - TR069 batch interactive test system and method thereof - Google Patents
TR069 batch interactive test system and method thereof Download PDFInfo
- Publication number
- CN111600776B CN111600776B CN202010412994.3A CN202010412994A CN111600776B CN 111600776 B CN111600776 B CN 111600776B CN 202010412994 A CN202010412994 A CN 202010412994A CN 111600776 B CN111600776 B CN 111600776B
- Authority
- CN
- China
- Prior art keywords
- batch
- test
- acs
- file
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a TR069 batch interactive test system and a method thereof.A pre-reading module is started and used for reading parameters input by a user during starting, wherein the parameters comprise acsurl, a specified test case file and an execution result file; analyzing the test case designated by the user into an ACS task, storing the ACS task into a memory, and waiting for issuing the ACS task to a CPE end; the message processing module is used for processing the HTTP stream sent by the CPE end; sending the transmitted HTTP stream to a CPE end; extracting a part related to a TR069 protocol in the SOAP message, and transferring a result to a result processing module; the ACS task encapsulation module reads an ACS task to be executed, encapsulates the ACS task into a SOAP message and transfers the SOAP message to the message processing module; and the result processing module records the execution result corresponding to the ACS task encapsulation module. And the system is flexibly deployed, so that test cases are conveniently configured, and the test results recorded in the test result file correspond to the test parameter nodes one by one.
Description
Technical Field
The invention relates to a TR069 batch interactive test system and a method thereof.
Background
At present, TR069 parameter tree nodes are numerous, the protocol interaction amount is large, the re-operation of the traditional tree-shaped expansion nodes is complex and tedious, and the parameter nodes cannot be operated in batch. TR069 is a common carrier-level network management protocol.
Due to the tree-shaped management structure adopted by the protocol, the TR069 parameter tree needs to be pulled up layer by layer and then operated to operate a certain node, so that the work order issuing test of the simulation network management is tedious and time-consuming.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a TR069 batch interactive test system and a method thereof.
The purpose of the invention is realized by the following technical scheme:
TR069 batch interaction test system, the characteristic is:
the starting pre-reading module is used for reading parameters input by a user during starting, and the parameters comprise acsurl, a specified test case file and an execution result file; analyzing the test case designated by the user into an ACS task, storing the ACS task into a memory, and waiting for issuing the ACS task to a CPE end;
the message processing module is used for processing the HTTP stream sent by the CPE end and is a basic HTTP service; sending the transmitted HTTP stream to a CPE end; extracting a part related to a TR069 protocol in the SOAP message, and transferring a result to a result processing module;
the ACS task encapsulation module reads an ACS task to be executed, encapsulates the ACS task into a SOAP message and transfers the SOAP message to the message processing module;
and the result processing module records the execution result corresponding to the ACS task encapsulation module.
Further, in the TR069 batch interactive test system, the pre-reading module is started, the tester records test nodes and values into a text in batch, and the system reads the test nodes and values into the memory.
Further, in the TR069 batch interactive test system, the ACS task encapsulation module encapsulates the test cases configured by the user into ACS tasks, stores the ACS tasks in the contents, and waits to be sent to the CPE terminal.
The TR069 batch interactive test method comprises the following steps:
1) reading input parameter configuration in batch in a format file form;
2) packaging the test nodes and the values into an entity object list in batch;
3) encapsulating entity objects into SOAP messages in batches and sending the SOAP messages to a CPE end;
4) and saving the execution result to a file in batches.
Furthermore, in the TR069 batch interactive testing method, in step 1), the configured test case file is read according to the format requirement of the tab separation test type, the test node and the node value, the content is stored in the memory in the form of a string key value pair, and the node parameter and the node value are stored in batch.
Further, in the TR069 batch interactive testing method, in step 2), the read key-value pairs are encapsulated in batch into an entity object list, and are encapsulated into different entity objects according to different node operation types, so as to facilitate generation of SOAP messages.
Further, in the TR069 batch interactive testing method, in step 4), the result value returned by the CPE terminal and the node value thereof are stored in the file in a one-to-one correspondence manner.
Compared with the prior art, the invention has obvious advantages and beneficial effects, and is embodied in the following aspects:
the invention adopts the file mode to input the parameters of the test cases, thereby being convenient for editing the test cases and filing and searching; the operation environment is easy to build; the execution file is extremely small; the testing personnel can flexibly deploy the system and configure the test cases conveniently and flexibly, and the test results recorded in the test result file correspond to the test parameter nodes one by one, so that the archiving and the sorting are convenient.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof.
Drawings
FIG. 1: the invention is a module structure diagram of the system;
FIG. 2: the flow diagram of the method of the invention is shown.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, specific embodiments will now be described in detail.
As shown in fig. 1, a TR069 batch interactive test system,
the starting pre-reading module 1 is used for reading parameters input by a user during starting, and comprises acsurl, a specified test case file and an execution result file; analyzing the test case designated by the user into an ACS task, storing the ACS task into a memory, and waiting for issuing the ACS task to a CPE end; the test personnel input the test nodes and values into texts in batches, and the system reads the nodes and values into the memory;
the message processing module 3 is used for processing the HTTP stream sent by the CPE end and is a basic HTTP service; sending the transmitted HTTP stream to a CPE end; extracting a part related to a TR069 protocol in the SOAP message, and transferring a result to a result processing module 4;
the ACS task encapsulation module 2 reads the ACS task to be executed, encapsulates the ACS task into SOAP message and transfers the SOAP message to the message processing module; the test case configured by the user is packaged into an ACS task, stored in the content and waits to be sent to the CPE end;
and the result processing module 4 records the execution result corresponding to the ACS task encapsulation module.
A user inputs a plurality of parameter nodes and values which need to be issued to the CPE and writes the parameter nodes and values into a file; the CPE establishes TR069 session connection to the ACS after HTTP GET operation; the ACS sends a plurality of SOAP messages corresponding to the test nodes to the CPE; the system records a plurality of results returned by the CPE and writes the results into a result file.
A user can input a test node which is arranged in advance into a text file according to a specified format, and then a test file path, a url path of HTTP GET of CPE and a local monitoring ACS server port are used as starting parameters and configured to a system starting script; after the startup, the CPE initiates connection to the ACS end, and the ACS end issues the test nodes configured by the user to the CPE end in sequence, records the execution result, and writes the execution result into a file.
As shown in fig. 2, the TR069 batch interactive test method includes the following steps:
1) reading input parameter configuration in batch in a format file form; reading a configured test case file according to format requirements of tab separating test types, test nodes and node values, storing contents into an internal memory in a character string key value pair mode, and storing node parameters and node values in batches in a corresponding mode;
2) packaging the test nodes and the values into an entity object list in batch; encapsulating the read key value pairs into an entity object list in batches, and encapsulating the key value pairs into different entity objects according to different node operation types, so that the SOAP message can be generated conveniently;
3) encapsulating entity objects into SOAP messages in batches and sending the SOAP messages to a CPE end;
4) saving the execution results to a file in batches; and storing the result values returned by the CPE end and the node values thereof in a file in a one-to-one correspondence mode in batches.
The testing personnel can flexibly deploy the system and configure the test cases conveniently and flexibly, and the test results recorded in the test result file correspond to the test parameter nodes one by one, so that the archiving and the sorting are convenient.
The JAVA program realizes the reading of the test parameters; the JAVA program realizes a simple HTTP server; the JAVA program realizes the encapsulation and analysis of the SOAP message; the JAVA program implements reading and writing of files (for reading of test case parameters and recording of test results).
In conclusion, the test case parameters are input in a file mode, so that the test case is convenient to edit and convenient to file and retrieve; the operation environment is easy to build; the execution file is extremely small.
It should be noted that: the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; while the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
Claims (6)
- TR069 batch interaction test system, its characterized in that:the starting pre-reading module (1) is used for reading three parameters input by a tester during starting: acsurl, batch test case file path and execution result file path; analyzing the batch test cases appointed by the tester into ACS tasks, and waiting for issuing to a CPE end;the message processing module (3) is used for processing the HTTP stream sent by the CPE end and is a basic HTTP service; sending the transmitted HTTP stream to a CPE end; extracting a part related to a TR069 protocol in the SOAP message, and transferring a result to a result processing module (4);an ACS task encapsulation module (2) which reads an ACS task to be executed and encapsulates the ACS task into a SOAP message to be transferred to the message processing module;and the result processing module (4) records the batch execution result corresponding to the ACS task encapsulation module.
- 2. The TR069 batch interaction testing system of claim 1, wherein: and starting the pre-reading module (1), inputting test nodes and values into texts by testers in batches, and reading the nodes and the values into a memory by the system.
- 3. The TR069 batch interaction testing system of claim 1, wherein: and the ACS task encapsulating module (2) encapsulates the batch test cases configured by the tester into batch ACS tasks to wait for sending the batch ACS tasks to the CPE end.
- The TR069 batch interactive test method is characterized by comprising the following steps: the method comprises the following steps:1) reading and inputting test cases in batch by separating files of a plurality of test cases by tab characters;2) packaging the test nodes and the values into an entity object list in batch; encapsulating the read key value pairs into an entity object list in batches, and encapsulating the key value pairs into different entity objects according to different node operation types, so that the SOAP message can be generated conveniently;3) encapsulating entity objects into SOAP messages in batches and sending the SOAP messages to a CPE end;4) and saving the execution result to a file in batches.
- 5. The TR069 batch interaction testing method of claim 4, wherein: and 1), reading the file configured with the batch test cases according to an agreed format, and storing the file into a memory in a character string key value pair mode.
- 6. The TR069 batch interaction testing method of claim 4, wherein: and 4), storing the result values returned by the CPE end and the node values thereof in a file in a one-to-one correspondence manner in batches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010412994.3A CN111600776B (en) | 2020-05-15 | 2020-05-15 | TR069 batch interactive test system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010412994.3A CN111600776B (en) | 2020-05-15 | 2020-05-15 | TR069 batch interactive test system and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111600776A CN111600776A (en) | 2020-08-28 |
CN111600776B true CN111600776B (en) | 2022-04-22 |
Family
ID=72191057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010412994.3A Active CN111600776B (en) | 2020-05-15 | 2020-05-15 | TR069 batch interactive test system and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111600776B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113242521B (en) * | 2021-07-13 | 2021-10-19 | 深圳市艾伯通信有限公司 | TR 069-based message optimization processing method and system |
CN114244756A (en) * | 2021-12-16 | 2022-03-25 | 浪潮通信信息系统有限公司 | Method and system for automatically identifying home broadband CPE (customer premises equipment) model for remote monitoring |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104426709A (en) * | 2013-08-23 | 2015-03-18 | 深圳市共进电子股份有限公司 | TR 069 testing method and system |
CN104426716A (en) * | 2013-09-05 | 2015-03-18 | 深圳市共进电子股份有限公司 | Method and system for realizing TR069 test |
CN110505117A (en) * | 2019-08-07 | 2019-11-26 | 深圳市吉祥腾达科技有限公司 | TR069 test method, system and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012244493A (en) * | 2011-05-20 | 2012-12-10 | Mitsubishi Electric Corp | Serial communication apparatus |
-
2020
- 2020-05-15 CN CN202010412994.3A patent/CN111600776B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104426709A (en) * | 2013-08-23 | 2015-03-18 | 深圳市共进电子股份有限公司 | TR 069 testing method and system |
CN104426716A (en) * | 2013-09-05 | 2015-03-18 | 深圳市共进电子股份有限公司 | Method and system for realizing TR069 test |
CN110505117A (en) * | 2019-08-07 | 2019-11-26 | 深圳市吉祥腾达科技有限公司 | TR069 test method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111600776A (en) | 2020-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109189684B (en) | Python-based automatic interface testing method | |
CN111930635B (en) | Swagger-based rapid automatic testing method and system | |
WO2019134226A1 (en) | Log collection method, device, terminal apparatus, and storage medium | |
CN111600776B (en) | TR069 batch interactive test system and method thereof | |
SE522408C2 (en) | Computer program and procedure for automated testing of a computer's functionality | |
CN110287696B (en) | Detection method, device and equipment for rebound shell process | |
CN108717362B (en) | Network equipment configuration system and method based on inheritable structure | |
WO2016201995A1 (en) | Method and apparatus for implementation of test object construction, and service configuration test apparatus | |
CN114327678A (en) | Real-time data processing system and method supporting multiple engines | |
CN108845940A (en) | A kind of enterprise information system automated function test method and system | |
CN110493079A (en) | The production automation test method of industrial ethernet switch | |
CN108804300A (en) | Automated testing method and system | |
CN113760730B (en) | Automatic test method and device | |
CN110532182B (en) | Automatic testing method and device for virtualization platform | |
CN113419969B (en) | Interface automatic formation power guarantee method based on browser plug-in | |
CN114741283A (en) | Automatic interface testing method and device based on python design | |
CN109918310A (en) | A kind of Modeling Platform interface test method | |
CN113836014A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN111930531A (en) | Data processing method, data production method, data consumption method, data production device, data consumption device and data consumption medium | |
CN111966451A (en) | Data extraction method, system, equipment and medium | |
CN109255161B (en) | Method for generating NOD netlist file from NET netlist file | |
CN102014023B (en) | VB Script based automatic testing method of network equipment products | |
CN105446867A (en) | Method and apparatus for generating test data | |
CN117874037A (en) | Method and system for supporting Kafka read-write based on DataX framework | |
CN115550231B (en) | Multi-protocol test platform based on configuration file and test method thereof |
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 |