CN111581081B - Automatic test system and method - Google Patents

Automatic test system and method Download PDF

Info

Publication number
CN111581081B
CN111581081B CN202010315753.7A CN202010315753A CN111581081B CN 111581081 B CN111581081 B CN 111581081B CN 202010315753 A CN202010315753 A CN 202010315753A CN 111581081 B CN111581081 B CN 111581081B
Authority
CN
China
Prior art keywords
program
service
workstation
test
service system
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
CN202010315753.7A
Other languages
Chinese (zh)
Other versions
CN111581081A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010315753.7A priority Critical patent/CN111581081B/en
Publication of CN111581081A publication Critical patent/CN111581081A/en
Application granted granted Critical
Publication of CN111581081B publication Critical patent/CN111581081B/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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test system and a method, wherein the system comprises: the automatic test system can automatically start testing, compiling the service system program, operating the service system program, sending a service request data packet, judging and feeding back the test result, and software developers can judge whether the code corresponding to the tested program has the problems of leak and defect only by checking the test result finally fed back by the automatic test system, thereby avoiding the test environment preparation work and the test execution work manually carried out by the software developers or the software testers.

Description

Automatic test system and method
Technical Field
The invention relates to the technical field of automatic software testing, in particular to an automatic testing system and method.
Background
The function of the test service system is indispensable daily work in the program development process of the service system, and the problems of bugs and defects introduced in the program development process can be found in time. However, the service systems have various functions, are associated with each other, and have complex test environments, so that a large service system on one hand includes hundreds of specific service functions, and when any one service function is modified or newly added, other service functions need to be tested. On the other hand, the service system provides service based on the IP network, a host needs to be set up to simulate a data packet of a service request sent by a user, and whether the relevant service function of the service system works normally is judged according to the processing result of the service request seen by the user host.
Therefore, the testing work of the business system often requires a lot of time and effort to prepare a testing environment, compile a program for generating the business system, run the business system program, send a service request packet, and judge and feed back a test result. The operation steps relate to a plurality of hosts, including a host for compiling programs, a server for running business system programs and a host for sending service request data packets; especially, the host sending the service request data packet needs to execute hundreds of service functions corresponding to the test of sending hundreds of service request data packets, and the monotonous test items are manually executed, so that the conditions of omission and error are very easy to occur.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide an automatic test system and method, and aims to solve the problems that test tasks are easy to miss and make mistakes when the test system is used for completing the test tasks in the prior art.
In order to achieve the above object, the present invention provides an automated test system, comprising: the system comprises an automatic test controller, a program compiling workstation, a service system server, a host computer for sending a service request and a code management server;
the automatic test controller is used for sending a command for starting a test process to the program compiling workstation;
the program compiling workstation is used for acquiring a code of a service system and a code of a simulation user from the code management server and compiling a service system program and a simulation user program respectively;
the automatic test controller is used for acquiring a compiled service system program and a compiled simulation user program from the program compiling workstation;
the automatic test controller is used for sending a service system program to the service system server, and the service system server runs the service system program after receiving the service system program and waits for a user to request service;
the automatic test controller is used for sending a simulation user program to the host sending the service request, and the host sending the service request runs the simulation user program after receiving the simulation user program;
the simulation user program in the operation of the host sending the service request sequentially sends data packets of various service requests to the service system server, and the data packets of the various service requests respectively correspond to a plurality of specific service functions of the test service system;
after receiving the service request data packets, the service system server sends corresponding processing results to the host sending the service request, and the host sending the service request collects and records the processing results corresponding to each service request data packet as test data;
the host sending the service request is used for feeding back the test data to the automatic test controller.
The automatic test system is characterized in that the automatic test controller is in communication connection with the program compiling workstation and the host sending the service request through an IP network respectively.
The automatic test system is characterized in that the program compiling workstation is in communication connection with the code management server through an IP network.
The automatic test system, wherein, the service system server and the host sending the service request are connected through IP network communication.
The automatic test system, wherein, the automatic test system still includes: a program development workstation;
the program development workstation is used for receiving the test result sent by the automatic test controller, and a programmer who develops the program development work on the program development workstation can timely obtain the test result.
The automatic test system is characterized in that the automatic test controller is in communication connection with the program development workstation through an IP network.
In order to achieve the above object, the present invention provides an automated testing method based on the automated testing system, which includes the following steps:
the automatic test controller sends a command for starting a test process to the program compiling workstation;
the program compiling workstation acquires a code of a service system and a code of a simulation user from the code management server and compiles a service system program and a simulation user program respectively;
the automatic test controller acquires a compiled service system program and a compiled simulation user program from the program compiling workstation;
the automatic test controller sends a service system program to the service system server, and the service system server runs the service system program after receiving the service system program and waits for a user to request service;
the automatic test controller sends a simulation user program to the host sending the service request, and the host sending the service request runs the simulation user program after receiving the simulation user program;
the simulation user program in the operation of the host sending the service request sequentially sends data packets of various service requests to the service system server, and the data packets of the various service requests respectively correspond to a plurality of specific service functions of the test service system;
after receiving the service request data packets, the service system server sends corresponding processing results to the host sending the service request, and the host sending the service request collects and records the processing results corresponding to each service request data packet as test data;
and the host sending the service request feeds back the test data to the automatic test controller.
The automated testing method, wherein the host sending the service request feeds back the test data to the automated testing controller, and then further comprises:
and the automatic test controller sends the test result to a program development workstation, so that a programmer who develops the program development work on the program development workstation can timely know the test result.
The invention discloses an automatic test system and a method, wherein the system comprises: the automatic test system can automatically start testing, compiling the service system program, operating the service system program, sending a service request data packet, judging and feeding back the test result, and software developers can judge whether the code corresponding to the tested program has the problems of leak and defect only by checking the test result finally fed back by the automatic test system, thereby avoiding the test environment preparation work and the test execution work manually carried out by the software developers or the software testers.
Drawings
FIG. 1 is a schematic diagram of an automated test system according to a preferred embodiment of the present invention.
FIG. 2 is a flow chart of the automated testing method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the automated testing system according to the preferred embodiment of the present invention includes: the system comprises an automatic test controller, a program compiling workstation, a business system server, a host computer for sending service requests, a code management server and a program developing workstation.
The automatic test controller is respectively in communication connection with the program compiling workstation, the host sending the service request and the program developing workstation through an IP network; the program compiling workstation is in communication connection with the code management server through an IP network; and the service system server is in communication connection with the host sending the service request through an IP network.
Specifically, the automatic test controller is configured to send a command for starting a test procedure to the program compiling workstation; the program compiling workstation is used for acquiring a code of a service system and a code of a simulation user from the code management server and compiling a service system program and a simulation user program respectively; the automatic test controller is used for acquiring a compiled service system program and a compiled simulation user program from the program compiling workstation; the automatic test controller is used for sending a service system program to the service system server, and the service system server runs the service system program after receiving the service system program and waits for a user to request service; the automatic test controller is used for sending a simulation user program to the host sending the service request, and the host sending the service request runs the simulation user program after receiving the simulation user program; the simulation user program in the operation of the host sending the service request sequentially sends data packets of various service requests to the service system server, and the data packets of the various service requests respectively correspond to a plurality of specific service functions of the test service system; after receiving the service request data packets, the service system server sends corresponding processing results to the host sending the service request, and the host sending the service request collects and records the processing results corresponding to each service request data packet as test data; the host sending the service request is used for feeding back the test data to the automatic test controller.
Further, the program development workstation is used for receiving the test result sent by the automatic test controller, so that a programmer who develops the program development work on the program development workstation can timely obtain the test result.
Based on the above automatic testing system, the automatic testing method according to the preferred embodiment of the present invention, as shown in fig. 2, includes the following steps:
step S10, the automatic test controller sends a command for starting a test process to the program compiling workstation;
step S20, the program compiling workstation acquires the codes of the service system and the simulated user from the code management server, and compiles the programs of the service system and the simulated user respectively;
step S30, the automatic test controller obtains the compiled service system program and the simulated user program from the program compiling workstation;
step S40, the automatic test controller sends a service system program to the service system server, and the service system server runs the service system program after receiving the service system program and waits for a user to request service;
step S50, the automatic test controller sends a simulation user program to the host sending the service request, and the host sending the service request runs the simulation user program after receiving the simulation user program;
step S60, the simulation user program in the operation of the host sending the service request sends the data packets of the multiple service requests to the service system server in sequence, and the data packets of the multiple service requests correspond to a plurality of specific service functions of the test service system respectively;
step S70, after receiving the service request data packet, the service system server sends the corresponding processing result to the host sending the service request, and the host sending the service request collects and records the processing result corresponding to each service request data packet as the test data;
and step S80, the host sending the service request feeds back the test data to the automatic test controller.
Further, after the step S80, the method further includes: and the automatic test controller sends the test result to a program development workstation, so that a programmer who develops the program development work on the program development workstation can timely know the test result. Software developers only need to check the test result finally fed back by the automatic test system to judge whether the code corresponding to the tested program has the problems of bugs and defects, and the preparation work and the execution test work of the test environment manually performed by the software developers or the software testers are avoided.
According to the characteristic that a server for operating a service system and a server for managing codes are based on IP network communication, the invention provides an automatic test system, which consists of an automatic test controller, a program compiling workstation, a service system server and a host for sending service requests, wherein the automatic test controller, the program compiling workstation, the service system server and the host are communicated through the IP network, and simultaneously, a test result is sent to the program developing workstation through the IP network; the automatic test system can automatically start testing, compile service system programs, run the service system programs, send service request data packets, judge and feed back test results, and achieves the purpose that the test system is programmed and automated to complete the test tasks.
In summary, the present invention provides an automated testing system and method, wherein the system includes: the automatic test system can automatically start testing, compiling the service system program, operating the service system program, sending a service request data packet, judging and feeding back the test result, and software developers can judge whether the code corresponding to the tested program has the problems of leak and defect only by checking the test result finally fed back by the automatic test system, thereby avoiding the test environment preparation work and the test execution work manually carried out by the software developers or the software testers.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. An automated test system, comprising: the system comprises an automatic test controller, a program compiling workstation, a business system server, a host computer for sending service requests, a code management server and a program development workstation;
the automatic test controller is used for sending a command for starting a test process to the program compiling workstation;
the program compiling workstation is used for acquiring a code of a service system and a code of a simulation user from the code management server and compiling a service system program and a simulation user program respectively;
the automatic test controller is used for acquiring a compiled service system program and a compiled simulation user program from the program compiling workstation;
the automatic test controller is used for sending a service system program to the service system server, and the service system server runs the service system program after receiving the service system program and waits for a user to request service;
the automatic test controller is used for sending a simulation user program to the host sending the service request, and the host sending the service request runs the simulation user program after receiving the simulation user program;
the simulation user program in the operation of the host sending the service request sequentially sends data packets of various service requests to the service system server, and the data packets of the various service requests respectively correspond to a plurality of specific service functions of the test service system;
after receiving the service request data packets, the service system server sends corresponding processing results to the host sending the service request, and the host sending the service request collects and records the processing results corresponding to each service request data packet as test data;
the host sending the service request is used for feeding back test data to the automatic test controller;
the program development workstation is used for receiving the test result sent by the automatic test controller, and a programmer who develops the program development work on the program development workstation can timely obtain the test result.
2. The automated test system of claim 1, wherein the automated test controller is communicatively coupled to the program compilation workstation and the host sending the service request, respectively, via an IP network.
3. The automated test system of claim 1, wherein the program compilation workstation is communicatively coupled to the code management server via an IP network.
4. The automated test system of claim 1, wherein the business system server is communicatively coupled to the host sending the service request via an IP network.
5. The automated test system of claim 1, wherein the automated test controller is communicatively coupled to the program development workstation via an IP network.
6. An automated testing method based on the automated testing system according to any one of claims 1 to 5, wherein the automated testing method comprises:
the automatic test controller sends a command for starting a test process to the program compiling workstation;
the program compiling workstation acquires a code of a service system and a code of a simulation user from the code management server and compiles a service system program and a simulation user program respectively;
the automatic test controller acquires a compiled service system program and a compiled simulation user program from the program compiling workstation;
the automatic test controller sends a service system program to the service system server, and the service system server runs the service system program after receiving the service system program and waits for a user to request service;
the automatic test controller sends a simulation user program to the host sending the service request, and the host sending the service request runs the simulation user program after receiving the simulation user program;
the simulation user program in the operation of the host sending the service request sequentially sends data packets of various service requests to the service system server, and the data packets of the various service requests respectively correspond to a plurality of specific service functions of the test service system;
after receiving the service request data packets, the service system server sends corresponding processing results to the host sending the service request, and the host sending the service request collects and records the processing results corresponding to each service request data packet as test data;
the host sending the service request feeds back test data to the automatic test controller;
and the automatic test controller sends the test result to a program development workstation, so that a programmer who develops the program development work on the program development workstation can timely know the test result.
CN202010315753.7A 2020-04-21 2020-04-21 Automatic test system and method Active CN111581081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010315753.7A CN111581081B (en) 2020-04-21 2020-04-21 Automatic test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010315753.7A CN111581081B (en) 2020-04-21 2020-04-21 Automatic test system and method

