CN110048902B - Method and system for backing up test configuration document - Google Patents
Method and system for backing up test configuration document Download PDFInfo
- Publication number
- CN110048902B CN110048902B CN201810040921.9A CN201810040921A CN110048902B CN 110048902 B CN110048902 B CN 110048902B CN 201810040921 A CN201810040921 A CN 201810040921A CN 110048902 B CN110048902 B CN 110048902B
- Authority
- CN
- China
- Prior art keywords
- directory
- file
- test configuration
- host
- uploading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0846—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/102—Entity profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
The invention provides a method and a system for backing up a test configuration document, wherein the method is applied to a file control system and comprises the following steps: uploading a test configuration document to a working directory of the file control system, wherein the working directory comprises an uploading directory and a backup directory, and the uploaded test configuration document is located in the uploading directory; backing up the test configuration document in the backup catalog; and copying the test configuration document from the uploading directory to a remote host. The test engineer uploads the test configuration document to the file transfer station and automatically creates a copy of the test configuration document under the backup storage space backup directory, which will automatically backup the test configuration document. The test engineer may copy the test configuration document from the mount disk of the file transfer station to a disk of the remote host on the remote host after uploading the test configuration document.
Description
Technical Field
The present invention relates to device testing technologies, and in particular, to a method and a system for backing up a test configuration document.
Background
During the process of device testing, a tester needs to edit a complete test script on a first host computer and then upload the test script to a remote host computer, namely, a device under test.
In the current test networking architecture, as shown in fig. 1, a local host and a remote host are in two layers of intercommunication in the same network segment, and the local host is connected to the remote host through a remote desktop protocol. When the remote desktop client is enabled, the mounting of the local host's disk drive to the remote host may be manually configured. After the disk mounting is completed, a tester can realize the uploading of the A document from the local to the remote end by copying the A document on the local desktop and then pasting the A document on the remote desktop.
In the actual collecting and testing process, the method has certain defects: the uploaded files cannot be automatically backed up, and if the test configuration is required to be backed up on a third-party disk, manual execution is required, so that the efficiency is low, and omission is easy. The mounting function of the remote desktop needs manual configuration, which is cumbersome.
It is desirable for both the project manager (administrator) and the test engineer to have a method for automated backup of file uploads, and when the host a uploads a file to the host B, the host a can automatically save the file in a third-party backup server as a backup file for subsequent comparison and verification, which helps to increase the traceability of the testing process.
Disclosure of Invention
The technical problem to be solved in the embodiments of the present invention is to provide a method and a system for backing up a test configuration document, which are used to copy the test configuration document from a mount disk of a file transfer station to a remote host on the remote host after the test configuration document is uploaded.
In order to solve the above technical problem, an embodiment of the present invention provides a method for backing up a test configuration document, which is applied to a file control system, and the method includes:
uploading a test configuration document to a working directory of the file control system, wherein the working directory comprises an uploading directory and a backup directory, and the uploaded test configuration document is located in the uploading directory;
backing up the test configuration document in the backup catalog;
and copying the test configuration document from the uploading directory to a remote host.
In the method, before uploading the test configuration document to the working directory of the file control system, the method further includes:
a verification step: receiving the transmitted parameter matrix, and authenticating account information carried by the parameter matrix;
a network connection step: and after the account information is authenticated, analyzing that the request action information carried by the parameter matrix is to access a file control system, and establishing network connection between the first host corresponding to the account information.
In the method, after the account information is authenticated, it is analyzed that the request action information carried by the parameter matrix is to access a file control system, and then establishing a network connection between the first host corresponding to the account information includes:
the account information carried by the parameter matrix is authenticated by a file backup component of the file control system, and after the account information is authenticated, the request action information is analyzed to access the file control system, and then a web page of the file control system is returned to the first host, and HTTP connection is established with the first host through the web page;
and if the parameter matrix of one account is received for the first time, establishing: working directories, uploading directories and backup directories.
In the method, uploading the test configuration document to the working directory of the file control system includes:
and selectively uploading the test configuration document to an uploading directory under the working directory through an HTTP protocol.
In the method, the step of backing up the test configuration document in the backup catalog further includes:
after the uploading is confirmed, copying the test configuration document from an uploading directory to a backup directory, and returning an uploading backup completion ACK to the first host, wherein the uploading directory is used for storing the uploaded test configuration document in a public manner and supports the remote desktop mounted to the remote host; the backup catalog is used for backing up and storing the uploaded test configuration document.
In the method, copying the test configuration document from the upload directory to the remote host includes:
after a first host logs in an account management system, a file backup component receives a parameter matrix which is sent by the account management system through an inter-system interface Q1 and contains account information and request action information, and the account information in the parameter matrix is authenticated;
after the authentication is passed, if the analysis request action information is to access a remote host, transmitting the parameter matrix to an RDP proxy component in the file control system;
receiving the parameter matrix by the RDP proxy component, analyzing the request action information as that the RDP is remotely sent to the remote host, executing an automation script on the RDP proxy component, initiating an RDP session to the remote host, transmitting a remote desktop picture of the remote host back to the first host, and mounting a working directory on the file backup component to the remote host;
and copying the test configuration file from the working directory to a local disk of the remote host by the first host through the RDP session, and completing the uploading of the test configuration file.
In the method, an inter-system interface Q1 between an account management system and a file control system defines a request parameter message format, and the parameter matrix follows the parameter message format;
in the file control system, an interface Q2 between the file backup component and the RDP proxy component adopts SOAP protocol to transfer messages, and parameters use JSON format.
A system for backing up test profiles, comprising: the remote file management system comprises a first host, a file control system and a remote host, wherein the file control system comprises a file backup component and an RDP agent component:
the file backup component is used for uploading the test configuration document to a working directory of the file control system, the working directory comprises an uploading directory and a backup directory, and the uploaded test configuration document is located in the uploading directory;
backing up the test configuration document in the backup catalog;
and the RDP agent component is used for copying the test configuration document from the uploading directory to a remote host.
The system further comprises:
the account management system is used for authenticating account information after receiving the account information and the request action information transmitted by the first host computer through the HTTP protocol, and allowing the account management system to log in after the account information and the request action information pass the authentication;
the account information and the request action information are contained in a parameter matrix, and the parameter matrix is sent to a file backup component of the file control system; authenticating, by the file-backup component, the account information.
In the system, the file backup component is also used for receiving the transmitted parameter matrix and authenticating the account information carried by the parameter matrix in the verification process;
and in the network connection process, after the account information is authenticated, analyzing that the request action information carried by the parameter matrix is to access the file control system, and establishing network connection between the first host corresponding to the account information.
In the system, the file backup component is specifically used for authenticating the account information carried by the parameter matrix, analyzing that the request action information is to access the file control system after the account information is authenticated, returning a web page of the file control system to the first host, and establishing HTTP connection with the first host through the web page;
and if the parameter matrix of one account is received for the first time, establishing: working directories, uploading directories and backup directories.
In the system, the file backup component is specifically configured to upload the test configuration document to an upload directory in the working directory through an HTTP protocol selection.
In the system, the file backup component is specifically configured to receive a parameter matrix including account information and request action information sent by an account management system through an intersystem interface Q1 after a first host logs in the account management system in an uploading process, and authenticate the account information in the parameter matrix;
after the authentication is passed, if the analysis request action information is to access a remote host, transmitting the parameter matrix to an RDP proxy component in the file control system;
the RDP proxy component is specifically used for receiving the parameter matrix, analyzing the request action information as RDP remote to the remote host, executing an automation script on the RDP proxy component, initiating an RDP session to the remote host, transmitting a remote desktop picture of the remote host back to the first host, and mounting a working directory on the file backup component to the remote host;
and the first host is used for copying the test configuration file from the working directory to a local disk of the remote host through the RDP session to finish uploading of the test configuration file.
Compared with the prior art, the method and the system for backing up the test configuration document provided by the embodiment of the invention at least have the following beneficial effects: the test engineer uploads the test configuration document to the file transfer station and automatically creates a copy of the test configuration document under the backup storage space backup directory, which will automatically backup the test configuration document. The test engineer may copy the test configuration document from the mount disk of the file transfer station to a disk of the remote host on the remote host after uploading the test configuration document.
Drawings
FIG. 1 is a diagram of a conventional test networking architecture;
FIG. 2 is a flowchart illustrating a method for backing up test configuration documents;
FIG. 3 is a schematic diagram of a file backup mechanism;
FIG. 4 is a flowchart illustrating automatic backup of a test configuration document.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
The method comprises the steps of carrying out secondary development on a universal Account Management System (AMS) and a universal file control system (FMS), recombining partial functions of the AMS and the FMS, introducing a new file backup storage space, defining a new file directory, designing a new file transfer path, developing a new inter-system interface and a parameter format based on an open API (application program interface), and finally inventing a set of automatic file backup method and system.
An embodiment of the present invention provides a method for backing up a test configuration document, which is applied to a file control system, and as shown in fig. 2, the method includes:
With the present invention, as shown in fig. 3, a test engineer uploads a test configuration document to a file transfer station on one side of a first host, and automatically creates a copy of the test configuration document under a backup directory of a backup storage space, and the copy will automatically backup the test configuration document. The test engineer may copy the test configuration document from the mount disk of the file transfer station to a disk of the remote host on the remote host after uploading the test configuration document.
The project manager can consult the uploading backup at any time after the test is finished and serve as the basis for rechecking the problem.
In a preferred embodiment, uploading the test configuration document to the working directory of the file control system further comprises:
a verification step: receiving the transmitted parameter matrix, and authenticating account information carried by the parameter matrix;
a network connection step: and after the account information is authenticated, analyzing that the request action information carried by the parameter matrix is to access a file control system, and establishing network connection between the first host corresponding to the account information.
In a preferred embodiment, the process of verifying step comprises:
step 201A, a test engineer serves as a user, accesses (connects) an Account Management System (AMS) on a first Host (Host A) by adopting an HTTP protocol, performs account authentication by taking a user name and a user password as account information, and logs in the account management system after the account authentication is passed.
In a preferred embodiment, the network connecting step: after the account information is authenticated, if it is analyzed that the request action information carried by the parameter matrix is to access a file control system, a network connection is established between the first host corresponding to the account information, which specifically includes: the account information in the parameter matrix is authenticated by a file backup component of the file control system, and after the account information passes the authentication, the request action information is analyzed to access the file control system, and then a web page of the file control system is returned to the first host, and HTTP connection is established with the first host;
and if the parameter matrix from one account is received for the first time, the file backup component creates:
working directory/opt/users/account;
upload directory/opt/users/account/. upload and
backup catalog/opt/users/account/backup/.
/opt/users/account/. upload: the file directory is a directory for publicly storing uploaded files, and is mounted on a remote desktop of a remote Host (Host B) and visible to a user (test engineer).
/opt/users/account/backup/: the file directory is used for backing up a directory for storing uploaded files, and is visible only to an administrator and invisible to a user (test engineer).
In step 202A, a user (test engineer) accesses a file control system (FMS) through an Account Management System (AMS), the FMS calls an authentication information-parameter matrix on the AMS side, the AMS transmits the parameter matrix including a user name, a request action and the like to a file backup component of the FMS through an intersystem interface Q1, and the file backup component receives the parameter matrix and authenticates account information in the parameter matrix.
In a preferred embodiment, the step of backing up: after uploading the test configuration document to a file control system, backing up the test configuration document, specifically comprising: and selecting and uploading the test configuration document to an uploading directory/opt/users/account/. upload under the working directory through an HTTP protocol, and triggering an uploading application.
In a preferred embodiment, the backing up the test configuration document in the backup catalog further comprises:
after the uploading is confirmed, copying the test configuration document from an uploading directory to a backup directory, and returning an uploading backup completion ACK to the first host, wherein the uploading directory is used for storing the uploaded test configuration document in a public manner and supports the remote desktop mounted to the remote host; the backup catalog is used for backing up and storing the uploaded test configuration document.
In an application scenario, the process of backing up the test configuration document includes:
step 203A, the user (test engineer) receives the web interface returned by the file control system, uploads the test configuration document to the upload directory/opt/users/account/. upload through the HTTP protocol in the personal directory module, and triggers an upload application.
And the file backup component executes the script calling component function, and if the uploading directory/opt/users/account/. upload exists in the file control system, the parameter matrix is returned to confirm that the uploading directory is available.
Step 203B, the user (test engineer) confirms the upload, copies the test configuration document from the upload directory/opt/users/account/. upload to the backup directory/opt/users/account/backup, and returns an upload backup complete ACK to the first host, where:
/opt/users/account/. upload: the upload directory is a directory for publicly storing upload files, and is mounted on a remote desktop of a remote host computer and visible to a user (test engineer).
/opt/users/account/backup/: the backup directory is used for backing up a directory for storing uploaded files, and is visible only to an administrator and invisible to a user (test engineer).
In a preferred embodiment, the uploading step: copying the test configuration document to a remote host to complete the uploading of the test configuration document, which specifically comprises the following steps: logging on the remote host, and copying the test configuration document from the file backup component to a local hard disk of the remote host.
In step 204a, a user (test engineer) logs into an Account Management System (AMS) and accesses a remote host computer through the AMS. The AMS passes parameter matrices containing information on administrator accounts, request actions, etc. from the AMS to the backup component of the FMS via the intersystem interface.
And step 204b, the file backup component receives the transmitted parameter matrix and authenticates account information.
And step 204c, after the authentication is passed, the user logs in the AMS, and the remote desktop connection of the Host B of the remote Host is clicked to trigger the access to the remote desktop of the Host B.
In step 204d, the AMS passes the parameters to the RDP proxy component.
And the RDP proxy component receives the parameter matrix, analyzes the action information in the parameter matrix as that the RDP is remotely sent to the remote Host B, executes the automation script on the RDP proxy component, initiates an RDP session to the remote Host B, and transmits the remote desktop picture of the remote Host back to the user through the RDP.
Step 204e, mount the working directory on the file backup component to the remote host. And copying the test configuration document from the mounting disc to a local disc of the remote host through the returned RDP session by the user to finish the uploading of the test configuration document.
In a preferred embodiment, the account management system and file control system customization interface Q1 describes: after receiving the access request of the AMS, the FMS requests to call AMS side verification information, a verification certificate and account validity:
request parameter name RequestInfo
Defining a request parameter message format:
<? 1.0 encoding? The fact that the SOAP uses the XML coding is the XML coding identification, and the message is coded by the XML.
AMS return parameter format:
parameter name: ResponseInfo
RSP-1 operation failure, RSP-0 operation success, operation success return apacctid (from account name), failure nothing
And if the AMS returns successfully, the FMS pushes a page to display a normal FMS login interface.
In a preferred embodiment, in the file control system, the file backup component and the RDP proxy component pass the description of the interface Q2 of the parameter matrix from the account management system: the Q2 interface uses the SOAP protocol to pass messages and the parameters use the JSON format.
The file backup component requests access to the RDP proxy component, and the RDP proxy component requests calling of the parameter matrix RequestInfo of the file backup component.
Request parameter name: RequestInfo
Request message format: (JSON)
Description of the parameters:
Resources:
Extra:
parameter name | Type of parameter | Remarks for note |
dbname | String | Name of database instance |
AccountExtra:
In a preferred embodiment, the file backup component returns a response parameter matrix.
Service return parameter name: ResponseInfo
Message format: (JSON)
Description of the parameters:
Data:
in one application scenario, as shown in fig. 4, the method includes:
step 43, network connection step: after the account information is authenticated, if the request action information carried by the parameter matrix is analyzed to access the file control system, network connection is established between the first host corresponding to the account information,
and if the parameter matrix from one account is received for the first time, establishing:
working directory/opt/users/account,
Upload directory/opt/users/account/. upload and
backup catalog/opt/users/account/backup/.
/opt/users/account/. upload: the file directory is a directory for publicly storing uploaded files, and can be mounted on a remote desktop of a remote host and be visible to a user (test engineer).
/opt/users/account/backup/: the file directory is used for backing up a directory for storing uploaded files, and is visible only to an administrator and invisible to a user (test engineer).
A backup step: after uploading the test configuration document to a file control system, backing up the test configuration document, specifically comprising: and selectively uploading the test configuration document to an uploading directory/opt/users/account/. upload through an HTTP protocol, and triggering an uploading application.
And step 46, the file backup component executes the script calling component function, and if the uploading directory/opt/users/account/. upload exists in the file control system, the parameter matrix is returned to confirm that the uploading directory is available.
And step 48, returning the upload backup complete ACK to the first host. Wherein:
/opt/users/account/. upload: the upload directory is a directory for publicly storing upload files, and is mounted on a remote desktop of a remote host computer and visible to a user (test engineer).
/opt/users/account/backup/: the backup directory is used for backing up a directory for storing uploaded files, and is visible only to an administrator and invisible to a user (test engineer).
Step 49, logging in an Account Management System (AMS) by a user (test engineer) and accessing a remote host through the AMS;
the AMS transmits a parameter matrix containing information such as an administrator account number and a request action from the AMS to a file backup component of the FMS through an interface between systems; and the file backup component receives the transmitted parameter matrix and authenticates the account information.
After the authentication is passed, the user logs in the AMS, and the remote desktop connection of the remote host is clicked to trigger the access to the remote desktop of the remote host.
The AMS passes the parameters to the RDP proxy component.
In step 412, the working directory on the file backup component is mounted to the remote host. And the user copies the test configuration document from the mounting disc to a local disc of the remote host through the returned RDP session, so as to finish the uploading of the test configuration document.
In step 413, the project manager, as an administrator, may consult the uploaded backup at any time after the test is finished, as a basis for reviewing the problem.
The method comprises the steps of developing a universal Account Management System (AMS) and a universal File Management System (FMS) for the second time, developing a cross-system parameter transfer interface in a customized mode, recombining part of functional modules of the cross-system parameter transfer interface, introducing a new file backup storage space, defining a new file directory, designing a new file transfer path, developing a new interface between systems and a parameter format based on an open API, organically combining the AMS and the FMS, and achieving automatic backup of contents of uploaded files. Finally, the invention discloses a set of automatic file backup method and system. The main advantages are: the automatic backup of the uploaded files is realized, manual intervention and backup omission are reduced, and the subsequent traceability and backtracking of a project manager are facilitated. Parameter intercommunication and mutual recognition of two different systems of AMS and FMS are realized, a set of authentication parameters are shared, and the complexity of the whole system is simplified. Automatic mounting of the file directory during remote desktop login is achieved.
The embodiment of the invention provides a system for backing up a test configuration document, which comprises: the remote file management system comprises a first host, a file control system and a remote host, wherein the file control system comprises a file backup component and an RDP agent component:
the file backup component is used for uploading the test configuration document to a working directory of the file control system, the working directory comprises an uploading directory and a backup directory, and the uploaded test configuration document is located in the uploading directory;
backing up the test configuration document in the backup catalog;
and the RDP agent component is used for copying the test configuration document from the uploading directory to a remote host.
The test engineer uploads the test configuration document to the file transfer station and automatically creates a copy of the test configuration document under the backup storage space backup directory, which will automatically backup the test configuration document. The test engineer may copy the test configuration document from the mount disk of the file transfer station to a disk of the remote host on the remote host after uploading the test configuration document.
In a preferred embodiment, further comprising:
the account management system is used for authenticating account information after receiving the account information and the request action information transmitted by the first host computer through the HTTP protocol, and allowing the account management system to log in after the account information and the request action information pass the authentication;
the account information and the request action information are contained in a parameter matrix, and the parameter matrix is sent to a file backup component of the file control system; authenticating, by the file-backup component, the account information.
In a preferred embodiment, the file backup component is further configured to receive the transmitted parameter matrix during a verification process, and authenticate account information carried by the parameter matrix;
and in the network connection process, after the account information is authenticated, analyzing that the request action information carried by the parameter matrix is to access the file control system, and establishing network connection between the first host corresponding to the account information.
In a preferred embodiment, the file backup component is specifically configured to authenticate the account information carried by the parameter matrix, and after the authentication is passed, analyze that the request action information is to access the file control system, return a web page of the file control system to the first host, and establish an HTTP connection with the first host through the web page;
and if the parameter matrix of one account is received for the first time, establishing: working catalog/opt/users/account, upload catalog/opt/users/account/. upload and backup catalog/opt/users/account/backup/.
In a preferred embodiment, the file backup component is specifically configured to selectively upload the test configuration document to the upload directory via an HTTP protocol, and trigger an upload application.
In a preferred embodiment, the file backup component is specifically configured to, during an uploading process, receive a parameter matrix including account information and request action information sent by an account management system through an inter-system interface Q1 after a first host logs in the account management system, and authenticate the account information in the parameter matrix;
after the authentication is passed, if the analysis request action information is to access a remote host, transmitting the parameter matrix to an RDP proxy component in the file control system;
the RDP proxy component is specifically used for receiving the parameter matrix, analyzing the request action information as RDP remote to the remote host, executing an automation script on the RDP proxy component, initiating an RDP session to the remote host, transmitting a remote desktop picture of the remote host back to the first host, and mounting a working directory on the file backup component to the remote host;
and the first host is used for copying the test configuration file from the working directory to a local disk of the remote host through the RDP session to finish uploading of the test configuration file.
By applying the technology provided by the embodiment of the invention, a test engineer uploads a test configuration document to a file transfer station, the test configuration document is uploaded to the transfer station and is mounted under a disk directory of a target remote host, and simultaneously, a copy of the document A is automatically created under a backup storage space backup directory, and the copy is named automatically by taking backup generation time as a suffix so as to distinguish uploading backups of the same document at different times.
The test engineer may copy the test configuration document from the mount disk of the file transfer station to the current disk on the remote host after the file is uploaded.
The project manager can consult the uploading backup at any time after the test is finished and serve as the basis for rechecking the problem.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In addition, the terms "system" and "network" are often used interchangeably herein.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (11)
1. A method for backing up a test configuration document is applied to a file control system, and comprises the following steps:
an inter-system interface Q1 between the file control system and the account management system defines a request parameter message format; the file control system comprises a file backup component and an RDP agent component;
a verification step: receiving the transmitted parameter matrix, and authenticating account information carried by the parameter matrix;
a network connection step: after the account information passes the authentication, if the request action information carried by the parameter matrix is analyzed to access the file control system, network connection is established with a first host corresponding to the account information;
uploading the test configuration document to a working directory of the file control system, wherein the working directory comprises an uploading directory and a backup directory, and the uploaded test configuration document is positioned in the uploading directory;
backing up the test configuration document in the backup catalog;
copying the test configuration document from the upload directory to a remote host, comprising:
after a first host logs in an account management system, a file backup component receives a parameter matrix which is sent by the account management system through an inter-system interface Q1 and contains account information and request action information, and the account information in the parameter matrix is authenticated;
after the authentication is passed, if the analysis request action information is to access a remote host, transmitting the parameter matrix to an RDP proxy component in the file control system;
receiving the parameter matrix by the RDP proxy component, analyzing the request action information as that the RDP is remotely sent to the remote host, executing an automation script on the RDP proxy component, initiating an RDP session to the remote host, transmitting a remote desktop picture of the remote host back to the first host, and mounting a working directory on the file backup component to the remote host;
and copying the test configuration document from the working directory to a local disk of the remote host by the first host through the RDP session, and completing the uploading of the test configuration document.
2. The method of claim 1, wherein after the account information is authenticated, analyzing that request action information carried by the parameter matrix is to access a file control system, and establishing a network connection with a first host corresponding to the account information comprises:
the account information carried by the parameter matrix is authenticated by a file backup component of the file control system, and after the account information is authenticated, the request action information is analyzed to access the file control system, and then a web page of the file control system is returned to the first host, and HTTP connection is established with the first host through the web page;
and if the parameter matrix of one account is received for the first time, creating a working directory, an uploading directory and a backup directory.
3. The method of claim 2, wherein uploading a test configuration document to a working directory of the file control system comprises:
and selectively uploading the test configuration document to an uploading directory under the working directory through an HTTP protocol.
4. The method of claim 2, wherein backing up the test configuration document in the backup catalog further comprises:
after the uploading is confirmed, copying the test configuration document from an uploading directory to a backup directory, and returning an uploading backup completion ACK to the first host, wherein the uploading directory is used for storing the uploaded test configuration document in a public manner and supports the remote desktop mounted to the remote host; the backup catalog is used for backing up and storing the uploaded test configuration document.
5. The method of claim 1, wherein the parameter matrix conforms to the request parameter message format.
6. The method of claim 1, wherein the interface Q2 between the file-backup component and the RDP proxy component communicates messages using the SOAP protocol, and parameters use the JSON format.
7. A system for backing up test configuration documents, comprising: the remote file management system comprises a first host, a file control system and a remote host, wherein the file control system comprises a file backup component and an RDP agent component:
an inter-system interface Q1 between the file control system and the account management system defines a request parameter message format;
the file backup component is used for receiving the transmitted parameter matrix and authenticating the account information carried by the parameter matrix in the verification process;
in the network connection process, after the account information passes the authentication, analyzing that the request action information carried by the parameter matrix is to access a file control system, and establishing network connection with a first host corresponding to the account information;
the file backup component is also used for uploading the test configuration document to a working directory of the file control system, the working directory comprises an uploading directory and a backup directory, and the uploaded test configuration document is positioned in the uploading directory;
backing up the test configuration document in the backup catalog;
the RDP agent component is used for copying the test configuration document from the uploading directory to a remote host;
the file backup component is specifically used for receiving a parameter matrix which is sent by the account management system through an inter-system interface Q1 and contains account information and request action information after a first host logs in the account management system in the uploading process, and authenticating the account information in the parameter matrix;
after the authentication is passed, if the analysis request action information is to access a remote host, transmitting the parameter matrix to an RDP proxy component in the file control system;
the RDP proxy component is specifically used for receiving the parameter matrix, analyzing the request action information as RDP remote to the remote host, executing an automation script on the RDP proxy component, initiating an RDP session to the remote host, transmitting a remote desktop picture of the remote host back to the first host, and mounting a working directory on the file backup component to the remote host;
and the first host is used for copying the test configuration document from the working directory to a local disk of the remote host through the RDP session to finish the uploading of the test configuration document.
8. The system of claim 7, further comprising:
the account management system is used for authenticating account information after receiving the account information and the request action information transmitted by the first host computer through the HTTP protocol, and allowing the account management system to log in after the account information and the request action information pass the authentication;
the account information and the request action information are contained in a parameter matrix, and the parameter matrix is sent to a file backup component of the file control system; authenticating, by the file-backup component, the account information.
9. The system of claim 8,
the file backup component is specifically used for authenticating the account information carried by the parameter matrix, analyzing that the request action information is to access the file control system after the account information is authenticated, returning a web page of the file control system to the first host, and establishing HTTP connection with the first host through the web page;
and if the parameter matrix of one account is received for the first time, establishing: working directories, uploading directories and backup directories.
10. The system of claim 7,
and the file backup component is specifically used for selectively uploading the test configuration document to an uploading directory under the working directory through an HTTP protocol.
11. The system of claim 7, wherein the interface Q2 between the file-backup component and the RDP proxy component communicates messages using the SOAP protocol, and parameters use the JSON format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040921.9A CN110048902B (en) | 2018-01-16 | 2018-01-16 | Method and system for backing up test configuration document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040921.9A CN110048902B (en) | 2018-01-16 | 2018-01-16 | Method and system for backing up test configuration document |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110048902A CN110048902A (en) | 2019-07-23 |
CN110048902B true CN110048902B (en) | 2021-06-18 |
Family
ID=67272977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810040921.9A Active CN110048902B (en) | 2018-01-16 | 2018-01-16 | Method and system for backing up test configuration document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110048902B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782445B (en) * | 2020-06-28 | 2023-08-15 | 百度在线网络技术(北京)有限公司 | Configuration method and device of equipment debugging environment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0813150A2 (en) * | 1996-06-10 | 1997-12-17 | Sun Microsystems, Inc. | Method and system for escrowed backup of hotelled world wide web sites |
CN102004857A (en) * | 2010-11-29 | 2011-04-06 | 北京益家时代科技服务有限公司 | Remote data service terminating machine |
CN102150141A (en) * | 2008-09-15 | 2011-08-10 | 惠普发展公司,有限责任合伙企业 | Analyzing server copies of client files |
CN104580085A (en) * | 2013-10-17 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Business data updating method, system, client side and server |
CN105391791A (en) * | 2015-11-26 | 2016-03-09 | 努比亚技术有限公司 | Upgrade system and upgrade method thereof |
CN107302549A (en) * | 2016-04-14 | 2017-10-27 | 宾盛科技(武汉)有限公司 | A kind of remote data transmission and storage system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4728031B2 (en) * | 2005-04-15 | 2011-07-20 | 株式会社日立製作所 | System that performs remote copy pair migration |
-
2018
- 2018-01-16 CN CN201810040921.9A patent/CN110048902B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0813150A2 (en) * | 1996-06-10 | 1997-12-17 | Sun Microsystems, Inc. | Method and system for escrowed backup of hotelled world wide web sites |
CN102150141A (en) * | 2008-09-15 | 2011-08-10 | 惠普发展公司,有限责任合伙企业 | Analyzing server copies of client files |
CN102004857A (en) * | 2010-11-29 | 2011-04-06 | 北京益家时代科技服务有限公司 | Remote data service terminating machine |
CN104580085A (en) * | 2013-10-17 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Business data updating method, system, client side and server |
CN105391791A (en) * | 2015-11-26 | 2016-03-09 | 努比亚技术有限公司 | Upgrade system and upgrade method thereof |
CN107302549A (en) * | 2016-04-14 | 2017-10-27 | 宾盛科技(武汉)有限公司 | A kind of remote data transmission and storage system and method |
Also Published As
Publication number | Publication date |
---|---|
CN110048902A (en) | 2019-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11714626B2 (en) | Method, apparatus, and computer program product for installing third party applications requiring variable host address identification in a group-based communication system | |
CN109600306B (en) | Method, device and storage medium for creating session | |
US9170847B2 (en) | Real time verification of web applications | |
US20090055822A1 (en) | On-demand access to a virtual representation of a physical computer system | |
WO2016173199A1 (en) | Mobile application single sign-on method and device | |
WO2019019646A1 (en) | Method and apparatus for platform to login to website, computer device, and readable storage medium | |
CN112612629A (en) | Method and system for realizing component type data interface | |
CN110677383B (en) | Firewall wall opening method and device, storage medium and computer equipment | |
CN110677441A (en) | Access method and device of object storage cluster | |
CN110912893A (en) | Account number merging method | |
CN111143207A (en) | Method for checking model training notice and training log at mobile terminal | |
CN110048902B (en) | Method and system for backing up test configuration document | |
CN113032805B (en) | Data access method and device, electronic equipment and storage medium | |
CN114465867A (en) | Server maintenance method and device, storage medium and processor | |
CN103164324A (en) | Microblog test method and device | |
CN104348613A (en) | User verification method, apparatus and system | |
US11487510B2 (en) | Dynamic web-based integrated development environment | |
CN113761509A (en) | iframe verification login method and device | |
US11372991B1 (en) | Database operational continuity | |
EP4068073B1 (en) | System, printing system, and control method | |
US11693748B2 (en) | Systems and methods for provisioning and decoupled maintenance of cloud-based database systems | |
CN107770139B (en) | SAMBA identity authentication method based on third-party USBKEY equipment | |
CN115225354A (en) | Multi-application single sign-on method, device, computer equipment and medium | |
US11252157B1 (en) | Permission management for electronic resources | |
CN100547969C (en) | The method and data handling system and the resource management system that are used for instantaneous message communicating |
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 |