CN108427634A - Electronic device, the method for test and computer readable storage medium - Google Patents

Electronic device, the method for test and computer readable storage medium Download PDF

Info

Publication number
CN108427634A
CN108427634A CN201711166797.2A CN201711166797A CN108427634A CN 108427634 A CN108427634 A CN 108427634A CN 201711166797 A CN201711166797 A CN 201711166797A CN 108427634 A CN108427634 A CN 108427634A
Authority
CN
China
Prior art keywords
official
mirror image
service
test
templates
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.)
Pending
Application number
CN201711166797.2A
Other languages
Chinese (zh)
Inventor
韩先跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711166797.2A priority Critical patent/CN108427634A/en
Priority to PCT/CN2018/089727 priority patent/WO2019100690A1/en
Publication of CN108427634A publication Critical patent/CN108427634A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • 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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The present invention relates to a kind of electronic device, the method for test and computer readable storage medium, the method for test includes:Under Docker environment, downloads the preset official's mirror image respectively serviced and official's mirror image of preset application, official's mirror image based on the official's mirror image and application that respectively service downloaded generate corresponding each container respectively;Each beta version under Docker environment is obtained, the corresponding yaml templates of each beta version are write based on the preset mode of writing;When testing service case, the corresponding yaml templates of the service case are obtained, are tested based on each container generated and the corresponding yaml templates of the service case.The present invention need not bury a progress environmental structure in test to each service, save the time, improve testing efficiency.

Description

