CN117220767A - System and method for automatically testing photo cat TR069 module - Google Patents

System and method for automatically testing photo cat TR069 module Download PDF

Info

Publication number
CN117220767A
CN117220767A CN202311241892.XA CN202311241892A CN117220767A CN 117220767 A CN117220767 A CN 117220767A CN 202311241892 A CN202311241892 A CN 202311241892A CN 117220767 A CN117220767 A CN 117220767A
Authority
CN
China
Prior art keywords
cat
network card
server
test
photo
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.)
Pending
Application number
CN202311241892.XA
Other languages
Chinese (zh)
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.)
Shenzhen Tenda Technology Co Ltd
Original Assignee
Shenzhen Tenda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN202311241892.XA priority Critical patent/CN117220767A/en
Publication of CN117220767A publication Critical patent/CN117220767A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention provides a system and a test method for automatically testing a photo cat TR069 module, wherein the system for automatically testing the photo cat TR069 module comprises a client, a server, a photo cat and an optical line terminal, wherein a test tool is arranged in the client, the client is connected with the photo cat, the photo cat is connected with the server through the optical line terminal, a xacs server is arranged in the server, and the xacs server can manage the photo cat; the automatic registration test module automatically fills in a plurality of test cases on the web in sequence, sends the information to the optical cat and receives the feedback record test result of the optical cat; after the TR069 automatic test module establishes connection with the xacs server by logging in the photo cat, the xacs server is automatically filled with a plurality of test cases in sequence, and a feedback record test result of the photo cat received by the xacs server is obtained. The beneficial effects of the invention are as follows: the testing efficiency is high, and the cost of manpower and material resources is saved.

Description

