CN107171854A - A kind of method that independent wide area network server is simulated in automatic test - Google Patents

A kind of method that independent wide area network server is simulated in automatic test Download PDF

Info

Publication number
CN107171854A
CN107171854A CN201710464959.4A CN201710464959A CN107171854A CN 107171854 A CN107171854 A CN 107171854A CN 201710464959 A CN201710464959 A CN 201710464959A CN 107171854 A CN107171854 A CN 107171854A
Authority
CN
China
Prior art keywords
server
test
servers
wide area
area network
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
CN201710464959.4A
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 Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201710464959.4A priority Critical patent/CN107171854A/en
Publication of CN107171854A publication Critical patent/CN107171854A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method that independent wide area network server is simulated in automatic test, this method includes:The first virtual machine and the second virtual machine on open distal end computer;XAMPP controllers on open distal end computer, server local website is reached the standard grade;Robot remote control servers are used on main control computer, multiple wide area network servers are configured;Automatic test is carried out to the use-case for needing to test by main control computer, test result is obtained.This method realizes the efficiency for improving and building server.

Description

A kind of method that independent wide area network server is simulated in automatic test
Technical field
The present invention relates to terminal test technical field, independent wide area network clothes are simulated in more particularly to a kind of automatic test The method of business device.
Background technology
At present, because test team is that public servicer can not be opened to be repaiied to a certain team under same test environment Change operation;At present, the function for test terminating gateway equipment under different test environments, it usually needs repeatedly build various services Device, reusability is low, builds server process complexity, expends a large amount of testing times, less efficient;In automatic test environment, Various access servers are built, are operated sufficiently complex, convenience is relatively low.
The content of the invention
It is an object of the invention to provide a kind of method that independent wide area network server is simulated in automatic test, carried with realizing Height builds the efficiency of server.
In order to solve the above technical problems, the present invention provides the side that independent wide area network server is simulated in a kind of automatic test Method, this method includes:
The first virtual machine and the second virtual machine on open distal end computer;
XAMPP controllers on open distal end computer, server local website is reached the standard grade;
Robot remote control servers are used on main control computer, multiple wide area network servers are configured;
Automatic test is carried out to the use-case for needing to test by main control computer, test result is obtained.
It is preferred that, first virtual machine is ROS servers, and second virtual machine is ac server.
It is preferred that, after the XAMPP controllers on the open distal end computer, in addition to:
Start Apache services and Mysql services.
It is preferred that, the multiple wide area network servers of configuration, including:
The http interfaces provided by ROS servers carry out Dynamic Host Configuration Protocol server, PPPOE servers, L2TP servers, PPTP The configuration of server and dns server.
It is preferred that, the use-case for needing to test includes WAN linkage functions, nat feature, TR069 functions or accesses control Function processed.
It is preferred that, it is described by main control computer to need test use-case carry out automatic test, obtain test result it Before, in addition to:
Server network interface card is external into internet, and there is provided existing network test environment.
It is preferred that, the ac server is used to monitor TR069 protocol connection requests.
The method that independent wide area network server is simulated in a kind of automatic test provided by the present invention, open distal end computer On the first virtual machine and the second virtual machine;XAMPP controllers on open distal end computer, server local website is reached the standard grade; Robot remote control servers are used on main control computer, multiple wide area network servers are configured;By main control computer to needing to survey The use-case of examination carries out automatic test, obtains test result.It can be seen that, main control computer by robot remote controls server by its The various servers of test case networking needs are configured as, a variety of networking requirements of test is met, solves terminating gateway equipment soft In part automatic test course, server networking, the problem of configuration process is numerous and diverse, can be achieved test process in real time, it is easy, flexibly Configuration server, improves the efficiency for building server.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 be a kind of automatic test provided by the present invention in simulate independent wide area network server method flow Figure;
Fig. 2 is the basic networking schematic diagram of automatic test;
Fig. 3 is that server computer constitutes schematic diagram.
Embodiment
The core of the present invention is to provide a kind of method that independent wide area network server is simulated in automatic test, is carried with realizing Height builds the efficiency of server.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It refer to Fig. 1, Fig. 1 is the side that independent wide area network server is simulated in a kind of automatic test provided by the present invention The flow chart of method, this method includes:
S11:The first virtual machine and the second virtual machine on open distal end computer;
S12:XAMPP controllers on open distal end computer, server local website is reached the standard grade;
S13:Robot remote control servers are used on main control computer, multiple wide area network servers are configured;
S14:Automatic test is carried out to the use-case for needing to test by main control computer, test result is obtained.
It can be seen that, main control computer is configured to as each of test case networking needs by robot remote control servers Server is planted, a variety of networking requirements of test is met, solves in terminating gateway device software automatic test course, server group The problem of net, numerous and diverse configuration process, real-time test process, simplicity, flexible configuration server can be achieved, server is built in raising Efficiency.
Based on the above method, specifically, the first virtual machine is ROS servers, the second virtual machine is ac server.
Further, in step S12, after the XAMPP controllers on open distal end computer, in addition to:Start Apache Service and Mysql services.
Further, in step S13, multiple wide area network servers are configured, including:The http provided by ROS servers Interface carries out the configuration of Dynamic Host Configuration Protocol server, PPPOE servers, L2TP servers, PPTP servers and dns server.
, wherein it is desired to which the use-case of test includes WAN linkage functions, nat feature, TR069 functions or access control function.
Further, automatic test is carried out to the use-case for needing to test by main control computer, before obtaining test result, Also include:Server network interface card is external into internet, and there is provided existing network test environment.
Wherein, ac server is used to monitor TR069 protocol connection requests.
Detailed, in the test system being made up of main control computer, far-end server, terminating gateway equipment, based on robot Framework 3.0.2 software environments, main control computer is configured to use for test by robot remote control ROS servers The various servers that example networking needs, meet a variety of networking requirements of test.
First, main control computer is by robot remote control virtual machine ROS servers, ac server, and configuration wide area network connects Enter server, dns server, ntp server, IGMP servers, TR069ACS etc.;Wherein, main control computer is distinguished with server Open robot local terminals, robot distal ends and carry out server configuration;Each server can be according to the real-time structure of preset test environment demand Build or change and come into force in real time;
Secondly, XAMPP frameworks are enabled on the server builds web server;Wherein, XAMPP instruments on far-end server Install for free open source software and in advance;
Furthermore, by the control of main control computer, automatic test is carried out to the use-case for needing to test, and export test knot Really.Wherein, testable use-case includes WAN linkage functions, nat feature, TR069 functions, access control function.
In terminating gateway device software automatic test course, set by main control computer, far-end server, terminating gateway In the test system of standby composition, this method is based on robot framework 3.0.2 software environments, and main control computer is according to use-case need Ask, control far-end server configuration WAN access servers, this method solves terminating gateway device software automatic test course In, server networking, the problem of configuration process is numerous and diverse.Referring to figs. 2 and 3 Fig. 2 illustrates for the basic networking of automatic test Figure;Fig. 3 is that server computer constitutes schematic diagram.
Detailed, based on this method, specific implementation step is as follows:
Step 1: virtual machine 1 is ROS servers, virtual network Vmnet0, Vmnet1, Vmnet8 on open distal end computer Respectively bridge, main frame, NAT mode, Vmnet0 are bridged to the wide of server network interface card Ether2, Ether2 network interface card connection equipment under test Domain network interface, ROS systems carry the access of http interface openings;
Step 2: virtual machine 2 is ac server on open distal end computer, TR069 connection requests are monitored;
Step 3: the XAMPP controllers on open distal end computer, start Apache, Mysql service, by server Disk-based web site is reached the standard grade;
Wherein, the XAMPP on server computer is free open source software, easy to install to use;
Step 4: main control computer carries out ROS by each server of robot remote controls by the ROS http interfaces provided On the configuration of the server such as DHCP, PPPOE, L2TP, PPTP, DNS;
Wherein, ROS is configured by making browser on the page, and configuration completes to come into force in real time;
Step 5: server network interface card Ether1 can be external to Internet, existing network test environment is provided for DUT;
Wherein, whether server connects Internet depending on DUT test business, and whether connecting does not influence independent wide area network Server is used;
Step 6: by the control of main control computer, local terminal computer and the upper equipment under test of Remote Radio brain connection, to needing The use-case of test is tested automatically, and is outputed test result.
Wherein, test case refer to software test evaluation after all use-cases extract can development of automation pass Key use-case is, it is necessary to which the use-case of test includes NTP functions, WAN linkage functions, nat feature, TR069 functions, access control function.
This method is used in the terminating gateway equipment progress automatic test stage, test process can be achieved real-time, easy, clever Configuration server living, a kind of good solution is provided for automation WAN access environments, realizes that automatic test course simplifies WAN access environments, save the testing time, accelerate testing progress.
Wherein, DHCP (Dynamic Host Configuration Protocol) is DHCP, mainly There are two purposes:To internal network or Internet service provider's automatic IP address allocation, to user or internal network keeper It is used as the means that all computers are made with central management.NTP (Network Time Protocol), when being for making computer Between a kind of synchronized agreement, it can make computer synchronize its server or clock source, it can provide it is high precisely The time adjustment of degree.
WAN (Wide Area Network) is wide area network, also referred to as telenet, generally bridges very big physical extent, is covered The scope of lid is from tens kilometers to thousands of kilometers, and it can connect multiple city or countries, or across several continents and can provide long distance From communication, international telecommunication network is formed.Gateway, the router that WAN connections refer in terminal device such as home network are accessed A kind of connected mode of wide area network, main function is the connection status for maintaining terminal device and wide area network, to the number by gateway According to doing corresponding processing.
XAMPP is free open source software, can use XAMPP3.2.2.0 software kits, XAMPP3.2.2.0 is that One function is strong Big integrated software package of building a station, it can be installed under the several operation systems such as Windows, Linux, Solaris, Mac OS X Use, be very easy to use and install.Robot distal ends can use robot framework 3.0.2, robot framework 3.0.2 it is the Function Test Automation framework that a use python language is write, possesses good scalability, supports crucial Word drive, polytype client or interface can be tested simultaneously, can carry out distributed testing execution.
ROS systems can use the systems of ROS 6.4, and the systems of ROS 6.4 are writing a Chinese character in simplified form for MikroTik RouterOS systems, it It is a kind of router operating system, is based on the exploitation of the Linux kernel heart, compatible x86PC Routing Software, and by the software by standard PC computers become professional router, RouterOS it is soft route development and application on constantly update and develop, software experience Multiple renewal and improvement, make its function in continuous enhancing and perfect, especially wireless, certification, policybased routing, bandwidth control and Firewall filtering etc. functionally has very prominent function, there is high cost performance.
Linux is a kind of class Unix operating systems of free and open source code, there are many different linux versions, But they all employ linux kernel.Linux can be arranged on various computer hardware equipments in, such as mobile phone, tablet personal computer, Router, video game console, desktop computer, large scale computer and supercomputer.Linux is a set of free use and freedom The class Unix operating systems of propagation, are a multi-user based on POSIX and UNIX, multitask, support multithreading and multi -CPU Operating system, it can run main unix tool software, application program and procotol, and it supports 32 and 64 hardware, Linux inherits design philosophys of the Unix using network as core, is the stable multiple-user network operating system of a performance.
In this method, main control computer is by robot remote control service devices end, under test environment demand, rapid accurate Ground is built into wide area network access server in ROS systems, and build some websites by XAMPP in server end accesses for DUT, And WAN access servers can be changed in real time;By the control of main control computer, automatic test is carried out to dependence test use-case, and Output test result.This method realizes automatic test course and simplifies WAN access environments, saves the testing time, accelerates test The purpose of progress, is solved in terminating gateway equipment during software automated testing, server networking, configuration process are numerous and diverse, The problem of wasting a large amount of testing times.
The method that independent wide area network server is simulated in a kind of automatic test provided by the present invention is carried out above It is discussed in detail.Specific case used herein is set forth to the principle and embodiment of the present invention, above example Illustrate the method and its core concept for being only intended to help to understand the present invention.It should be pointed out that for the common skill of the art For art personnel, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these change Enter and modify to also fall into the protection domain of the claims in the present invention.

