CN106909505A - The remote test method and device of the server OS based on java - Google Patents

The remote test method and device of the server OS based on java Download PDF

Info

Publication number
CN106909505A
CN106909505A CN201710088262.1A CN201710088262A CN106909505A CN 106909505 A CN106909505 A CN 106909505A CN 201710088262 A CN201710088262 A CN 201710088262A CN 106909505 A CN106909505 A CN 106909505A
Authority
CN
China
Prior art keywords
java
server
remote
test
operating system
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.)
Granted
Application number
CN201710088262.1A
Other languages
Chinese (zh)
Other versions
CN106909505B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710088262.1A priority Critical patent/CN106909505B/en
Publication of CN106909505A publication Critical patent/CN106909505A/en
Application granted granted Critical
Publication of CN106909505B publication Critical patent/CN106909505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to Server remote technical field of measurement and test, a kind of remote test method of the server OS based on java is disclosed, comprised the following steps:Java test programs are write under client operating system;Client is attached with multiple remote servers by communication protocol;Client operating system is first compiled to the source file of java test programs with java Programming with Pascal Language compiler and generates class file, then performs java test programs;Multiple remote server operating systems perform the configuration file in java test programs automatically.The invention also discloses a kind of remote test device of the server OS based on java.The invention provides a test program for automation, client is attached with multiple remote servers by communication protocol, realizes the automatic test of multiple remote server operating system environments, reduce human intervention, the testing time is saved, operating efficiency is improve.

Description