Publications (2)

Publication Number Publication Date
CN111581081A CN111581081A (en) 2020-08-25
CN111581081B true CN111581081B (en) 2022-03-22

Family

ID=72114902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010315753.7A Active CN111581081B (en) 2020-04-21 2020-04-21 Automatic test system and method

Country Status (1)

Country Link
CN (1) CN111581081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866057B (en) * 2021-01-11 2023-03-10 北京科技大学设计研究院有限公司 Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server
CN105550001A (en) * 2015-12-24 2016-05-04 厦门市美亚柏科信息股份有限公司 Distributed automatic construction method and system
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 Automatic system integration method based on timing construction
CN110727575A (en) * 2018-07-17 2020-01-24 腾讯科技(深圳)有限公司 Information processing method, system, device and storage medium
CN110955432A (en) * 2019-11-20 2020-04-03 中国联合网络通信集团有限公司 Continuously integrated publishing method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server
CN105550001A (en) * 2015-12-24 2016-05-04 厦门市美亚柏科信息股份有限公司 Distributed automatic construction method and system
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 Automatic system integration method based on timing construction
CN110727575A (en) * 2018-07-17 2020-01-24 腾讯科技(深圳)有限公司 Information processing method, system, device and storage medium
CN110955432A (en) * 2019-11-20 2020-04-03 中国联合网络通信集团有限公司 Continuously integrated publishing method, device and system

Also Published As

Publication number Publication date
CN111581081A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
US8954930B2 (en) System and method for reducing test effort by object risk analysis
WO2020140820A1 (en) Software testing method, system, apparatus, device, medium, and computer program product
CN110008123B (en) Method for automatically deploying test software and corresponding device
CN111651366B (en) SDK test method, device, equipment and storage medium
US7895565B1 (en) Integrated system and method for validating the functionality and performance of software applications
WO2016177124A1 (en) Method and device for implementing continuous integration test
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20150100832A1 (en) Method and system for selecting and executing test scripts
CN106708718B (en) Service framework interface test method and device
CN107302476B (en) Automatic testing method and system for testing asynchronous interactive system
US20150100830A1 (en) Method and system for selecting and executing test scripts
US20150100831A1 (en) Method and system for selecting and executing test scripts
CN111611157B (en) GMS continuous integration construction automatic test method and system
CN107329889B (en) Method for automatically testing C compiler
CN114297666A (en) Cloud deployment automation vulnerability mining system based on fuzzy test
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN113742215A (en) Method and system for automatically configuring and calling test tool to perform test analysis
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN113296787A (en) Online development and code hosting system based on cloud platform and using method
CN111581081B (en) Automatic test system and method
US11341030B2 (en) Scriptless software test automation
CN112506772A (en) Web automatic testing method and device, electronic equipment and storage medium
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN114647588A (en) Interface test method and device
CN110928798A (en) Code testing method, device and equipment

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