Electronic device, the method for test and computer readable storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of electronic device, test method and computer-readable deposit Storage media.
Background technology
Currently, APM (application performance monitor, the relevant monitoring of application performance) products and JAVA applied business is more and more abundant, and carrying out javaagent probes to APM products or JAVA applied business in technical staff buries a little When exploitation, needs to carry out service release test, when test, need the service monitored more, while must be buried to each service Point carries out environmental structure, is tested extremely expend the time in this way, testing efficiency is low.
Invention content
The purpose of the present invention is to provide a kind of electronic device, the method for test and computer readable storage mediums, it is intended to Improve testing efficiency.
To achieve the above object, the present invention provides a kind of electronic device, the electronic device include memory and with it is described The processor of memory connection, is stored with the test system that can be run on the processor, the test in the memory System realizes following steps when being executed by the processor:
Container generation step downloads the preset official's mirror image respectively serviced and preset application under Docker environment Official's mirror image, official's mirror image based on the official's mirror image and application that respectively service downloaded generate corresponding each container respectively;
Template writes step, obtains each beta version under Docker environment, is write respectively based on the preset mode of writing The corresponding yaml templates of a beta version;
Testing procedure obtains the corresponding yaml templates of the service case when testing service case, is based on giving birth to At each container and the corresponding yaml templates of the service case tested.
Preferably, official's mirror image of preset service includes at least:Database mysql, database redis, database Official's mirror image and distributed service framework dubbo, the distributed service framework zookeeper and data base administration of oracle Official's mirror image of system postgresql, official's mirror image of preset application include official's mirror image of web applications tomcat.
Preferably, described that the corresponding yaml template steps of each beta version are write based on the preset mode of writing, specifically Including:
The corresponding official's mirror image respectively serviced of nominative testing version, and the corresponding container of official's mirror image of each service of mapping Port is arranged the environmental variance of each beta version and is wrapping with load path, to write the corresponding yaml templates of each beta version.
Preferably, when the test system is executed by the processor, following steps are also realized:
After test completion, the corresponding output journal of service case is obtained, is surveyed based on pre-set programming language unit Examination frame junit units execute detection to the test result data in the output journal.
To achieve the above object, the present invention also provides a kind of method of test, the method for the test includes:
S1 downloads the preset official's mirror image respectively serviced and official's mirror image of preset application, base under Docker environment Corresponding each container is generated respectively in official's mirror image of the official's mirror image and application that respectively service downloaded;
S2 obtains each beta version under Docker environment, each beta version is write based on the preset mode of writing Corresponding yaml templates;
S3 obtains the corresponding yaml templates of the service case when testing service case, each based on what is generated A container and the corresponding yaml templates of the service case are tested.
Preferably, official's mirror image of preset service includes at least:Database mysql, database redis, database Official's mirror image and distributed service framework dubbo, the distributed service framework zookeeper and data base administration of oracle Official's mirror image of system postgresql, official's mirror image of preset application include official's mirror image of web applications tomcat.
Preferably, described that the corresponding yaml template steps of each beta version are write based on the preset mode of writing, specifically Including:
The corresponding official's mirror image respectively serviced of nominative testing version, and the corresponding container of official's mirror image of each service of mapping Port is arranged the environmental variance of each beta version and is wrapping with load path, to write the corresponding yaml templates of each beta version.
Preferably, after the step S3, further include:
S4 obtains the corresponding output journal of service case, is based on pre-set programming language unit after test completion Test frame junit units execute detection to the test result data in the output journal.
Preferably, executing detection to the test result data in the output journal includes:The number that detection service is called Whether the time that correct and detection service is called whether in predetermined time range.
The present invention also provides a kind of computer readable storage medium, test is stored on the computer readable storage medium The step of system, the test system realizes the method for above-mentioned test when being executed by processor.
The beneficial effects of the invention are as follows:The present invention under Docker environment, generate mutually isolated multiple service containers and Application container, while the corresponding yaml templates of each beta version are write, to build the test environment of automation, in test, The test environment that is directly based upon constructed by corresponding yaml templates and each container generated is utilized to execute test automatically, is not required to A progress environmental structure is buried to each service, save the time, improve testing efficiency.
Description of the drawings
Fig. 1 is the schematic diagram of the hardware structure of one embodiment of electronic device of the present invention;
Fig. 2 is the flow diagram for one embodiment of method that the present invention tests;
Fig. 3 is the flow diagram for another embodiment of method that the present invention tests;
Fig. 4 is the exemplary plot for the method that the present invention tests.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as indicating or implying its relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection domain within.
As shown in fig.1, being the hardware structure schematic diagram of electronic device 1 of the present invention.The electronic device 1 is that one kind can According to the instruction for being previously set or storing, the automatic equipment for carrying out numerical computations and/or information processing.The electronic device 1 Can be computer, can also be single network server, multiple network servers composition server group or be based on cloud meter The cloud being made of a large amount of hosts or network server calculated, wherein cloud computing is one kind of Distributed Calculation, loose by a group One super virtual computer of the computer collection composition of coupling.
In the present embodiment, electronic device 1 may include, but be not limited only to, and can be in communication with each other connection by system bus Memory 11, processor 12, network interface 13, memory 11 are stored with the test system that can be run on the processor 12.It needs , it is noted that Fig. 1 illustrates only the electronic device 1 with component 11-13, it should be understood that being not required for implementing all The component shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes memory and the readable storage medium storing program for executing of at least one type.Inside save as the fortune of electronic device 1 Row provides caching;Readable storage medium storing program for executing can be if flash memory, hard disk, multimedia card, card-type memory are (for example, SD or DX memories Deng), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electric erasable can compile Journey read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. it is non-volatile Storage medium.In some embodiments, readable storage medium storing program for executing can be the internal storage unit of electronic device 1, such as the electronics The hard disk of device 1;In further embodiments, which can also be that the external storage of electronic device 1 is set Plug-in type hard disk that is standby, such as being equipped on electronic device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..In the present embodiment, the readable storage medium storing program for executing of memory 11 The operating system and types of applications software of electronic device 1, such as the survey in one embodiment of the invention are installed on commonly used in storage The program code etc. of test system.It has exported or will export each in addition, memory 11 can be also used for temporarily storing Class data.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control electricity The overall operation of sub-device 1, in the present embodiment, the processor 12 is for running the program code stored in the memory 11 Or processing data, such as testing results system etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the electronic device 1 and other electronic equipments.
Test system is stored in memory 11, including at least one computer-readable finger being stored in memory 11 It enables, which can be executed by processor device 12, the method to realize each embodiment of the application;With And the function that at least one computer-readable instruction is realized according to its each section is different, can be divided into different logic moulds Block.
In one embodiment, following steps are realized when above-mentioned test system is executed by the processor 12:
Container generation step downloads the preset official's mirror image respectively serviced and preset application under Docker environment Official's mirror image, official's mirror image based on the official's mirror image and application that respectively service downloaded generate corresponding each container respectively;
Docker is an application container engine increased income, and in the present embodiment, under Docker environment, is downloaded preset each Official's mirror image of service, wherein official's mirror image of service includes at least:Database mysql, database redis, database Official's mirror image and distributed service framework dubbo, the distributed service framework zookeeper and number of the databases such as oracle According to official's mirror image of base management system postgresql;Download official's mirror image of preset application, wherein official's mirror image of application Include official's mirror image of web applications tomcat.
In the present embodiment, corresponding each container is generated based on the official's mirror image downloaded respectively, i.e., generates data respectively The container of the container of library mysql, the container of database redis, Database oracle, and generate distributed service framework The container of the container of dubbo, the container of distributed service framework zookeeper, data base management system postgresql;It generates The container of web applications tomcat.Wherein, the container of web applications tomcat can be connect by network with other each containers.
Wherein, during generating each container, to be illustrated for generating the container of database mysql, including: Start mysql service, setting mysql root password, be arranged container acquiescence storing path, be arranged container configuration file Path, finally generate each container using the content of above-mentioned setting.
Template writes step, obtains each beta version under Docker environment, is write respectively based on the preset mode of writing The corresponding yaml templates of a beta version;
It, can be by the version of web applications tomcat, the version of the software development kit JDK of Java language, generation in the present embodiment The version of the version and web war of managing agent constitutes the yaml templates of a beta version.Obtaining all beta versions Afterwards, the corresponding yaml templates of each beta version are write based on the preset mode of writing, deposits yaml templates after having write Storage.
It is preferably based on the preset mode of writing and writes the corresponding yaml templates of beta version and include:Nominative testing version The corresponding official's mirror image respectively serviced, and map the port of the corresponding container of official's mirror image of each service;Each beta version is set It this environmental variance and is wrapping with and carries path, to write the corresponding yaml templates of each beta version.
In one embodiment, to write " tomcat7, jdk7, agent v1.0.1, web war v1.0 " beta versions pair Into explanation for the yaml templates answered, including:
1) it is zookeeper that, can specify official's mirror image of distributed service framework zookeeper:1.0;
It is dubbo that official's mirror image of distributed service framework dubbo, which can be specified,:1.0, map distributed service framework The port of the container of dubbo is 20080:20080, and connect with the container of distributed service framework zookeeper;
Can be dubbo with official's mirror image of specified database mysql:1.0, the port of the container of mapping database mysql It is 3306:3306;
Can be redis with official's mirror image of specified database redis:1.0, the port of the container of mapping database redis It is 6379:6379;
Can be oracle with official's mirror image of specified database oracle:1.0, the end of the container of mapping database oracle Mouth is 1521:1521;
It is oracle that official's mirror image of system postgresql, which can be managed, with specified database:1.0, mapping database management The port of the container of system postgresql is 5432:5432;
It is tomcat that official's mirror image of tomcat, which can be specified, and the port for mapping the container of tomcat is 5432:5432;
2), " environmental variance of tomcat7, jdk7, agent v1.0.1, web war v1.0 " is set:Tomcat versions Version for tomcat7, javaagent is agent v1.0.1, and the version of test web applications is web war v1.0, and is set The load path that is wrapping with for setting the beta version is:service/app1/:$TOMCAT_HOME/logs/.
Pass through above-mentioned 1), 2), write completion " tomcat7, jdk7, agent v1.0.1, web war v1.0 " test The corresponding yaml templates of version start the environment of test in follow-up test according to yaml templates.
Testing procedure obtains the corresponding yaml templates of the service case when testing service case, is based on giving birth to At each container and the corresponding yaml templates of the service case tested.
In the present embodiment, different war packets represent it is different bury a testing service case, tested to service case When, find the corresponding yaml templates of the service case first, such as service case be " tomcat7, jdk7, agent v1.0.1, Web war v1.0 " then find its corresponding yaml template, based on the test environment constructed by the yaml templates and utilize above-mentioned The each container generated can be performed automatically test.
Compared with prior art, the present embodiment generates mutually isolated multiple service containers and answers under Docker environment With container, while the corresponding yaml templates of each beta version are write, to build the test environment of automation, in test, directly Connect based on constructed by corresponding yaml templates test environment and utilize each container generated to execute test automatically, do not need A progress environmental structure is buried to each service, the time is saved, improves testing efficiency.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 1, the test system is by the processor When 12 execution, following steps are also realized:
After test completion, the corresponding output journal of service case is obtained, preset programming language unit testing frame is based on Frame junit units are detected the test result data in the output journal.
In the present embodiment, after test completion, the corresponding output journal of service case, example can be obtained from mount directory It is mono- using corresponding programming language unit testing frame junit if the output journal of acquisition is service/app1/apm.log Member is detected the test result data in the output journal, such as mono- using java linguistic unit test frames junit Member is detected, including whether the number that detection service is called is correct, and whether the time of service call is in some scheduled time Range etc..
The present embodiment is detected the test result data for servicing the output journal of case, can find service case in time Example there are the problem of, improve the accuracy rate of test.
As shown in Fig. 2, Fig. 2 is the flow diagram for one embodiment of method that the present invention tests, the method for the test includes Following steps:
Step S1 downloads the preset official's mirror image respectively serviced and official's mirror of preset application under Docker environment Picture, official's mirror image based on the official's mirror image and application that respectively service downloaded generate corresponding each container respectively;
Docker is an application container engine increased income, and in the present embodiment, under Docker environment, is downloaded preset each Official's mirror image of service, wherein official's mirror image of service includes at least:Database mysql, database redis, database Official's mirror image and distributed service framework dubbo, the distributed service framework zookeeper and number of the databases such as oracle According to official's mirror image of base management system postgresql;Download official's mirror image of preset application, wherein official's mirror image of application Include official's mirror image of web applications tomcat.
In the present embodiment, corresponding each container is generated based on the official's mirror image downloaded respectively, i.e., generates data respectively The container of the container of library mysql, the container of database redis, Database oracle, and generate distributed service framework The container of the container of dubbo, the container of distributed service framework zookeeper, data base management system postgresql;It generates The container of web applications tomcat.Wherein, the container of web applications tomcat can be connect by network with other each containers.
Wherein, during generating each container, to be illustrated for generating the container of database mysql, including: Start mysql service, setting mysql root password, be arranged container acquiescence storing path, be arranged container configuration file Path, finally generate each container using the content of above-mentioned setting.
Step S2 obtains each beta version under Docker environment, each test is write based on the preset mode of writing The corresponding yaml templates of version;
It, can be by the version of web applications tomcat, the version of the software development kit JDK of Java language, generation in the present embodiment The version of the version and web war of managing agent constitutes the yaml templates of a beta version.Obtaining all beta versions Afterwards, the corresponding yaml templates of each beta version are write based on the preset mode of writing, deposits yaml templates after having write Storage.
It is preferably based on the preset mode of writing and writes the corresponding yaml templates of beta version and include:Nominative testing version The corresponding official's mirror image respectively serviced, and map the port of the corresponding container of official's mirror image of each service;Each beta version is set It this environmental variance and is wrapping with and carries path, to write the corresponding yaml templates of each beta version.
In one embodiment, to write " tomcat7, jdk7, agent v1.0.1, web war v1.0 " beta versions pair Into explanation for the yaml templates answered, including:
1) it is zookeeper that, can specify official's mirror image of distributed service framework zookeeper:1.0;
It is dubbo that official's mirror image of distributed service framework dubbo, which can be specified,:1.0, map distributed service framework The port of the container of dubbo is 20080:20080, and connect with the container of distributed service framework zookeeper;
Can be dubbo with official's mirror image of specified database mysql:1.0, the port of the container of mapping database mysql It is 3306:3306;
Can be redis with official's mirror image of specified database redis:1.0, the port of the container of mapping database redis It is 6379:6379;
Can be oracle with official's mirror image of specified database oracle:1.0, the end of the container of mapping database oracle Mouth is 1521:1521;
It is oracle that official's mirror image of system postgresql, which can be managed, with specified database:1.0, mapping database management The port of the container of system postgresql is 5432:5432;
It is tomcat that official's mirror image of tomcat, which can be specified, and the port for mapping the container of tomcat is 5432:5432;
2), " environmental variance of tomcat7, jdk7, agent v1.0.1, web war v1.0 " is set:Tomcat versions Version for tomcat7, javaagent is agent v1.0.1, and the version of test web applications is web war v1.0, and is set The load path that is wrapping with for setting the beta version is:service/app1/:$TOMCAT_HOME/logs/.
Pass through above-mentioned 1), 2), write completion " tomcat7, jdk7, agent v1.0.1, web war v1.0 " test The corresponding yaml templates of version start the environment of test in follow-up test according to yaml templates.
Step S3 obtains the corresponding yaml templates of the service case, based on being generated when testing service case Each container and the corresponding yaml templates of the service case tested.
In the present embodiment, different war packets represent it is different bury a testing service case, tested to service case When, find the corresponding yaml templates of the service case first, such as service case be " tomcat7, jdk7, agent v1.0.1, Web war v1.0 " then find its corresponding yaml template, based on the test environment constructed by the yaml templates and utilize above-mentioned The each container generated can be performed automatically test.
Compared with prior art, the present embodiment generates mutually isolated multiple service containers and answers under Docker environment With container, while the corresponding yaml templates of each beta version are write, to build the test environment of automation, in test, directly Connect based on constructed by corresponding yaml templates test environment and utilize each container generated to execute test automatically, do not need A progress environmental structure is buried to each service, the time is saved, improves testing efficiency.
In a preferred embodiment, as shown in figure 3, on the basis of the embodiment of above-mentioned Fig. 2, the step S3 it Afterwards, further include:
Step S4 obtains the corresponding output journal of service case, is based on pre-set programming language after test completion Unit testing frame junit units execute detection to the test result data in the output journal.
In the present embodiment, after test completion, the corresponding output journal of service case, example can be obtained from mount directory It is mono- using corresponding programming language unit testing frame junit if the output journal of acquisition is service/app1/apm.log Member is detected the test result data in the output journal, such as mono- using java linguistic unit test frames junit Member is detected, including whether the number that detection service is called is correct, and whether the time of service call is in some scheduled time Range etc..
The present embodiment is detected the test result data for servicing the output journal of case, can find service case in time Example there are the problem of, improve the accuracy rate of test.
Referring to Fig. 4, Fig. 4 is an exemplary plot of the method that the present invention tests, wherein virtual machine is installed on the electronics of Fig. 1 In device, after Docker environment is built in virtual machine, Docker programming facilities are installed, i.e., official's mirror image of download service and are answered Official's mirror image, wherein the official's mirror image serviced includes the official of database mysql, database redis, Database oracle Mirror image and distributed service framework dubbo, distributed service framework zookeeper and data base management system Official's mirror image of postgresql, official's mirror image of application include official's mirror image of web applications tomcat, the official based on service Mirror image generates corresponding each container respectively, and such as the part of the label 1 in Fig. 4, official's mirror image based on application generates corresponding Container, such as the part of the label 2 in Fig. 4, the corresponding container of the official's mirror image container corresponding with official's mirror image of application of service Connection.Then, virtual machine pulls beta version, that is, pulls the jar file of label 3 and the war files of label 4, based on preset The mode of writing writes the corresponding yaml templates of each beta version, when testing service case, can directly acquire this The corresponding yaml templates of case are serviced, above-mentioned each container pair is then based on and the corresponding yaml templates of the service case carries out Test.After test completion, which is stored in mount directory 5.
The present invention also provides a kind of computer readable storage medium, test is stored on the computer readable storage medium System, described the step of realizing the method for above-mentioned test when being executed by processor.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that is connect with the memory Device is stored with the test system that can be run on the processor in the memory, and the test system is by the processor Following steps are realized when execution:
Container generation step downloads the official of the preset official's mirror image respectively serviced and preset application under Docker environment Mirror image, official's mirror image based on the official's mirror image and application that respectively service downloaded generate corresponding each container respectively;
Template writes step, obtains each beta version under Docker environment, each survey is write based on the preset mode of writing The corresponding yaml templates of test run sheet;
Testing procedure obtains the corresponding yaml templates of the service case, based on what is generated when testing service case Each container and the corresponding yaml templates of the service case are tested.
2. electronic device according to claim 1, which is characterized in that official's mirror image of preset service includes at least:Number According to library mysql, database redis, official's mirror image of Database oracle and distributed service framework dubbo, distributed clothes Official's mirror image of business frame zookeeper and data base management system postgresql, official's mirror image of preset application include Official's mirror image of web applications tomcat.
3. electronic device according to claim 2, which is characterized in that described to write each survey based on the preset mode of writing The corresponding yaml template steps of test run sheet, specifically include:
The corresponding official's mirror image respectively serviced of nominative testing version, and map the end of the corresponding container of official's mirror image of each service Mouthful, the environmental variance of each beta version is set and is wrapping with load path, to write the corresponding yaml templates of each beta version.
4. electronic device according to any one of claims 1 to 3, which is characterized in that the test system is by the processing When device executes, following steps are also realized:
After test completion, the corresponding output journal of service case is obtained, pre-set programming language unit testing frame is based on Frame junit units execute detection to the test result data in the output journal.
5. a kind of method of test, which is characterized in that the method for the test includes:
S1 downloads the preset official's mirror image respectively serviced and official's mirror image of preset application, is based on institute under Docker environment Official's mirror image of the official's mirror image and application that respectively service downloaded generates corresponding each container respectively;
S2 obtains each beta version under Docker environment, and writing each beta version based on the preset mode of writing corresponds to Yaml templates;
S3 obtains the corresponding yaml templates of the service case, based on each appearance generated when testing service case Device and the corresponding yaml templates of the service case are tested.
6. the method for test according to claim 5, which is characterized in that official's mirror image of preset service includes at least: Database mysql, database redis, official's mirror image of Database oracle and distributed service framework dubbo, distribution Official's mirror image of service framework zookeeper and data base management system postgresql, official's mirror image packet of preset application Include official's mirror image of web applications tomcat.
7. the method for test according to claim 6, which is characterized in that it is described write based on the preset mode of writing it is each The corresponding yaml template steps of beta version, specifically include:
The corresponding official's mirror image respectively serviced of nominative testing version, and map the end of the corresponding container of official's mirror image of each service Mouthful, the environmental variance of each beta version is set and is wrapping with load path, to write the corresponding yaml templates of each beta version.
8. the method tested according to claim 5 to 7 any one of them, which is characterized in that after the step S3, also wrap It includes:
S4 obtains the corresponding output journal of service case, is based on pre-set programming language unit testing after test completion Frame junit units execute detection to the test result data in the output journal.
9. the method for test according to claim 8, which is characterized in that the test result data in the output journal Executing detection includes:Whether the time that whether number correct and detection service is called that detection service is called is when scheduled Between in range.
10. a kind of computer readable storage medium, which is characterized in that be stored with test system on the computer readable storage medium System realizes the step of the method for the test as described in any one of claim 5 to 9 when the test system is executed by processor Suddenly.
CN201711166797.2A 2017-11-21 2017-11-21 Electronic device, the method for test and computer readable storage medium Pending CN108427634A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711166797.2A CN108427634A (en) 2017-11-21 2017-11-21 Electronic device, the method for test and computer readable storage medium
PCT/CN2018/089727 WO2019100690A1 (en) 2017-11-21 2018-06-03 Electronic device, testing method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711166797.2A CN108427634A (en) 2017-11-21 2017-11-21 Electronic device, the method for test and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108427634A true CN108427634A (en) 2018-08-21

