CN108694121B - Automatic testing method, device and system - Google Patents

Automatic testing method, device and system Download PDF

Info

Publication number
CN108694121B
CN108694121B CN201710236943.8A CN201710236943A CN108694121B CN 108694121 B CN108694121 B CN 108694121B CN 201710236943 A CN201710236943 A CN 201710236943A CN 108694121 B CN108694121 B CN 108694121B
Authority
CN
China
Prior art keywords
tested
software installation
node
test
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710236943.8A
Other languages
Chinese (zh)
Other versions
CN108694121A (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201710236943.8A priority Critical patent/CN108694121B/en
Publication of CN108694121A publication Critical patent/CN108694121A/en
Application granted granted Critical
Publication of CN108694121B publication Critical patent/CN108694121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/3664Environments for testing or debugging software
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/16Implementing security features at a particular protocol layer
    • H04L63/168Implementing security features at a particular protocol layer above the transport layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides an automatic testing method and a device, wherein the method comprises the following steps: obtaining storage address information of at least one software installation package corresponding to each node to be tested in a system to be tested; determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information; sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested; obtaining a test script corresponding to a system to be tested after software installation is completed; and running the obtained test script to automatically test the system to be tested after the software installation is finished. By applying the embodiment of the invention, the manual participation of testers in the testing process is reduced, and the automatic coverage rate in the testing process is improved.

Description

Automatic testing method, device and system
Technical Field
The invention relates to the technical field of distributed system software testing and management, in particular to an automatic testing method, device and system.
Background
With the advent of the big data age, more and more distributed cluster systems (such as distributed cloud storage systems) have come into operation. Generally, distributed cluster systems are more complex than conventional stand-alone systems, and further, testing distributed cluster systems is also more complex.
In the existing test scheme for the distributed cluster system, an automated test framework is introduced, specifically, a tester needs to manually construct the distributed cluster system, that is, manually log in a storage node storing a software installation package, search for and obtain the required software installation package from the storage node, and manually install the obtained software installation package into a node in the distributed cluster system, so that the node in the distributed cluster system installs a corresponding software installation package to construct the distributed cluster system. After the distributed cluster system is constructed, a pre-stored test script aiming at the distributed cluster system is automatically obtained in an automatic test framework, and the test script is operated to carry out automatic test on the distributed cluster system.
Therefore, in the existing automatic testing scheme, a software installation package required for manually installing the nodes in the distributed cluster system is also required, that is, the construction of the distributed cluster system also requires manual construction by a tester. In the test scheme for the distributed cluster system, the degree of participation of the testers is still high.
Disclosure of Invention
The embodiment of the invention aims to provide an automatic testing method, device and system, so as to reduce manual participation of testers in a testing process and improve the automatic coverage rate in the testing process. The specific technical scheme is as follows:
in one aspect, an embodiment of the present invention provides an automated testing method, where the method includes:
obtaining storage address information of at least one software installation package corresponding to each node to be tested, wherein each node to be tested is: a node in a system under test;
determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information;
sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested;
obtaining a test script corresponding to the system to be tested after software installation is completed;
and running the obtained test script to automatically test the system to be tested after the software installation is finished.
Optionally, at least one software installation package corresponding to each node to be tested is stored in a storage node, and the obtained storage address information is: address information of the at least one software installation package in the storage node;
the step of determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information includes:
and determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information.
Optionally, before the step of sending each determined software installation package to the corresponding node to be tested, the method further includes:
obtaining a routing IP address of each node to be tested in the system to be tested;
establishing a SSH (secure Shell) connection with each node to be tested according to the obtained IP address;
the step of sending each determined software installation package to the corresponding node to be tested comprises:
and sending each determined software installation package to a corresponding node to be tested based on the established SSH connection.
Optionally, before the step of obtaining a test script corresponding to the system to be tested for completing software installation, the method further includes:
obtaining first information sent by each node to be tested, wherein the first information comprises information used for describing a software installation package received by the node to be tested after the node to be tested is successfully installed;
according to the obtained first information, a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) is constructed;
configuring the system to be tested after software installation according to preset configuration information based on the constructed HTTP or HTTPS;
obtaining the configured system to be tested;
the step of obtaining the test script corresponding to the system to be tested for completing the software installation comprises the following steps:
and obtaining a test script corresponding to the configured system to be tested.
Optionally, before the step of obtaining a test script corresponding to the system to be tested for completing software installation, the method further includes:
obtaining a test case description corresponding to the system to be tested after software installation is completed;
the step of obtaining the test script corresponding to the system to be tested for completing the software installation comprises the following steps:
and obtaining a test script corresponding to the system to be tested after the software installation is completed according to the test case description.
Optionally, the test case description includes: at least one group of first description information, wherein each group of first description information comprises: a first identifier of the corresponding driving data;
the step of obtaining the test script corresponding to the system to be tested and completing software installation according to the test case description comprises the following steps:
compiling and generating a test script according to at least one group of first description information contained in the test case description and a preset test execution process template corresponding to each group of first description information; wherein, the test script comprises: test object keywords corresponding to each group of first description information and drive data corresponding to each test object keyword;
each test execution process template comprises: the mapping relationship between the second description information and the test object keyword, each group of the second description information comprises: and the driving data corresponding to each test object keyword is determined by the corresponding first identifier and the second identifier.
Optionally, after the step of running the obtained test script and performing an automated test on the system to be tested with the software installed, the method further includes:
obtaining a current test result corresponding to the system to be tested after software installation is completed;
and storing the current test result.
Optionally, after the step of storing the current test result, the method further comprises:
obtaining the previous N times of test results corresponding to the system to be tested after the software installation is completed, wherein N is a positive integer;
comparing the current test result with each test result in the previous N times of test results to obtain a comparison result;
the obtained comparison results are stored.
Optionally, before the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested, the method further includes:
acquiring a target project corresponding to the system to be tested, which is created in a preset automatic testing framework;
the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested comprises the following steps:
and in the created target project, obtaining the storage address information of at least one software installation package corresponding to each node to be tested.
In another aspect, an embodiment of the present invention provides an automatic testing apparatus, where the apparatus includes:
a first obtaining module, configured to obtain storage address information of at least one software installation package corresponding to each node to be tested, where each node to be tested is: a node in a system under test;
the first determining module is used for determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information;
the sending module is used for sending each determined software installation package to the corresponding node to be tested so as to enable each node to be tested to install the received at least one software installation package and complete the software installation of the system to be tested;
the second obtaining module is used for obtaining a test script corresponding to the system to be tested after software installation is completed;
and the running test module is used for running the obtained test script and automatically testing the system to be tested after the software installation is finished.
Optionally, at least one software installation package corresponding to each node to be tested is stored in a storage node, and the obtained storage address information is: address information of the at least one software installation package in the storage node;
the first determining module is specifically used for
And determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information.
Optionally, the apparatus further includes a third obtaining module and a connection establishing module;
the third obtaining module is configured to obtain a routing IP address of each node to be tested in the system to be tested before sending each determined software installation package to the corresponding node to be tested;
the connection establishing module is used for establishing a SSH (secure Shell) connection with each node to be tested according to the obtained IP address;
the sending module is particularly used for
And sending each determined software installation package to a corresponding node to be tested based on the established SSH connection.
Optionally, the apparatus further includes a fourth obtaining module, a constructing module, a configuring module, and a fifth obtaining module;
the fourth obtaining module is configured to obtain first information sent by each node to be tested before the test script corresponding to the system to be tested that completes software installation is obtained, where the first information includes information used to describe a software installation package received after the node to be tested is successfully installed;
the building module is used for building a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) according to the obtained first information;
the configuration module is used for configuring the system to be tested after software installation is completed according to preset configuration information based on the constructed HTTP or HTTPS;
the fifth obtaining module is configured to obtain the configured system to be tested;
the second obtaining module is specifically used for
And obtaining a test script corresponding to the configured system to be tested.
Optionally, the apparatus further comprises a sixth obtaining module;
the sixth obtaining module is configured to obtain a test case description corresponding to the system to be tested, where software installation is completed, before obtaining the test script corresponding to the system to be tested, where software installation is completed;
the second obtaining module is specifically used for
And obtaining a test script corresponding to the system to be tested after the software installation is completed according to the test case description.
Optionally, the test case description includes: at least one group of first description information, wherein each group of first description information comprises: a first identifier of the corresponding driving data;
the second obtaining module is specifically used for
Compiling and generating a test script according to at least one group of first description information contained in the test case description and a preset test execution process template corresponding to each group of first description information; wherein, the test script comprises: test object keywords corresponding to each group of first description information and drive data corresponding to each test object keyword;
each test execution process template comprises: the mapping relationship between the second description information and the test object keyword, each group of the second description information comprises: and the driving data corresponding to each test object keyword is determined by the corresponding first identifier and the second identifier.
Optionally, the apparatus further comprises a seventh obtaining module and a first storing module;
the seventh obtaining module is configured to, after the obtained test script is run and the system to be tested that completes the software installation is automatically tested, obtain a current test result corresponding to the system to be tested that completes the software installation;
the first storage module is used for storing the current test result.
Optionally, the apparatus further includes an eighth obtaining module, a ninth obtaining module, and a second storing module;
the eighth obtaining module is configured to obtain, after the step of storing the current test result, a previous N-time test result corresponding to the system to be tested that completes software installation, where N is a positive integer;
the ninth obtaining module is configured to compare the current test result with each of the previous N test results to obtain a comparison result;
and the second storage module is used for storing the obtained comparison result.
Optionally, the apparatus further comprises a tenth obtaining module;
the tenth obtaining module is configured to, before the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested, obtain a target item corresponding to the system to be tested, where the target item is created in a preset automated testing framework;
the first obtaining module is specifically used for
And in the created target project, obtaining the storage address information of at least one software installation package corresponding to each node to be tested.
In another aspect, an embodiment of the present invention provides an automatic test system, where the automatic test system includes: the system comprises a storage node, an automatic test node and at least two nodes to be tested;
the storage node is configured to store at least one software installation package corresponding to each node to be tested, where each node to be tested is: a node in a system under test;
the automatic test nodes are used for obtaining the storage address information of at least one software installation package corresponding to each node to be tested; determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information; sending each determined software installation package to a corresponding node to be tested;
the at least two nodes to be tested: the system comprises an automatic test node and a software installation package, wherein the automatic test node is used for receiving at least one software installation package sent by the automatic test node, installing the received at least one software installation package and completing software installation on the system to be tested;
the automatic test node is also used for obtaining a test script corresponding to the system to be tested after software installation is completed; and running the obtained test script to automatically test the system to be tested after the software installation is finished.
In the embodiment of the invention, the storage address information of at least one software installation package corresponding to each node to be tested in a system to be tested is obtained; determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information; sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested; obtaining a test script corresponding to a system to be tested after software installation is completed; and running the obtained test script to automatically test the system to be tested after the software installation is finished. Therefore, in the test process of the system to be tested, the software installation of the system to be tested can be automatically completed, the test of the system to be tested is automatically completed, the manual participation of testers in the test process is reduced, and the automatic coverage rate in the test process is improved. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an automated testing method according to an embodiment of the present invention;
FIG. 2 is another schematic flow chart of an automated testing method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an automatic test apparatus according to an embodiment of the present invention;
FIG. 4 is another schematic structural diagram of an automatic test apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an automated testing system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an automatic testing method, device and system, which are used for reducing manual participation of testers in a testing process and improving the automatic coverage rate in the testing process.
It should be noted that the automatic testing method provided in the embodiment of the present invention may be applied to any electronic device installed with a preset automatic testing frame, where the preset automatic testing frame may be a preset Jenkins tool, and in the embodiment of the present invention, a Robot Framework tool existing in a plug-in form is added to the preset Jenkins tool. Wherein, Jenkins tool is an extensible continuous integration engine; the Robot Framework tool is a functional automation test Framework written by utilizing a Python programming language, has good expandability, supports keyword driving, can test various types of clients or interfaces simultaneously, and can perform distributed test execution. The preset Jenkins tool can realize the function of continuously and automatically constructing and testing the system to be tested. Moreover, the preset Jenkins tool can only provide an interface for triggering the automatic test of the system to be tested for the outside.
As shown in fig. 1, an automated testing method provided in an embodiment of the present invention may include the steps of:
s101: obtaining storage address information of at least one software installation package corresponding to each node to be tested, wherein each node to be tested is as follows: a node in a system under test;
s102: determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information;
it will be appreciated that the system under test described above may be any distributed cluster system, such as: distributed cloud storage systems, distributed object storage systems, and the like.
When the system to be tested needs to be automatically tested, an identifier of each node to be tested of the system to be tested may be first input in a preset automatic testing framework, where the identifier of each node to be tested may be: the address information of each node to be tested, and the like, can uniquely determine the information of each node to be tested. And then inputting the storage address information of the software installation package required to be installed by each node to be tested corresponding to the input identifier of each node to be tested. And determining at least one software installation package corresponding to each node to be tested in the system to be tested based on the input identifier of each node to be tested and the storage address information of the at least one software installation package corresponding to the identifier of each node to be tested.
In one implementation manner, the at least one software installation package corresponding to each node to be tested is stored in a storage node, and the obtained storage address information is: address information of at least one software installation package in a storage node;
the step of determining at least one software installation package (S102) corresponding to each node to be tested in the system to be tested according to the obtained storage address information may include:
and determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information.
For example, when at least one software installation package corresponding to each node to be tested is stored in a storage node, where the storage node may be an SVN (discovery server) server (an open source version control system), and the storage address information may be an SVN address. The electronic device equipped with the preset automated testing framework may construct an SVN (HyperText Transfer Protocol) or HTTP (HyperText Transfer Protocol) Protocol, so as to automatically search and determine the at least one software installation package from the SVN server according to the SVN address.
When the storage address information of at least one software installation package is input corresponding to the identifier of each node to be tested, configuring an installation sequence for installing the corresponding software installation package for the node to be tested corresponding to the identifier of each node to be tested, so that each node to be tested is installed according to the configured installation sequence when the received software installation package is installed subsequently.
S103: sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested;
it should be noted that, after each software installation package is determined, each determined software installation package may be sent to a corresponding node to be tested according to the input identifier of each node to be tested and the storage address information of at least one software installation package input corresponding to the identifier of each node to be tested. And each node to be tested receives and installs at least one corresponding software installation package so as to complete the software installation of the system to be tested.
Further, in an implementation manner, an installation sequence of the to-be-tested nodes corresponding to the identifier of each to-be-tested node when installing the software installation package may be embodied by inputting the input sequence of the storage address information through the identifier corresponding to each to-be-tested node, and when sending each software installation package to the corresponding to-be-tested node, the software installation package corresponding to each storage address information is sent according to the input sequence of the storage address information, so that each to-be-tested node receives and installs the software installation package according to the sending sequence, and software installation on the to-be-tested system is completed. In another implementation manner, when each determined software installation package is sent to a corresponding node to be tested, the configured installation sequence is also sent to the corresponding node to be tested, so that each node to be tested installs the software installation package according to the received installation sequence, and the software installation of the system to be tested is completed. Etc., as may be desired.
S104: obtaining a test script corresponding to a system to be tested after software installation is completed;
s105: and running the obtained test script to automatically test the system to be tested after the software installation is finished.
In the embodiment of the invention, the test script corresponding to the system to be tested, which completes the software installation, can be pre-stored, so that the pre-stored test script corresponding to the system to be tested can be directly obtained, and the electronic equipment provided with the preset automatic test framework can directly run the obtained test script to automatically test the system to be tested.
By applying the embodiment of the invention, the storage address information of at least one software installation package corresponding to each node to be tested in the system to be tested is obtained; determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information; sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested; obtaining a test script corresponding to a system to be tested after software installation is completed; and running the obtained test script to automatically test the system to be tested after the software installation is finished. Therefore, in the test process of the system to be tested, the software installation of the system to be tested can be automatically completed, the test of the system to be tested is automatically completed, the manual participation of testers in the test process is reduced, and the automatic coverage rate in the test process is improved.
In one implementation, the identifier of each node to be tested may be information that can uniquely determine each node to be tested, and in one implementation, the identifier of each node to be tested may be a routing IP (Internet Protocol) address of each node to be tested, as shown in fig. 2, the method may include the following steps:
s201: obtaining storage address information of at least one software installation package corresponding to each node to be tested, wherein each node to be tested is as follows: a node in a system under test;
s202: determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information;
here, S201 is the same as S101 shown in fig. 1, and S202 is the same as S102 shown in fig. 1.
S203: obtaining a routing IP address of each node to be tested in a system to be tested;
s204: according to the obtained IP address, SSH (Secure Shell) connection is established with each node to be tested;
s205: based on the established SSH connection, sending each determined software installation package to a corresponding node to be tested so as to enable each node to be tested to install the received at least one software installation package and complete the software installation of the system to be tested;
wherein S205 is an implementation of S103 shown in fig. 1.
S206: obtaining a test script corresponding to a system to be tested after software installation is completed;
s207: and running the obtained test script to automatically test the system to be tested after the software installation is finished.
Wherein S206 is the same as S104 shown in fig. 1, and S207 is the same as S105 shown in fig. 1.
It should be emphasized that, after the electronic device installed with the preset automated testing framework obtains the IP address of each node to be tested, the electronic device establishes an SSH connection with each node to be tested according to the obtained IP address, and sends each obtained software installation package to the corresponding node to be tested based on the established SSH connection. SSH is a security protocol based on an application layer and a transport layer, and is a protocol dedicated to security for telnet sessions and other network services.
After each software installation package received by each node to be tested in the system to be tested is installed, the system to be tested may be configured (for example, the system to be tested is initialized) in order to ensure the smooth proceeding of the automatic testing process. In one implementation, a tester may manually configure (e.g., initialize) a system under test that completes a software installation.
In another implementation mode, the system to be tested can be automatically configured, so that manual participation of testing personnel in the testing process is further reduced, and the automatic coverage rate in the testing process is improved. Specifically, before the step of obtaining a test script (S104) corresponding to a system to be tested for which software installation is completed, the method may further include:
acquiring first information sent by each node to be tested, wherein the first information comprises information used for describing a software installation package received by the node to be tested after the node to be tested is successfully installed;
according to the obtained first information, a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) is constructed;
configuring a system to be tested after software installation according to preset configuration information based on the constructed HTTP or HTTPS;
obtaining a configured system to be tested;
the step of obtaining a test script (S104) corresponding to the system to be tested that completes the software installation may include:
and obtaining a test script corresponding to the configured system to be tested.
It can be understood that after each node to be tested is successfully installed with the received software installation package, the node to be tested may be restarted, and then first information for describing the software installation package successfully installed with the node to be tested is sent to the electronic device installed with the preset automated testing framework, so as to notify the electronic device installed with the preset automated testing framework that the software installation package has been successfully installed, and thus the software installation of the system to be tested is completed.
In the embodiment of the present invention, the software installation package sent to each node to be tested may include a World Wide WEB Server (WEB Server) software installation package, each node to be tested may install the WEB software installation package, and after each node to be tested is restarted, the WEB software corresponding to the WEB software installation package may also be started. When the electronic device provided with the preset automatic testing framework receives the first information sent by each node to be tested, an HTTP or HTTPS protocol is established to simulate a WEB end, and the electronic device communicates with the node to be tested starting the installed WEB software based on the established HTTP or HTTPS protocol so as to configure the system to be tested after software installation is completed according to preset configuration information (for example, the system to be tested after software installation is completed is initialized).
For example, when the system to be tested is a distributed cloud storage system, the initializing step may include: formatting storage volumes of a distributed cloud storage system, creating a resource pool of a distributed cloud storage system, and so forth. The specific steps of the configuration can be set according to the type of the system to be tested.
In addition, in an implementation manner, description information of a test case corresponding to the system to be tested may be stored in advance. Thus, before the step of obtaining a test script corresponding to the system to be tested for which the software installation is completed (S104), the method may further include:
obtaining a test case description corresponding to a system to be tested after software installation is completed;
the step of obtaining a test script (S104) corresponding to the system to be tested that completes the software installation may include:
and obtaining a test script corresponding to the system to be tested after the software installation is completed according to the test case description.
It should be noted that the test case description may be information preset by a tester for a system to be tested that completes software installation. Generally, a tester can define a test case description template corresponding to the system to be tested in advance; then, each test case description corresponding to the system to be tested is added to the test case description template, wherein the test case description template can be stored in an excel table. Each row in the test case description template can represent a test case description, and each column contains description information of the corresponding test case description. For example, when the system to be tested is a distributed cloud storage system, the test case description template may be as shown in table 1.
TABLE 1
Figure GDA0001308743220000141
It can be understood that, when the automated test in the embodiment of the present invention is a keyword driving test, according to the test case description and a predetermined test execution process template, the test object keyword corresponding to the test case description and the driving data corresponding to each test object keyword may be determined, and then, according to the determined test object keyword and the driving data corresponding to each test object keyword, a code including the test object keyword and the driving data corresponding to each test object keyword may be obtained, where the code is a test script corresponding to a system to be tested that completes software installation. In one implementation, the test case description includes: at least one group of first description information, wherein each group of first description information comprises: a first identifier of the corresponding driving data;
the step of obtaining a test script corresponding to the system to be tested, in which the software installation is completed, according to the test case description may include:
compiling to generate a test script according to at least one group of first description information contained in the test case description and a preset test execution process template corresponding to each group of first description information; wherein, the test script comprises: test object keywords corresponding to each group of first description information and drive data corresponding to each test object keyword;
each test execution process template comprises: the mapping relationship between the second description information and the test object keyword, each group of the second description information comprises: and the driving data corresponding to each test object keyword is determined by the corresponding first identifier and the second identifier.
When the automated test in the embodiment of the present invention is a keyword driving test, the electronic device installed with a preset automated test framework reads each group of first description information included in the obtained test case description by using a preset programming language, determines a test object keyword corresponding to each group of first description information from a predetermined test execution process template corresponding to each group of first description information by using an object-oriented technology, determines driving data corresponding to the test object keyword corresponding to the first description information by using the first identifier and the second identifier, and compiles and generates a test script.
In an implementation manner, in an embodiment of the present invention, the preset automated testing framework may be: the Jenkins tool of the Robot Framework tool in the form of a plug-in is added, and in this case, the preset programming language may be Python programming language.
In addition, when a new test case description is set for the system to be tested, at least one group of first description information contained in the new test case description is directly filled according to a test case description template.
In the test case description template shown in table 1, there are nine columns of first description information for the test case description, that is, the test case description shown in table 1 has nine columns of first description information (that is, nine sets of first description information). At this time, there may be nine predetermined test execution process templates, where each column of the first description information in the test case description template corresponds to one predetermined test execution process template. In the following, an example is performed only by using the first description information of the sixth column and the first description information of the seventh column in the test case description template, as shown in table 1, and as shown in table 2A and table 2B, a predetermined test execution process template corresponding to the first description information of the sixth column and a predetermined test execution process template corresponding to the first description information of the seventh column in the test case description template, as shown in table 1, are respectively illustrated. "Domain 1" in table 1 is a first flag of drive data "Domain 1", "bucket 1" is a first flag of drive data "bucket 1", and "object 1" is a first flag of drive data "object 1".
TABLE 2A
Figure GDA0001308743220000161
TABLE 2B
Figure GDA0001308743220000162
It can be understood that, by using a preset programming language, the test case description in the test case description template shown in table 1 is read, and then the test case description shown in table 1 is combined with a predetermined test execution process template (shown in tables 2A and 2B, which includes the mapping relationship between the second description information and the test object keyword), so as to compile and generate the test script.
In table 2A, "(D.)" is a regular expression of the drive data "domain 1" (i.e., the second identifier of the drive data "domain 1") corresponding to the drive object keyword "creation field", "(b.)" is a regular expression of the drive data "bucket 1" (i.e., the second identifier of the drive data "bucket 1") corresponding to the drive object keyword "creation bucket", "(. once)" is a regular expression of the drive data "object 1" (i.e., the second identifier of the drive data "object 1") corresponding to the drive object keyword "upload object", and "(. once)" is a regular expression of the drive data "object 1" (i.e., the second identifier of the drive data "object 1") corresponding to the drive object keyword "download object".
The specific content of the generated test script may be as follows:
) User basic function _ File service _ object download
[Documentation]doc
… preconditions:
… 1 normal operation of cluster
… 2, created Domain1, Domain1 has created bucket1, and bucket1 has available capacity
… 3 object1 has been successfully uploaded into bucket1
… test procedure and data:
… 1 user requests download object1
… expected results:
… a. SS returns object1 data to SDK
… b the downloaded object1 data is consistent with the upload time
[ Tags ] auto 01. user basic function
[Setup]Run Keywords setup1
Set test variable $ { testcase _ name }01 user basic function _ File service _ object download
Check_state
Creating domain1
Create bucket bucket1
Uploading object1
Downloading object object1
It is emphasized that in the keyword driving test, each driving object keyword has uniqueness, and the regular expression of the driving data also has uniqueness, so that the driving data can be uniquely determined according to the regular expression of each driving data.
In order to better improve the use experience of testers, facilitate the testers to find out the defects of the system to be tested in the later period, further improve the defects of the system to be tested and improve the robustness of the system to be tested. In one implementation, after the step of executing the obtained test script to automatically test (S106) the system to be tested with the software installation completed, the method may further include:
obtaining a current test result corresponding to a system to be tested after software installation is completed;
and storing the current test result.
It can be understood that, after the automated testing process provided by the embodiment of the present invention is performed on the system to be tested each time, the embodiment of the present invention needs to obtain and store the current testing result for the system to be tested, so as to facilitate the tester to check the current testing result. In one implementation, the current test result may include information describing which test cases describe test success, information describing which test cases describe test failure, information describing the number of test success and test failure, and the like. In one implementation, a tester can check a current test result through a WEB end simulated by an electronic device for installing a preset automated test framework.
In one implementation, after the step of storing the current test result, the method may further include:
obtaining the previous N times of test results corresponding to the system to be tested after the software installation is completed, wherein N is a positive integer;
comparing the current test result with each test result in the previous N times of test results to obtain a comparison result;
the obtained comparison results are stored.
It should be noted that, the system to be tested may be automatically tested for multiple times to ensure the reliability of the test result, after the current test result is obtained, the previous N test results of the current test result may be continuously obtained, and the previous N test results and all test results in the current test result are compared to determine whether the test results are the same, and a predetermined identifier is marked for the test result with a difference.
For example, the current test result may be used as a reference for comparison, and the test result different from the current test result in the previous N times of test results may be marked with a predetermined identifier. Or, one test result in the previous N times of test results is used as a comparison reference, and the other test results except the test result used as the comparison reference in the previous N times of test results and the test result which is in the current test result and has a difference with the test result used as the comparison reference are marked with a predetermined mark. Etc., as may be desired.
In addition, the test results of the previous N times of the system to be tested and the number of test case description test successes and test failures of each test result in the current test result can be stored, and the test case description test successes and test failures of each test result can be plotted into a chart according to the sequence of the test start (or end) time. The chart may draw the number of test case description test successes and test failures in each test result with the start (or end) time of each test as a horizontal axis and the number of test case descriptions as a vertical axis.
In one implementation manner, before the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested, the method further includes:
acquiring a target project corresponding to a system to be tested, which is established in a preset automatic testing framework;
the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested comprises the following steps:
and in the created target project, obtaining the storage address information of at least one software installation package corresponding to each node to be tested.
It can be understood that, when the system to be tested needs to be automatically tested, a tester needs to create a target project for the system to be tested in a preset automatic test framework, and further, in the created target project, the storage address information of at least one software installation package corresponding to each node to be tested is obtained, where the created target project may call the automatic construction and call the automatic test by default.
In one implementation, the tester may further manually set configuration information for the created target item, and the electronic device that installs the preset automated testing framework configures the target item according to the configuration information set by the tester, for example: the configuration information may include invoking an automated build, invoking an automated test, invoking an automated save of test results, etc. for the corresponding target project. In one implementation, the preset automated testing framework may be: the Jenkins tool of the Robot Framework tool existing in the form of plug-in is added, and at this time, the created target item may be a Jenkins item.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an automatic testing apparatus, as shown in fig. 3, the apparatus may include:
a first obtaining module 310, configured to obtain storage address information of at least one software installation package corresponding to each node to be tested, where each node to be tested is: a node in a system under test;
a first determining module 320, configured to determine, according to the obtained storage address information, at least one software installation package corresponding to each node to be tested in the system to be tested;
a sending module 330, configured to send each determined software installation package to a corresponding node to be tested, so that each node to be tested installs the received at least one software installation package, and completes software installation on the system to be tested;
a second obtaining module 340, configured to obtain a test script corresponding to the to-be-tested system that completes software installation;
and the running test module 350 is configured to run the obtained test script, and perform an automated test on the system to be tested after the software installation is completed.
By applying the embodiment of the invention, the storage address information of at least one software installation package corresponding to each node to be tested in the system to be tested is obtained; determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information; sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested; obtaining a test script corresponding to a system to be tested after software installation is completed; and running the obtained test script to automatically test the system to be tested after the software installation is finished. Therefore, in the test process of the system to be tested, the software installation of the system to be tested can be automatically completed, the test of the system to be tested is automatically completed, the manual participation of testers in the test process is reduced, and the automatic coverage rate in the test process is improved.
In one implementation manner, the at least one software installation package corresponding to each node to be tested is stored in a storage node, and the obtained storage address information is: address information of the at least one software installation package in the storage node;
the first determining module 320 is specifically configured to
And determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information.
In one implementation, based on the structure shown in fig. 3, as shown in fig. 4, the apparatus may further include a fifth obtaining module 410 and an establishing connection module 420;
the fifth obtaining module 410 is configured to obtain a routing IP address of each node to be tested in the system to be tested before the determined each software installation package is sent to the corresponding node to be tested;
the connection establishing module 420 is configured to establish a secure shell protocol SSH connection with each node to be tested according to the obtained IP address;
the sending module 330 is specifically used for
And sending each determined software installation package to a corresponding node to be tested based on the established SSH connection.
In one implementation, the apparatus may further include a fourth obtaining module, a building module, a configuring module, and a fifth obtaining module;
the fourth obtaining module is configured to obtain first information sent by each node to be tested before the test script corresponding to the system to be tested that completes software installation is obtained, where the first information includes information used to describe a software installation package received after the node to be tested is successfully installed;
the building module is used for building a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) according to the obtained first information;
the configuration module is used for configuring the system to be tested after software installation is completed according to preset configuration information based on the constructed HTTP or HTTPS;
the fifth obtaining module is configured to obtain the configured system to be tested;
the second obtaining module 340 is specifically configured to
And obtaining a test script corresponding to the configured system to be tested.
In one implementation, the apparatus may further include a sixth obtaining module;
the sixth obtaining module is configured to obtain a test case description corresponding to the system to be tested, where software installation is completed, before obtaining the test script corresponding to the system to be tested, where software installation is completed;
the second obtaining module 340 is specifically configured to
And obtaining a test script corresponding to the system to be tested after the software installation is completed according to the test case description.
In one implementation, the test case description includes: at least one group of first description information, wherein each group of first description information comprises: a first identifier of the corresponding driving data;
the second obtaining module 340 is specifically configured to
Compiling and generating a test script according to at least one group of first description information contained in the test case description and a preset test execution process template corresponding to each group of first description information; wherein, the test script comprises: test object keywords corresponding to each group of first description information and drive data corresponding to each test object keyword;
each test execution process template comprises: the mapping relationship between the second description information and the test object keyword, each group of the second description information comprises: and the driving data corresponding to each test object keyword is determined by the corresponding first identifier and the second identifier.
In one implementation, the apparatus may further include a seventh obtaining module and a first storing module;
the seventh obtaining module is configured to, after the obtained test script is run and the system to be tested that completes the software installation is automatically tested, obtain a current test result corresponding to the system to be tested that completes the software installation;
the first storage module is used for storing the current test result.
In one implementation, the apparatus may further include an eighth obtaining module, a ninth obtaining module, and a second storing module;
the eighth obtaining module is configured to obtain, after the step of storing the current test result, the test result of the previous N times of the system to be tested after the software installation is completed, where N is a positive integer;
the ninth obtaining module is configured to compare the current test result with each of the previous N test results to obtain a comparison result;
and the second storage module is used for storing the obtained comparison result.
In one implementation, the apparatus may further include a tenth obtaining module;
the tenth obtaining module is configured to, before the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested, obtain a target item corresponding to the system to be tested, where the target item is created in a preset automated testing framework;
the first obtaining module 310 is specifically configured to
And in the created target project, obtaining the storage address information of at least one software installation package corresponding to each node to be tested.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an automatic test system, and as shown in fig. 5, the automatic test system may include: a storage node 510, an automated testing node 520, and at least two nodes to be tested 530;
the storage node 510 is configured to store at least one software installation package corresponding to each node to be tested, where each node to be tested is: a node in a system under test;
the automatic test node 520 is configured to obtain storage address information of at least one software installation package corresponding to each node to be tested; determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes 610 according to the obtained storage address information; sending each determined software installation package to a corresponding node to be tested;
the at least two nodes under test 530: the software installation package is used for receiving at least one software installation package sent by the automated testing node 620, installing the received at least one software installation package, and completing software installation on the system to be tested;
the automatic test node 520 is further configured to obtain a test script corresponding to the system to be tested, where the software installation is completed; and running the obtained test script to automatically test the system to be tested after the software installation is finished.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. An automated testing method, the method comprising:
obtaining storage address information of at least one software installation package corresponding to each node to be tested, wherein each node to be tested is: a node in a system under test;
determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information;
sending each determined software installation package to a corresponding node to be tested so that each node to be tested installs at least one received software installation package to complete the software installation of the system to be tested;
obtaining a test script corresponding to the system to be tested after software installation is completed;
running the obtained test script, and automatically testing the system to be tested after the software installation is finished;
at least one software installation package corresponding to each node to be tested is stored in a storage node, and the obtained storage address information is as follows: address information of the at least one software installation package in a storage node;
the step of determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information includes:
according to the obtained storage address information, automatically determining at least one software installation package corresponding to each node to be tested in the system to be tested according to a preset protocol from the storage nodes, wherein the software installation package comprises a WEB Server software installation package;
before the step of obtaining the test script corresponding to the system to be tested for completing the software installation, the method further includes:
obtaining first information sent by each node to be tested, wherein the first information comprises information used for describing a software installation package received by the node to be tested after the node to be tested is successfully installed;
according to the obtained first information, a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) is constructed;
communicating with the nodes to be tested based on the constructed HTTP or HTTPS, and configuring the system to be tested after software installation according to preset configuration information;
obtaining the configured system to be tested;
the step of obtaining the test script corresponding to the system to be tested for completing the software installation comprises the following steps:
and obtaining a test script corresponding to the configured system to be tested.
2. The method of claim 1, wherein prior to the step of sending each determined software installation package to a corresponding node under test, the method further comprises:
obtaining a routing IP address of each node to be tested in the system to be tested;
establishing a SSH (secure Shell) connection with each node to be tested according to the obtained IP address;
the step of sending each determined software installation package to the corresponding node to be tested comprises:
and sending each determined software installation package to a corresponding node to be tested based on the established SSH connection.
3. The method of claim 1, wherein prior to the step of obtaining a test script corresponding to the system under test with the software installation completed, the method further comprises:
obtaining a test case description corresponding to the system to be tested after software installation is completed;
the step of obtaining the test script corresponding to the system to be tested for completing the software installation comprises the following steps:
and obtaining a test script corresponding to the system to be tested after the software installation is completed according to the test case description.
4. The method of claim 3, wherein the test case description comprises: at least one group of first description information, wherein each group of first description information comprises: a first identifier of the corresponding driving data;
the step of obtaining the test script corresponding to the system to be tested and completing software installation according to the test case description comprises the following steps:
compiling and generating a test script according to at least one group of first description information contained in the test case description and a preset test execution process template corresponding to each group of first description information; wherein, the test script comprises: test object keywords corresponding to each group of first description information and drive data corresponding to each test object keyword;
each test execution process template comprises: the mapping relationship between the second description information and the test object keyword, each group of the second description information comprises: and the driving data corresponding to each test object keyword is determined by the corresponding first identifier and the second identifier.
5. The method of any of claims 1-4, wherein after the step of running the obtained test script to automate testing of the system under test that completed the software installation, the method further comprises:
obtaining a current test result corresponding to the system to be tested after software installation is completed;
and storing the current test result.
6. The method of claim 5, wherein after the step of storing the current test result, the method further comprises:
obtaining the previous N times of test results corresponding to the system to be tested after the software installation is completed, wherein N is a positive integer;
comparing the current test result with each test result in the previous N times of test results to obtain a comparison result;
the obtained comparison results are stored.
7. The method according to any one of claims 1-4, wherein before the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested, the method further comprises:
acquiring a target project corresponding to the system to be tested, which is created in a preset automatic testing framework;
the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested comprises the following steps:
and in the created target project, obtaining the storage address information of at least one software installation package corresponding to each node to be tested.
8. An automated testing apparatus, the apparatus comprising:
a first obtaining module, configured to obtain storage address information of at least one software installation package corresponding to each node to be tested, where each node to be tested is: a node in a system under test;
the first determining module is used for determining at least one software installation package corresponding to each node to be tested in the system to be tested according to the obtained storage address information;
the sending module is used for sending each determined software installation package to the corresponding node to be tested so as to enable each node to be tested to install the received at least one software installation package and complete the software installation of the system to be tested;
the second obtaining module is used for obtaining a test script corresponding to the system to be tested after software installation is completed;
the running test module is used for running the obtained test script and automatically testing the system to be tested after the software installation is finished;
at least one software installation package corresponding to each node to be tested is stored in a storage node, and the obtained storage address information is as follows: address information of the at least one software installation package in the storage node;
the first determining module is specifically used for
Determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information, wherein the software installation package comprises a WEB Server software installation package;
a fourth obtaining module, configured to obtain first information sent by each node to be tested before obtaining a test script corresponding to the system to be tested that completes software installation, where the first information includes information used to describe a software installation package received after the node to be tested is successfully installed;
the building module is used for building a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) according to the obtained first information;
the configuration module is used for communicating with the nodes to be tested based on the constructed HTTP or HTTPS and configuring the system to be tested after software installation according to preset configuration information;
the fifth obtaining module is used for obtaining the configured system to be tested;
the second obtaining module is specifically used for
And obtaining a test script corresponding to the configured system to be tested.
9. The apparatus of claim 8, further comprising a third obtaining module and an establishing connection module;
the third obtaining module is configured to obtain a routing IP address of each node to be tested in the system to be tested before sending each determined software installation package to the corresponding node to be tested;
the connection establishing module is used for establishing a SSH (secure Shell) connection with each node to be tested according to the obtained IP address;
the sending module is particularly used for
And sending each determined software installation package to a corresponding node to be tested based on the established SSH connection.
10. The apparatus of claim 8, further comprising a sixth obtaining module;
the sixth obtaining module is configured to obtain a test case description corresponding to the system to be tested, where software installation is completed, before obtaining the test script corresponding to the system to be tested, where software installation is completed;
the second obtaining module is specifically used for
And obtaining a test script corresponding to the system to be tested after the software installation is completed according to the test case description.
11. The apparatus of claim 10, wherein the test case description comprises: at least one group of first description information, wherein each group of first description information comprises: a first identifier of the corresponding driving data;
the second obtaining module is specifically used for
Compiling and generating a test script according to at least one group of first description information contained in the test case description and a preset test execution process template corresponding to each group of first description information; wherein, the test script comprises: test object keywords corresponding to each group of first description information and drive data corresponding to each test object keyword;
each test execution process template comprises: the mapping relationship between the second description information and the test object keyword, each group of the second description information comprises: and the driving data corresponding to each test object keyword is determined by the corresponding first identifier and the second identifier.
12. The apparatus according to any one of claims 8-11, further comprising a seventh obtaining module and a first storing module;
the seventh obtaining module is configured to, after the obtained test script is run and the system to be tested that completes the software installation is automatically tested, obtain a current test result corresponding to the system to be tested that completes the software installation;
the first storage module is used for storing the current test result.
13. The apparatus of claim 12, further comprising an eighth obtaining module, a ninth obtaining module, and a second storing module;
the eighth obtaining module is configured to obtain, after the step of storing the current test result, a previous N-time test result corresponding to the system to be tested that completes software installation, where N is a positive integer;
the ninth obtaining module is configured to compare the current test result with each of the previous N test results to obtain a comparison result;
and the second storage module is used for storing the obtained comparison result.
14. The apparatus according to any of claims 8-11, further comprising a tenth obtaining module;
the tenth obtaining module is configured to, before the step of obtaining the storage address information of at least one software installation package corresponding to each node to be tested, obtain a target item corresponding to the system to be tested, where the target item is created in a preset automated testing framework;
the first obtaining module is specifically used for
And in the created target project, obtaining the storage address information of at least one software installation package corresponding to each node to be tested.
15. An automated test system, comprising: the system comprises a storage node, an automatic test node and at least two nodes to be tested;
the storage node is configured to store at least one software installation package corresponding to each node to be tested, where each node to be tested is: a node in a system under test;
the automatic test nodes are used for obtaining the storage address information of at least one software installation package corresponding to each node to be tested; determining at least one software installation package corresponding to each node to be tested in the system to be tested from the storage nodes according to the obtained storage address information, wherein the software installation package comprises a WEB Server software installation package; sending each determined software installation package to a corresponding node to be tested;
the at least two nodes to be tested: the system comprises an automatic test node and a software installation package, wherein the automatic test node is used for receiving at least one software installation package sent by the automatic test node, installing the received at least one software installation package and completing software installation on the system to be tested;
the automatic test node is also used for obtaining a test script corresponding to the system to be tested after software installation is completed; running the obtained test script, and automatically testing the system to be tested after the software installation is finished; before the step of obtaining the test script corresponding to the system to be tested completing the software installation, the method is further used for obtaining first information sent by each node to be tested, wherein the first information comprises information used for describing a software installation package received by the node to be tested after the node to be tested is successfully installed; according to the obtained first information, a hypertext transfer protocol (HTTP) or a hypertext transfer security protocol (HTTPS) is constructed; communicating with the nodes to be tested based on the constructed HTTP or HTTPS, and configuring the system to be tested after software installation according to preset configuration information; obtaining the configured system to be tested; the step of obtaining the test script corresponding to the system to be tested for completing the software installation comprises the following steps: and obtaining a test script corresponding to the configured system to be tested.
CN201710236943.8A 2017-04-12 2017-04-12 Automatic testing method, device and system Active CN108694121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710236943.8A CN108694121B (en) 2017-04-12 2017-04-12 Automatic testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710236943.8A CN108694121B (en) 2017-04-12 2017-04-12 Automatic testing method, device and system

