CN110716860B - Cloud platform-based automatic test tool management method and system - Google Patents

Cloud platform-based automatic test tool management method and system Download PDF

Info

Publication number
CN110716860B
CN110716860B CN201910819222.9A CN201910819222A CN110716860B CN 110716860 B CN110716860 B CN 110716860B CN 201910819222 A CN201910819222 A CN 201910819222A CN 110716860 B CN110716860 B CN 110716860B
Authority
CN
China
Prior art keywords
test tool
test
configuration information
setting
tool
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
CN201910819222.9A
Other languages
Chinese (zh)
Other versions
CN110716860A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910819222.9A priority Critical patent/CN110716860B/en
Publication of CN110716860A publication Critical patent/CN110716860A/en
Application granted granted Critical
Publication of CN110716860B publication Critical patent/CN110716860B/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/3668Software testing
    • G06F11/3672Test management
    • 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/368Test management for test version control, e.g. updating test cases to a new software version
    • 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/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

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

Abstract

The invention provides a cloud platform-based automatic test tool management method and a cloud platform-based automatic test tool management system, wherein the method comprises the following steps: s1, setting a cloud platform to store configuration information of a testing tool; s2, setting a test script to acquire configuration information of a test tool through a cloud platform; s3, setting a test script, automatically matching according to the configuration information of the test tool, and downloading the test tool; s4, setting a test script, and calling a test tool to test. The system comprises: the device comprises a test tool configuration information storage module, a test tool configuration information acquisition module, a test tool downloading module and a test module. The cloud platform-based automatic test tool management method and system provided by the invention realize intelligent management of the automatic test tools, reduce the labor cost of test tool management, ensure the accuracy of test tool calling during test execution, ensure the accurate execution of product tests, and ensure the product quality.

Description