The remote test method and device of the server OS based on java
Technical field
The present invention relates to Server remote technical field of measurement and test, more particularly to a kind of server OS based on java Remote test method and device.
Background technology
With internet+and the fast development of cloud service, the update of storage device is also increasingly faster, storage device number Amount is more, in test process is researched and developed, in face of a fairly large number of machine, cannot generally configure rapidly, delays the testing time.This is just needed A kind of configurator of automation is wanted, is installed in hardware device, automation can unified and go to perform configuration surroundings, subtracted as far as possible The intervention of few manpower, provides to system administration, operation maintenance personnel, memory system testing personnel and support well and help, and improves work Make efficiency.
The content of the invention
For above technical problem, it is an object of the invention to provide a kind of the long-range of server OS based on java Method of testing and device, realize the automatic test of multiple remote server operating system environments, reduce human intervention, save Testing time, improve operating efficiency.
To reach above-mentioned purpose, the present invention is achieved through the following technical solutions:
The present invention provides a kind of remote test method of the server OS based on java, comprises the following steps:
Step 1:Java test programs are write under client operating system, the java test programs include the communication protocols called View, multiple remote server information to be connected and the configuration file that will be performed on the remote server, the communication called Agreement and java test programs are in the identical file folder on client operating system;
Step 2:Client is attached with multiple remote servers by communication protocol;
Step 3:Client operating system is first compiled and given birth to java Programming with Pascal Language compiler to the source file of java test programs Into class file, then perform java test programs;
Step 4:Multiple remote server operating systems perform the configuration file in java test programs automatically.
Further, after step 4, also include:The return information of configuration file is shown on client operating system.
Further, step 2 is further included:
Step 21:Client is actively attached with multiple remote servers by communication protocol;
Step 22:Judge remote server information in java test programs and the remote server information being connected whether one Cause, if unanimously, successful connection;If inconsistent, return to step 21 is reconnected.
Further, the client operating system is windows operating systems, and remote server operating system is Linux operating systems.
Further, the remote server information includes IP, user name and the password of the remote server.
Further, the communication protocol is SSH communication protocols.
Further, the java Programming with Pascal Language compiler puts the class file of generation with the source file of java test programs Under same catalogue.
Present invention also offers a kind of remote test device of the server OS based on java, including following mould Block:
Test program writes module, for writing java test programs under client operating system;
Communication protocol storage module, communication protocol and java test programs for that will call are put on client operating system In identical file folder;
Link block, for being attached client with multiple remote servers by communication protocol;
Test program running module, for client operating system first with java Programming with Pascal Language compiler to java test programs Source file is compiled and generates class file, then performs java test programs;
Profile module, the configuration file in java test programs is performed for multiple remote server operating systems automatically.
Further, also include:Configuration information display module, for showing configuration file on client operating system Return information.
Further, link block is further included:
Active link block, for being actively attached client with multiple remote servers by communication protocol;
Judge module, for judging that the remote server information in java test programs is with the remote server information being connected It is no consistent, if unanimously, successful connection;If inconsistent, return to active link block and reconnect.
Compared with prior art, a kind of remote test method of the server OS based on java of the present invention is beneficial Effect is as follows:
The invention provides a test program for automation, client is carried out with multiple remote servers by communication protocol Connection, realizes the automatic test of multiple remote server operating system environments, to system administration, operation maintenance personnel, storage system Tester provides and support well and help, and reduces human intervention, saves the testing time, improves operating efficiency;
A kind of beneficial effect of the remote test method device of the server OS based on java is with a kind of based on java's The beneficial effect of the remote test method of server OS is similar to, and will not be repeated here.
Brief description of the drawings
Fig. 1 is one of the schematic flow sheet of remote test method of server OS of the present invention based on java.
Fig. 2 is the two of the schematic flow sheet of the remote test method of server OS of the present invention based on java.
Fig. 3 is one of the structural representation of remote test device of server OS of the present invention based on java.
Fig. 4 is the two of the structural representation of the remote test device of server OS of the present invention based on java.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is 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.
The noun and concept that occur in the following example are explained below:
SSH communication protocols:That is Secure Shell(Secure Shell)Communication protocol, is that one kind is used for safety on insecure network Telnet and the agreement of other secure web services.It is provided to secure remote login, Implementation of File Transfer and safety The support that the TCP/IP and X Window system traffics are forwarded.It can be encrypted automatically, certification and compress transmitted number According to.The work of ongoing definition SSH agreements ensures that SSH agreements can provide strong security, prevent cryptanalysis and Protocol attack, can work very good in the case of the management of no global key or certificate infrastructure, and available When can use existing certificate infrastructure (such as DNSSEC and X.509).SSH communication protocols are made up of 3 primary clusterings, (1) transport layer protocol.It provides server authentication, confidentiality and integrality, and with perfect forwarding confidentiality:Sometimes, it It is also possible to provide compression function.(2) user authentication protocol.It is responsible for the authentication from server to client computer.(3) connection association View.It is the encrypted tunnel multiplexing several logical channels of composition.
Java Programming with Pascal Language compilers refer to javac, its full name be javacompilation, javac instruments read by The definition of class and interface that java language is write, and they are compiled into the class files of syllabified code.Javac can be implicit Compile some source files not referred in order line.With-traceable automatic the compiling of verbose option.When compiling source file When, compiler usually needs type that it does not identify also for information about.For what is used in source file, extended or realized Each class or interface, compiler are required for its type information.This is included in source file and does not refer to clearly but carried by inheriting For the class and interface of information.
With reference to the accompanying drawings and detailed description to a kind of the long-range of server OS based on java of the present invention Method of testing and device are further described:
Embodiment 1
Fig. 1 is refer to, a kind of remote test method of the server OS based on java is comprised the following steps:
Step S101:Java test programs are write under client operating system.
Above-mentioned java test programs include the communication protocol called, multiple remote server information to be connected and will be remote The configuration file performed on journey server, the communication protocol called and java test programs are on client operating system In identical file folder.
Step S102:Client is attached with multiple remote servers by communication protocol.
Step S103:Client operating system is first compiled with java Programming with Pascal Language compiler to the source file of java test programs Class file is translated and generated, then performs java test programs.
Step S104:Multiple remote server operating systems perform the configuration file in java test programs automatically.
Embodiment 2
Fig. 2 is refer to, a kind of remote test method of the server OS based on java is comprised the following steps:
Step S201:Java test programs are write under client operating system.
Above-mentioned java test programs include the communication protocol called, multiple remote server information to be connected and will be remote The configuration file performed on journey server, the communication protocol called and java test programs are on client operating system In identical file folder.
Above-mentioned client operating system is windows operating systems, and remote server information includes the remote server IP, user name and password, communication protocol are SSH communication protocols.
Step S202:Client is attached with multiple remote servers by communication protocol.
Step S203:Client operating system is first compiled with java Programming with Pascal Language compiler to the source file of java test programs Class file is translated and generated, then performs java test programs.
The source file of the class file of generation and java test programs is placed on same mesh by above-mentioned java Programming with Pascal Language compiler Under record.
Step S204:Multiple remote server operating systems perform the configuration file in java test programs automatically.
Above-mentioned remote server operating system is linux operating systems.
Step S205:The return information of configuration file is shown on client operating system.
Above-mentioned steps S202 is further included:
Step S2021:Client is actively attached with multiple remote servers by communication protocol.
Step S2022:Judge the remote server information and the remote server information being connected in java test programs It is whether consistent, if unanimously, successful connection;If inconsistent, return to step S2021 is reconnected.
As a kind of embodiment, java test programs test_ is write under client Windows operating system Env.java, the java test programs include the SSH communication protocols called, the IP of multiple remote servers to be connected, use Name in an account book and password, and the configuration file that will be performed on the remote server, the communication protocol called and java test programs In identical file folder on client operating system;Client is actively entered with multiple remote servers by communication protocol Row connection;Judge the remote server IP in java test programs test_env.java, user name and encrypted message and be connected Remote server information it is whether consistent, if unanimously, successful connection;If inconsistent, set up with remote server again and led Dynamic connection;Client Windows operating system first uses java Programming with Pascal Language compilers(javac)Compiling java test programs The source file of test_env.java simultaneously generates test_env.class class files, then perform java test programs test_ The source file of the class file of generation and java test programs is placed on same catalogue by env.java, java Programming with Pascal Language compiler Under;Multiple is provided with the remote server of linux operating systems and performs matching somebody with somebody in java test programs test_env.java automatically File is put, the automatic configuration of multiple remote server operating system environments is realized;Configuration is shown on client operating system The return information of file.
Embodiment 3
Refer to Fig. 3, a kind of remote test device of the server OS based on java, including with lower module:
Test program writes module 301, for writing java test programs under client operating system.
Link block 302, for being attached client with multiple remote servers by communication protocol.
Test program running module 303, is first surveyed with java Programming with Pascal Language compiler for client operating system to java The source file of examination program is compiled and generates class file, then performs java test programs.
Profile module 304, matching somebody with somebody in java test programs is performed for multiple remote server operating systems automatically Put file.
Above-mentioned test program is write module 301 and is linked in sequence successively link block 302, the and of test program running module 303 Profile module 304.
Embodiment 4
Refer to Fig. 4, a kind of remote test device of the server OS based on java, including with lower module:
Test program writes module 401, for writing java test programs under client operating system.
Link block 402, for being attached client with multiple remote servers by communication protocol.
Test program running module 403, is first surveyed with java Programming with Pascal Language compiler for client operating system to java The source file of examination program is compiled and generates class file, then performs java test programs.
Profile module 404, matching somebody with somebody in java test programs is performed for multiple remote server operating systems automatically Put file.
Configuration information display module 405, the return information for showing configuration file on client operating system.
Above-mentioned link block 402 is further included:
Active link block 4021, for being actively attached client with multiple remote servers by communication protocol.
Judge module 4022, for judging the remote server information in java test programs and the remote service being connected Whether device information is consistent, if unanimously, successful connection;If inconsistent, return to active link block 4021 and reconnect.
Above-mentioned test program write module 401 be linked in sequence successively link block 402, test program running module 403, match somebody with somebody Put file module 404 and configuration information display module 405;Wherein link block 402 further connects active link block 4021 With judge module 4022.
For device disclosed in the embodiment of the present invention, because it is corresponded to the method disclosed in Example, so retouching State fairly simple, related part is referring to method part illustration.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, generally describes the composition and step of each example according to function in the above description.And this A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
Schematical specific embodiment of the invention is the foregoing is only, the scope of the present invention is not limited to, it is any The equivalent variations that those skilled in the art is made on the premise of present inventive concept and principle is not departed from and modification, all should belong to In the scope of protection of the invention.

Claims (10)

1. a kind of remote test method of the server OS based on java, it is characterised in that comprise the following steps:
Step 1:Java test programs are write under client operating system, the java test programs include the communication protocols called View, multiple remote server information to be connected and the configuration file that will be performed on the remote server, the communication called Agreement and java test programs are in the identical file folder on client operating system;
Step 2:Client is attached with multiple remote servers by communication protocol;
Step 3:Client operating system is first compiled and given birth to java Programming with Pascal Language compiler to the source file of java test programs Into class file, then perform java test programs;
Step 4:Multiple remote server operating systems perform the configuration file in java test programs automatically.
2. the remote test method of the server OS based on java according to claim 1, it is characterised in that After step 4, also include:The return information of configuration file is shown on client operating system.
3. the remote test method of the server OS based on java according to claim 1, it is characterised in that step Rapid 2 further include:
Step 21:Client is actively attached with multiple remote servers by communication protocol;
Step 22:Judge remote server information in java test programs and the remote server information being connected whether one Cause, if unanimously, successful connection;If inconsistent, return to step 21 is reconnected.
4. the remote test method of the server OS based on java according to claim 1, it is characterised in that institute Client operating system is stated for windows operating systems, remote server operating system is linux operating systems.
5. the remote test method of the server OS based on java according to claim 1, it is characterised in that institute State IP of the remote server information including the remote server, user name and password.
6. the remote test method of the server OS based on java according to claim 1, it is characterised in that institute Communication protocol is stated for SSH communication protocols.
7. the remote test method of the server OS based on java according to claim 1, it is characterised in that institute State java Programming with Pascal Language compiler the source file of the class file of generation and java test programs is placed under same catalogue.
8. the base of the remote test method based on the server OS based on java any one of claim 1 ~ 7 In the remote test device of the server OS of java, it is characterised in that including with lower module:
Test program writes module, for writing java test programs under client operating system;
Link block, for being attached client with multiple remote servers by communication protocol;
Test program running module, for client operating system first with java Programming with Pascal Language compiler to java test programs Source file is compiled and generates class file, then performs java test programs;
Profile module, the configuration file in java test programs is performed for multiple remote server operating systems automatically.
9. the remote test device of the server OS based on java according to claim 8, it is characterised in that also Including:Configuration information display module, the return information for showing configuration file on client operating system.
10. the remote test device of the server OS based on java according to claim 8, it is characterised in that Link block is further included:
Active link block, for being actively attached client with multiple remote servers by communication protocol;
Judge module, for judging that the remote server information in java test programs is with the remote server information being connected It is no consistent, if unanimously, successful connection;If inconsistent, return to active link block and reconnect.
CN201710088262.1A 2017-02-19 2017-02-19 Remote testing method and device for java-based server operating system Active CN106909505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710088262.1A CN106909505B (en) 2017-02-19 2017-02-19 Remote testing method and device for java-based server operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710088262.1A CN106909505B (en) 2017-02-19 2017-02-19 Remote testing method and device for java-based server operating system