Publications (2)

Publication Number Publication Date
CN108694121A CN108694121A (en) 2018-10-23
CN108694121B true CN108694121B (en) 2021-12-17

Family

ID=63843919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710236943.8A Active CN108694121B (en) 2017-04-12 2017-04-12 Automatic testing method, device and system

Country Status (1)

Country Link
CN (1) CN108694121B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104337B (en) * 2018-11-01 2022-02-18 郑州云海信息技术有限公司 Method, device and equipment for testing network access control tool
CN109597764A (en) * 2018-12-10 2019-04-09 浪潮(北京)电子信息产业有限公司 A kind of test method and relevant apparatus of catalogue quota
CN109902017A (en) * 2019-03-06 2019-06-18 厦门商集网络科技有限责任公司 A kind of method and terminal based on RobotFramework test Dubbo interface
CN112256554B (en) * 2019-07-22 2023-06-16 腾讯科技(深圳)有限公司 Method and equipment for testing based on scene test cases

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035896A (en) * 2010-12-31 2011-04-27 北京航空航天大学 TTCN-3-based distributed testing framework applicable to software system
CN106502642A (en) * 2016-09-21 2017-03-15 北京深维科技有限公司 A kind of evaluation method of eda tool and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8739131B2 (en) * 2007-05-04 2014-05-27 International Business Machines Corporation Completing functional testing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035896A (en) * 2010-12-31 2011-04-27 北京航空航天大学 TTCN-3-based distributed testing framework applicable to software system
CN106502642A (en) * 2016-09-21 2017-03-15 北京深维科技有限公司 A kind of evaluation method of eda tool and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
jenkins上配置robotframeworkride自动化脚本任务;shahaizimxm;《https://blog.csdn.net/xiangmin_meng/article/details/47747235》;20150818;第1-6页 *
Jenkins进阶系列之——12详解Jenkins节点配置;爱自己;《https://www.cnblogs.com/zz0412/p/jenkins_jj_12.html》;20131221;第1-5页 *
Robotframework自定义关键字库;流浪的如影;《https://www.cnblogs.com/donjor/p/6030287.html》;20161104;第1-3页 *