Cloud platform-based automatic test tool management method and system
Technical Field
The invention belongs to the technical field of software automation testing, and particularly relates to an automation testing tool management method and system based on a cloud platform.
Background
When software is automatically tested, a calling tool is a common test method, but as the test range is widened, the used test tools are increased continuously, the update of tool versions is more difficult to manage, and the calling script of the tools also needs more manpower to maintain.
At present, an automatic test carried out by a calling tool is directly fixed in a script, but when the version of the tool is changed, the tool can only be maintained by modifying the script, and along with the increasing of the tools, the management of the tools can be disordered gradually, so that the accuracy of the tool called by the test script cannot be ensured.
This is a deficiency of the prior art, and therefore, it is necessary to provide a cloud platform-based automated test tool management method and system for overcoming the above-mentioned drawbacks of the prior art.
Disclosure of Invention
Aiming at the defects of disordered tool management caused by tool version change or tool increase in the prior art that the existing software test calling tool is subjected to automatic test, the invention provides a cloud platform-based automatic test tool management method and system, and aims to solve the technical problems.
In a first aspect, the present invention provides a cloud platform-based automated test tool management method, including the steps of:
s1, setting a cloud platform to store configuration information of a testing tool;
s2, setting a test script to acquire configuration information of a test tool through a cloud platform;
s3, setting a test script, automatically matching according to the configuration information of the test tool, and downloading the test tool;
s4, setting a test script, and calling a test tool to test.
Further, the specific steps of step S1 are as follows:
s11, generating a test tool configuration file by using a test object and a storage path of the test tool;
s12, storing the test tool configuration file to the cloud platform. The storage path may be in tabular form, with the test tool name and the storage path as keywords.
Further, the step S1 further includes the following steps:
s13, judging whether the configuration information of the actual testing tool changes or not;
if yes, setting the cloud platform to update the configuration information of the testing tool; step S2 is entered;
if not, go to step S2. Judging configuration information of the test tool once when the test tool is called each time; background monitoring test tool configuration information may also be provided.
Further, in step S13, when the test tool is added or the version is changed, the cloud platform changes the test tool storage path. When the number of the test tools is increased, a record needs to be added in the test tool configuration file, and when the version of the test tool is changed, the storage path of the original version of the test tool needs to be changed.
Further, the specific steps of step S2 are as follows:
s21, setting a test script to acquire a test tool configuration file from the cloud platform;
s22, the cloud platform is set to pack the test tool configuration file to generate a JSON format file, and the JSON format file is provided for the test script. The JSON format file facilitates test script reading.
Further, the specific steps of step S3 are as follows:
s31, the test script reads the JSON format file to obtain a test tool storage path;
s32, copying the test script to the corresponding test tool through the test tool storage path. The test script can quickly read the storage path and the name of the test tool through the JSON format file.
In a second aspect, the present invention provides an automated test tool management system based on a cloud platform, comprising:
the testing tool configuration information storage module is used for setting the cloud platform to store testing tool configuration information;
the test tool configuration information acquisition module is used for setting a test script to acquire test tool configuration information through the cloud platform;
the test tool downloading module is used for setting a test script to automatically match and download the test tool according to the test tool configuration information;
and the test module is used for setting a test script to call the test tool for testing.
Further, the test tool configuration information storage module includes:
the test tool configuration file generation unit is used for generating a test tool configuration file from a test object and a storage path of the test tool;
and the test tool configuration file storage unit is used for storing the test tool configuration file to the cloud platform. The storage path may be in tabular form, with the test tool name and the storage path as keywords.
Further, the test tool configuration information storage module further includes:
the test tool configuration information change judging unit is used for judging whether the actual test tool configuration information is changed or not;
and the test tool configuration information updating unit is used for setting the cloud platform to update the test tool configuration information when the actual test tool configuration information changes. Judging configuration information of the test tool once when the test tool is called each time; background monitoring test tool configuration information may also be provided.
Further, the test tool configuration information acquisition module includes:
the test tool configuration file acquisition unit is used for setting a test script to acquire a test tool configuration file from the cloud platform;
and the test tool configuration file packaging unit is used for setting the cloud platform to package the test tool configuration file to generate a JSON format file and provide the JSON format file for the test script. The JSON format file facilitates test script reading.
Further, the test tool download module includes:
the storage path acquisition unit is used for setting a test script to read the JSON format file to acquire a test tool storage path;
and the test tool copying unit is used for setting the test script to copy the corresponding test tool through the test tool storage path. The test script can quickly read the storage path and the name of the test tool through the JSON format file.
The invention has the advantages that,
the cloud platform-based automatic test tool management method and system provided by the invention realize intelligent management of the automatic test tools, reduce the labor cost of test tool management, ensure the accuracy of test tool calling during test execution, ensure the accurate execution of product tests, and ensure the product quality.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of the method of the present invention;
FIG. 2 is a second schematic flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of a system according to the present invention;
in the figure, a 1-test tool is configured with an information storage module; 1.1-a test tool configuration file generation unit; 1.2-a test tool configuration file storage unit; 1.3-a test tool configuration information change judging unit; 1.4-a test tool configuration information updating unit; 2-a test tool configuration information acquisition module; 2.1-a test tool configuration file acquisition unit; 2.2-test tool configuration file packaging unit; 3-a test tool download module; 3.1-a storage path acquisition unit; 3.2-test tool copy unit; 4-test module.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Example 1:
as shown in fig. 1, the invention provides an automated test tool management method based on a cloud platform, which comprises the following steps: s1, setting a cloud platform to store configuration information of a testing tool;
s2, setting a test script to acquire configuration information of a test tool through a cloud platform;
s3, setting a test script, automatically matching according to the configuration information of the test tool, and downloading the test tool;
s4, setting a test script, and calling a test tool to test.
Example 2:
as shown in fig. 2, the invention provides an automated test tool management method based on a cloud platform, which comprises the following steps:
s1, setting a cloud platform to store configuration information of a testing tool; the method comprises the following specific steps:
s11, generating a test tool configuration file by using a test object and a storage path of the test tool;
s12, storing the configuration file of the test tool to a cloud platform;
s13, judging whether the configuration information of the actual testing tool changes or not;
if yes, setting the cloud platform to update the configuration information of the testing tool; step S2 is entered;
if not, entering step S2;
s2, setting a test script to acquire configuration information of a test tool through a cloud platform; the method comprises the following specific steps:
s21, setting a test script to acquire a test tool configuration file from the cloud platform;
s22, setting a cloud platform to pack the test tool configuration file to generate a JSON format file, and providing the JSON format file for a test script;
s3, setting a test script, automatically matching according to the configuration information of the test tool, and downloading the test tool; the method comprises the following specific steps:
s31, the test script reads the JSON format file to obtain a test tool storage path;
s32, copying the test script to a corresponding test tool through a test tool storage path;
s4, setting a test script, and calling a test tool to test.
In the above embodiment 2, in step S13, when the test tool is added or the version is changed, the cloud platform changes the test tool storage path.
Example 3:
as shown in fig. 3, an automated test tool management system based on a cloud platform includes:
the testing tool configuration information storage module 1 is used for setting a cloud platform to store testing tool configuration information; the test tool configuration information storage module 1 includes:
a test tool configuration file generating unit 1.1, configured to generate a test tool configuration file from a test object and a storage path of a test tool;
the test tool configuration file storage unit 1.2 is used for storing the test tool configuration file to the cloud platform;
the test tool configuration information change judging unit 1.3 is used for judging whether the actual test tool configuration information is changed or not;
the test tool configuration information updating unit 1.4 is used for setting a cloud platform to update the test tool configuration information when the actual test tool configuration information changes;
the test tool configuration information acquisition module 2 is used for setting a test script to acquire test tool configuration information through the cloud platform; the test tool configuration information acquisition module 2 includes:
the test tool configuration file obtaining unit 2.1 is used for setting a test script to obtain a test tool configuration file from the cloud platform;
the test tool configuration file packaging unit 2.2 is used for setting a cloud platform to package the test tool configuration file to generate a JSON format file and provide the JSON format file for the test script;
the test tool downloading module 3 is used for setting a test script to automatically match and download the test tool according to the test tool configuration information; the test tool download module 3 includes:
a storage path obtaining unit 3.1, configured to set a test script to read a JSON format file to obtain a storage path of a test tool;
a test tool copying unit 3.2 for setting a test script to copy the corresponding test tool through a test tool storage path;
and the test module 4 is used for setting a test script to call a test tool for testing.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (2)

1. The cloud platform-based automatic test tool management method is characterized by comprising the following steps of: s1, setting a cloud platform to store configuration information of a testing tool; the method comprises the following specific steps:
s11, generating a test tool configuration file by using a test object and a storage path of the test tool;
s12, storing the configuration file of the test tool to a cloud platform; the storage path is in a table form, and the test tool name and the storage path are used as keywords;
s13, judging whether the configuration information of the actual testing tool changes or not; judging configuration information of the test tool once when the test tool is called each time; or setting background monitoring test tool configuration information;
if yes, setting the cloud platform to update the configuration information of the testing tool; step S2 is entered; when the test tool is added, a record needs to be added in the test tool configuration file, and when the test tool version is changed, the storage path of the original test tool version needs to be changed;
if not, entering step S2;
s2, setting a test script to acquire configuration information of a test tool through a cloud platform; the method comprises the following specific steps:
s21, setting a test script to acquire a test tool configuration file from the cloud platform;
s22, setting a cloud platform to pack the test tool configuration file to generate a JSON format file, and providing the JSON format file for a test script;
s3, setting a test script, automatically matching according to the configuration information of the test tool, and downloading the test tool; the method comprises the following specific steps:
s31, the test script reads the JSON format file to obtain a test tool storage path;
s32, copying the test script to a corresponding test tool through a test tool storage path;
s4, setting a test script, and calling a test tool to test.
2. An automated test tool management system based on a cloud platform, comprising:
the testing tool configuration information storage module (1) is used for setting a cloud platform to store testing tool configuration information; the test tool configuration information storage module (1) includes:
a test tool configuration file generating unit (1.1) for generating a test tool configuration file from a test object of the test tool and a storage path;
a test tool configuration file storage unit (1.2) for storing a test tool configuration file to the cloud platform; the storage path is in a table form, and the test tool name and the storage path are used as keywords;
a test tool configuration information change judging unit (1.3) for judging whether the actual test tool configuration information is changed; judging configuration information of the test tool once when the test tool is called each time; or setting background monitoring test tool configuration information;
the test tool configuration information updating unit (1.4) is used for setting the cloud platform to update the test tool configuration information when the actual test tool configuration information changes; when the test tool is added, a record needs to be added in the test tool configuration file, and when the test tool version is changed, the storage path of the original test tool version needs to be changed;
the test tool configuration information acquisition module (2) is used for setting a test script to acquire test tool configuration information through the cloud platform; the test tool configuration information acquisition module (2) includes:
the test tool configuration file acquisition unit (2.1) is used for setting a test script to acquire a test tool configuration file from the cloud platform;
the test tool configuration file packaging unit (2.2) is used for setting a cloud platform to package the test tool configuration file to generate a JSON format file and provide the JSON format file for the test script;
the test tool downloading module (3) is used for setting a test script to automatically match and download the test tool according to the test tool configuration information; the test tool download module (3) includes:
a storage path acquisition unit (3.1) for setting a test script to read a JSON format file to acquire a test tool storage path;
a test tool copying unit (3.2) for setting a test script to copy the corresponding test tool through the test tool storage path;
and the test module (4) is used for setting a test script to call a test tool for testing.
CN201910819222.9A 2019-08-31 2019-08-31 Cloud platform-based automatic test tool management method and system Active CN110716860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910819222.9A CN110716860B (en) 2019-08-31 2019-08-31 Cloud platform-based automatic test tool management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910819222.9A CN110716860B (en) 2019-08-31 2019-08-31 Cloud platform-based automatic test tool management method and system