Claims (7)

1. the method for independent wide area network server is simulated in a kind of automatic test, it is characterised in that including:
The first virtual machine and the second virtual machine on open distal end computer;
XAMPP controllers on open distal end computer, server local website is reached the standard grade;
Robot remote control servers are used on main control computer, multiple wide area network servers are configured;
Automatic test is carried out to the use-case for needing to test by main control computer, test result is obtained.
2. the method as described in claim 1, it is characterised in that first virtual machine is ROS servers, and described second is virtual Machine is ac server.
3. method as claimed in claim 2, it is characterised in that after the XAMPP controllers on the open distal end computer, also Including:
Start Apache services and Mysql services.
4. method as claimed in claim 3, it is characterised in that the multiple wide area network servers of configuration, including:
The http interfaces provided by ROS servers carry out Dynamic Host Configuration Protocol server, PPPOE servers, L2TP servers, PPTP services The configuration of device and dns server.
5. method as claimed in claim 4, it is characterised in that the use-case of the needs test includes WAN linkage functions, NAT Function, TR069 functions or access control function.
6. method as claimed in claim 5, it is characterised in that described to be carried out certainly to the use-case for needing to test by main control computer Dynamicization is tested, before obtaining test result, in addition to:
Server network interface card is external into internet, and there is provided existing network test environment.
7. method as claimed in claim 6, it is characterised in that the ac server please for monitoring the connection of TR069 agreements Ask.
CN201710464959.4A 2017-06-19 2017-06-19 A kind of method that independent wide area network server is simulated in automatic test Pending CN107171854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710464959.4A CN107171854A (en) 2017-06-19 2017-06-19 A kind of method that independent wide area network server is simulated in automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710464959.4A CN107171854A (en) 2017-06-19 2017-06-19 A kind of method that independent wide area network server is simulated in automatic test