System and method for automatically testing photo cat TR069 module
Technical Field
The invention relates to the technical field of photo cat testing, in particular to a system and a method for automatically testing a photo cat TR069 module.
Background
An optical modem is a modem for fiber access for surfing the internet. The TR069 module is used for an operator to remotely manage and configure the optical modem, is a channel for interaction between equipment and an operation Shang Guang modem management platform, and is used for automatic issuing, remote maintenance, equipment upgrading and other functions of registering equipment service channel information.
The existing test of the light cat TR069 module mainly depends on manual test, and in the test flow of the TR069 module, the test efficiency is lower in the whole test flow due to the fact that more test cases exist, the test workload is large and the repeated workload is large, and the test accuracy is low due to the fact that the data is inaccurate easily when a manual recording test structure is adopted, the test effect is poor when a manual test mode is adopted, and the enterprise competitiveness is not improved.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a system and a method for automatically testing a photo cat TR069 module.
The invention relates to a system for automatically testing a photo-cat TR069 module, which comprises a client, a server, a photo-cat and an optical line terminal, wherein a testing tool is arranged in the client, the client is connected with the photo-cat, the photo-cat is connected with a lower interface of the optical line terminal, the server is connected with an upper interface of the optical line terminal, a xacs server is arranged in the server, and the xacs server can manage the photo-cat;
the automatic registration test module automatically fills in a plurality of test cases on the web in sequence, sends the information to the optical cat and receives the feedback record test result of the optical cat;
after the TR069 automatic test module establishes connection with the xacs server by logging in the photo cat, the xacs server is automatically filled with a plurality of test cases in sequence, and a feedback record test result of the photo cat received by the xacs server is obtained.
The invention further improves, the service end is a virtual machine installed in the client, the client is internally provided with a client network card, a server network card and a loop-back network card, the virtual machine is internally provided with a first virtual network card and a second virtual network card, the annular network card is connected with the first virtual network card, the client manages the virtual machine through the cooperation of the annular network card and the first virtual network card, the annular network card and the first virtual network card are in a mapping relation, the second virtual network card is connected with the server network card, the second virtual network card and the server network card are in a mapping relation, the optical line terminal upper port is connected with the virtual machine through the server network card, and the optical modem is connected with the client through the client network card.
The invention is further improved, the client is also internally provided with an optical line terminal network card, the optical line terminal network card is connected with the optical line terminal, and the optical line terminal network card is used for accessing the optical line terminal into a network.
The invention also provides a test method for a system for automatically testing a photo cat TR069 module, which comprises the following steps:
s1: opening a testing tool and selecting a testing type;
s2: when a web automatic registration test module is selected, web registration light cat is carried out;
s3: the element is positioned to the corresponding input box;
s4: inputting corresponding test parameters;
s5: submitting test parameters to the light cat through the client network card, and waiting for the feedback result of the light cat;
s6: when receiving the feedback result of the photo cat, storing the feedback result of the photo cat into a table file;
s7: after the optical cat feedback result is stored, returning to the step S3, and executing the next test case.
In step S7, before returning to step S3, it is determined whether there are more test cases to be tested, for example, if there are more test cases to be tested, the detection is stopped, and the test flow of the web automation registration test module is completed.
The invention is further improved, and in the step S2, when the TR069 automatic test module is selected, the following steps are carried out:
a1: registering a light cat by web login;
a2: after registering the light cat, the testing tool obtains the registration result of the light cat from the xacs server;
a3: after the photo-cat registration is successful, positioning corresponding elements on the xacs server, sending the corresponding elements to the photo-cat, and waiting for a photo-cat feedback result;
a4: when receiving the feedback result of the photo cat, storing the feedback result of the photo cat into a table file;
a5: and (3) returning to the step (A3) after the optical cat feedback result is stored, and executing the input of the next test case.
The invention is further improved, and the method further comprises the following steps between the steps A1 and A2:
b01: the element is positioned to the corresponding input box;
and B02: inputting corresponding registration parameters;
b03: filling in the address of the xacs server and sending a registration data packet to the xacs server.
In step A5, before returning to step A3, the invention further improves the method, and determines whether there are more test cases to be tested, for example, if there are more test cases to be tested, the method stops the detection, and completes the test flow of the TR069 automatic test module.
The invention is further improved, and the specific data flow sent to the optical modem by the corresponding elements in the step A3 sequentially reaches the optical modem from the second virtual network card, the server network card, the upper port of the optical line terminal and the lower port of the optical line terminal of the virtual machine.
The invention is further improved, the light cat receives the corresponding elements and processes the corresponding elements to emit light in the step A3, and the specific flow direction of the feedback result of the light cat is from the lower port of the optical line terminal, the upper port of the optical line terminal, the server network card and the second virtual network card of the virtual machine in sequence, and finally reaches the optical line terminal.
Compared with the prior art, the invention has the beneficial effects that: by adopting the mechanism, the problems of more test cases, large test workload and large repeated workload in the test flow of the TR069 module in the prior art can be effectively solved by adopting manual test, the test efficiency is lower, a test tool can be installed on a client by using the system, and an automatic test can be completed by selecting a function to be tested, so that the labor cost and the time cost are effectively saved, and the efficiency is improved.
Drawings
In order to more clearly illustrate the invention or the solutions of the prior art, a brief description will be given below of the drawings used in the description of the embodiments or the prior art, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings can be obtained from them without the inventive effort of a person skilled in the art.
FIG. 1 is a block diagram of a system of the present invention;
FIG. 2 is a flow chart diagram of a web automated registration test module test method;
FIG. 3 is a flow chart of a test method of the TR069 automatic test module;
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention; the terms "comprising" and "having" and any variations thereof in the description of the invention and the claims and the description of the drawings above are intended to cover a non-exclusive inclusion. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the described embodiments of the invention may be combined with other embodiments.
In order to make the person skilled in the art better understand the solution of the present invention, the technical solution of the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system for automatically testing the optical cat TR069 module comprises a client, a server, an optical cat and an optical line terminal (OLT terminal).
The client is a computer carrying a Windows10 system, a virtual machine is installed in the client, the virtual machine is installed by software with a version of vmware workstation 16pro, and a server center OS system is carried on the virtual machine.
The client is provided with a client network card (client), a server network card (server) and a loopback network card (manager), a first virtual network card (vmanager) and a second virtual network card (vserver) are arranged in the virtual machine, the annular network card is connected with the first virtual network card, the annular network card and the first virtual network card are in a mapping relation, so that the vserver network card and the server network card are bridged together, the second virtual network card is connected with the server network card, and the second virtual network card and the server network card are in a mapping relation, so that the vmanager network card and the manager network card are bridged together.
The client is connected with the optical modem through a client network card, the optical modem is connected with the lower port of the optical line terminal, and the server is connected with the upper port of the optical line terminal through a server network card.
The virtual machine is internally provided with the xacs server, and the xacs server can manage the light cat.
And installing a chrome browser on the client, and updating a browser driver for web logging on the optical modem and managing the xacs server.
The client has a test tool installed and python3.7.4 installed to run the test tool, which is the phthon program.
The automatic registration test module automatically fills in a plurality of test cases on the web in sequence, sends the information to the photo-cat and receives the feedback record test result of the photo-cat.
After the TR069 automatic test module establishes connection with the xacs server by logging in the photo cat, the xacs server is automatically filled with a plurality of test cases in sequence, and a feedback record test result of the photo cat received by the xacs server is obtained.
And an optical line terminal network card (OLT) is also arranged in the client, and is connected with the optical line terminal, and the optical line terminal network card is used for accessing the optical line terminal into a network.
The invention provides a test method, which is used for the system for automatically testing the photo cat TR069 module, and the detailed implementation method of the test photo cat TR069 module in the embodiment is as follows:
1. and opening a test tool on the running client and selecting a test type.
The test types comprise a web automatic registration test module and a TR069 automatic test module, and the test types are selected according to different requirements of users.
The web automatic registration test module can automatically test the login functional condition of the photo cat.
The TR069 automatic test module can automatically detect whether the function of the photo cat TR069 module is normal.
2. And after the corresponding test type is selected, performing corresponding automatic test.
(1) When the webweb automatic registration test module is selected, as shown in fig. 2, the specific step flow is as follows:
s1: opening a testing tool and selecting a testing type;
s2: when a web automatic registration test module is selected, web registration light cat is carried out;
s3: the element is positioned to the corresponding input box;
s4: inputting corresponding test parameters;
s5: submitting test parameters to the light cat through the client network card, and waiting for the feedback result of the light cat;
s6: when receiving the feedback result of the photo cat, storing the feedback result of the photo cat into a table file;
s7: after the optical cat feedback result is stored, returning to the step S3, and executing the next test case.
In step S7, before returning to step S3, it is determined whether there are more test cases to be tested, if there are more test cases to be tested, the detection is stopped, and the test flow of the web automation registration test module is completed.
(2) When the TR069 automatic test module is selected, as shown in fig. 3, the specific step flow is as follows:
a1: registering a light cat by web login;
a2: after registering the light cat, the testing tool obtains the registration result of the light cat from the xacs server;
a3: after the photo-cat registration is successful, positioning corresponding elements on the xacs server, sending the corresponding elements to the photo-cat, and waiting for a photo-cat feedback result;
a4: when receiving the feedback result of the photo cat, storing the feedback result of the photo cat into a table file;
a5: and (3) returning to the step (A3) after the optical cat feedback result is stored, and executing the input of the next test case.
In step A3, after the photo cat registration is successful, a query test between the xacs server and the photo cat can be performed.
In step A5, before returning to step A3, it is determined whether there are more test cases to be tested, for example, if there are more test cases to be tested, the detection is stopped, and the test procedure of the TR069 automatic test module is completed.
The specific data flow sent to the optical modem by the corresponding element in the step A3 is sequentially from the second virtual network card, the server network card, the optical line terminal upper port and the optical line terminal lower port of the virtual machine, and finally reaches the optical modem, as indicated by 5-7 in fig. 3.
In the step A3, the optical modem receives the corresponding elements and processes the corresponding elements to finish the sending, and the specific flow direction of the optical modem feedback result is from the optical line terminal lower interface, the optical line terminal upper interface, the server network card and the second virtual network card of the virtual machine in sequence, and finally reaches the optical line terminal, as indicated by 8-9 in fig. 3.
The steps A1 and A2 also comprise the following steps:
b01: the element is positioned to the corresponding input box;
and B02: inputting corresponding registration parameters;
b03: filling in the address of the xacs server and sending a registration data packet to the xacs server.
The specific data flow between the step A1 and the step A2 sequentially reaches the optical line terminal from the client network card, the optical cat Lan port, the optical cat WAN port, the optical line terminal lower connection port, the optical line terminal upper connection port, the server network card and the second virtual network card.
3. The test is completed, and a test result is exported;
after each test flow is completed, an excel table with good automatic data retention can be obtained, and automation of the test flow is effectively realized.
In summary, the system and the test method for automatically testing the photo cat TR069 module can effectively solve the problems that the existing test flow of the photo cat TR069 module adopts manual testing, and has more test cases, large test workload and large repeated workload, so that the test efficiency is low.
The above embodiments are preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, which includes but is not limited to the embodiments, and equivalent modifications according to the present invention are within the scope of the present invention.

