CN110430082A - A method of management testing service device and application program - Google Patents

A method of management testing service device and application program Download PDF

Info

Publication number
CN110430082A
CN110430082A CN201910753660.XA CN201910753660A CN110430082A CN 110430082 A CN110430082 A CN 110430082A CN 201910753660 A CN201910753660 A CN 201910753660A CN 110430082 A CN110430082 A CN 110430082A
Authority
CN
China
Prior art keywords
server
application program
user
operation object
service device
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
CN201910753660.XA
Other languages
Chinese (zh)
Other versions
CN110430082B (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.)
Zhejiang Wanpeng Digital Intelligence Technology Co.,Ltd.
Original Assignee
Zhejiang Wanpeng Education 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 Zhejiang Wanpeng Education Technology Co Ltd filed Critical Zhejiang Wanpeng Education Technology Co Ltd
Priority to CN201910753660.XA priority Critical patent/CN110430082B/en
Publication of CN110430082A publication Critical patent/CN110430082A/en
Application granted granted Critical
Publication of CN110430082B publication Critical patent/CN110430082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • 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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of methods for managing testing service device and application program.Specific steps of the present invention: 1, the essential information of server and application program is stored to database;2, user enters web-based management platform, the Servers-all information that load step 1 is safeguarded, and the application list of deployment on the server, and defaults and execute Refresh Servers starting state, refreshes application program running state two operations;3, user triggers corresponding movement in step 2, server-side obtains user's operation type and operation object id, according to user's operation type and operation object id inquiry operation object type, whether needs to connect server, the corresponding order of operation, command execution results and actual result corresponding relationship.The present invention is the centralized management to testing service device and application program, saves the state for needing to check server and application program using long-range fastening means and manual input commands every time and unlatching, closes application program, improves work efficiency.

Description