Publications (1)

Publication Number Publication Date
CN107171854A true CN107171854A (en) 2017-09-15

Family

ID=59819454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710464959.4A Pending CN107171854A (en) 2017-06-19 2017-06-19 A kind of method that independent wide area network server is simulated in automatic test

Country Status (1)

Country Link
CN (1) CN107171854A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247820A (en) * 2019-05-28 2019-09-17 北京星网锐捷网络技术有限公司 Automated testing method and device based on cloud computing open network operating system
CN110460474A (en) * 2019-08-14 2019-11-15 深圳市同维通信技术有限公司 The configuration method and device of functions of the equipments, storage medium, electronic equipment
CN113612658A (en) * 2021-08-02 2021-11-05 四川九州电子科技股份有限公司 Broadband network equipment test system and test method
CN114143850A (en) * 2021-11-25 2022-03-04 深圳市领创星通科技有限公司 IPv6 address allocation method and device, computer equipment and storage medium
CN114726757A (en) * 2022-03-24 2022-07-08 深圳市领创星通科技有限公司 Equipment networking test method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100085879A1 (en) * 2008-10-08 2010-04-08 Zhiqiang Qian Methods and apparatus to diagnose enhanced interior gateway routing protocol problems in networks
CN102377733A (en) * 2010-08-12 2012-03-14 盛科网络(苏州)有限公司 Automatic testing system of application layer protocol and automatic testing method thereof
CN103067225A (en) * 2013-01-05 2013-04-24 上海斐讯数据通信技术有限公司 Test system
CN106209515A (en) * 2016-07-12 2016-12-07 中国南方电网有限责任公司电网技术研究中心 Access network equipment automatization test system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100085879A1 (en) * 2008-10-08 2010-04-08 Zhiqiang Qian Methods and apparatus to diagnose enhanced interior gateway routing protocol problems in networks
CN102377733A (en) * 2010-08-12 2012-03-14 盛科网络(苏州)有限公司 Automatic testing system of application layer protocol and automatic testing method thereof
CN103067225A (en) * 2013-01-05 2013-04-24 上海斐讯数据通信技术有限公司 Test system
CN106209515A (en) * 2016-07-12 2016-12-07 中国南方电网有限责任公司电网技术研究中心 Access network equipment automatization test system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247820A (en) * 2019-05-28 2019-09-17 北京星网锐捷网络技术有限公司 Automated testing method and device based on cloud computing open network operating system
CN110460474A (en) * 2019-08-14 2019-11-15 深圳市同维通信技术有限公司 The configuration method and device of functions of the equipments, storage medium, electronic equipment
CN113612658A (en) * 2021-08-02 2021-11-05 四川九州电子科技股份有限公司 Broadband network equipment test system and test method
CN113612658B (en) * 2021-08-02 2023-06-06 四川九州电子科技股份有限公司 Broadband network equipment testing system and testing method
CN114143850A (en) * 2021-11-25 2022-03-04 深圳市领创星通科技有限公司 IPv6 address allocation method and device, computer equipment and storage medium
CN114143850B (en) * 2021-11-25 2024-02-23 深圳市领创星通科技有限公司 IPv6 address allocation method and device, computer equipment and storage medium
CN114726757A (en) * 2022-03-24 2022-07-08 深圳市领创星通科技有限公司 Equipment networking test method and device, computer equipment and storage medium
CN114726757B (en) * 2022-03-24 2024-05-03 深圳市领创星通科技有限公司 Equipment networking test method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107171854A (en) A kind of method that independent wide area network server is simulated in automatic test
CN103916378B (en) System and method for automatically deploying application system in cloud resource pool
US9146826B2 (en) Method and apparatus for scaling network simulation
CN104767649A (en) Bare metal server deployment method and device
US9935818B1 (en) Diagnostic traffic generation for automatic testing and troubleshooting
CN107749807B (en) Network function verification method and verification system for NFV
CN107979489A (en) Integrated access equipment configuration monitoring method
Miseviciene et al. Educational infrastructure using virtualization technologies: Experience at kaunas university of technology
CN106254178B (en) network test platform NFVNTP based on NFV and test method thereof
DeCusatis et al. Modeling software defined networks using mininet
CN107645428A (en) A kind of automatic test approach and device
CN102970376A (en) Cluster configuration method and device
CN104363306A (en) Private cloud management control method for enterprise
CN110290029A (en) A kind of router integrated service cross bars machine measures test system and method
CN105471963A (en) Mobile device management method and system based on cloud platform
CN107566513A (en) Test equipment DOS environmental data collecting methods and system
CN106878095A (en) A kind of network collocating method and system based on scenario distributed emulation
CN107733717B (en) Network configuration method for mobile operation and maintenance of cloud platform
CN103490950B (en) A kind of router PPTP session capacity analogy methods
Vrijders et al. Reducing the complexity of virtual machine networking
CN104917725A (en) Method and system for trans-NAT communication between serial server and network device
CN103117880A (en) Web technology based network topological generation method
CN104852832A (en) Method and system for testing performance of stun server in socket cluster
CN104618196A (en) Method for identifying compatibility of server and Citrix system
Komosny et al. Testing Internet applications and services using PlanetLab

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915

RJ01 Rejection of invention patent application after publication