Claims (10)

1. A system for automated testing of a photo cat TR069 module, characterized by: the system comprises a client, a server, a light cat and an optical line terminal, wherein a testing tool is installed in the client, the client is connected with the light cat, the light cat is connected with a lower interface of the optical line terminal, the server is connected with an upper interface of the optical line terminal, a xacs server is installed in the server, and the xacs server can manage the light cat;
the automatic registration test module automatically fills a plurality of test cases into the web in sequence, sends information to the light cat, and receives feedback record test results of the light cat;
after the TR069 automatic test module establishes connection with the xacs server by logging in the photo cat, a plurality of test cases are filled into the xacs server in sequence automatically, and feedback record test results of the photo cat received by the xacs server are obtained.
2. The system for automated testing of a photo cat TR069 module according to claim 1, wherein: the server is a virtual machine installed in the client, a client network card, a server network card and a loop-back network card are arranged in the client, a first virtual network card and a second virtual network card are arranged in the virtual machine, the annular network card is connected with the first virtual network card, the client manages the virtual machine through cooperation of the annular network card and the first virtual network card, the annular network card and the first virtual network card are in a mapping relation, the second virtual network card is connected with the server network card, the second virtual network card and the server network card are in a mapping relation, an optical line terminal Internet access port is connected with the virtual machine through the server network card, and the optical line terminal Internet access port is connected with the client through the client network card.
3. The system for automated testing of a photo cat TR069 module according to claim 2, wherein: the client is internally provided with an optical line terminal network card, the optical line terminal network card is connected with the optical line terminal, and the optical line terminal network card is used for accessing the optical line terminal into a network.
4. A test method for a system for automated testing of a photo cat TR069 module as claimed in any one of the preceding claims 2 to 3, comprising the steps of:
s1: opening a testing tool and selecting a testing type;
s2: when the web automatic registration test module is selected, web login is carried out on the light cat;
s3: the element is positioned to the corresponding input box;
s4: inputting corresponding test parameters;
s5: submitting test parameters to the light cat through the client network card, and waiting for a light cat feedback result;
s6: when receiving the feedback result of the photo cat, storing the feedback result of the photo cat into a table file;
s7: after the optical cat feedback result is stored, returning to the step S3, and executing the next test case.
5. The method of testing according to claim 4, wherein: in step S7, before returning to step S3, it is determined whether there are more test cases to be tested, if there are more test cases to be tested, the detection is stopped, and the test flow of the web automation registration test module is completed.
6. The method of testing according to claim 4, wherein: when the TR069 automatic test module is selected in step S2, the following steps are performed:
a1: registering the light cat by web login;
a2: after registering the light cat, the testing tool obtains a light cat registration result from the xacs server;
a3: after the photo-cat registration is successful, positioning corresponding elements on the xacs server, sending the corresponding elements to the photo-cat, and waiting for a feedback result of the photo-cat;
a4: when receiving the feedback result of the photo cat, storing the feedback result of the photo cat into a table file;
a5: and (3) returning to the step (A3) after the optical cat feedback result is stored, and executing the input of the next test case.
7. The test method of claim 6, wherein: the steps A1 and A2 also comprise the following steps:
b01: the element is positioned to the corresponding input box;
and B02: inputting corresponding registration parameters;
b03: filling in the address of the xacs server, and sending a registration data packet to the xacs server.
8. The test method of claim 6, wherein: in step A5, before returning to step A3, it is determined whether there are more test cases to be tested, for example, if there are more test cases to be tested, the detection is stopped, and the test procedure of the TR069 automatic test module is completed.
9. The test method of claim 6, wherein: the specific data flow sent to the optical modem by the corresponding element in the step A3 is sequentially from the second virtual network card, the server network card, the upper port of the optical line terminal and the lower port of the optical line terminal of the virtual machine, and finally reaches the optical modem.
10. The test method according to claim 9, wherein: in the step A3, the optical modem receives the corresponding elements and processes the corresponding elements to finish the sending, and the specific flow direction of the optical modem feedback result is from the lower port of the optical line terminal, the upper port of the optical line terminal, the server network card and the second virtual network card of the virtual machine in sequence, and finally reaches the optical line terminal.
CN202311241892.XA 2023-09-25 2023-09-25 System and method for automatically testing photo cat TR069 module Pending CN117220767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311241892.XA CN117220767A (en) 2023-09-25 2023-09-25 System and method for automatically testing photo cat TR069 module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311241892.XA CN117220767A (en) 2023-09-25 2023-09-25 System and method for automatically testing photo cat TR069 module

Publications (1)

Publication Number Publication Date
CN117220767A true CN117220767A (en) 2023-12-12

Family

ID=89036874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311241892.XA Pending CN117220767A (en) 2023-09-25 2023-09-25 System and method for automatically testing photo cat TR069 module

Country Status (1)

Country Link
CN (1) CN117220767A (en)

Similar Documents

Publication Publication Date Title
US7971202B2 (en) Method for advanced management of software distribution tasks
US20060190579A1 (en) Assisted command script template creation
US7386698B2 (en) Apparatus and method for automatically defining, deploying and managing hardware and software resources in a logically-partitioned computer system
CN109361562B (en) Automatic testing method based on associated network equipment access
CN110471831B (en) Automatic method and device for compatibility test
US8166458B2 (en) Method and system for automated distributed software testing
US8020044B2 (en) Distributed batch runner
CN107135390A (en) The automated testing method and system of a kind of TV applications
EP1587246A2 (en) Framework for template-based retrieval of information from managed entities in a communication network
CN104753586A (en) Method and system for acquiring passive optical network (PON) element information
CN108717362B (en) Network equipment configuration system and method based on inheritable structure
CN111130922A (en) Airborne information safety automatic test method and test platform
KR20080090248A (en) Verifying method for implementing management software
US9940582B2 (en) Intelligent problem tracking electronic system for optimizing technical support
US20060120353A1 (en) Systems and methods for VolP service delivery
CN112115044A (en) Automatic testing method and system for electric power information communication equipment
CN116414521A (en) Virtual machine remote command interaction method, device and medium for distributed heterogeneous shooting ranges
CN109992295B (en) Version management method and server
CN106649019A (en) Test method for overall automatic PCIE communication quality based on serial port
CN113849399A (en) Automatic testing system and method for multi-machine cooperative software under multi-localization platform
CN117220767A (en) System and method for automatically testing photo cat TR069 module
CN115048187A (en) Operator-based pvc file importing method, device and storage medium
CN115577160A (en) Production line data acquisition method, device, equipment and medium
CN105915596A (en) Optical network unit information acquiring method and optical network unit information acquiring system
CN113986714A (en) Automatic continuous testing method and device based on containerization

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