Also Published As

Publication number Publication date
CN108694121A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN108694121B (en) Automatic testing method, device and system
KR101782457B1 (en) Application upgrade method and apparatus
CN107580040B (en) Method and device for upgrading communication module in intelligent household terminal
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN104717282A (en) Method, device and system for controlling intelligent terminals with Android operating system
CN107632829A (en) A kind of App automation continuous integration systems and method based under iOS system
CN105487859B (en) A kind of big data component WEB dispositions methods based on template
CN110825985B (en) Data acquisition system, method, device, control equipment and proxy equipment
CN106339273A (en) Application program restoration method, terminal and server
CN103957117A (en) System and method for achieving intelligent installation of network equipment
CN111786893A (en) method and device for synchronizing software versions of wireless routers in mesh networking
CN103186376A (en) Method, device and equipment for establishing or updating software development environment
CN107113199B (en) Analysis device for analyzing and processing communication sequences
CN111641996B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN104899134A (en) Automatic domain name registration server testing system and method
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN116257438A (en) Updating method of interface test case and related equipment
CN104811470B (en) Point-to-point transmission method and network connection device
CN104104701A (en) Online service configuration updating method and system
CN104917633A (en) Method and device simulating FOTA upgrade
US10693780B2 (en) Creating endpoints
CN114466000B (en) CDN gateway source returning method and device
US7747711B2 (en) Network configuration method and system
CN115525545A (en) Docker-based automatic testing method, system, equipment and medium
CN105897476B (en) A kind of method and device creating transmission channel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant