CN111737119A - System for automatically distributing test and collecting test result - Google Patents

System for automatically distributing test and collecting test result Download PDF

Info

Publication number
CN111737119A
CN111737119A CN202010532050.XA CN202010532050A CN111737119A CN 111737119 A CN111737119 A CN 111737119A CN 202010532050 A CN202010532050 A CN 202010532050A CN 111737119 A CN111737119 A CN 111737119A
Authority
CN
China
Prior art keywords
test
server
database
api
web server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010532050.XA
Other languages
Chinese (zh)
Inventor
武斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinhe Semiconductor Technology Wuxi Co Ltd
Original Assignee
Xinhe Semiconductor Technology Wuxi 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 Xinhe Semiconductor Technology Wuxi Co Ltd filed Critical Xinhe Semiconductor Technology Wuxi Co Ltd
Priority to CN202010532050.XA priority Critical patent/CN111737119A/en
Publication of CN111737119A publication Critical patent/CN111737119A/en
Pending legal-status Critical Current

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system for automatically distributing tests and collecting test results, which comprises a test distribution and collection server and a test machine distributed agent program, wherein the test distribution and collection server consists of a Web server and a database; the distributed agent program of the test machine is compiled based on Python, and interacts with the server through a local area network by adopting a Rest API; the front end of the Web server comprises an adding page, a management page and a viewing page; the back end of the Web server is mainly divided into a Restful API module and a database communication module; the database comprises an environmental parameter table, a test data table and a test result table. The invention enables testers to add the tests of all test machines by opening the websites of the servers in any computer of the internal local area network through the server of centralized management and the distributed agent program, manages and checks the results, and saves the human resources.

Description

System for automatically distributing test and collecting test result
Technical Field
The invention belongs to the field of automatic testing, and particularly relates to a software system for managing and managing automatic testing.
Background
Currently, when performing an automated test, a tester needs to arrange the automated test and collect automated test results in each environment, or interrupt and restart the test. However, in a situation of a large number of test environments, the tester needs to frequently go to and fro different test machines, which results in waste of human resources. Therefore, a system capable of automatically distributing tests and collecting test results is needed to reduce the waste of human resources.
Disclosure of Invention
The present invention is directed to a system for automatically distributing tests and collecting test results, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a system for automatically distributing tests and collecting test results comprises a test distribution and collection server and a test machine distributed agent program, wherein the test distribution and collection server is composed of a Web server and a MongoDB database.
The front-end WEB of the Web server is based on a Bootstrap frame, adopts JavaScript/JQuery and CSS technologies, and communicates with the rear end through a Restful API; the back end of the Web server is based on the Python flash framework and Jinjia2 template.
The MongoDB database contains three tables which are respectively environment parameters, test data and test results; the environment parameter table is used for storing parameters, such as the number of devices, the configuration of the devices and the like, which are configured in advance for each testing machine; the test data table is used for storing all added test data; and the test result table is used for storing the test results uploaded after the test is finished.
The distributed agent programs of the test machine are written based on Python, interact with the server through a local area network by adopting a Rest API, obtain test data matched with the names of the machines from the server at regular intervals, call the test tool to start testing if the test is obtained, analyze the test result after the test is finished and upload the test result to the server.
As a further scheme of the invention: the back end of the Web server is mainly divided into a Restful API module and a database communication module; the Restful API module provides an API for the front end and the agent program to use, and links corresponding function functions for the API; and the database communication module calls a Python module Pymnogo to communicate with the database, and acquires data to the API or updates the data of the API to the database.
As a further scheme of the invention: the front end of the Web server comprises an adding page, a management page and a viewing page.
As a further scheme of the invention: the Web server backend may be implemented by other technologies, such as python django.
As a further scheme of the invention: the MongoDB database may be replaced by other database types, such as MySQL.
Compared with the prior art, the invention has the advantages that: through the server of centralized management and the distributed agent program, testers can add the tests of all the test machines by opening the websites of the servers at any computer of the internal local area network, manage and check the results, and manpower resources are saved.
Drawings
Fig. 1 is a schematic diagram of a framework of a system for automatically distributing tests and collecting test results.
FIG. 2 is a flow chart of a system for automatically distributing tests and collecting test results.
FIG. 3 is a flow chart of the operation of an agent in a system for automatically distributing tests and collecting test results.
Detailed Description
The technical solution of the present patent will be described in further detail with reference to the following embodiments.
As shown in fig. 2, a system for automatically distributing tests and collecting test results includes a test distribution collection server and a test station distributed agent:
test distribution and collection server
This server deploys the following two parts:
1. a Web server:
(1) front end:
the front-end Web of the server is based on a Bootstrap frame, adopts JavaScript/JQuery and CSS technologies, communicates with the back-end through a Restful API, and comprises three pages:
1) adding a page: the page includes three modules for reading configuration, setting configuration and uploading test. And reading the corresponding environment parameters from the back end according to the machine name, forming a complete test configuration after the user configuration, and uploading the complete test configuration to the back end.
2) Managing the page: the page includes three modules for reading, managing and updating tests.
3) Viewing a page: the page includes three modules for setting filtering conditions, reading results with the conditions, and finally displaying the results.
(2) A rear end:
based on a Python flash frame and a Jinjia2 template, the method is mainly divided into two parts:
1) restful API module: the module provides an API for the front end and the agent program to use, and links corresponding function functions to the API.
2) A database communication module: the module calls a Python module Pymogo to communicate with the database, and acquires data to the API or updates the data of the API to the database.
2. MongoDB database:
the database contains a total of 3 tables:
(1) environmental parameters: the table is used to store the parameters, such as the number of devices and the device configuration, configured in advance for each testing machine.
(2) Test data: this table is used to hold all the added test data.
(3) And (3) testing results: the table is used for storing the test results uploaded after the test is finished.
Secondly, a plurality of distributed agent programs of the test machine station:
the agent program is written based on Python and interacts with the server through the local area network by adopting the Rest API.
The flow of the system is shown in fig. 1, and a tester opens a web page access server and can access the following three pages:
1) addition test:
this page is used to add new tests to the server.
After the tester opens the page, the tester selects the name of the machine to be added with the test, the server reads the configuration of the machine from the database and displays the configuration, the tester clicks the button after confirming the configuration to add the test data to the database, and the agent program of the machine can acquire the test and start the test.
2) And (3) management testing:
the page may manage tests that have been queued in the test queue, such as deleting tests, reordering tests, adjusting test priorities, and the like.
After the tester opens the page, the tester selects the name of the machine to be managed, the server displays the corresponding test data, the tester can manage the test data, and the server can be automatically updated to the database.
3) And checking results:
the page is used for checking the test result of the machine.
After the tester opens the page, the tester selects the name of the machine to be checked, and the server can present the corresponding test result.
As shown in fig. 3, the work flow of the distributed agent of the testing machine is as follows:
s1 starting the agent program;
s2, the agent program inquires whether the machine has a test to be run from the distribution server, if yes, the next step is carried out, and if not, the agent program waits for several seconds and then inquires again;
s3, if the test is inquired to be operated, the configuration parameters corresponding to the test are obtained;
s4 calls an automatic test tool and transmits the parameters acquired in S3;
s5 starting running test by the automatic test tool;
the S6 agent queries the automated test tool process every few seconds to determine if a test is still running;
and S7, if the test is finished, uploading the test result to the server, and starting the next round of inquiry from S2.
Although the preferred embodiments of the present patent have been described in detail, the present patent is not limited to the above embodiments, and various changes can be made without departing from the spirit of the present patent within the knowledge of those skilled in the art.

Claims (8)

1. A system for automatically distributing tests and collecting test results comprises a test distribution and collection server and a test machine distributed agent program, and is characterized in that the test distribution and collection server consists of a Web server and a database; the testing machine distributed agent programs are written based on Python and interact with the server through the local area network by adopting a Rest API; the front end of the Web server comprises an adding page, a management page and a viewing page; the back end of the Web server is mainly divided into a Restful API module and a database communication module; the database contains three tables, namely an environmental parameter table, a test data table and a test result table.
2. The system as claimed in claim 1, wherein the environment parameter table is used to store parameters, such as the number of devices, the configuration of devices, etc., configured in advance for each testing machine; the test data table is used for storing all added test data; and the test result table is used for storing the test results uploaded after the test is finished.
3. The system for automatically distributing tests and collecting test results according to claim 1, wherein the front-end Web of the Web server is based on a boottrap framework, and adopts JavaScript/JQuery and CSS technologies to communicate with the back-end through a Restful API.
4. The system for automated distribution of tests and collection of test results according to claim 1, wherein the back end of said Web server is based on a Python flash framework and Jinjia2 templates.
5. The system of claim 1, wherein the Restful API module provides an API for the front end and the agent and links corresponding function functions to the API.
6. The system according to claim 1, wherein the database communication module calls a Python module Pymongo to communicate with the database, and obtains data from the API or updates data of the API to the database.
7. The system of claim 3, wherein the Web server backend is implemented by other technologies, such as Python Django.
8. The system for automatically distributing tests and collecting test results of claim 1, wherein the workflow of the distributed agent of the test station is as follows:
s1 starting the agent program;
s2, the agent program inquires whether the machine has a test to be run from the distribution server, if yes, the next step is carried out, and if not, the agent program waits for several seconds and then inquires again;
s3, if the test is inquired to be operated, the configuration parameters corresponding to the test are obtained;
s4 calls an automatic test tool and transmits the parameters acquired in S3;
s5 starting running test by the automatic test tool;
the S6 agent queries the automated test tool process every few seconds to determine if a test is still running;
and S7, if the test is finished, uploading the test result to the server, and starting the next round of inquiry from S2.
CN202010532050.XA 2020-06-12 2020-06-12 System for automatically distributing test and collecting test result Pending CN111737119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010532050.XA CN111737119A (en) 2020-06-12 2020-06-12 System for automatically distributing test and collecting test result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010532050.XA CN111737119A (en) 2020-06-12 2020-06-12 System for automatically distributing test and collecting test result

Publications (1)

Publication Number Publication Date
CN111737119A true CN111737119A (en) 2020-10-02

Family

ID=72648846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010532050.XA Pending CN111737119A (en) 2020-06-12 2020-06-12 System for automatically distributing test and collecting test result

Country Status (1)

Country Link
CN (1) CN111737119A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342621A (en) * 2021-07-14 2021-09-03 芯河半导体科技(无锡)有限公司 System for monitoring and testing idle time of machine host and giving alarm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168970A1 (en) * 2005-11-07 2007-07-19 Red Hat, Inc. Method and system for automated distributed software testing
US20090307763A1 (en) * 2008-06-05 2009-12-10 Fiberlink Communications Corporation Automated Test Management System and Method
US9471478B1 (en) * 2015-08-20 2016-10-18 International Business Machines Corporation Test machine management
US20190370152A1 (en) * 2018-05-30 2019-12-05 Microsoft Technology Licensing, Llc Automatic intelligent cloud service testing tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168970A1 (en) * 2005-11-07 2007-07-19 Red Hat, Inc. Method and system for automated distributed software testing
US20090307763A1 (en) * 2008-06-05 2009-12-10 Fiberlink Communications Corporation Automated Test Management System and Method
US9471478B1 (en) * 2015-08-20 2016-10-18 International Business Machines Corporation Test machine management
US20190370152A1 (en) * 2018-05-30 2019-12-05 Microsoft Technology Licensing, Llc Automatic intelligent cloud service testing tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342621A (en) * 2021-07-14 2021-09-03 芯河半导体科技(无锡)有限公司 System for monitoring and testing idle time of machine host and giving alarm

Similar Documents

Publication Publication Date Title
CN108959059B (en) Test method and test platform
CN108430051B (en) Service opening method and equipment
CN112286806B (en) Automatic test method and device, storage medium and electronic equipment
CN109002295B (en) Static code scanning method, system, server and storage medium
CN106708740A (en) Script testing method and device
CN111522728A (en) Method for generating automatic test case, electronic device and readable storage medium
CN106411633A (en) Web application compatibility testing method based on openstack and system thereof
CN106897207A (en) Ui testing method and apparatus
CN110706800A (en) Automatic management method and device for equipment maintenance, computer equipment and storage medium
CN104122871A (en) Real-time monitoring system and real-time monitoring method of semiconductor test data
JP5989194B1 (en) Test management system and program
CN109359707B (en) Method and device for processing rock and soil sample information, computer equipment and storage medium
CN104967532A (en) TOC technology operation and maintenance system and application method
CN111737119A (en) System for automatically distributing test and collecting test result
CN112988868B (en) Steel laboratory data processing method and system
CN105813102A (en) Automatic testing system and automatic testing method
CN110599369A (en) Property asset management method and system
CN113703971B (en) Network function arrangement method based on micro-service in multi-edge cooperative computing platform
CN115080417A (en) Test case automatic generation method, electronic equipment and storage medium
CN114996081A (en) Batch job progress monitoring method and device, electronic equipment and storage medium
CN111225060A (en) Radio frequency-based index safety testing method and system
CN111291105B (en) PCB board inspection data processing method, device and storage medium
CN117389841B (en) Method and device for monitoring accelerator resources, cluster equipment and storage medium
CN114416457B (en) Computer aging centralized detection management method and device, electronic equipment and medium
CN114978937B (en) Page data verification method and device

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