Publications (2)

Publication Number Publication Date
CN110716860A CN110716860A (en) 2020-01-21
CN110716860B true CN110716860B (en) 2023-06-09

Family

ID=69209671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910819222.9A Active CN110716860B (en) 2019-08-31 2019-08-31 Cloud platform-based automatic test tool management method and system

Country Status (1)

Country Link
CN (1) CN110716860B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597043A (en) * 2020-12-28 2021-04-02 深圳供电局有限公司 Software testing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776314A (en) * 2016-12-14 2017-05-31 普华基础软件股份有限公司 A kind of test system
CN109522173A (en) * 2018-11-02 2019-03-26 郑州云海信息技术有限公司 A kind of OPA network card testing method, device, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776314A (en) * 2016-12-14 2017-05-31 普华基础软件股份有限公司 A kind of test system
CN109522173A (en) * 2018-11-02 2019-03-26 郑州云海信息技术有限公司 A kind of OPA network card testing method, device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
于艳等.共享脚本技术与启发.《软件测试策略、设计及其自动化实战》.2019,第81页. *
分布式应用的系统协同测试方案;张俊生等;《计算机工程》;20111031;第37卷(第20期);第21-23页 *

Also Published As

Publication number Publication date
CN110716860A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN112306855B (en) Interface automation test method, device, terminal and storage medium
CN109885480B (en) Automatic interface compatibility testing method and device based on debugging bridge
CN104932973A (en) Version compatibility test method and apparatus
CN110716860B (en) Cloud platform-based automatic test tool management method and system
CN114398293A (en) Interface test case generation method, electronic device and storage medium
CN111209188A (en) Testing method and device for distributed storage system
CN110147313B (en) Log output method and device
CN116860322A (en) Front-end data source processing method, device, equipment and storage medium
CN114661615B (en) FPGA software testing method and device
CN114385493A (en) Performance test method and device, electronic equipment and storage medium
CN114817047A (en) Compiler test method, case generation method and device and instruction storage structure
CN113656318A (en) Software version testing method and device and computer equipment
CN111061244A (en) Automatic testing method for power distribution master station monitoring system
CN117435510B (en) Automatic test method, terminal equipment and computer readable storage medium
CN113568662B (en) Code change influence range analysis method and system based on calling relation
CN105531726A (en) Product sampling inspection method, apparatus and system
CN116560722B (en) Operation and maintenance flow processing method and device, electronic equipment and storage medium
CN117290253B (en) Code testing method, device, communication equipment and storage medium
CN115794580A (en) System influence analysis method and device, electronic equipment and storage medium
CN116974932A (en) Interface testing method and device, electronic equipment and computer storage medium
CN117370189A (en) Automatic integrated test method and related products
CN117130895A (en) Interface testing method, device, electronic equipment and medium
CN114138646A (en) CAD (computer-aided design) resource verification method and device, storage medium and processor
CN116471191A (en) Protocol data simulation method, system, equipment and storage medium
CN117667680A (en) Use case testing method, system, 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
GR01 Patent grant
GR01 Patent grant