A method of management testing service device and application program
Technical field
The invention belongs to Centralized Monitorings and control technology field, provide a kind of side for managing testing service device and application program Method.
Background technique
It usually requires to log on to different servers during integration testing, checks the operation shape of various application programs State starts various application programs using order, shutoff operation.With being continuously increased for Products line, integration testing The application program of the server and deployment of environment on the server is also more and more, this work also becomes more and more cumbersome.
The present invention develops a kind of management method, manages concentratedly to different server and various applications, can open up in real time Show the operating status that whether each server starts, shows the application program and application program disposed on each server, and And it can directly initiate or close each application program.
Summary of the invention
The purpose of the present invention is in view of the deficiencies of the prior art, developing a web-based management platform, a kind of management survey is provided The method for trying server and application program.
The technical solution adopted by the present invention to solve the technical problems is as follows:
Step 1 stores the essential information of server and application program to database.The essential information of server includes clothes Be engaged in device id (unique), server ip, user name, password, port, starting state.The essential information of application program includes applying id (unique), Apply Names, place server id, using path, application type, operating status.By user's operation type, operation pair As type (server or application program), operation object id, whether need to connect server, operation it is corresponding order, order hold Row result and actual result corresponding relationship are stored to database.Wherein user's operation type refers to Refresh Servers starting state, brush The operations such as new application operating status, starting application program, closing application program.
Step 2, user enter web-based management platform, the Servers-all information that load step 1 is safeguarded, and are deployed in clothes The application list being engaged on device, and default and execute Refresh Servers starting state, refresh application program running state two behaviour Make.Each server info is provided which " to refresh " movement, triggering " refreshing " movement i.e. progress Refresh Servers starting state.For Operating status is that the application program of " not running " provides " refreshing ", " starting " movement, and triggering " refreshing ", " starting " movement carry out Refresh application program running state, starting application program.The application program for being " in operation " for operating status provide " refreshing ", " starting " movement, triggering " refreshing ", " starting " movement carry out refreshing application program running state, close application program.
Step 3, user trigger corresponding movement in step 2, and server-side obtains user's operation type and operation object id, According to user's operation type and operation object id inquiry operation object type, whether need to connect server, the corresponding life of operation It enables, command execution results and actual result corresponding relationship.
For needing to connect the operation of server, corresponding server essential information need to be first obtained.To operation object type For the operation of server, according to operation object id, i.e. server id query service device essential information.It is to answer to operation object type With the operation of program, according to operation object id, i.e., server id where being inquired using id, further according to server id query service device Essential information.Platform service end is managed according to server essential information, connects remote server.After successful connection, then execute behaviour Make corresponding order.After ordering execution, command execution results are obtained, according to command execution results and actual result corresponding relationship Actual result is obtained, actual result is fed back into user.
Described " connection remote server " concrete operations are as follows: use the Paramiko module SSHClient class of Python Connect method connect remote server, the parameter needed be server ip, user name, password, port.
Described " execute and the operate corresponding order " concrete operations are as follows: corresponding to operating according to user's operation type queries Order, executes the order using the exec_command method of the Paramiko module SSHClient class of Python.
It is illustrated for refreshing the operation of Tomcat application program running state:
User clicks the Refresh button of application program, and server-side obtains user's operation type and operation object id, according to User's operation type queries operation object type, whether need to connect server, operation it is corresponding order, command execution results and Actual result corresponding relationship.Wherein Tomcat procedure operation object type be application program, whether need to connect server be yes, Operate corresponding order for " ps-ef | grep [using path] | grep-v " grep " | grep-v " tail " ", command execution results With actual result corresponding relationship are as follows: command execution results are not that empty then application program running state is " in operation ", it is on the contrary then For " not running ".
It is looked into according to the essential information of application id inquiry application according to the server id in application program essential information Ask the essential information of server.According to the server ip in server essential information, user name, password, port, long-range clothes are connected Business device.After successful connection, redo corresponding order.After ordering execution, command execution results are obtained, order executes knot When fruit is not sky, user will be fed back to as actual result " in operation ", on the contrary it is then by " not running " as actual result feedback To user.
The server is Linux server.
The present invention has the beneficial effect that:
The present invention is the centralized management to testing service device and application program, saves and needs every time using long-range fastening means And manual input commands come check server and application program state and unlatching, close application program, improve work Efficiency.
Specific embodiment
Below with reference to embodiment, the invention will be further described.
A method of management testing service device and application program, the specific steps are as follows:
Step 1 stores the essential information of server and application program to database.The essential information of server includes clothes Be engaged in device id (unique), server ip, user name, password, port, starting state.The essential information of application program includes applying id (unique), Apply Names, place server id, using path, application type, operating status.By user's operation type, operation pair As type (server or application program), operation object id, whether need to connect server, operation it is corresponding order, order hold Row result and actual result corresponding relationship are stored to database.Wherein user's operation type refers to Refresh Servers starting state, brush The operations such as new application operating status, starting application program, closing application program.
Step 2, user enter web-based management platform, the Servers-all information that load step 1 is safeguarded, and are deployed in clothes The application list being engaged on device, and default and execute Refresh Servers starting state, refresh application program running state two behaviour Make.Each server info is provided which " to refresh " movement, triggering " refreshing " movement i.e. progress Refresh Servers starting state.For Operating status is that the application program of " not running " provides " refreshing ", " starting " movement, and triggering " refreshing ", " starting " movement carry out Refresh application program running state, starting application program.The application program for being " in operation " for operating status provide " refreshing ", " starting " movement, triggering " refreshing ", " starting " movement carry out refreshing application program running state, close application program.
Step 3, user trigger corresponding movement in step 2, and server-side obtains user's operation type and operation object id, According to user's operation type and operation object id inquiry operation object type, whether need to connect server, the corresponding life of operation It enables, command execution results and actual result corresponding relationship.
For needing to connect the operation of server, corresponding server essential information need to be first obtained.To operation object type For the operation of server, according to operation object id, i.e. server id query service device essential information.It is to answer to operation object type With the operation of program, according to operation object id, i.e., server id where being inquired using id, further according to server id query service device Essential information.Platform service end is managed according to server essential information, connects remote server.After successful connection, then execute behaviour Make corresponding order.After ordering execution, command execution results are obtained, according to command execution results and actual result corresponding relationship Actual result is obtained, actual result is fed back into user.
Described " connection remote server " concrete operations are as follows: use the Paramiko module SSHClient class of Python Connect method connect remote server, the parameter needed be server ip, user name, password, port.
Described " execute and the operate corresponding order " concrete operations are as follows: corresponding to operating according to user's operation type queries Order, executes the order using the exec_command method of the Paramiko module SSHClient class of Python.
It is illustrated for refreshing the operation of Tomcat application program running state:
User clicks the Refresh button of application program, and server-side obtains user's operation type and operation object id, according to User's operation type queries operation object type, whether need to connect server, operation it is corresponding order, command execution results and Actual result corresponding relationship.Wherein Tomcat procedure operation object type be application program, whether need to connect server be yes, Operate corresponding order for " ps-ef | grep [using path] | grep-v " grep " | grep-v " tail " ", command execution results With actual result corresponding relationship are as follows: command execution results are not that empty then application program running state is " in operation ", it is on the contrary then For " not running ".
It is looked into according to the essential information of application id inquiry application according to the server id in application program essential information Ask the essential information of server.According to the server ip in server essential information, user name, password, port, long-range clothes are connected Business device.After successful connection, redo corresponding order.After ordering execution, command execution results are obtained, order executes knot When fruit is not sky, user will be fed back to as actual result " in operation ", on the contrary it is then by " not running " as actual result feedback To user.
The server is Linux server.

Claims (5)

1. a kind of method for managing testing service device and application program, it is characterised in that comprise the following specific steps that:
Step 1 stores the essential information of server and application program to database;
The essential information of server includes server id, server ip, user name, password, port, starting state;Application program Essential information include using id, Apply Names, place server id, using path, application type, operating status;By user Action type, operation object type, operation object id, whether need to connect server, operation it is corresponding order, order execute knot Fruit and actual result corresponding relationship are stored to database;Wherein user's operation type refers to that Refresh Servers starting state, refreshing are answered With operations such as running state of programs, starting application program, closing application programs;Operation object type is server or applies journey Sequence;
Step 2, user enter web-based management platform, the Servers-all information that load step 1 is safeguarded, and are deployed in server On the application list, and default execute Refresh Servers starting state, refresh application program running state two operation;Often A server info is provided which " to refresh " movement, triggering " refreshing " movement i.e. progress Refresh Servers starting state;For operation State is that the application program of " not running " provides " refreshing ", " starting " movement, and triggering " refreshing ", " starting " movement are refreshed Application program running state, starting application program;The application program for being " in operation " for operating status provides " refreshing ", " opens It is dynamic " movement, triggering " refreshing ", " starting " movement carry out refreshing application program running state, close application program;
Step 3, user trigger corresponding movement in step 2, and server-side obtains user's operation type and operation object id, according to Whether user's operation type and operation object id inquiry operation object type need to connect server, the corresponding order of operation, life Enable implementing result and actual result corresponding relationship.
2. a kind of method for managing testing service device and application program according to claim 1, it is characterised in that for needing It connects the operation of server: need to first obtain corresponding server essential information;It is the operation of server to operation object type, According to operation object id, i.e. server id query service device essential information;It is the operation of application program, root to operation object type According to operation object id, i.e., server id where being inquired using id, further according to server id query service device essential information;Management is flat Platform server-side connects remote server according to server essential information;After successful connection, redo corresponding order;When After order executes, command execution results are obtained, obtain actual result according to command execution results and actual result corresponding relationship, it will Actual result feeds back to user.
3. a kind of method for managing testing service device and application program according to claim 2, it is characterised in that for institute " connection remote server " concrete operations stated are as follows: use the side connect of the Paramiko module SSHClient class of Python Method connects remote server, and the parameter needed is server ip, user name, password, port.
4. a kind of method for managing testing service device and application program according to claim 3, it is characterised in that for institute " execute and operate corresponding order " concrete operations stated are as follows: according to user's operation type queries to corresponding order is operated, use The exec_command method of the Paramiko module SSHClient class of Python executes the order.
5. a kind of method for managing testing service device and application program according to claim 4, it is characterised in that described Server is Linux server.
CN201910753660.XA 2019-08-15 2019-08-15 Method for managing test server and application program Active CN110430082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910753660.XA CN110430082B (en) 2019-08-15 2019-08-15 Method for managing test server and application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910753660.XA CN110430082B (en) 2019-08-15 2019-08-15 Method for managing test server and application program

Publications (2)

Publication Number Publication Date
CN110430082A true CN110430082A (en) 2019-11-08
CN110430082B CN110430082B (en) 2021-06-15

Family

ID=68416414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910753660.XA Active CN110430082B (en) 2019-08-15 2019-08-15 Method for managing test server and application program

Country Status (1)

Country Link
CN (1) CN110430082B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190425A (en) * 2021-04-28 2021-07-30 北京京东振世信息技术有限公司 Resource switching method and device
CN113535208A (en) * 2021-08-05 2021-10-22 浙江万朋教育科技股份有限公司 Method for realizing visual centralized maintenance and updating test application program based on python

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354298A (en) * 2011-07-27 2012-02-15 哈尔滨工业大学 Software testing automation framework (STAF)-based fault injection automation testing platform and method for high-end fault-tolerant computer
CN103905259A (en) * 2012-12-25 2014-07-02 富泰华工业(深圳)有限公司 Server monitoring system
CN104536899A (en) * 2015-01-20 2015-04-22 成都益联科创科技有限公司 Software deploying and maintaining method based on intelligent cluster
CN104539487A (en) * 2015-01-20 2015-04-22 成都益联科创科技有限公司 Method for testing system based on cloud platform and evaluating reliability
CN105512027A (en) * 2015-11-26 2016-04-20 珠海多玩信息技术有限公司 Process state monitor method and device
CN109491910A (en) * 2018-11-07 2019-03-19 紫光测控有限公司 A kind of the visual simulating adjustment method and system of relay protective scheme and control logic
CN110032486A (en) * 2019-03-06 2019-07-19 平安科技(深圳)有限公司 Server test method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354298A (en) * 2011-07-27 2012-02-15 哈尔滨工业大学 Software testing automation framework (STAF)-based fault injection automation testing platform and method for high-end fault-tolerant computer
CN103905259A (en) * 2012-12-25 2014-07-02 富泰华工业(深圳)有限公司 Server monitoring system
CN104536899A (en) * 2015-01-20 2015-04-22 成都益联科创科技有限公司 Software deploying and maintaining method based on intelligent cluster
CN104539487A (en) * 2015-01-20 2015-04-22 成都益联科创科技有限公司 Method for testing system based on cloud platform and evaluating reliability
CN105512027A (en) * 2015-11-26 2016-04-20 珠海多玩信息技术有限公司 Process state monitor method and device
CN109491910A (en) * 2018-11-07 2019-03-19 紫光测控有限公司 A kind of the visual simulating adjustment method and system of relay protective scheme and control logic
CN110032486A (en) * 2019-03-06 2019-07-19 平安科技(深圳)有限公司 Server test method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190425A (en) * 2021-04-28 2021-07-30 北京京东振世信息技术有限公司 Resource switching method and device
CN113190425B (en) * 2021-04-28 2023-09-22 北京京东振世信息技术有限公司 Resource switching method and device
CN113535208A (en) * 2021-08-05 2021-10-22 浙江万朋教育科技股份有限公司 Method for realizing visual centralized maintenance and updating test application program based on python

Also Published As

Publication number Publication date
CN110430082B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN110430082A (en) A method of management testing service device and application program
CN102880123B (en) System and method for controlling production process of petrochemical enterprise on basis of manufacturing execution system (MES) workflow
US20170134526A1 (en) Seamless cluster servicing
DE69802174D1 (en) SERVER FOR CONNECTING JAVA APPLETS TO DATABASES
CN109858724B (en) Intelligent dispatching method and device based on data analysis and computer equipment
CN105653401B (en) Application system calamity is standby, O&M, monitoring and emergency start and stop dispatching method and device
CN110413308B (en) Software operation and maintenance method, device, equipment and computer storage medium
CN109299172A (en) It is a kind of based on Spring Boot varying environment data source cut-in method and device
CN105592162A (en) Uploading method and system based on multi-type files
US20190073600A1 (en) Skipping maintenance mode of applications
CN110750453B (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN108876074A (en) A kind of general-purpose scheduler method suitable for multiclass resource bid examination & approval
CN105653334B (en) MIS system rapid development framework based on SAAS mode
Jarvis et al. PROSA/G: An architecture for agent-based manufacturing execution
Miller Project management tasks in agile projects: A quantitative study
CN108846952A (en) Automatic vending machine long-range control method, device, storage medium and system
Suárez‐Barraza et al. Continuous process improvement in Spanish local government: Conclusions and recommendations
CN114296701A (en) Java web project development method capable of quickly generating engineering files
CN108846951A (en) Automatic vending machine long-range control method, device, storage medium and system
Bertot et al. Leveraging notebooks on testbeds: the Grid’5000 case
CN108985441A (en) A kind of task executing method and system based on edge device
Cencen et al. Qualifying the performance of Human Robot coproduction at a relabling station
CN117196539B (en) Automatic checking method, system, equipment and medium for security base line
CN115454484A (en) Method and system for realizing operation and maintenance middlebox
CN116991607B (en) Adaptation method, system and equipment for communication between big data middle station and platform

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
CP02 Change in the address of a patent holder

Address after: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

Address before: Room 1406, Hangzhou e-commerce building, 118 Wensan West Road, Xihu District, Hangzhou City, Zhejiang Province, 310013

Patentee before: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

CP02 Change in the address of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: Zhejiang Wanpeng Digital Intelligence Technology Co.,Ltd.

Address before: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee before: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

CP01 Change in the name or title of a patent holder