Family

ID=63155741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711166797.2A Pending CN108427634A (en) 2017-11-21 2017-11-21 Electronic device, the method for test and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108427634A (en)
WO (1) WO2019100690A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756570A (en) * 2018-12-29 2019-05-14 深圳点猫科技有限公司 A kind of method and electronic equipment for realizing customization pypi mirror image server

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674048B (en) * 2019-09-27 2023-09-22 北京新氧科技有限公司 Buried point test characteristic acquisition method and related device
CN111416755B (en) * 2020-03-13 2021-11-19 苏州浪潮智能科技有限公司 SONiC automatic test platform building method, device and system
CN111382079B (en) * 2020-03-16 2021-08-24 北京云宽志业网络技术有限公司 Method, device and equipment for restoring application program on site and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317722A (en) * 2014-11-13 2015-01-28 中国建设银行股份有限公司 Unit testing method and device based on Junit
US20170147337A1 (en) * 2014-03-27 2017-05-25 Microsoft Technology Licensing, Llc Hierarchical directives-based management of runtime behaviors
CN107329792A (en) * 2017-07-04 2017-11-07 北京奇艺世纪科技有限公司 A kind of Docker containers start method and device
CN107329891A (en) * 2017-06-06 2017-11-07 千寻位置网络有限公司 Automation regression testing method based on structural data and REST interfaces

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3058474A4 (en) * 2013-10-17 2017-03-22 Hewlett-Packard Enterprise Development LP Testing a web service using inherited test attributes
WO2016054119A1 (en) * 2014-09-29 2016-04-07 Twin Sails Technology Group, Inc. Systems and methods for managing electronic healthcare information
CN106708509A (en) * 2016-11-28 2017-05-24 上海宝尊电子商务有限公司 Automatic software project development all-link configuration management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170147337A1 (en) * 2014-03-27 2017-05-25 Microsoft Technology Licensing, Llc Hierarchical directives-based management of runtime behaviors
CN104317722A (en) * 2014-11-13 2015-01-28 中国建设银行股份有限公司 Unit testing method and device based on Junit
CN107329891A (en) * 2017-06-06 2017-11-07 千寻位置网络有限公司 Automation regression testing method based on structural data and REST interfaces
CN107329792A (en) * 2017-07-04 2017-11-07 北京奇艺世纪科技有限公司 A kind of Docker containers start method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王男: "面向证券业务系统的虚拟化测试平台的研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756570A (en) * 2018-12-29 2019-05-14 深圳点猫科技有限公司 A kind of method and electronic equipment for realizing customization pypi mirror image server

Also Published As

Publication number Publication date
WO2019100690A1 (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN107885656B (en) Automatic product algorithm testing method and application server
CN108427634A (en) Electronic device, the method for test and computer readable storage medium
CN109302522A (en) Test method, device and computer system and medium
CN108874624B (en) Server, method for monitoring Java process and storage medium
CN108427644A (en) Service test method, service testing system and service testing device
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN109933504B (en) Hard disk delay test method, device, terminal and storage medium
CN109814877A (en) Project dispositions method and its device based on environmental management
CN109086176A (en) A kind of SSD steady-state method of test, device, equipment and storage medium based on FIO
CN107798064A (en) Page processing method, electronic equipment and computer-readable recording medium
CN111723020A (en) Method, device and equipment for testing electric energy meter testing software
CN110505119A (en) A kind of test method, device, system and readable storage medium storing program for executing
CN111786823A (en) Fault simulation method and device based on distributed service
CN107679423A (en) Partition integrity inspection method and device
CN108776631A (en) Server, the method and storage medium for obtaining compatibility test equipment
CN109062870A (en) The method and storage medium that server, business datum verify
CN110990207B (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN115982043A (en) Vehicle interface testing method, device, equipment and storage medium
CN111045891B (en) Monitoring method, device, equipment and storage medium based on java multithreading
CN110399290A (en) Test device, method and the storage medium of message push
CN112465604A (en) Order distribution method and device, computer equipment and computer readable storage medium
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and storage medium
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180821

RJ01 Rejection of invention patent application after publication