Method and device for verifying script file
A script file and verification method technology, applied in the database field, can solve the problems of low efficiency of the verification process, time and effort of testers, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] see figure 1 , which is a flowchart of an embodiment of a script file verification method of the present invention, the method includes the following steps:
[0025] Step 101: Obtain the version modification information of the script file in the database to be verified from the version management tool, and execute the script file in the database to be verified to obtain the execution result information of the wrong script file, the version modification information includes at least modification A person's account number and a script file path, and the execution result information includes at least the script file path and the execution result;
[0026] Wherein, said obtaining the version modification information of the script file in the database to be verified from the version management tool includes: downloading the script file in the database to be verified from the version management tool; according to the log format in the version management tool, parsing The log...
Embodiment 2
[0046] The following takes a specific application scenario as an example to describe the verification process of the script file in detail. see figure 2 , which is a flowchart of another embodiment of a script file verification method of the present invention. In this embodiment, SVN is selected as the version management tool, and JDBC is selected as the third-party tool. And, for the convenience of describing the verification process of script files, in this embodiment, the number of script files in a project is simplified to 10, and these 10 script files are maintained in a database, and are managed by SVN, and this database serves as A database to be verified, the process of verifying the script file in the database to be verified includes the following steps:
[0047] Step 201: respectively read 10 script files in the database to be verified from the version management tool SVN, and obtain log files generated when the 10 script files are downloaded;
[0048] Among them,...
Embodiment 3
[0069] Corresponding to the above method for verifying a script file, an embodiment of the present invention also provides a device for verifying a script file. see image 3 , which is a structural diagram of an embodiment of an apparatus for verifying script files in the present invention, the apparatus includes a verification unit 301 and a matching unit 302 . The internal structure and connection relationship of the device will be further introduced below in conjunction with the working principle of the device.
[0070] The verification unit 301 is used to obtain the version modification information of the script file in the database to be verified from the version management tool, and execute the script file in the database to be verified to obtain the execution result information of the wrong script file, and the version modification information At least including the account number of the modifying person and the path of the script file, and the execution result informa...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 