WO2018202173A1 - 数据库测试方法及系统 - Google Patents
数据库测试方法及系统 Download PDFInfo
- Publication number
- WO2018202173A1 WO2018202173A1 PCT/CN2018/085725 CN2018085725W WO2018202173A1 WO 2018202173 A1 WO2018202173 A1 WO 2018202173A1 CN 2018085725 W CN2018085725 W CN 2018085725W WO 2018202173 A1 WO2018202173 A1 WO 2018202173A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- database
- package
- test script
- automated test
- task
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Definitions
- the present application relates to the field of database technologies, and in particular, to a database testing method and system.
- the purpose of the present application is to provide a database testing method and system to solve the problem of how to automatically perform package testing of an Oracle database.
- the present application provides a database testing method, the method comprising the steps of:
- the present application also provides a database testing system, the system comprising:
- An execution module is configured to run the automated test script to obtain test results.
- the system further comprises:
- the execution module is further configured to perform the task according to the set parameter to obtain the test result.
- the present application further provides a computer readable storage medium, where the database readable storage medium stores a database testing system, and the database testing system includes:
- An execution module is configured to run the automated test script to obtain test results.
- the database testing method, system and computer readable storage medium proposed by the present application can build an underlying database testing architecture, use the prepareCall method of ISQLServerConnection to call the package of the background database, set the package automation test script, and then run the job through the job of the Jenkins platform. Automate test scripts and get database package test results to automate the testing of database packages and quickly and intuitively see test results.
- FIG. 1 is a flowchart of a database testing method according to a first embodiment of the present application
- FIG. 2 is a flowchart of a database testing method according to a second embodiment of the present application.
- FIG. 3 is a flowchart of a database testing method according to a third embodiment of the present application.
- FIG. 4 is a schematic block diagram of a database testing system according to a fourth embodiment of the present application.
- the first embodiment of the present application provides a database testing method, which includes the following steps:
- S100 Establish a test structure of a stored procedure or a function in a package of an Oracle database.
- Oracle Database System is a set of software products based on distributed database provided by Oracle Corporation (Oracle). Specifically, the Oracle database application environment is set up, and the test architecture of the stored procedure or function in the package of the Oracle database is established according to the system architecture of the specific application environment. The specific topology is as close as possible to the actual application.
- an automated test script is set up, and the stored procedure or function in the package of the back-end Oracle database is invoked by using the prepareCall method of ISQLServerConnection in Java.
- the prepareCall method invokes a database stored procedure by creating a CallableStatement object.
- the CallableStatement object provides methods for setting its IN and OUT parameters, as well as methods for executing the stored procedure.
- the automated test script may be directly run after the automatic test script is set to obtain the test result; or the running time of the automated test script and the running test environment address may be set first, and then set according to the set The runtime runs the automated test script in the set test environment address to obtain the test results.
- the database testing method proposed in this embodiment can build an underlying database testing architecture, use the prepareCall method of ISQLServerConnection to call the package of the background database, set the package automation test script, and then run the automated test script to obtain the database package test result. This enables automated testing of database packages and quick and intuitive viewing of test results.
- the second embodiment of the present application provides a database testing method.
- the steps of the database testing method are similar to those of the first embodiment, the main difference being that step S204 is added to the first embodiment.
- the method specifically includes the following steps:
- S200 Establish a test structure of a stored procedure or a function in a package of an Oracle database.
- the Oracle database application environment is set up, and the test architecture of the stored procedure or function in the package of the Oracle database is established according to the system architecture of the specific application environment.
- the specific topology is as close as possible to the actual application.
- an automated test script is set up, and the stored procedure or function in the package of the back-end Oracle database is invoked by using the prepareCall method of ISQLServerConnection in Java.
- the prepareCall method invokes a database stored procedure by creating a CallableStatement object.
- the CallableStatement object provides methods for setting its IN and OUT parameters, as well as methods for executing the stored procedure.
- Jenkins is an open source software project, a continuous integration tool developed in Java to monitor continuous repetitive work.
- the Jenkins platform is used to monitor ongoing software test projects and external call execution.
- the job is used to execute the automated test script and perform a database package test. Creating the job on the Jenkins platform and executing the job can automatically monitor the ongoing database package test and automatically obtain the database package test results.
- the parameters may include: (1) setting an execution time of the job and a running time of the automated test script; and (2) setting a test environment address at which the automated test script runs.
- the database testing method proposed in this embodiment can build an underlying database testing architecture, use the prepareCall method of ISQLServerConnection to call the package of the background database, set the package automation test script, and then run the automated test script through the job of the Jenkins platform to automatically monitor Continuous database package testing, get database package test results, to achieve automated testing of the database package, and can quickly and intuitively see the test results.
- the third embodiment of the present application provides a database testing method.
- the steps of the database testing method are similar to those of the second embodiment, the main difference being that step S303 and step S308 are added on the basis of the second embodiment.
- the method specifically includes the following steps:
- S300 Establish a test structure of a stored procedure or function in a package of an Oracle database.
- the Oracle database application environment is set up, and the test architecture of the stored procedure or function in the package of the Oracle database is established according to the system architecture of the specific application environment.
- the specific topology is as close as possible to the actual application.
- an automated test script is set up, and the stored procedure or function in the package of the back-end Oracle database is invoked by using the prepareCall method of ISQLServerConnection in Java.
- the prepareCall method invokes a database stored procedure by creating a CallableStatement object.
- the CallableStatement object provides methods for setting its IN and OUT parameters, as well as methods for executing the stored procedure.
- SVN is short for Subversion and is an open source version control system.
- the SVN version management tool is configured to perform version management on the automated test script to modify and update the automated test script at any time.
- the Jenkins platform is used to monitor ongoing software test projects and external call execution.
- the job is used to execute the automated test script and perform a database package test. Creating the job on the Jenkins platform and executing the job can automatically monitor the ongoing database package test and automatically obtain the database package test results.
- the parameters may include: (1) downloading an SVN version management tool address of the automated test script; (2) setting an execution time of the job and a running time of the automated test script; and (3) setting an automated test script to run Test environment address.
- the job is executed according to the set execution time
- the automated test script is downloaded from the SVN version management tool address
- the automated test script is run in the set test environment address according to the set running time. Thereby the test result is obtained.
- an automated database package test result can be directly obtained, a result report is formed according to the test result, and the result report is sent to the tester by mail.
- the database testing method proposed in this embodiment can build an underlying database testing architecture, use the prepareCall method of ISQLServerConnection to call the package of the background database, set the package automation test script, and then run the automated test script through the job of the Jenkins platform to obtain the database.
- Package test results thus automated testing of the database package, and can quickly and intuitively see the test results.
- the automated test script is submitted to the SVN version management tool, and the automated test script can be version-managed to modify and update the automated test script at any time.
- a fourth embodiment of the present application provides a database testing system 40.
- the database testing system 40 includes an establishing module 400, a setting module 402, and an executing module 406.
- the establishing module 400 is configured to establish a test structure of a stored procedure or a function in a package of an Oracle database.
- the establishing module 400 constructs an Oracle database application environment, and establishes a test architecture of a stored procedure or a function in a package of the corresponding Oracle database for the system architecture of the specific application environment.
- the specific topology is as close as possible to the actual application.
- the setting module 402 is configured to set an automated test script, and invoke a stored procedure or function in a package of the backstage Oracle database to perform database testing.
- an automated test script is set up, and the stored procedure or function in the package of the back-end Oracle database is invoked by using the prepareCall method of ISQLServerConnection in Java.
- the prepareCall method invokes a database stored procedure by creating a CallableStatement object.
- the CallableStatement object provides methods for setting its IN and OUT parameters, as well as methods for executing the stored procedure.
- the execution module 406 is configured to run the automated test script to obtain test results.
- the execution module 406 can directly run the automated test script after setting the automated test script to obtain the test result.
- the execution module 406 may also first set the running time of the automated test script and the running test environment address, and then run the automated test script in the set test environment address according to the set running time, thereby obtaining the test result.
- database testing system 40 may further include:
- a creation module 404 is configured to create a job on the Jenkins platform to run the automated test script and set relevant parameters of the job.
- the Jenkins platform is used to monitor ongoing software test projects and external call execution.
- the job is used to execute the automated test script and perform a database package test. Creating the job on the Jenkins platform and executing the job can automatically monitor the ongoing database package test and automatically obtain the database package test results.
- the parameters may include: (1) setting an execution time of the job and a running time of the automated test script; and (2) setting a test environment address at which the automated test script runs.
- the execution module 406 is further configured to execute the job according to the set parameters to obtain a test result.
- database testing system 40 may further include:
- the submitting module 403 is configured to submit the automated test script to the SVN version management tool.
- the SVN version management tool is configured to perform version management on the automated test script to modify and update the automated test script at any time.
- the creating module 404 sets the related parameters of the job, it is also required to set an SVN version management tool address for downloading the automated test script.
- the execution module 406 executes the job according to the set execution time, the automatic test script needs to be downloaded from the SVN version management tool address.
- the sending module 408 is configured to send the obtained test result to the tester.
- an automated database package test result can be directly obtained, a result report is formed according to the test result, and the result report is sent to the tester by mail.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.
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)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请公开了一种数据库测试方法及系统,该方法包括:建立数据库的package 中存储过程或者函数的测试架构;设置自动化测试脚本,调用数据库的 package 中存储过程或者函数进行数据库 package 测试;运行所述自动化测试脚本,得到测试结果。由此可以实现数据库 package 的自动化测试。
Description
本申请要求于2017年5月5日提交中国专利局,申请号为2017103123295、发明名称为“数据库测试方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据库技术领域,尤其涉及数据库测试方法及系统。
传统寿险系统的业务逻辑大部分都在后台Oracle数据库的包(package)中,即用存储过程来处理系统复杂的业务逻辑。前台页面(web)仅作数据展示或者下载报表。在后台Oracle数据库的package中的存储过程,有些在前台页面无法调用或者调用后无界面显示,无法直观验证结果。而且人工在Oracle数据库中调用存储过程或者函数,会耗费大量人力,并严重影响测试进度。
因此,需要一种自动化的Oracle数据库的package测试方法,并且可以快速直观地看到测试结果。
发明内容
有鉴于此,本申请的目的在于提供一种数据库测试方法及系统,以解决如何自动化地进行Oracle数据库的package测试的问题。
为实现上述目的,本申请提供一种数据库测试方法,该方法包括步骤:
建立数据库的package中存储过程或者函数的测试架构;
设置自动化测试脚本,调用数据库的package中存储过程或者函数进行数据库package测试;及
运行所述自动化测试脚本,得到测试结果。
为实现上述目的,本申请还提出一种数据库测试系统,该系统包括:
建立模块,用于建立数据库的package中存储过程或者函数的测试架构;
设置模块,用于设置自动化测试脚本,调用数据库的package中存储过程或者函数进行数据库package测试;及
执行模块,用于运行所述自动化测试脚本,得到测试结果。
优选地,该系统还包括:
创建模块,用于在Jenkins平台上创建一个任务,并设置所述任务的相关参数,其中所述任务用于执行所述自动化测试脚本,进行所述数据库package测试;
所述执行模块还用于根据所设置的参数执行所述任务,得到所述测试结果。
此外,为实现上述目的,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质内存储有数据库测试系统,该数据库测试系统包括:
建立模块,用于建立数据库的package中存储过程或者函数的测试架构;
设置模块,用于设置自动化测试脚本,调用数据库的package中存储过程或者函数进行数据库package测试;及
执行模块,用于运行所述自动化测试脚本,得到测试结果。
本申请提出的数据库测试方法、系统及计算机可读存储介质,可以搭建底层数据库测试架构,利用ISQLServerConnection的prepareCall方法来调用后台数据库的package,设置package自动化测试脚本,然后通过Jenkins平台的job运行所述自动化测试脚本,得到数据库package测试结果,从而实现数据库package的自动化测试,并且可以快速直观地看到测试结果。
图1为本申请第一实施例提出的一种数据库测试方法的流程图;
图2为本申请第二实施例提出的一种数据库测试方法的流程图;
图3为本申请第三实施例提出的一种数据库测试方法的流程图;
图4为本申请第四实施例提出的一种数据库测试系统的模块示意图;
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
为了使本申请所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
第一实施例
如图1所示,本申请第一实施例提出一种数据库测试方法,该方法包括以下步骤:
S100,建立Oracle数据库的包(package)中存储过程或者函数的测试架构。
Oracle数据库系统是美国Oracle公司(甲骨文)提供的以分布式数据库为核心的一组软件产品。具体地,搭建Oracle数据库应用环境,针对具体应用环境的系统架构,建立相应的Oracle数据库的package中存储过程或者函数的测试架构。具体拓扑尽可能与实际应用接近。
S102,设置自动化测试脚本,调用后台Oracle数据库的package中存储过程或者函数进行数据库测试。
具体地,设置自动化测试脚本,利用Java中ISQLServerConnection的prepareCall方法来调用后台Oracle数据库的package中存储过程或者函数。所述prepareCall方法通过创建一个CallableStatement对象来调用数据库存储过程。CallableStatement对象提供了设置其IN参数和OUT参数的方法,以及用来执行调用存储过程的方法。
S104,运行所述自动化测试脚本,得到测试结果。
具体地,可以在设置所述自动化测试脚本后直接运行所述自动化测试脚本,得到所述测试结果;也可以先设置所述自动化测试脚本的运行时间和运行的测试环境地址,然后按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
本实施例所提出的数据库测试方法,可以搭建底层数据库测试架构,利用ISQLServerConnection的prepareCall方法来调用后台数据库的package,设置package自动化测试脚本,然后通过运行所述自动化测试脚本,得到数据库package测试结果,从而实现数据库package的自动化测试,并且可以快速直观地看到测试结果。
第二实施例
如图2所示,本申请第二实施例提出一种数据库测试方法。在第二实施例中,所述数据库测试方法的步骤与第一实施例的步骤相类似,主要区别在于在第一实施例的基础上增加了步骤S204。该方法具体包括以下步骤:
S200,建立Oracle数据库的包(package)中存储过程或者函数的测试架构。
具体地,搭建Oracle数据库应用环境,针对具体应用环境的系统架构,建立相应的Oracle数据库的package中存储过程或者函数的测试架构。具体拓扑尽可能与实际应用接近。
S202,设置自动化测试脚本,调用后台Oracle数据库的package中存储过程或者函数进行数据库测试。
具体地,设置自动化测试脚本,利用Java中ISQLServerConnection的prepareCall方法来调用后台Oracle数据库的package中存储过程或者函数。所述prepareCall方法通过创建一个CallableStatement对象来调用数据库存储过程。CallableStatement对象提供了设置其IN参数和OUT参数的方法,以及用来执行调用存储过程的方法。
S204,在Jenkins平台上创建一个任务(job),以运行所述自动化测试脚本,并设置所述job的相关参数。
Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作。具体地,所述Jenkins平台用于监控持续的软件测试项目和外部调用执行的工作。所述job用于执行所述自动化测试脚本,进行数据库package测试。在所述Jenkins平台上创建所述job并执行所述job,可以自动监控持续的数据库package测试,自动得到数据库package测试结果。
所述参数可以包括:(1)设置所述job的执行时间和所述自动化测试脚本的运行时间;(2)设置自动化测试脚本运行的测试环境地址。
S206,根据所设置的参数执行所述job,得到测试结果。
具体地,按照所设置的执行时间执行所述job,获取所述自动化测试脚本,按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
本实施例所提出的数据库测试方法,可以搭建底层数据库测试架构,利用ISQLServerConnection的prepareCall方法来调用后台数据库的package,设置package自动化测试脚本,然后通过Jenkins平台的job运行所述自动化测试脚本,自动监控持续的数据库package测试,得到数据库package测试结果,从而实现数据库package的自动化测试,并且可以快速直观地看到测试结果。
第三实施例
如图3所示,本申请第三实施例提出一种数据库测试方法。在第三实施例中,所述数据库测试方法的步骤与第二实施例的步骤相类似,主要区别在于在第二实施例的基础上增加了步骤S303和步骤S308。该方法具体包括以下步骤:
S300,建立Oracle数据库的包(package)中存储过程或者函数的测试架构。
具体地,搭建Oracle数据库应用环境,针对具体应用环境的系统架构,建立相应的Oracle数据库的package中存储过程或者函数的测试架构。具体拓扑尽可能与实际应用接近。
S302,设置自动化测试脚本,调用后台Oracle数据库的package中存储过程或者函数进行数据库测试。
具体地,设置自动化测试脚本,利用Java中ISQLServerConnection的prepareCall方法来调用后台Oracle数据库的package中存储过程或者函数。所述prepareCall方法通过创建一个CallableStatement对象来调用数据库存储过程。CallableStatement对象提供了设置其IN参数和OUT参数的方法,以及用来执行调用存储过程的方法。
S303,将所述自动化测试脚本提交至SVN版本管理工具。
SVN是Subversion的简称,是一个开放源代码的版本控制系统。具体地,所述SVN版本管理工具用于对所述自动化测试脚本进行版本管理,以便随时对所述自动化测试脚本进行修改更新和恢复。
S304,在Jenkins平台上创建一个任务(job),以运行所述自动化测试脚本,并设置所述job的相关参数。
具体地,所述Jenkins平台用于监控持续的软件测试项目和外部调用执行的工作。所述job用于执行所述自动化测试脚本,进行数据库package测试。在所述Jenkins平台上创建所述job并执行所述job,可以自动监控持续的数据库package测试,自动得到数据库package测试结果。
所述参数可以包括:(1)下载所述自动化测试脚本的SVN版本管理工具地址;(2)设置所述job的执行时间和所述自动化测试脚本的运行时间;(3)设置自动化测试脚本运行的测试环境地址。
S306,根据所设置的参数执行所述job,得到测试结果。
具体地,按照所设置的执行时间执行所述job,从所述SVN版本管理工具地址中下载所述自动化测试脚本,按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
S308,将得到测试结果发送至测试人员。
具体地,当所述job执行完成后,可以直接得到自动化的数据库package测试结果,根据所述测试结果形成结果报告,将结果报告通过邮件发送至测试人员。
本实施例所提出的数据库测试方法,可以搭建底层数据库测试架构,利用ISQLServerConnection的prepareCall方法来调用后台数据库的package,设置 package自动化测试脚本,然后通过Jenkins平台的job运行所述自动化测试脚本,得到数据库package测试结果,从而实现数据库package的自动化测试,并且可以快速直观地看到测试结果。另外,将所述自动化测试脚本提交至SVN版本管理工具,可以对所述自动化测试脚本进行版本管理,以便随时对所述自动化测试脚本进行修改更新和恢复。
第四实施例
如图4所示,本申请第四实施例提出一种数据库测试系统40。
在本实施例中,数据库测试系统40包括建立模块400、设置模块402及执行模块406。
所述建立模块400,用于建立Oracle数据库的包(package)中存储过程或者函数的测试架构。
具体地,建立模块400搭建Oracle数据库应用环境,针对具体应用环境的系统架构,建立相应的Oracle数据库的package中存储过程或者函数的测试架构。具体拓扑尽可能与实际应用接近。
所述设置模块402,用于设置自动化测试脚本,调用后台Oracle数据库的package中存储过程或者函数进行数据库测试。
具体地,设置自动化测试脚本,利用Java中ISQLServerConnection的prepareCall方法来调用后台Oracle数据库的package中存储过程或者函数。所述prepareCall方法通过创建一个CallableStatement对象来调用数据库存储过程。CallableStatement对象提供了设置其IN参数和OUT参数的方法,以及用来执行调用存储过程的方法。
所述执行模块406,用于运行所述自动化测试脚本,得到测试结果。
具体地,执行模块406可以在设置所述自动化测试脚本后直接运行所述自动化测试脚本,得到所述测试结果。执行模块406也可以先设置所述自动化测试脚本的运行时间和运行的测试环境地址,然后按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
进一步地,所述数据库测试系统40还可以包括:
创建模块404,用于在Jenkins平台上创建一个任务(job),以运行所述自动化测试脚本,并设置所述job的相关参数。
具体地,所述Jenkins平台用于监控持续的软件测试项目和外部调用执行的工作。所述job用于执行所述自动化测试脚本,进行数据库package测试。在所述Jenkins平台上创建所述job并执行所述job,可以自动监控持续的数据库package测试,自动得到数据库package测试结果。
所述参数可以包括:(1)设置所述job的执行时间和所述自动化测试脚本的运行时间;(2)设置自动化测试脚本运行的测试环境地址。
在此种情况下,所述执行模块406还用于根据所设置的参数执行所述job,得到测试结果。
具体地,按照所设置的执行时间执行所述job,获取所述自动化测试脚本,按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
更进一步地,所述数据库测试系统40还可以包括:
提交模块403,用于将所述自动化测试脚本提交至SVN版本管理工具。
具体地,所述SVN版本管理工具用于对所述自动化测试脚本进行版本管理,以便随时对所述自动化测试脚本进行修改更新和恢复。此种情况下,所述创建模块404设置所述job的相关参数时还需要设置下载所述自动化测试脚本的SVN版本管理工具地址。所述执行模块406按照所设置的执行时间执行所述job时,还需要从所述SVN版本管理工具地址中下载所述自动化测试脚本。
发送模块408,用于将得到测试结果发送至测试人员。
具体地,当所述job执行完成后,可以直接得到自动化的数据库package测试结果,根据所述测试结果形成结果报告,将结果报告通过邮件发送至测试人员。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上参照附图说明了本申请的优选实施例,并非因此局限本申请的权利范围。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本领域技术人员不脱离本申请的范围和实质,可以有多种变型方案实现本申请,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本申请的技术构思之内所作的任何修改、等同替换和改进,均应在本申请的权利范围之内。
Claims (20)
- 一种数据库测试方法,其特征在于,该方法包括步骤:建立数据库的package中存储过程或者函数的测试架构;设置自动化测试脚本,调用数据库的package中存储过程或者函数进行数据库package测试;及运行所述自动化测试脚本,得到测试结果。
- 根据权利要求1所述的数据库测试方法,其特征在于,该方法还包括步骤:在Jenkins平台上创建一个任务,并设置所述任务的相关参数,其中所述任务用于执行所述自动化测试脚本,进行所述数据库package测试;及根据所设置的参数执行所述任务,得到所述测试结果。
- 根据权利要求2所述的数据库测试方法,其特征在于,该方法还包括步骤:将所述自动化测试脚本提交至SVN版本管理工具。
- 根据权利要求3所述的数据库测试方法,其特征在于,所述参数包括:下载所述自动化测试脚本的SVN版本管理工具地址;所述任务的执行时间和所述自动化测试脚本的运行时间;所述自动化测试脚本运行的测试环境地址。
- 根据权利要求4所述的数据库测试方法,其特征在于,所述根据所设置的参数执行所述任务,得到所述测试结果的步骤具体包括:按照所设置的执行时间执行所述任务;从所述SVN版本管理工具地址中下载所述自动化测试脚本;及按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
- 根据权利要求1所述的数据库测试方法,其特征在于,利用Java中ISQLServerConnection的prepareCall方法来调用数据库的package中存储过程或者函数。
- 根据权利要求2-5任一项所述的数据库测试方法,其特征在于,利用Java中ISQLServerConnection的prepareCall方法来调用数据库的package中存储过程或者函数。
- 一种数据库测试系统,其特征在于,该系统包括:建立模块,用于建立数据库的package中存储过程或者函数的测试架构;设置模块,用于设置自动化测试脚本,调用数据库的package中存储过程或者函数进行数据库package测试;及执行模块,用于运行所述自动化测试脚本,得到测试结果。
- 根据权利要求8所述的数据库测试系统,其特征在于,该系统还包括:创建模块,用于在Jenkins平台上创建一个任务,并设置所述任务的相关参数,其中所述任务用于执行所述自动化测试脚本,进行所述数据库package测试;所述执行模块还用于根据所设置的参数执行所述任务,得到所述测试结果。
- 根据权利要求9所述的数据库测试系统,其特征在于,该系统还包括:提交模块,用于将所述自动化测试脚本提交至SVN版本管理工具。
- 根据权利要求10所述的数据库测试系统,其特征在于,所述参数包括:下载所述自动化测试脚本的SVN版本管理工具地址;所述任务的执行时间和所述自动化测试脚本的运行时间;所述自动化测试脚本运行的测试环境地址。
- 根据权利要求11所述的数据库测试系统,其特征在于,所述执行模块按照所设置的执行时间执行所述任务;从所述SVN版本管理工具地址中下载所述自动化测试脚本;及按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
- 根据权利要求8所述的数据库测试系统,其特征在于,所述设置模块利用Java中ISQLServerConnection的prepareCall方法来调用数据库的package中存储过程或者函数。
- 根据权利要求9-12任一项所述的数据库测试系统,其特征在于,所述设置模块利用Java中ISQLServerConnection的prepareCall方法来调用数据库的package中存储过程或者函数。
- 一种计算机可读存储介质,所述计算机可读存储介质内存储有数据库测试系统,其特征在于,该数据库测试系统包括:建立模块,用于建立数据库的package中存储过程或者函数的测试架构;设置模块,用于设置自动化测试脚本,调用数据库的package中存储过程或者函数进行数据库package测试;及执行模块,用于运行所述自动化测试脚本,得到测试结果。
- 根据权利要求15所述的计算机可读存储介质,其特征在于,该数据库测试系统统还包括:创建模块,用于在Jenkins平台上创建一个任务,并设置所述任务的相关参数,其中所述任务用于执行所述自动化测试脚本,进行所述数据库package测试;所述执行模块还用于根据所设置的参数执行所述任务,得到所述测试结果。
- 根据权利要求16所述的计算机可读存储介质,其特征在于,该数据库测试系统还包括:提交模块,用于将所述自动化测试脚本提交至SVN版本管理工具。
- 根据权利要求17所述的计算机可读存储介质,其特征在于,所述参数包括:下载所述自动化测试脚本的SVN版本管理工具地址;所述任务的执行时间和所述自动化测试脚本的运行时间;所述自动化测试脚本运行的测试环境地址。
- 根据权利要求16所述的计算机可读存储介质,其特征在于,所述执行模块按照所设置的执行时间执行所述任务;从所述SVN版本管理工具地址中下载所述自动化测试脚本;及按照所设置的运行时间在所设置测试环境地址中运行所述自动化测试脚本,从而得到所述测试结果。
- 根据权利要求15-18任一项所述的计算机可读存储介质,其特征在于,所述设置模块利用Java中ISQLServerConnection的prepareCall方法来调用数据 库的package中存储过程或者函数。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710312329.5A CN107885654A (zh) | 2017-05-05 | 2017-05-05 | 数据库测试方法及系统 |
| CN201710312329.5 | 2017-05-05 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018202173A1 true WO2018202173A1 (zh) | 2018-11-08 |
Family
ID=61780489
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/085725 Ceased WO2018202173A1 (zh) | 2017-05-05 | 2018-05-04 | 数据库测试方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107885654A (zh) |
| WO (1) | WO2018202173A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110147328A (zh) * | 2019-05-24 | 2019-08-20 | 深圳市网心科技有限公司 | 一种数据库性能测试方法、系统、电子设备和存储介质 |
| CN111240989A (zh) * | 2020-01-17 | 2020-06-05 | 众能联合数字技术有限公司 | 接口自动化测试框架及方法 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107885654A (zh) * | 2017-05-05 | 2018-04-06 | 平安科技(深圳)有限公司 | 数据库测试方法及系统 |
| CN112099806A (zh) * | 2020-11-05 | 2020-12-18 | 四川新网银行股份有限公司 | 一种基于CICD的sql自动化审核上线及执行方法 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105446825A (zh) * | 2014-06-12 | 2016-03-30 | 阿里巴巴集团控股有限公司 | 数据库测试方法及装置 |
| US9542300B1 (en) * | 2013-03-15 | 2017-01-10 | Twitter, Inc. | System and method for tracking callback functions for error identification |
| CN106383784A (zh) * | 2016-09-20 | 2017-02-08 | 上海爱数信息技术股份有限公司 | 软件自动化测试方法及系统 |
| CN107885654A (zh) * | 2017-05-05 | 2018-04-06 | 平安科技(深圳)有限公司 | 数据库测试方法及系统 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101093462B (zh) * | 2006-06-22 | 2011-02-09 | 上海全成通信技术有限公司 | 数据库应用集群压力测试自动化方法 |
| US9092500B2 (en) * | 2009-09-03 | 2015-07-28 | Commvault Systems, Inc. | Utilizing snapshots for access to databases and other applications |
| CN102486748B (zh) * | 2010-12-02 | 2015-07-15 | 金蝶软件(中国)有限公司 | 一种性能测试的方法及装置 |
| CN102254035A (zh) * | 2011-08-09 | 2011-11-23 | 广东电网公司电力科学研究院 | 关系数据库测试方法及测试系统 |
| CN102254036A (zh) * | 2011-08-09 | 2011-11-23 | 广东电网公司电力科学研究院 | 时间序列数据库测试方法及测试系统 |
| CN103810196B (zh) * | 2012-11-09 | 2017-09-22 | 阿里巴巴集团控股有限公司 | 基于业务模型进行数据库性能测试的方法 |
| CN105224458B (zh) * | 2015-10-09 | 2018-02-09 | 上海瀚银信息技术有限公司 | 一种数据库测试方法及系统 |
| CN105302729A (zh) * | 2015-12-09 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | 一种基于数据库应用的存储系统测试方法 |
-
2017
- 2017-05-05 CN CN201710312329.5A patent/CN107885654A/zh active Pending
-
2018
- 2018-05-04 WO PCT/CN2018/085725 patent/WO2018202173A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9542300B1 (en) * | 2013-03-15 | 2017-01-10 | Twitter, Inc. | System and method for tracking callback functions for error identification |
| CN105446825A (zh) * | 2014-06-12 | 2016-03-30 | 阿里巴巴集团控股有限公司 | 数据库测试方法及装置 |
| CN106383784A (zh) * | 2016-09-20 | 2017-02-08 | 上海爱数信息技术股份有限公司 | 软件自动化测试方法及系统 |
| CN107885654A (zh) * | 2017-05-05 | 2018-04-06 | 平安科技(深圳)有限公司 | 数据库测试方法及系统 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110147328A (zh) * | 2019-05-24 | 2019-08-20 | 深圳市网心科技有限公司 | 一种数据库性能测试方法、系统、电子设备和存储介质 |
| CN111240989A (zh) * | 2020-01-17 | 2020-06-05 | 众能联合数字技术有限公司 | 接口自动化测试框架及方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107885654A (zh) | 2018-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018202173A1 (zh) | 数据库测试方法及系统 | |
| CN109472442B (zh) | 一种工单的自动化处理系统和方法 | |
| EP3115902B1 (en) | Framework for automated testing of mobile apps | |
| CN111625839A (zh) | 第三方组件漏洞检测方法、装置、设备及计算机存储介质 | |
| CN106407100A (zh) | 一种实现持续集成测试的方法及装置 | |
| CN111651365B (zh) | 接口自动化测试方法及装置 | |
| CN110781089B (zh) | 一种设备ui自动化测试方法、装置、电子设备和介质 | |
| CN105138386A (zh) | 基于Jenkins与vManager的逻辑设计验证持续集成平台 | |
| US11743295B2 (en) | Methods and apparatus to provide resource security | |
| CN111026670B (zh) | 测试用例的生成方法、测试用例的生成装置及存储介质 | |
| CN111026411A (zh) | 一种软件远程部署管理方法及管理机 | |
| CN114647419A (zh) | 服务部署的处理方法、装置、电子设备及存储介质 | |
| CN109976725B (zh) | 一种基于轻量级流程引擎的流程程序开发方法及装置 | |
| CN112988576B (zh) | 一种软件项目研发进程确定方法及装置 | |
| CN107728996A (zh) | 一种git分支管理方法及装置 | |
| CN114327478A (zh) | 一种应用程序自动化交付方法及装置 | |
| CN113838231A (zh) | 基于智能音箱的智能锁故障处理方法、装置及可读介质 | |
| WO2017167015A1 (zh) | 服务器设备安全管理方法、装置及计算机存储介质 | |
| CN103902445B (zh) | 一种回归测试对象确定方法及装置 | |
| WO2017219851A1 (zh) | 一种执行测试用例的方法、装置及计算机可读存储介质 | |
| US9400737B2 (en) | Generation of automated unit tests for a controller layer system and method | |
| CN108400906B (zh) | 一种自动化测试方法、装置、存储介质及计算机设备 | |
| CN114782012A (zh) | 工装变更方法、装置、设备及存储介质 | |
| CN108805518A (zh) | 信息处理方法、装置、系统及电子设备 | |
| CN107402854A (zh) | 测试信息管理方法、装置、测试用例执行系统及设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18793929 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/02/2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18793929 Country of ref document: EP Kind code of ref document: A1 |