Publications (2)

Publication Number Publication Date
CN106909505A true CN106909505A (en) 2017-06-30
CN106909505B CN106909505B (en) 2021-03-02

Family

ID=59207747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710088262.1A Active CN106909505B (en) 2017-02-19 2017-02-19 Remote testing method and device for java-based server operating system

Country Status (1)

Country Link
CN (1) CN106909505B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769175A (en) * 2018-05-22 2018-11-06 北京京东金融科技控股有限公司 Remote real machine access control method, device, storage medium and electronic equipment
CN114189546A (en) * 2021-12-08 2022-03-15 浙江吉利控股集团有限公司 Hot loading remote test method, system, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074649A1 (en) * 2013-09-09 2015-03-12 Samsung Sds Co., Ltd. Techniques for testing applications

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347874A (en) * 2011-11-10 2012-02-08 百度在线网络技术(北京)有限公司 Ftp (file transfer protocol) and ssh (struts spring hibernate) service monitoring method and system
CN103178994A (en) * 2011-12-26 2013-06-26 闻泰通讯股份有限公司 Method for automatically detecting a plurality of servers
CN104899142B (en) * 2015-06-10 2018-04-27 北京嘀嘀无限科技发展有限公司 A kind of long-range mock test methods and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074649A1 (en) * 2013-09-09 2015-03-12 Samsung Sds Co., Ltd. Techniques for testing applications

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769175A (en) * 2018-05-22 2018-11-06 北京京东金融科技控股有限公司 Remote real machine access control method, device, storage medium and electronic equipment
CN108769175B (en) * 2018-05-22 2020-07-31 京东数字科技控股有限公司 Remote real machine access control method and device, storage medium and electronic equipment
CN114189546A (en) * 2021-12-08 2022-03-15 浙江吉利控股集团有限公司 Hot loading remote test method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN106909505B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN107911421B (en) Method, apparatus, and computer storage medium for configuring cross-network communications in a blockchain
CN111290865A (en) Service calling method and device, electronic equipment and storage medium
CN104753817A (en) Local analogy method and local analogy system for cloud computing message queue service
CN111274268A (en) Internet of things data transmission method, device, medium and electronic equipment
US11659058B2 (en) Provider network connectivity management for provider network substrate extensions
CN112804354B (en) Method and device for data transmission across chains, computer equipment and storage medium
US9443067B1 (en) System for the distribution and deployment of applications, with provisions for security and policy conformance
CN111901357A (en) Remote network connection method, system, computer device and storage medium
US20200244529A1 (en) Propagating information with network nodes
WO2021057802A1 (en) Das system management method and device, electronic device, and storage medium
CN111158865A (en) Method for realizing multiplexing virtual serial port
CN101227470A (en) System and method of business management
CN107562489A (en) A kind of method and system based on web page management module management plug-in unit
CN106909505A (en) The remote test method and device of the server OS based on java
CN114416169A (en) Data processing method, medium, device and computing equipment based on micro front end
TWI259730B (en) Mobility device server
JP2021511737A (en) Methods and equipment for trusted service management
US11438177B2 (en) Secure distribution of cryptographic certificates
WO2023138335A1 (en) Differentiated control method and apparatus for user terminal, and related device
US20200412577A1 (en) Provider network connectivity to provider network substrate extensions
Lukaszewski et al. Towards software defined layer 4.5 customization
CN110213043A (en) A kind of clustering functionality test method based on Java
CN114338527B (en) IPv6 active identifier processing method and system
Jo et al. IoTivity-lite: Comprehensive IoT solution in a constrained memory device
Meirovitch et al. NSC–Named Service Calls, or a Remote Procedure Call for NDN

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
TA01 Transfer of patent application right

Effective date of registration: 20201230

Address after: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 1601, 16 / F, 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province, 450000

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant