WO2019080426A1 - Electronic apparatus, test method, system and storage medium - Google Patents

Electronic apparatus, test method, system and storage medium

Info

Publication number
WO2019080426A1
WO2019080426A1 PCT/CN2018/077624 CN2018077624W WO2019080426A1 WO 2019080426 A1 WO2019080426 A1 WO 2019080426A1 CN 2018077624 W CN2018077624 W CN 2018077624W WO 2019080426 A1 WO2019080426 A1 WO 2019080426A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
service
code branch
minor
extracting
Prior art date
Application number
PCT/CN2018/077624
Other languages
French (fr)
Chinese (zh)
Inventor
韩先跃
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019080426A1 publication Critical patent/WO2019080426A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present application relates to the field of communications technologies, and in particular, to an electronic device, a testing method, a system, and a storage medium.
  • APM application performance monitor
  • JAVA application performance monitor
  • service version testing is required. Since there are dozens of versions of the client jar package corresponding to one service or JAVA application service in the APM product, in addition, the application topology of a project generally includes many services, and the jar package corresponding to each service includes multiple versions. If you test all the full-service versions, it will be time-consuming, labor-intensive, and inefficient.
  • the purpose of the present application is to provide an electronic device, a test method, a system, and a storage medium, which are intended to improve test efficiency.
  • the present application provides an electronic device including a memory and a processor coupled to the memory, wherein the memory stores a test system operable on the processor, the test The system implements the following steps when executed by the processor:
  • Version categorization step versioning all service versions of each service type in a pre-built Jekins environment
  • the rule table establishing step is: when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
  • a reading step after the Jekins API service is established, reading the rule table based on the service type of the service, to obtain corresponding version information in the rule table;
  • the version testing step acquires a corresponding code branch according to the obtained version information, and performs a full version coverage test based on the acquired code branch.
  • the present application further provides a testing method, the testing method comprising:
  • the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table;
  • test system comprising:
  • a categorization module for categorizing all service versions of each service type in a pre-built Jekins environment
  • Establishing a module configured to extract a version of the service version after the version is extracted by using a typical extraction method, and establish a rule table based on the extracted service version;
  • a reading module configured to: after the Jekins API service is established, read the rule table according to the service type of the service, to obtain corresponding version information in the rule table;
  • the testing module is configured to obtain a corresponding code branch according to the obtained version information, and perform a full version coverage test based on the acquired code branch.
  • the application further provides a computer readable storage medium having a test system stored thereon, the test system being implemented by the processor to implement the steps:
  • the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table;
  • a corresponding code branch is obtained according to the obtained version information, and a full version version coverage test is performed based on the acquired code branch.
  • the beneficial effects of the present application are as follows: after the service version is classified, when a full version coverage test command is received, a representative small service version creation rule table is obtained after the classification, and the corresponding rule is obtained based on the rule table. The version information finally obtains the code branch corresponding to the version information for the full version coverage test. This application extracts a representative small part version information to simulate the full coverage test, which saves time and effort and improves test efficiency.
  • FIG. 1 is a schematic diagram of a hardware architecture of an embodiment of an electronic device according to the present application.
  • FIG. 2 is a schematic flow chart of an embodiment of a test method of the present application.
  • the electronic device 1 is a schematic diagram of a hardware architecture of an embodiment of an electronic device according to the present application.
  • the electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance.
  • the electronic device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud-based cloud composed of a large number of hosts or network servers, where cloud computing is a type of distributed computing.
  • a super virtual computer consisting of a group of loosely coupled computers.
  • the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 communicably connected to each other through a system bus.
  • the memory 11 stores a test system executable on the processor 12. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes a memory and at least one type of readable storage medium.
  • the memory provides a cache for the operation of the electronic device 1;
  • the readable storage medium may be, for example, a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM).
  • a non-volatile storage medium such as a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a programmable read only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, or the like.
  • the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be external to the electronic device 1.
  • a storage device such as a plug-in hard disk equipped with an electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like.
  • the readable storage medium of the memory 11 is generally used to store an operating system for installing the electronic device 1 and various types of application software, such as program code for storing the test system in an embodiment of the present application. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with other devices.
  • the processor 12 is configured to run program code or process data stored in the memory 11, such as running a test system or the like.
  • the network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
  • the test system is stored in the memory 11 and includes at least one computer readable instruction stored in the memory 11, the at least one computer readable instruction being executable by the processor 12 to implement the methods of various embodiments of the present application;
  • the at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
  • test system is implemented by the processor 12 to implement the following steps:
  • Version categorization step versioning all versions of services for each service type in a pre-built Jekins environment
  • the Jekins environment that can be automatically tested can be pre-built, and all service versions of each service type are versioned, and the service version includes versions of all jar packages corresponding to each service type, and the service type includes the mysql service. , redis services, etc.
  • the version categorization of the service version includes: classifying the service versions belonging to the same large version into the same class, and arranging the small versions belonging to the same large version in the order of the version numbers. For example, if there are large versions: v1.xx, v2.xx, v3.xx, all service versions belonging to the large version v1 are classified into the same class, and all service versions belonging to the large version v2 are classified into the same class, which will belong to the same category. All service versions of version v3 are classified into the same class.
  • the rule table establishing step is: when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
  • the version of the service version after the version is extracted is extracted by a typical extraction method.
  • the typical extraction method is to extract the first minor version and the last minor version of the service version belonging to the same major version, and extract between the first minor version and the last minor version based on the predetermined extraction rule.
  • a small version builds a rules table based on the minor versions extracted from the service versions that belong to the same major version.
  • the typical extraction method is a dichotomy method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5.
  • the intermediate version is v1.0.3, and for the large version v1.x, the minimum version v1.0.1, the maximum version v1.0.5, and the intermediate version v1.0.3 are extracted.
  • the typical extraction method is a dichotomy-like extraction method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5.
  • a large version v1.x the minimum version v1.0.1, the maximum version v1.0.5, and any version in the middle are extracted.
  • the smaller or the smaller version with the largest intermediate transition is extracted.
  • the embodiment also establishes a rule table for the extracted service version.
  • the established rules table is as shown in Table 1 below:
  • the rule table has a total of six fields: the ID is a large version number, the groupId and the artifactId respectively correspond to the groupId and artifactId contents of the software project management and synthesis tool maven, and the min_version and max_version are respectively the minimum version and the maximum version under the large version. For example, the minimum version v3.0.8 and the largest version v3.1.14 under the large version v3.0.
  • a reading step after the Jekins API service is established, reading the rule table based on the service type of the service, to obtain corresponding version information in the rule table;
  • the Jekins API service is established, if the service is a mysql service, the version information corresponding to the mysql service in the rule table is read, and if it is another service, the version corresponding to the other service is read.
  • the information as shown in Table 1 above, reads the version information of the mysql service including: large version of mysql service v2.0, v3.0 and v5.0, groupId and artifactId of each major version, minimum version v2.0.14 , v3.0.8 and v5.0.2, maximum version v2.0.14, v3.1.14 and v5.1.42, intermediate version v5.1.21.
  • the version testing step acquires a corresponding code branch according to the obtained version information, and performs a full version coverage test based on the acquired code branch.
  • the code branch of each service version may be pre-created in the code base.
  • the corresponding code branch in the code base may be obtained according to the version information, for example, obtaining the large version v3.0 respectively.
  • the small version v3.0.8 and v3.1.14 correspond to the code branch, and then use the obtained code branch to execute the full version coverage test, or by recompiling the code branch corresponding to the version information, and execute the full version coverage test based on the code branch.
  • the embodiment extracts a representative partial service version establishment rule table after the classification is received, and obtains a corresponding rule based on the rule table.
  • the version information is obtained by the code branch corresponding to the version information, and the full version coverage test is performed.
  • This embodiment extracts a representative small part version information to simulate the full coverage test, which saves time and labor and has high test efficiency.
  • the step of acquiring a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch specifically includes:
  • the corresponding code branch in the code library may be directly pulled; if the version information corresponding to the obtained version information is not pre-built in the code library, The code branch needs to modify the dependent version information in the configuration file pom, and then recompile the code branch corresponding to the obtained version information according to the modified configuration file pom.
  • the code branch corresponding to the version information can be flexibly obtained, so that the code branch can be pulled for testing when performing the full version coverage test, thereby further improving the testing efficiency.
  • FIG. 2 is a schematic flowchart of an embodiment of a test method according to the present application, where the test method includes the following steps:
  • Step S1 versioning all the service versions of each service type in a pre-built Jekins environment
  • the Jekins environment that can be automatically tested can be pre-built, and all service versions of each service type are versioned, and the service version includes versions of all jar packages corresponding to each service type, and the service type includes the mysql service. , redis services, etc.
  • the version categorization of the service version includes: classifying the service versions belonging to the same large version into the same class, and arranging the small versions belonging to the same large version in the order of the version numbers. For example, if there are large versions: v1.xx, v2.xx, v3.xx, all service versions belonging to the large version v1 are classified into the same class, and all service versions belonging to the large version v2 are classified into the same class, which will belong to the same category. All service versions of version v3 are classified into the same class.
  • Step S2 when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
  • the version of the service version after the version is extracted is extracted by a typical extraction method.
  • the typical extraction method is to extract the first minor version and the last minor version of the service version belonging to the same major version, and extract between the first minor version and the last minor version based on the predetermined extraction rule.
  • a small version builds a rules table based on the minor versions extracted from the service versions that belong to the same major version.
  • the typical extraction method is a dichotomy method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5.
  • the intermediate version is v1.0.3, and for the large version v1.x, the minimum version v1.0.1, the maximum version v1.0.5, and the intermediate version v1.0.3 are extracted.
  • the typical extraction method is a dichotomy-like extraction method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5.
  • a large version v1.x the minimum version v1.0.1, the maximum version v1.0.5, and any version in the middle are extracted.
  • the smaller or the smaller version with the largest intermediate transition is extracted.
  • the embodiment also establishes a rule table for the extracted service version.
  • the established rules table is as shown in Table 1 above.
  • the rule table has a total of six fields: the ID is a large version number, the groupId and the artifactId respectively correspond to the groupId and artifactId contents of the software project management and synthesis tool maven, and the min_version and max_version are respectively the minimum version and the maximum version under the large version. For example, the minimum version v3.0.8 and the largest version v3.1.14 under the large version v3.0.
  • Step S3 after the Jekens API service is established, the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table.
  • the Jekins API service is established, if the service is a mysql service, the version information corresponding to the mysql service in the rule table is read, and if it is another service, the version corresponding to the other service is read.
  • the information as shown in Table 1 above, reads the version information of the mysql service including: large version of mysql service v2.0, v3.0 and v5.0, groupId and artifactId of each major version, minimum version v2.0.14 , v3.0.8 and v5.0.2, maximum version v2.0.14, v3.1.14 and v5.1.42, intermediate version v5.1.21.
  • Step S4 Acquire a corresponding code branch according to the obtained version information, and perform a full version version coverage test based on the acquired code branch.
  • the code branch of each service version may be pre-created in the code base.
  • the corresponding code branch in the code base may be obtained according to the version information, for example, obtaining the large version v3.0 respectively.
  • the small version v3.0.8 and v3.1.14 correspond to the code branch, and then use the obtained code branch to execute the full version coverage test, or by recompiling the code branch corresponding to the version information, and execute the full version coverage test based on the code branch.
  • the embodiment extracts a representative partial service version establishment rule table after the classification is received, and obtains a corresponding rule based on the rule table.
  • the version information is obtained by the code branch corresponding to the version information, and the full version coverage test is performed.
  • This embodiment extracts a representative small part version information to simulate the full coverage test, which saves time and labor and has high test efficiency.
  • the step of acquiring a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch specifically includes:
  • the corresponding code branch in the code library may be directly pulled; if the version information corresponding to the obtained version information is not pre-built in the code library, The code branch needs to modify the dependent version information in the configuration file pom, and then recompile the code branch corresponding to the obtained version information according to the modified configuration file pom.
  • the code branch corresponding to the version information can be flexibly obtained, so that the code branch can be pulled for testing when performing the full version coverage test, thereby further improving the testing efficiency.
  • the application further provides a computer readable storage medium having a test system stored thereon, the test system being implemented by a processor to implement the steps of the test method described above.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, 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)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present application relates to an electronic apparatus, a test method, a system and a storage medium. The test method comprises: in a pre-constructed Jekins environment, carrying out version classification on all service versions of each service type; when a full version coverage test instruction is received, extracting the version-classified service versions by utilizing a typical extraction manner, and establishing a rule table based on the extracted service versions; after a Jekins API service is established, reading the rule table based on a service type of the service so as to acquire the corresponding version information in the rule table; and acquiring the corresponding code branch according to the acquired version information, and executing a full version coverage test based on the acquired code branch. In the present application, a full coverage test is simulated, saving on both time and labor, and the test efficiency is improved.

Description

电子装置、测试方法、系统及存储介质Electronic device, test method, system and storage medium
优先权申明Priority claim
本申请基于巴黎公约申明享有2017年10月27日递交的申请号为CN201711023107.8、名称为“电子装置、测试方法及存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。The present application is based on the priority of the Chinese Patent Application entitled "Electronic Device, Test Method and Storage Medium", filed on October 27, 2017, with the application number of CN201711023107.8, the entire contents of which are hereby incorporated by reference. The way is combined in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种电子装置、测试方法、系统及存储介质。The present application relates to the field of communications technologies, and in particular, to an electronic device, a testing method, a system, and a storage medium.
背景技术Background technique
目前,APM(application performance monitor,应用性能相关的监测)产品及JAVA应用业务越来越丰富,在技术人员对APM产品或JAVA应用业务进行javaagent探针埋点开发时,需要进行服务版本测试。由于APM产品中的一个服务或者JAVA应用业务对应的客户端jar包有几十个版本,此外,一个项目的应用拓扑一般包括很多服务,提供给每个服务对应的jar包又包含多个版本,如果对所有的覆盖全服务的版本都测试,无疑费时费力,工作量大且效率低。At present, APM (application performance monitor) products and JAVA application services are becoming more and more abundant. When technicians conduct javaagent probe development on APM products or JAVA application services, service version testing is required. Since there are dozens of versions of the client jar package corresponding to one service or JAVA application service in the APM product, in addition, the application topology of a project generally includes many services, and the jar package corresponding to each service includes multiple versions. If you test all the full-service versions, it will be time-consuming, labor-intensive, and inefficient.
发明内容Summary of the invention
本申请的目的在于提供一种电子装置、测试方法、系统及存储介质,旨在提高测试效率。The purpose of the present application is to provide an electronic device, a test method, a system, and a storage medium, which are intended to improve test efficiency.
为实现上述目的,本申请提供一种电子装置,所述电子装置包括存储器及与所述存储器连接的处理器,所述存储器中存储有可在所述处理器上运行的测试系统,所述测试系统被所述处理器执行时实现如下步骤:To achieve the above object, the present application provides an electronic device including a memory and a processor coupled to the memory, wherein the memory stores a test system operable on the processor, the test The system implements the following steps when executed by the processor:
版本归类步骤,在预先构建的Jekins环境下,对每一服务类型的所有的 服务版本进行版本归类;Version categorization step, versioning all service versions of each service type in a pre-built Jekins environment;
规则表建立步骤,在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;The rule table establishing step is: when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
读取步骤,在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;a reading step, after the Jekins API service is established, reading the rule table based on the service type of the service, to obtain corresponding version information in the rule table;
版本测试步骤,根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。The version testing step acquires a corresponding code branch according to the obtained version information, and performs a full version coverage test based on the acquired code branch.
为实现上述目的,本申请还提供一种测试方法,所述测试方法包括:To achieve the above object, the present application further provides a testing method, the testing method comprising:
S1,在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;S1, versioning all the service versions of each service type in a pre-built Jekins environment;
S2,在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;S2, when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
S3,在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;S3, after the Jekins API service is established, the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table;
S4,根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。S4. Acquire a corresponding code branch according to the obtained version information, and perform a full version coverage test based on the acquired code branch.
为实现上述目的,本申请还提供一种测试系统,所述测试系统包括:To achieve the above object, the present application further provides a test system, the test system comprising:
归类模块,用于在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;A categorization module for categorizing all service versions of each service type in a pre-built Jekins environment;
建立模块,用于在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;Establishing a module, configured to extract a version of the service version after the version is extracted by using a typical extraction method, and establish a rule table based on the extracted service version;
读取模块,用于在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;a reading module, configured to: after the Jekins API service is established, read the rule table according to the service type of the service, to obtain corresponding version information in the rule table;
测试模块,用于根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。The testing module is configured to obtain a corresponding code branch according to the obtained version information, and perform a full version coverage test based on the acquired code branch.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有测试系统,所述测试系统被处理器执行时实现步骤:The application further provides a computer readable storage medium having a test system stored thereon, the test system being implemented by the processor to implement the steps:
在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;Version categorization of all service versions for each service type in a pre-built Jekins environment;
在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;When receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;After the Jekins API service is established, the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table;
根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。A corresponding code branch is obtained according to the obtained version information, and a full version version coverage test is performed based on the acquired code branch.
本申请的有益效果是:本申请对服务版本进行归类后,在接收到全量版本覆盖测试指令时,抽取归类后具有代表性的小部分服务版本建立规则表,基于该规则表获取对应的版本信息,最终获取版本信息对应的代码分支进行全量版本覆盖测试,本申请抽取具有代表性的小部分版本信息模拟全覆盖测试,省时省力,提高测试效率。The beneficial effects of the present application are as follows: after the service version is classified, when a full version coverage test command is received, a representative small service version creation rule table is obtained after the classification, and the corresponding rule is obtained based on the rule table. The version information finally obtains the code branch corresponding to the version information for the full version coverage test. This application extracts a representative small part version information to simulate the full coverage test, which saves time and effort and improves test efficiency.
附图说明DRAWINGS
图1为本申请电子装置一实施例的硬件架构的示意图;1 is a schematic diagram of a hardware architecture of an embodiment of an electronic device according to the present application;
图2为本申请测试方法一实施例的流程示意图。2 is a schematic flow chart of an embodiment of a test method of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施 例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present application are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. Nor is it within the scope of protection required by this application.
参阅图1所示,是本申请电子装置一实施例的硬件架构示意图,所述电子装置1是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。所述电子装置1可以是计算机、也可以是单个网络服务器、多个网络服务器组成的服务器组或者基于云计算的由大量主机或者网络服务器构成的云,其中云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。1 is a schematic diagram of a hardware architecture of an embodiment of an electronic device according to the present application. The electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance. The electronic device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud-based cloud composed of a large number of hosts or network servers, where cloud computing is a type of distributed computing. A super virtual computer consisting of a group of loosely coupled computers.
在本实施例中,电子装置1可包括,但不仅限于,可通过系统总线相互通信连接的存储器11、处理器12、网络接口13,存储器11存储有可在处理器12上运行的测试系统。需要指出的是,图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In the present embodiment, the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 communicably connected to each other through a system bus. The memory 11 stores a test system executable on the processor 12. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead.
其中,存储器11包括内存及至少一种类型的可读存储介质。内存为电子装置1的运行提供缓存;可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器 (EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等的非易失性存储介质。在一些实施例中,可读存储介质可以是电子装置1的内部存储单元,例如该电子装置1的硬盘;在另一些实施例中,该非易失性存储介质也可以是电子装置1的外部存储设备,例如电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。本实施例中,存储器11的可读存储介质通常用于存储安装电子装置1的操作系统和各类应用软件,例如存储本申请一实施例中的测试系统的程序代码等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the electronic device 1; the readable storage medium may be, for example, a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM). A non-volatile storage medium such as a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a programmable read only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, or the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be external to the electronic device 1. A storage device, such as a plug-in hard disk equipped with an electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like. In this embodiment, the readable storage medium of the memory 11 is generally used to store an operating system for installing the electronic device 1 and various types of application software, such as program code for storing the test system in an embodiment of the present application. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
所述处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述电子装置1的总体操作,例如执行与其他设备进行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器12用于运行所述存储器11中存储的程序代码或者处理数据,例如运行测试系统等。The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is configured to run program code or process data stored in the memory 11, such as running a test system or the like.
所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述电子装置1与其他电子设备之间建立通信连接。The network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
所述测试系统存储在存储器11中,包括至少一个存储在存储器11中的计算机可读指令,该至少一个计算机可读指令可被处理器器12执行,以实现本申请各实施例的方法;以及,该至少一个计算机可读指令依据其各部分所实现的功能不同,可被划为不同的逻辑模块。The test system is stored in the memory 11 and includes at least one computer readable instruction stored in the memory 11, the at least one computer readable instruction being executable by the processor 12 to implement the methods of various embodiments of the present application; The at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
在一实施例中,上述测试系统被所述处理器12执行时实现如下步骤:In an embodiment, the above test system is implemented by the processor 12 to implement the following steps:
版本归类步骤,在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;Version categorization step, versioning all versions of services for each service type in a pre-built Jekins environment;
本实施例中,可预先构建可以自动化测试的Jekins环境,对每一服务类型的所有的服务版本进行版本归类,该服务版本包括各个服务类型对应的所 有jar包的版本,服务类型包括mysql服务、redis服务等。In this embodiment, the Jekins environment that can be automatically tested can be pre-built, and all service versions of each service type are versioned, and the service version includes versions of all jar packages corresponding to each service type, and the service type includes the mysql service. , redis services, etc.
优选地,对服务版本进行版本归类包括:将属于同一个大版本的服务版本归为同一类,将属于同一类大版本中的小版本按照版本号的先后顺序进行排列。例如有大版本为:v1.xx、v2.xx、v3.xx,则将属于大版本v1的所有服务版本归为同一类,将属于大版本v2所有的服务版本归为同一类,将属于大版本v3所有的服务版本归为同一类,然后,对于同一类大版本下的小版本,例如大本版v1.xx下的所有小版本为:v1.0.1、v1.0.5、v1.0.3,则将小版本按照版本号的先后顺序进行排列、存储,排列后的小版本为v1.0.1、v1.0.3、v1.0.5。Preferably, the version categorization of the service version includes: classifying the service versions belonging to the same large version into the same class, and arranging the small versions belonging to the same large version in the order of the version numbers. For example, if there are large versions: v1.xx, v2.xx, v3.xx, all service versions belonging to the large version v1 are classified into the same class, and all service versions belonging to the large version v2 are classified into the same class, which will belong to the same category. All service versions of version v3 are classified into the same class. Then, for small versions under the same major version, for example, all minor versions under the large version of v1.xx are: v1.0.1, v1.0.5, v1.0.3, then The small versions are arranged and stored according to the order of the version numbers, and the smaller versions are v1.0.1, v1.0.3, v1.0.5.
规则表建立步骤,在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;The rule table establishing step is: when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
在进行全量版本覆盖测试时,即在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本。优选地,典型抽取的方式为抽取属于同一类大版本中的服务版本的第一个小版本及最后一个小版本,并基于预定的抽取规则抽取第一个小版本与最后一个小版本之间的一个小版本;基于在属于同一类大版本的服务版本中所抽取的小版本建立规则表。When the full version coverage test is performed, that is, when the full version coverage test command is received, the version of the service version after the version is extracted is extracted by a typical extraction method. Preferably, the typical extraction method is to extract the first minor version and the last minor version of the service version belonging to the same major version, and extract between the first minor version and the last minor version based on the predetermined extraction rule. A small version; builds a rules table based on the minor versions extracted from the service versions that belong to the same major version.
在一实施例中,典型抽取的方式为二分法的抽取方式,例如一服务版本的大版本为v1.x,大版本v1.x下的最小版本为v1.0.1、最大版本为v1.0.5、中间版本为v1.0.3,则对于大版本v1.x,抽取最小版本v1.0.1、最大版本v1.0.5及中间版本v1.0.3。In an embodiment, the typical extraction method is a dichotomy method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5. The intermediate version is v1.0.3, and for the large version v1.x, the minimum version v1.0.1, the maximum version v1.0.5, and the intermediate version v1.0.3 are extracted.
在其他实施例中,典型抽取的方式为类似二分法的抽取方式,例如一服务版本的大版本为v1.x,大版本v1.x下的最小版本为v1.0.1、最大版本为v1.0.5,则对于大版本v1.x,抽取最小版本v1.0.1、最大版本v1.0.5及中间的任意一个版本,优选地,抽取中间转折性最大的小版本或者预定的小版本。In other embodiments, the typical extraction method is a dichotomy-like extraction method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5. For the large version v1.x, the minimum version v1.0.1, the maximum version v1.0.5, and any version in the middle are extracted. Preferably, the smaller or the smaller version with the largest intermediate transition is extracted.
其他的服务版本同样采用上述的抽取方式,此处不再一一举例说明。Other service versions also use the above extraction methods, and are not illustrated here.
为了方便后续的测试,本实施例还将所抽取的服务版本建立规则表。在一实施例中,建立的规则表如下表1所示:In order to facilitate subsequent testing, the embodiment also establishes a rule table for the extracted service version. In an embodiment, the established rules table is as shown in Table 1 below:
IDID groupIdgroupId artifactIdartifactId min_versionMin_version max_versionMax_version random_versionRandom_version
v2.0V2.0 mysqlMysql Mysql-connector-javaMysql-connector-java v2.0.14V2.0.14 v2.0.14V2.0.14
v3.0V3.0 mysqlMysql Mysql-connector-javaMysql-connector-java v3.0.8V3.0.8 v3.1.14V3.1.14
v5.0V5.0 mysqlMysql Mysql-connector-javaMysql-connector-java v5.0.2V5.0.2 v5.1.42V5.1.42 v5.1.21V5.1.21
表1Table 1
其中,规则表总共设定6个字段:ID为大版本号,groupId及artifactId分别对应软件项目管理和综合工具maven的groupId及artifactId内容,min_version及max_version分别为大版本下的最小版本和最大版本,例如为大版本v3.0下的最小版本v3.0.8和最大版本v3.1.14。The rule table has a total of six fields: the ID is a large version number, the groupId and the artifactId respectively correspond to the groupId and artifactId contents of the software project management and synthesis tool maven, and the min_version and max_version are respectively the minimum version and the maximum version under the large version. For example, the minimum version v3.0.8 and the largest version v3.1.14 under the large version v3.0.
读取步骤,在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;a reading step, after the Jekins API service is established, reading the rule table based on the service type of the service, to obtain corresponding version information in the rule table;
本实施例中,在建立Jekins API服务后,若为该服务为mysql服务,则读取规则表中的mysql服务对应的版本信息,若为其他的服务,则读取得到其他的服务对应的版本信息,如上表1所示,读取得到的mysql服务的版本信息包括:mysql服务的大版本v2.0、v3.0及v5.0、每一大版本的groupId及artifactId、最小版本v2.0.14、v3.0.8及v5.0.2、最大版本v2.0.14、v3.1.14及v5.1.42、中间版本v5.1.21。In this embodiment, after the Jekins API service is established, if the service is a mysql service, the version information corresponding to the mysql service in the rule table is read, and if it is another service, the version corresponding to the other service is read. The information, as shown in Table 1 above, reads the version information of the mysql service including: large version of mysql service v2.0, v3.0 and v5.0, groupId and artifactId of each major version, minimum version v2.0.14 , v3.0.8 and v5.0.2, maximum version v2.0.14, v3.1.14 and v5.1.42, intermediate version v5.1.21.
版本测试步骤,根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。The version testing step acquires a corresponding code branch according to the obtained version information, and performs a full version coverage test based on the acquired code branch.
本实施例中,可以在代码库中预先创建了每一服务版本的代码分支,在获取版本信息后,可以根据版本信息获取代码库中对应的代码分支,例如分别获取大版本v3.0下的小版本v3.0.8及v3.1.14对应的代码分支,然后利用所获取的代码分支执行全量版本覆盖测试,或者通过重新编译版本信息对应 的代码分支,基于该代码分支执行全量版本覆盖测试。In this embodiment, the code branch of each service version may be pre-created in the code base. After obtaining the version information, the corresponding code branch in the code base may be obtained according to the version information, for example, obtaining the large version v3.0 respectively. The small version v3.0.8 and v3.1.14 correspond to the code branch, and then use the obtained code branch to execute the full version coverage test, or by recompiling the code branch corresponding to the version information, and execute the full version coverage test based on the code branch.
与现有技术相比,本实施例对服务版本进行归类后,在接收到全量版本覆盖测试指令时,抽取归类后具有代表性的小部分服务版本建立规则表,基于该规则表获取对应的版本信息,最终获取版本信息对应的代码分支进行全量版本覆盖测试,本实施例抽取具有代表性的小部分版本信息模拟全覆盖测试,省时省力,测试效率高。Compared with the prior art, after the service version is classified, the embodiment extracts a representative partial service version establishment rule table after the classification is received, and obtains a corresponding rule based on the rule table. The version information is obtained by the code branch corresponding to the version information, and the full version coverage test is performed. This embodiment extracts a representative small part version information to simulate the full coverage test, which saves time and labor and has high test efficiency.
在一优选的实施例中,在上述图1的实施例的基础上,所述根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试的步骤,具体包括:In a preferred embodiment, on the basis of the foregoing embodiment of FIG. 1, the step of acquiring a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch, specifically includes:
分析代码库中是否已构建有所获取的版本信息对应的代码分支;Analyze whether the code branch corresponding to the obtained version information has been constructed in the code base;
若是,则拉取代码库中所获取的版本信息对应的代码分支;If yes, the code branch corresponding to the version information obtained in the code base is pulled;
若否,则修改配置文件pom中的依赖版本信息,以基于修改后的配置文件pom重新编译所获取的版本信息对应的代码分支;If not, modifying the dependent version information in the configuration file pom to recompile the code branch corresponding to the obtained version information based on the modified configuration file pom;
调用Jekins环境中的相关组件构建所述代码分支的版本打包任务,通过Jekins插件将打包后的代码分支上传到ftp目录中,以在执行全量版本覆盖测试时从所述ftp目录中拉取代码分支进行测试。Calling the relevant component in the Jekins environment to build the version packaging task of the code branch, uploading the packaged code branch to the ftp directory through the Jekins plugin to pull the code branch from the ftp directory when performing the full version coverage test carry out testing.
本实施例中,如果代码库中已经预先构建有所获取的版本信息对应的代码分支,则可以直接拉取代码库中对应的代码分支;如果代码库中没有预先构建所获取的版本信息对应的代码分支,则需要修改配置文件pom中的依赖版本信息,然后根据修改后的配置文件pom重新编译所获取的版本信息对应的代码分支。In this embodiment, if the code branch corresponding to the obtained version information is pre-built in the code library, the corresponding code branch in the code library may be directly pulled; if the version information corresponding to the obtained version information is not pre-built in the code library, The code branch needs to modify the dependent version information in the configuration file pom, and then recompile the code branch corresponding to the obtained version information according to the modified configuration file pom.
本实施例可以灵活地获取版本信息对应的代码分支,方便在执行全量版本覆盖测试时拉取代码分支进行测试,进一步提高测试的效率。In this embodiment, the code branch corresponding to the version information can be flexibly obtained, so that the code branch can be pulled for testing when performing the full version coverage test, thereby further improving the testing efficiency.
如图2所示,图2为本申请测试方法一实施例的流程示意图,该测试方法包括以下步骤:As shown in FIG. 2, FIG. 2 is a schematic flowchart of an embodiment of a test method according to the present application, where the test method includes the following steps:
步骤S1,在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;Step S1, versioning all the service versions of each service type in a pre-built Jekins environment;
本实施例中,可预先构建可以自动化测试的Jekins环境,对每一服务类型的所有的服务版本进行版本归类,该服务版本包括各个服务类型对应的所有jar包的版本,服务类型包括mysql服务、redis服务等。In this embodiment, the Jekins environment that can be automatically tested can be pre-built, and all service versions of each service type are versioned, and the service version includes versions of all jar packages corresponding to each service type, and the service type includes the mysql service. , redis services, etc.
优选地,对服务版本进行版本归类包括:将属于同一个大版本的服务版本归为同一类,将属于同一类大版本中的小版本按照版本号的先后顺序进行排列。例如有大版本为:v1.xx、v2.xx、v3.xx,则将属于大版本v1的所有服务版本归为同一类,将属于大版本v2所有的服务版本归为同一类,将属于大版本v3所有的服务版本归为同一类,然后,对于同一类大版本下的小版本,例如大本版v1.xx下的所有小版本为:v1.0.1、v1.0.5、v1.0.3,则将小版本按照版本号的先后顺序进行排列、存储,排列后的小版本为v1.0.1、v1.0.3、v1.0.5。Preferably, the version categorization of the service version includes: classifying the service versions belonging to the same large version into the same class, and arranging the small versions belonging to the same large version in the order of the version numbers. For example, if there are large versions: v1.xx, v2.xx, v3.xx, all service versions belonging to the large version v1 are classified into the same class, and all service versions belonging to the large version v2 are classified into the same class, which will belong to the same category. All service versions of version v3 are classified into the same class. Then, for small versions under the same major version, for example, all minor versions under the large version of v1.xx are: v1.0.1, v1.0.5, v1.0.3, then The small versions are arranged and stored according to the order of the version numbers, and the smaller versions are v1.0.1, v1.0.3, v1.0.5.
步骤S2,在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;Step S2, when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
在进行全量版本覆盖测试时,即在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本。优选地,典型抽取的方式为抽取属于同一类大版本中的服务版本的第一个小版本及最后一个小版本,并基于预定的抽取规则抽取第一个小版本与最后一个小版本之间的一个小版本;基于在属于同一类大版本的服务版本中所抽取的小版本建立规则表。When the full version coverage test is performed, that is, when the full version coverage test command is received, the version of the service version after the version is extracted is extracted by a typical extraction method. Preferably, the typical extraction method is to extract the first minor version and the last minor version of the service version belonging to the same major version, and extract between the first minor version and the last minor version based on the predetermined extraction rule. A small version; builds a rules table based on the minor versions extracted from the service versions that belong to the same major version.
在一实施例中,典型抽取的方式为二分法的抽取方式,例如一服务版本的大版本为v1.x,大版本v1.x下的最小版本为v1.0.1、最大版本为v1.0.5、中间版本为v1.0.3,则对于大版本v1.x,抽取最小版本v1.0.1、最大版本v1.0.5 及中间版本v1.0.3。In an embodiment, the typical extraction method is a dichotomy method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5. The intermediate version is v1.0.3, and for the large version v1.x, the minimum version v1.0.1, the maximum version v1.0.5, and the intermediate version v1.0.3 are extracted.
在其他实施例中,典型抽取的方式为类似二分法的抽取方式,例如一服务版本的大版本为v1.x,大版本v1.x下的最小版本为v1.0.1、最大版本为v1.0.5,则对于大版本v1.x,抽取最小版本v1.0.1、最大版本v1.0.5及中间的任意一个版本,优选地,抽取中间转折性最大的小版本或者预定的小版本。In other embodiments, the typical extraction method is a dichotomy-like extraction method, for example, a large version of a service version is v1.x, a minimum version of a large version v1.x is v1.0.1, and a maximum version is v1.0.5. For the large version v1.x, the minimum version v1.0.1, the maximum version v1.0.5, and any version in the middle are extracted. Preferably, the smaller or the smaller version with the largest intermediate transition is extracted.
其他的服务版本同样采用上述的抽取方式,此处不再一一举例说明。Other service versions also use the above extraction methods, and are not illustrated here.
为了方便后续的测试,本实施例还将所抽取的服务版本建立规则表。在一实施例中,建立的规则表如上述表1所示。In order to facilitate subsequent testing, the embodiment also establishes a rule table for the extracted service version. In an embodiment, the established rules table is as shown in Table 1 above.
其中,规则表总共设定6个字段:ID为大版本号,groupId及artifactId分别对应软件项目管理和综合工具maven的groupId及artifactId内容,min_version及max_version分别为大版本下的最小版本和最大版本,例如为大版本v3.0下的最小版本v3.0.8和最大版本v3.1.14。The rule table has a total of six fields: the ID is a large version number, the groupId and the artifactId respectively correspond to the groupId and artifactId contents of the software project management and synthesis tool maven, and the min_version and max_version are respectively the minimum version and the maximum version under the large version. For example, the minimum version v3.0.8 and the largest version v3.1.14 under the large version v3.0.
步骤S3,在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;Step S3, after the Jekens API service is established, the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table.
本实施例中,在建立Jekins API服务后,若为该服务为mysql服务,则读取规则表中的mysql服务对应的版本信息,若为其他的服务,则读取得到其他的服务对应的版本信息,如上表1所示,读取得到的mysql服务的版本信息包括:mysql服务的大版本v2.0、v3.0及v5.0、每一大版本的groupId及artifactId、最小版本v2.0.14、v3.0.8及v5.0.2、最大版本v2.0.14、v3.1.14及v5.1.42、中间版本v5.1.21。In this embodiment, after the Jekins API service is established, if the service is a mysql service, the version information corresponding to the mysql service in the rule table is read, and if it is another service, the version corresponding to the other service is read. The information, as shown in Table 1 above, reads the version information of the mysql service including: large version of mysql service v2.0, v3.0 and v5.0, groupId and artifactId of each major version, minimum version v2.0.14 , v3.0.8 and v5.0.2, maximum version v2.0.14, v3.1.14 and v5.1.42, intermediate version v5.1.21.
步骤S4,根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。Step S4: Acquire a corresponding code branch according to the obtained version information, and perform a full version version coverage test based on the acquired code branch.
本实施例中,可以在代码库中预先创建了每一服务版本的代码分支,在获取版本信息后,可以根据版本信息获取代码库中对应的代码分支,例如分别获取大版本v3.0下的小版本v3.0.8及v3.1.14对应的代码分支,然后利用 所获取的代码分支执行全量版本覆盖测试,或者通过重新编译版本信息对应的代码分支,基于该代码分支执行全量版本覆盖测试。In this embodiment, the code branch of each service version may be pre-created in the code base. After obtaining the version information, the corresponding code branch in the code base may be obtained according to the version information, for example, obtaining the large version v3.0 respectively. The small version v3.0.8 and v3.1.14 correspond to the code branch, and then use the obtained code branch to execute the full version coverage test, or by recompiling the code branch corresponding to the version information, and execute the full version coverage test based on the code branch.
与现有技术相比,本实施例对服务版本进行归类后,在接收到全量版本覆盖测试指令时,抽取归类后具有代表性的小部分服务版本建立规则表,基于该规则表获取对应的版本信息,最终获取版本信息对应的代码分支进行全量版本覆盖测试,本实施例抽取具有代表性的小部分版本信息模拟全覆盖测试,省时省力,测试效率高。Compared with the prior art, after the service version is classified, the embodiment extracts a representative partial service version establishment rule table after the classification is received, and obtains a corresponding rule based on the rule table. The version information is obtained by the code branch corresponding to the version information, and the full version coverage test is performed. This embodiment extracts a representative small part version information to simulate the full coverage test, which saves time and labor and has high test efficiency.
在一优选的实施例中,在上述图2的实施例的基础上,所述根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试的步骤,具体包括:In a preferred embodiment, on the basis of the foregoing embodiment of FIG. 2, the step of acquiring a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch, specifically includes:
分析代码库中是否已构建有所获取的版本信息对应的代码分支;Analyze whether the code branch corresponding to the obtained version information has been constructed in the code base;
若是,则拉取代码库中所获取的版本信息对应的代码分支;If yes, the code branch corresponding to the version information obtained in the code base is pulled;
若否,则修改配置文件pom中的依赖版本信息,以基于修改后的配置文件pom重新编译所获取的版本信息对应的代码分支;If not, modifying the dependent version information in the configuration file pom to recompile the code branch corresponding to the obtained version information based on the modified configuration file pom;
调用Jekins环境中的相关组件构建所述代码分支的版本打包任务,通过Jekins插件将打包后的代码分支上传到ftp目录中,以在执行全量版本覆盖测试时从所述ftp目录中拉取代码分支进行测试。Calling the relevant component in the Jekins environment to build the version packaging task of the code branch, uploading the packaged code branch to the ftp directory through the Jekins plugin to pull the code branch from the ftp directory when performing the full version coverage test carry out testing.
本实施例中,如果代码库中已经预先构建有所获取的版本信息对应的代码分支,则可以直接拉取代码库中对应的代码分支;如果代码库中没有预先构建所获取的版本信息对应的代码分支,则需要修改配置文件pom中的依赖版本信息,然后根据修改后的配置文件pom重新编译所获取的版本信息对应的代码分支。In this embodiment, if the code branch corresponding to the obtained version information is pre-built in the code library, the corresponding code branch in the code library may be directly pulled; if the version information corresponding to the obtained version information is not pre-built in the code library, The code branch needs to modify the dependent version information in the configuration file pom, and then recompile the code branch corresponding to the obtained version information according to the modified configuration file pom.
本实施例可以灵活地获取版本信息对应的代码分支,方便在执行全量版本覆盖测试时拉取代码分支进行测试,进一步提高测试的效率。In this embodiment, the code branch corresponding to the version information can be flexibly obtained, so that the code branch can be pulled for testing when performing the full version coverage test, thereby further improving the testing efficiency.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有测试系统,所述测试系统被处理器执行时实现上述的测试方法的步骤。The application further provides a computer readable storage medium having a test system stored thereon, the test system being implemented by a processor to implement the steps of the test method described above.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, 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.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器及与所述存储器连接的处理器,所述存储器中存储有可在所述处理器上运行的测试系统,所述测试系统被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory and a processor coupled to the memory, wherein the memory stores a test system operable on the processor, the test system being The processor implements the following steps when it executes:
    版本归类步骤,在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;Version categorization step, versioning all versions of services for each service type in a pre-built Jekins environment;
    规则表建立步骤,在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;The rule table establishing step is: when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
    读取步骤,在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;a reading step, after the Jekins API service is established, reading the rule table based on the service type of the service, to obtain corresponding version information in the rule table;
    版本测试步骤,根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。The version testing step acquires a corresponding code branch according to the obtained version information, and performs a full version coverage test based on the acquired code branch.
  2. 根据权利要求1所述的电子装置,其特征在于,所述对每一服务类型的所有的服务版本进行版本归类的步骤,具体包括:将属于同一个大版本的服务版本归为同一类,将属于同一类大版本中的小版本按照版本号的先后顺序进行排列。The electronic device according to claim 1, wherein the step of classifying all the service versions of each service type comprises: classifying the service versions belonging to the same large version into the same class. The minor versions belonging to the same large version are arranged in the order of the version number.
  3. 根据权利要求1或2所述的电子装置,其特征在于,所述利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表的步骤,具体包括:The electronic device according to claim 1 or 2, wherein the step of extracting the versioned service version by using a typical extraction method, and establishing a rule table based on the extracted service version, specifically includes:
    抽取属于同一类大版本中的服务版本的第一个小版本及最后一个小版本,并基于预定的抽取规则抽取第一个小版本与最后一个小版本之间的一个小版本;Extracting the first minor version and the last minor version of the service version belonging to the same major version, and extracting a small version between the first minor version and the last minor version based on the predetermined extraction rule;
    基于在属于同一类大版本的服务版本中所抽取的小版本建立规则表。A rule table is created based on the minor version extracted in the service version belonging to the same major version.
  4. 根据权利要求3所述的电子装置,其特征在于,所述预定的抽取规则包括:抽取位于所述第一个小版本与最后一个小版本之间转折性最大的一个 小版本,或者,抽取位于所述第一个小版本与最后一个小版本之间预定的一个小版本。The electronic device according to claim 3, wherein the predetermined extraction rule comprises: extracting a small version having the largest transition between the first small version and the last small version, or extracting the located A small version scheduled between the first minor version and the last minor version.
  5. 根据权利要求3所述的电子装置,其特征在于,所述根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试的步骤,具体包括:The electronic device according to claim 3, wherein the step of acquiring a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch, specifically includes:
    分析代码库中是否已构建有所获取的版本信息对应的代码分支;Analyze whether the code branch corresponding to the obtained version information has been constructed in the code base;
    若是,则拉取代码库中所获取的版本信息对应的代码分支;If yes, the code branch corresponding to the version information obtained in the code base is pulled;
    若否,则修改配置文件pom中的依赖版本信息,以基于修改后的配置文件pom重新编译所获取的版本信息对应的代码分支;If not, modifying the dependent version information in the configuration file pom to recompile the code branch corresponding to the obtained version information based on the modified configuration file pom;
    调用Jekins环境中的相关组件构建所述代码分支的版本打包任务,通过Jekins插件将打包后的代码分支上传到ftp目录中,以在执行全量版本覆盖测试时从所述ftp目录中拉取代码分支进行测试。Calling the relevant component in the Jekins environment to build the version packaging task of the code branch, uploading the packaged code branch to the ftp directory through the Jekins plugin to pull the code branch from the ftp directory when performing the full version coverage test carry out testing.
  6. 一种测试方法,其特征在于,所述测试方法包括:A test method, characterized in that the test method comprises:
    S1,在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;S1, versioning all the service versions of each service type in a pre-built Jekins environment;
    S2,在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;S2, when receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
    S3,在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;S3, after the Jekins API service is established, the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table;
    S4,根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。S4. Acquire a corresponding code branch according to the obtained version information, and perform a full version coverage test based on the acquired code branch.
  7. 根据权利要求6所述的测试方法,其特征在于,所述对每一服务类型的所有的服务版本进行版本归类的步骤,具体包括:将属于同一个大版本的服务版本归为同一类,将属于同一类大版本中的小版本按照版本号的先后顺序进行排列。The testing method according to claim 6, wherein the step of classifying all the service versions of each service type comprises: classifying the service versions belonging to the same large version into the same class. The minor versions belonging to the same large version are arranged in the order of the version number.
  8. 根据权利要求6或7所述的测试方法,其特征在于,所述利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表的步骤,具体包括:The testing method according to claim 6 or 7, wherein the step of extracting the version of the service version by using the typical extraction method, and establishing the rule table based on the extracted service version, specifically includes:
    抽取属于同一类大版本中的服务版本的第一个小版本及最后一个小版本,并基于预定的抽取规则抽取第一个小版本与最后一个小版本之间的一个小版本;Extracting the first minor version and the last minor version of the service version belonging to the same major version, and extracting a small version between the first minor version and the last minor version based on the predetermined extraction rule;
    基于在属于同一类大版本的服务版本中所抽取的小版本建立规则表。A rule table is created based on the minor version extracted in the service version belonging to the same major version.
  9. 根据权利要求8所述的测试方法,其特征在于,所述预定的抽取规则包括:抽取位于所述第一个小版本与最后一个小版本之间转折性最大的一个小版本,或者,抽取位于所述第一个小版本与最后一个小版本之间预定的一个小版本。The testing method according to claim 8, wherein the predetermined extraction rule comprises: extracting a small version having the greatest transition between the first small version and the last small version, or extracting the located A small version scheduled between the first minor version and the last minor version.
  10. 根据权利要求8所述的测试方法,其特征在于,所述根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试的步骤,具体包括:The test method according to claim 8, wherein the step of acquiring a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch, specifically includes:
    分析代码库中是否已构建有所获取的版本信息对应的代码分支;Analyze whether the code branch corresponding to the obtained version information has been constructed in the code base;
    若是,则拉取代码库中所获取的版本信息对应的代码分支;If yes, the code branch corresponding to the version information obtained in the code base is pulled;
    若否,则修改配置文件pom中的依赖版本信息,以基于修改后的配置文件pom重新编译所获取的版本信息对应的代码分支;If not, modifying the dependent version information in the configuration file pom to recompile the code branch corresponding to the obtained version information based on the modified configuration file pom;
    调用Jekins环境中的相关组件构建所述代码分支的版本打包任务,通过Jekins插件将打包后的代码分支上传到ftp目录中,以在执行全量版本覆盖测试时从所述ftp目录中拉取代码分支进行测试。Calling the relevant component in the Jekins environment to build the version packaging task of the code branch, uploading the packaged code branch to the ftp directory through the Jekins plugin to pull the code branch from the ftp directory when performing the full version coverage test carry out testing.
  11. 一种测试系统,其特征在于,所述测试系统包括:A test system, characterized in that the test system comprises:
    归类模块,用于在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;A categorization module for categorizing all service versions of each service type in a pre-built Jekins environment;
    建立模块,用于在接收到全量版本覆盖测试指令时,利用典型抽取的方 式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;Establishing a module, when receiving the full version coverage test command, extracting the version of the service class after the version is extracted by using a typical extraction manner, and establishing a rule table based on the extracted service version;
    读取模块,用于在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;a reading module, configured to: after the Jekins API service is established, read the rule table according to the service type of the service, to obtain corresponding version information in the rule table;
    测试模块,用于根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。The testing module is configured to obtain a corresponding code branch according to the obtained version information, and perform a full version coverage test based on the acquired code branch.
  12. 根据权利要求11所述的测试系统,其特征在于,所述归类模块,具体用于将属于同一个大版本的服务版本归为同一类,将属于同一类大版本中的小版本按照版本号的先后顺序进行排列。The test system according to claim 11, wherein the categorization module is specifically configured to classify service versions belonging to the same large version into the same class, and to reduce the minor versions belonging to the same large version according to the version number. The order of the order is arranged.
  13. 根据权利要求11或12所述的测试系统,其特征在于,所述建立模块,具体用于抽取属于同一类大版本中的服务版本的第一个小版本及最后一个小版本,并基于预定的抽取规则抽取第一个小版本与最后一个小版本之间的一个小版本;基于在属于同一类大版本的服务版本中所抽取的小版本建立规则表。The test system according to claim 11 or 12, wherein the establishing module is specifically configured to extract the first minor version and the last minor version of the service version belonging to the same major version, and based on the predetermined The extraction rule extracts a small version between the first minor version and the last minor version; the rules table is built based on the minor version extracted in the service version belonging to the same major version.
  14. 根据权利要求13所述的测试系统,其特征在于,所述预定的抽取规则包括:抽取位于所述第一个小版本与最后一个小版本之间转折性最大的一个小版本,或者,抽取位于所述第一个小版本与最后一个小版本之间预定的一个小版本。The test system according to claim 13, wherein said predetermined extraction rule comprises: extracting a small version having the greatest transition between said first small version and a last small version, or extracting is located A small version scheduled between the first minor version and the last minor version.
  15. 根据权利要求13所述的测试系统,其特征在于,所述测试模块,具体用于分析代码库中是否已构建有所获取的版本信息对应的代码分支;若是,则拉取代码库中所获取的版本信息对应的代码分支;若否,则修改配置文件pom中的依赖版本信息,以基于修改后的配置文件pom重新编译所获取的版本信息对应的代码分支;调用Jekins环境中的相关组件构建所述代码分支的版本打包任务,通过Jekins插件将打包后的代码分支上传到ftp目录中,以在执行全量版本覆盖测试时从所述ftp目录中拉取代码分支进行测试。The test system according to claim 13, wherein the test module is specifically configured to analyze whether a code branch corresponding to the obtained version information has been constructed in the code base; if yes, the obtained code library obtains The code branch corresponding to the version information; if not, modify the dependent version information in the configuration file pom to recompile the code branch corresponding to the obtained version information based on the modified configuration file pom; call related components in the Jekins environment to build The version packaging task of the code branch uploads the packaged code branch to the ftp directory through the Jekins plugin to pull the code branch from the ftp directory for testing when performing the full version coverage test.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上 存储有测试系统,所述测试系统被处理器执行时实现步骤:A computer readable storage medium, wherein the computer readable storage medium stores a test system, and when the test system is executed by the processor, the steps are implemented:
    在预先构建的Jekins环境下,对每一服务类型的所有的服务版本进行版本归类;Version categorization of all service versions for each service type in a pre-built Jekins environment;
    在接收到全量版本覆盖测试指令时,利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表;When receiving the full version coverage test command, extracting the versioned service version by using a typical extraction manner, and establishing a rule table based on the extracted service version;
    在建立Jekins API服务后,基于该服务的服务类型读取所述规则表,以获取所述规则表中对应的版本信息;After the Jekins API service is established, the rule table is read based on the service type of the service, to obtain corresponding version information in the rule table;
    根据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试。A corresponding code branch is obtained according to the obtained version information, and a full version version coverage test is performed based on the acquired code branch.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述对每一服务类型的所有的服务版本进行版本归类的步骤,具体包括:将属于同一个大版本的服务版本归为同一类,将属于同一类大版本中的小版本按照版本号的先后顺序进行排列。The computer readable storage medium according to claim 16, wherein the step of classifying all the service versions of each service type comprises: classifying the service versions belonging to the same large version as In the same category, the minor versions that belong to the same large version are arranged in the order of the version number.
  18. 根据权利要求16或17所述的计算机可读存储介质,其特征在于,所述利用典型抽取的方式抽取版本归类后的服务版本,基于所抽取的服务版本建立规则表的步骤,具体包括:The computer readable storage medium according to claim 16 or 17, wherein the step of extracting the versioned service version by using a typical extraction method, and establishing a rule table based on the extracted service version, specifically includes:
    抽取属于同一类大版本中的服务版本的第一个小版本及最后一个小版本,并基于预定的抽取规则抽取第一个小版本与最后一个小版本之间的一个小版本;Extracting the first minor version and the last minor version of the service version belonging to the same major version, and extracting a small version between the first minor version and the last minor version based on the predetermined extraction rule;
    基于在属于同一类大版本的服务版本中所抽取的小版本建立规则表。A rule table is created based on the minor version extracted in the service version belonging to the same major version.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述预定的抽取规则包括:抽取位于所述第一个小版本与最后一个小版本之间转折性最大的一个小版本,或者,抽取位于所述第一个小版本与最后一个小版本之间预定的一个小版本。The computer readable storage medium according to claim 18, wherein said predetermined extraction rule comprises: extracting a small version having the greatest transition between said first small version and a last small version, or , extracting a small version scheduled between the first minor version and the last minor version.
  20. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述根 据所获取的版本信息获取对应的代码分支,基于所获取的代码分支执行全量版本覆盖测试的步骤,具体包括:The computer readable storage medium according to claim 18, wherein the step of obtaining a corresponding code branch according to the obtained version information, and performing a full version version coverage test based on the acquired code branch, specifically includes:
    分析代码库中是否已构建有所获取的版本信息对应的代码分支;Analyze whether the code branch corresponding to the obtained version information has been constructed in the code base;
    若是,则拉取代码库中所获取的版本信息对应的代码分支;If yes, the code branch corresponding to the version information obtained in the code base is pulled;
    若否,则修改配置文件pom中的依赖版本信息,以基于修改后的配置文件pom重新编译所获取的版本信息对应的代码分支;If not, modifying the dependent version information in the configuration file pom to recompile the code branch corresponding to the obtained version information based on the modified configuration file pom;
    调用Jekins环境中的相关组件构建所述代码分支的版本打包任务,通过Jekins插件将打包后的代码分支上传到ftp目录中,以在执行全量版本覆盖测试时从所述ftp目录中拉取代码分支进行测试。Calling the relevant component in the Jekins environment to build the version packaging task of the code branch, uploading the packaged code branch to the ftp directory through the Jekins plugin to pull the code branch from the ftp directory when performing the full version coverage test carry out testing.
PCT/CN2018/077624 2017-10-27 2018-02-28 Electronic apparatus, test method, system and storage medium WO2019080426A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711023107.8 2017-10-27
CN201711023107.8A CN108415825B (en) 2017-10-27 2017-10-27 Electronic device, test method, and storage medium

Publications (1)

Publication Number Publication Date
WO2019080426A1 true WO2019080426A1 (en) 2019-05-02

Family

ID=63125230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077624 WO2019080426A1 (en) 2017-10-27 2018-02-28 Electronic apparatus, test method, system and storage medium

Country Status (2)

Country Link
CN (1) CN108415825B (en)
WO (1) WO2019080426A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273940B (en) * 2018-12-05 2024-04-05 三六零科技集团有限公司 Method and device for uploading program file to code warehouse

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521608A (en) * 2009-01-22 2009-09-02 厦门东南融通系统工程有限公司 Method for edition management of test case
US9176851B2 (en) * 2008-02-07 2015-11-03 Oracle International Corporation Utilizing intelligent automated scripts to test software applications
CN106155885A (en) * 2015-03-31 2016-11-23 展讯通信(上海)有限公司 A kind of full-automatic test system and method for testing
CN106294150A (en) * 2016-08-09 2017-01-04 北京神州绿盟信息安全科技股份有限公司 A kind of test loading method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246600B (en) * 2012-02-10 2016-04-06 广州博纳信息技术有限公司 Software test and appraisal fast calibration method
CN104572473B (en) * 2015-01-29 2017-06-20 无锡江南计算技术研究所 Support the Web application compatibility test methods of polymorphic type and multi version browser
US9355018B1 (en) * 2015-08-12 2016-05-31 Red Hat Israel, Ltd. History N-section for property location
CN107145438A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 Code test method, code tester device and code tester system
CN105868101B (en) * 2016-03-22 2018-11-09 深圳市鼎阳科技有限公司 A kind of method for testing software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9176851B2 (en) * 2008-02-07 2015-11-03 Oracle International Corporation Utilizing intelligent automated scripts to test software applications
CN101521608A (en) * 2009-01-22 2009-09-02 厦门东南融通系统工程有限公司 Method for edition management of test case
CN106155885A (en) * 2015-03-31 2016-11-23 展讯通信(上海)有限公司 A kind of full-automatic test system and method for testing
CN106294150A (en) * 2016-08-09 2017-01-04 北京神州绿盟信息安全科技股份有限公司 A kind of test loading method and device

Also Published As

Publication number Publication date
CN108415825B (en) 2021-01-19
CN108415825A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
US11048492B2 (en) Reducing downtime while patching binaries on a cluster
US10042744B2 (en) Adopting an existing automation script to a new framework
CN109408393A (en) Application testing method, device and equipment and computer readable storage medium
WO2020010724A1 (en) Front-end static resource management method, apparatus, computer device and storage medium
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN110795331A (en) Software testing method and device
US9716625B2 (en) Identifying compatible system configurations
WO2019100690A1 (en) Electronic device, testing method, system and computer readable storage medium
CN110908837A (en) Application program exception handling method and device, electronic equipment and storage medium
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
CN109814957B (en) Label adding method and device for IOS (input/output system)
US8539048B2 (en) Electronic device and method for loading configuration files using the same
CN109032685B (en) Method and terminal for accelerating startup of android system
WO2019061667A1 (en) Electronic apparatus, data processing method and system, and computer-readable storage medium
WO2019080426A1 (en) Electronic apparatus, test method, system and storage medium
US20140298002A1 (en) Method and device for identifying a disk boot sector virus, and storage medium
CN104317660A (en) Bank parameter managing system
US9201936B2 (en) Rapid provisioning of information for business analytics
US20190391806A1 (en) Determination apparatus, determination method, and determination program
CN114218261A (en) Data query method and device, storage medium and electronic equipment
CN113900893A (en) Log obtaining method and related equipment thereof
CN113778982A (en) Data migration method and device
CN112817953A (en) Data verification method and device, computer equipment and computer-readable storage medium
CN112597233A (en) Batch processing method, device and equipment of data indexes and storage medium
US20190057139A1 (en) Mass data movement mechanism

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: 18870481

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 23.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18870481

Country of ref document: EP

Kind code of ref document: A1