CN113051155A - Control system and control method of automatic test platform - Google Patents

Control system and control method of automatic test platform Download PDF

Info

Publication number
CN113051155A
CN113051155A CN202110264213.5A CN202110264213A CN113051155A CN 113051155 A CN113051155 A CN 113051155A CN 202110264213 A CN202110264213 A CN 202110264213A CN 113051155 A CN113051155 A CN 113051155A
Authority
CN
China
Prior art keywords
test
case
module
platform
control 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.)
Pending
Application number
CN202110264213.5A
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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202110264213.5A priority Critical patent/CN113051155A/en
Publication of CN113051155A publication Critical patent/CN113051155A/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/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

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 application discloses a control system and a control method of an automatic test platform. Wherein, the control system is connected with the automation platform; the control system includes: the client side is connected with the server side through a network, wherein: the client is used for carrying out login operation on a user and receiving the environment parameter setting operation and the use case selection operation of the user after the login is successful; the server side comprises: the device comprises a login management module, a test environment configuration module, a test case setting module, a test case execution module and a test report processing module. By adopting the technical scheme provided by the embodiment of the application, the operation of the automatic test platform can be simplified, the safety of the test case is ensured, meanwhile, the test report can be output by adopting a standard format, the operation difficulty of testers is reduced, and the use experience of the testers is improved.

Description

Control system and control method of automatic test platform
Technical Field
The application relates to the technical field of computers, in particular to a control system and a control method of an automatic test platform.
Background
With the rapid development of the technology level, the system test becomes an important link for the system to be able to run on line normally. With the development and improvement of the testing technology capability, the automatic testing technology is mature day by day, and accordingly, the eight-door automatic testing platform/framework is produced. The styles of the test platforms are different due to different programming languages, use scenes and applicable objects. Too much miscellaneous platform function, for the test executive personnel, easily causes certain puzzlement in the use. In addition, codes and data of use cases are presented in a clear text when the automatic test platform is developed and delivered, and the sensitive information is directly exposed, so that the problem of information leakage can be caused, and the cheating problem that the data/codes are tampered in the test process can not be effectively avoided. Also, the presentation of reports, if not streamlined and intuitive enough, may cause difficulty and inefficiency in result determination without being familiar with use case implementation.
Disclosure of Invention
The embodiment of the application provides a control system and a control method of an automatic test platform. By adopting the technical scheme provided by the embodiment of the application, the operation of the automatic test platform can be simplified, the safety of the test case is ensured, meanwhile, the test report can be output by adopting a standard format, the operation difficulty of testers is reduced, and the use experience of the testers is improved.
The embodiment of the application provides a control system of an automatic test platform, wherein the control system is connected with the automatic test platform; the control system includes: the client side is connected with the server side through a network, wherein:
the client is used for carrying out login operation on a user and receiving the environment parameter setting operation and the use case selection operation of the user after the login is successful;
the server side comprises: the system comprises a login management module, a test environment configuration module, a test case setting module, a test case execution module and a test report processing module;
the login management module is used for authenticating the identity of the user;
the test environment configuration module is used for writing the environment parameters into an environment configuration file according to the environment parameter setting operation, copying the environment parameters to a target path of the automatic test platform and generating a global unique identifier;
the test case setting module is used for determining a test case set and a test case sequence according to the case selection operation, generating a case set file based on the test case set and the test case sequence, writing the global unique identifier into the case set file, and copying the case set file with the global unique identifier to a file management subsystem of an automatic test platform;
the test case execution module is used for determining an environment configuration file and a case set file according to the global unique identifier so as to schedule the automatic test platform for testing;
and the test report processing module is used for calling a test record through the global unique identifier after the test is finished so as to obtain a test report.
Furthermore, the device also comprises a test state monitoring module;
the test state monitoring module is used for acquiring the test progress of the automatic test platform and returning the execution result of the completed test case if a test progress query event is detected; the test progress query event comprises a test progress query event and a timing test progress query event sent by a client.
Further, the test status monitoring module is further configured to:
if the test termination event is detected, acquiring and storing the test progress of the automatic test platform, and returning the execution result of the completed test case; the test abort event comprises a test exception event and/or a test abort instruction issuing event.
Further, the globally unique identifier includes a global time ID generated based on a system time when the environment profile is copied to an automation test platform.
Further, the system also comprises a basic input and output module;
the basic input and output module is used for receiving an HTTP request sent by a client and determining processing logic according to the HTTP request; and the server is also used for outputting the rendered data and the web interface template and sending the rendered data and the web interface template to the client.
Further, the client is further configured to: receiving a use case sequence sorting operation of a user, and determining a test use case sequence according to the use case sequence sorting operation.
Further, the test case execution module is specifically configured to:
and starting a subprocess to schedule the automatic test platform, searching the copied environment configuration file and the case set file according to the global unique identifier, and determining a test environment by adopting the searched environment configuration file so as to test the searched case set file.
Furthermore, the environment configuration file and the use case assembly file with the globally unique identifier are copied to an automatic test platform by adopting an XML format file.
The embodiment of the present application further provides a control method for an automated testing platform, where the control method is executed by the control system for an automated testing platform provided in the embodiment of the present application, and the control method includes:
if the login operation of the user is detected, determining whether an environment configuration file associated with the user information exists;
if so, calling a global unique identifier according to the environment configuration file;
determining whether the operation parameters of the use case set file are true or not according to the global unique identifier;
if the test result is true, determining the test progress of the case assembly file according to the case assembly file operation parameters, and continuing to test.
Further, after determining whether an environment profile associated with the user information exists, the method further comprises:
and if not, generating an environment configuration file according to the environment parameter setting operation of the user and generating a global unique identifier.
The embodiment of the application adopts the following technical scheme: the control system is man-machine interaction system software (hereinafter referred to as an interaction system) with a B/S (browser/Server) structure, and is divided into a Server end (service end) and a browser end (web interface client), the interaction system presents the web interface client to a user, the client receives user input/operation instructions, the service end responds to the input or the instructions of the user (namely, a test executive), performs linkage operation of data and all test related modules at the whole rear end, executes corresponding operation of a background and returns a result after processing. And a server side of the interactive system is operated on a server for operating the automatic test platform, and a user can use a remote or local web browser to connect to the interactive system to realize the control and interaction of the automatic test platform. The user completes the control of the whole testing process through the operation of the web interface. The interactive system operates independently of the automatic test platform, interacts with the automatic test platform in an XML file mode, imports a test configuration/test case set input/selected by a user into a file system of the automatic test platform, and starts the automatic test platform to execute a test in a background in a subprocess calling mode, so that the control of the automatic test platform is realized.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
the invention provides a test control flow to ensure the orderly execution of the automatic test platform and optimally present the test result by searching and processing the test record file of the automatic test platform. The interactive system encapsulates and hides the automatic test platform, provides a human-computer interaction interface for interaction of test execution personnel and the automatic test platform, dispatches the automatic test platform to carry out test configuration and test execution, provides corresponding functions of test monitoring, report data processing and the like, and improves the usability and the safety of the automatic test platform.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of a control system of an automated test platform according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating server functions provided by a second embodiment of the present invention;
fig. 3 is a schematic diagram of the client function provided in the second embodiment of the present invention;
FIG. 4 is a schematic diagram of the interaction provided by embodiment two of the present invention;
fig. 5 is a schematic diagram of a data interaction layer of a control system according to a second embodiment of the present invention;
fig. 6 is a schematic flowchart of a control method of an automated test platform according to a third embodiment of the present invention;
fig. 7 is a flowchart illustrating a control method of another automated test platform according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, 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 application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic structural diagram of a control system of an automatic test platform according to an embodiment of the present invention, where the present embodiment is applicable to a situation where an automatic test platform interacts and controls, and the system may execute the control method of the automatic test platform according to the embodiment of the present invention, and the system may be implemented in a software and/or hardware manner.
As shown in fig. 1, the control system is connected 200 to an automation platform; the control system includes: client 110 and server 120, the client 110 and the server 120 are connected through a network, wherein:
the client 110 is configured to perform login operation on a user, and receive an environment parameter setting operation and a use case selecting operation of the user after the login is successful;
the server 120 includes: a login management module 121, a test environment configuration module 122, a test case setting module 123, a test case execution module 124 and a test report processing module 125;
the login management module 121 is configured to authenticate a user identity;
the test environment configuration module 122 is configured to write the environment parameters into an environment configuration file according to the environment parameter setting operation, copy the environment parameters to a target path of the automated test platform, and generate a global unique identifier;
the test case setting module 123 is configured to determine a test case set and a test case sequence according to the case selection operation, generate a case set file based on the test case set and the test case sequence, write the global unique identifier into the case set file, and copy the case set file with the global unique identifier to a file management subsystem of an automated testing platform;
the test case execution module 124 is configured to determine an environment configuration file and a case set file according to the globally unique identifier, so as to schedule the automated testing platform to perform testing;
the test report processing module 125 is configured to call a test record through the globally unique identifier after the test is completed, so as to obtain a test report.
The client 110 may provide a web interface for a user to perform login operation, environment parameter setting operation, use case selection operation, and the like in the client. It will be appreciated that after completion of the test, the client 110 also returns the test results through the web interface for viewing by the user.
In the scheme, the client and the server are connected through the network, so that information input by a user at the client can be sent to the server in the form of an HTTP request, and the server can perform specific business processing after analyzing a clear instruction.
The server 120 includes a login management module 121, configured to authenticate the user identity. Specifically, the login management module 121 may allow a valid user to operate, and deny an access of an invalid user.
The server 120 includes a testing environment configuration module 122, which sets environment parameters according to user input, records an environment configuration file and copies the environment configuration file to an assigned path of an automated testing platform file system, and records a configuration log, and generates a global unique identifier.
Optionally, the globally unique identifier includes a global time ID generated based on a system time when the environment configuration file is copied to an automation test platform.
I.e. copying to the specified path of the automated test platform file system, recording the configuration log, and generating the global time ID. The subsequent functions need to perform test flow control according to the global time ID, so that one user can only start one test case at the same time, and files and reports used in one test case are associated with the global time ID.
The server 120 includes a test case setting module 123, and specifically, may set a test case sequence in order according to a test case set selected by a user or an uploaded file including the test case set, generate a case set file, write a global time ID, and finally copy the file to an automated test platform file system and record a case selection log.
In this embodiment, optionally, the client 110 is further configured to: receiving a use case sequence sorting operation of a user, and determining a test use case sequence according to the use case sequence sorting operation.
The user can sort the test cases according to the need, for example, according to the importance degree or the sequence of program execution. The method has the advantages that the user can determine the test sequence of the use cases according to the actual requirements of the user, and the operability of the user on the whole test process is improved.
The server 120 includes a test case execution module 124, configured to invoke an automated test strip for testing.
In this embodiment, specifically, the test case execution module 124 is specifically configured to:
and starting a subprocess to schedule the automatic test platform, searching the copied environment configuration file and the case set file according to the global unique identifier, and determining a test environment by adopting the searched environment configuration file so as to test the searched case set file.
In the scheme, the subprocess scheduling automatic test platform is started to start testing, an executed environment configuration file and a test case file are searched according to the global time ID, the execution sequence of the test cases is carried out according to the sequence selected by a user, and a subprocess log and a test platform log are recorded by a pipeline method.
The server 120 includes a test report processing module 125, configured to search, by the global time ID, a test record of the current test case in a file system of the automated testing platform when it is detected that the current test case has been completed. And analyzing and extracting test result information according to an original HTML/XML test record generated when the test of the automatic test platform is completed, and generating an HTML test report after processing.
The scheme ensures the real-time performance of the test record through the dynamic writing of the test record. Meanwhile, the global time ID is used for searching, and the accuracy of test result recording is ensured.
In a possible embodiment, optionally, the server 120 further includes a test status monitoring module 126;
the test state monitoring module 126 is configured to, if a test progress query event is detected, obtain a test progress of the automated test platform, and return an execution result of a completed test case; the test progress query event comprises a test progress query event and a timing test progress query event sent by a client.
The test state monitoring module is arranged, so that the test state of the automatic test platform can be acquired in real time, and corresponding test records are derived, and the test result of the current test filling and the completed test case can be called at any time after the test.
In this scheme, optionally, the test state monitoring module is further configured to:
if the test termination event is detected, acquiring and storing the test progress of the automatic test platform, and returning the execution result of the completed test case; the test abort event comprises a test exception event and/or a test abort instruction issuing event.
Specifically, the test state monitoring module: the following four options exist for the test case corresponding to the current time ID:
1. manually checking the current test progress, such as which test case is currently operated, which is completed, and how the passing condition is;
2. whether the inquiry report is finished or not can be manually clicked;
3. the progress of the test can be automatically and regularly inquired when the unattended value is kept, and a test report processing function module is called to process a report when the test is found to be completed;
4. when the test is found to be problematic or the time relationship needs to be finished in advance, the test can be stopped, and the current environment is reserved before the system exits.
According to the technical scheme, the control system is connected with the automation platform; the control system includes: the client side is connected with the server side through a network, wherein: the client is used for carrying out login operation on a user and receiving the environment parameter setting operation and the use case selection operation of the user after the login is successful; the server side comprises: the device comprises a login management module, a test environment configuration module, a test case setting module, a test case execution module and a test report processing module. By executing the technical scheme, the operation of the automatic test platform can be simplified, the safety of the test case is ensured, meanwhile, the test report can be output in a standard format, the operation difficulty of testers is reduced, and the use experience of the testers is improved.
On the basis of the technical schemes, the server also comprises a basic input and output module;
the basic input and output module is used for receiving an HTTP request sent by a client and determining processing logic according to the HTTP request; and the server is also used for outputting the rendered data and the web interface template and sending the rendered data and the web interface template to the client.
The input is responsible for analyzing the HTTP request transmitted by the user side, and the HTTP request is dispatched to the corresponding application processing logic module to be processed; and outputting the data and the web interface template after the rendering processing is finished, and responding to the client. According to the scheme, the request sent by the client can be subjected to standardized processing, the result is obtained and returned to the client, and the effect of comprehensive butt joint with the client is achieved.
Example two
Fig. 2 is a schematic diagram of a server function provided in the second embodiment of the present invention. As shown in fig. 2, the server functions may include:
the user login management function can be specifically used for authorizing a user to permit login and failing to log in by an unauthorized user;
the test environment configuration function, in particular, may be used to set environment parameters to an XML file, record an environment configuration log, and copy the XML file to a runtime path.
The test case setting function can be specifically used for setting the name and sequence of the use case to an XML file, setting the XML file according to interface selection, analyzing the uploaded use case set file, setting the XML file and returning the selected use case set file in an attachment form; in addition, the method can be used for recording use case selection log and copying an XML file to a running path.
The use case executes the function in order, and in particular, can be used for starting the subprocess to start testing and recording the subprocess log and the test platform log.
The test state monitoring function can be specifically used for checking test progress, automatically inquiring at regular time, stopping testing and the like.
The test report processing function may be specifically used for extracting an original HTML record parsing result, generating an HTML report, and the like.
Correspondingly, the client side of the interactive system is a web interface and is compiled by using HTML and JavaScript, the HTML is responsible for the main body presentation of the web interface, the JavaScript is responsible for the dynamic operation of the interface, and the designed interface templates respectively correspond to different server side function modules. Fig. 3 is a schematic diagram of the client function provided in the second embodiment of the present invention. As shown in fig. 3, the web interface of the system client is used as a user interface to mainly implement the main functions of information entry and information acquisition, and the distributed Browser client can remotely complete the test development through the IP network.
Fig. 4 is a schematic diagram of the interaction provided by the second embodiment of the present invention. As shown in fig. 4, the present embodiment provides an interaction schematic between the client and the server in the control system, and between the control system and the automated testing platform. Through the arrangement, the control system can control the whole testing process, so that the use experience of a user on the automatic testing platform is improved.
Fig. 5 is a schematic diagram of a data interaction layer of a control system according to a second embodiment of the present invention. As shown in fig. 5, the server may be divided into an input/output layer, a functional application layer and a data layer, and respectively implement service processing on the HTTP request of the client, so as to return HTML data to the client.
Through the design of above scheme, the technical scheme that this application provided can solve following problem to realize corresponding technological effect:
1. most of automatic test platforms are oriented to test developers, the usability is poor in test execution, an interaction method and device with the automatic test platform/system are provided, test execution operation and flow are simplified, the problem that the automatic test platform is complex in operation is solved, the usability is improved and the use threshold is reduced through the design of the interaction device;
2. the codes and data of the test cases in the automatic test platform are not packaged and hidden and are directly exposed to a user, the safety and the concealment of the test cases are poor, and a test mechanism cannot effectively avoid cheating by a tested manufacturer by tampering the codes or the data in a targeted manner. The device solves the problem of information leakage caused by code data exposure of the automatic test platform, and testers only interact with the automatic test platform through the human-computer interaction system in the invention to hide codes and data of the automatic test platform, thereby improving the concealment of the test system, ensuring the safety and reliability of the test, and solving the cheating problems of data tampering, code tampering and the like possibly caused by data exposure;
3. the test result/log output content is complex and huge, each step has a detailed record, and the positioning is mainly performed by software developers or test developers, so that the operation result of the test case set is not easy to visually check. The invention processes and analyzes the test result/log report data, collects and extracts key information, and simply and directly presents the final test result by a simple web page. The problem that the test report of the automatic test platform is too complicated, and the result checking and judging are influenced is solved;
4. the limitation of the deployment mode of the automatic test platform is considered, the automatic test platform cannot be applied in a distributed mode, and the test is executed remotely. By the device, distributed and remote operation functions are realized for the centrally deployed automatic test platform, and testers can remotely log in the device through a web browser through a network to perform test scheduling, so that the limitation of deployment positions is broken through, and man-machine separation and remote office work is realized;
5. the independent test system control device generally controls the test system to execute the test in a background mode, if the test process is not managed properly, the whole test execution is possibly disordered, the control device in the invention guarantees the orderly execution of the test system by providing a test control flow method, and the problem that the test execution process is disordered by an automatic test platform and a non-self-contained independent control device is solved.
EXAMPLE III
Fig. 6 is a flowchart illustrating a control method of an automated test platform according to a third embodiment of the present invention. The method is executed by the control system (or referred to as an interactive system) provided by the above embodiments, and has corresponding functions and advantages. As shown in fig. 6, the control method of the automated testing platform includes:
s610, if the login operation of the user is detected, whether an environment configuration file associated with the user information exists is determined.
And S620, if so, calling the global unique identifier according to the environment configuration file.
S630, determining whether the use case set file operation parameter is true according to the global unique identifier.
And S640, if the test result is true, determining the test progress of the case assembly file according to the case assembly file operation parameters, and continuing to test.
Optionally, after determining whether the environment profile associated with the user information exists, the method further includes:
and if not, generating an environment configuration file according to the environment parameter setting operation of the user and generating a global unique identifier.
Fig. 7 is a flowchart illustrating a control method of another automated test platform according to a third embodiment of the present invention. As shown in FIG. 7, in order to avoid confusion of the test system and the test environment due to repeated test submissions, the present invention proposes a test process control logic flow. Two control semaphores of 'environment configuration' and 'test set operation' and an accurate global time ID are set in the process. Whether test environment configuration is carried out or not is marked by 'True' and 'False' of 'environment configuration' semaphore, so that the test environment configuration is firstly carried out during testing, and then a test case is executed. Whether the test is submitted and is not completed or not is identified through the True and False of the semaphore of the test set running, and it is ensured that the test is not submitted again in the test execution process, so that out-of-order concurrency and disordered results are avoided. And generating an accurate global time ID according to the system time modified by the 'environment configuration' semaphore, wherein the global time ID is used as a unique identifier of the test execution instance, subsequently transmitting the ID when a test case file is generated, transmitting the ID when an automatic test platform executes a test, finally performing record search according to the ID in a test report, and finally generating a simplified test report corresponding to the time ID and returning. And when the life cycle of the current round of the global time ID is finished, waiting for the starting of the next round of test example or the beginning of the test to submit and update the ID.
And after the test execution is finished, the test state monitoring module searches the original test record retained by the test execution according to the global time ID, and searches and analyzes the test result according to each test case in the test set in sequence.
And the interactive system background report processing module is used for searching and acquiring the original record corresponding to the test case from a report catalogue of the automatic test platform. Analyzing and extracting data related to the test result by analyzing the original record generated by the automatic test platform to form the test result. In one test case, it may be determined whether the test result passes through a plurality of test steps, for example, whether the traffic reception condition, the IP address acquisition condition, the protocol state, and the like meet expectations or not is checked. In the invention, the background of the interactive system analyzes the original records, analyzes each line of records, screens the 'pass', 'fail', 'match', 'expect', 'unexpected', and the like by using the regularized keywords, determines whether the record is the record of the judging step, and records the result of the judging step. When the test result of the test case is sorted, the final result judgment of the test case carries out logic judgment according to the principles of 'one-false-rule false' and 'all-true-rule true'. That is, if all the determination steps in one test case are test pass, the case is determined as test pass, and if one determination step in one test case is test fail, the case is determined as fail. And after all judgment steps of all test cases are traversed, outputting a test result report of a test set.
According to the technical scheme provided by the embodiment, codes and data of the automatic test platform are packaged, the distributed remote office capacity is achieved, and the efficient and easy-to-use interaction method and system with data safety are provided. Through flow design, the setting of accurate time ID and semaphore limits the unordered concurrency of test, effectively manages the test process and ensures the safety and orderliness of the test process.
In addition, according to the method for environment configuration and test set sending, the interactive system sends the file to the file system of the automatic test platform for the automatic test platform to use, and the dependence on an API (application program interface) is not needed; the method for extracting, processing and presenting the test report data extracts and processes the original test record into a simplified test report mode.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. The control system of the automatic test platform is characterized in that the control system is connected with the automatic test platform; the control system includes: the client side is connected with the server side through a network, wherein:
the client is used for carrying out login operation on a user and receiving the environment parameter setting operation and the use case selection operation of the user after the login is successful;
the server side comprises: the system comprises a login management module, a test environment configuration module, a test case setting module, a test case execution module and a test report processing module;
the login management module is used for authenticating the identity of the user;
the test environment configuration module is used for writing the environment parameters into an environment configuration file according to the environment parameter setting operation, copying the environment parameters to a target path of the automatic test platform and generating a global unique identifier;
the test case setting module is used for determining a test case set and a test case sequence according to the case selection operation, generating a case set file based on the test case set and the test case sequence, writing the global unique identifier into the case set file, and copying the case set file with the global unique identifier to a file management subsystem of an automatic test platform;
the test case execution module is used for determining an environment configuration file and a case set file according to the global unique identifier so as to schedule the automatic test platform for testing;
and the test report processing module is used for calling a test record through the global unique identifier after the test is finished so as to obtain a test report.
2. The control system of claim 1, wherein the server further comprises a test status monitoring module;
the test state monitoring module is used for acquiring the test progress of the automatic test platform and returning the execution result of the completed test case if a test progress query event is detected; the test progress query event comprises a test progress query event and a timing test progress query event sent by a client.
3. The control system of claim 2, wherein the test condition monitoring module is further configured to:
if the test termination event is detected, acquiring and storing the test progress of the automatic test platform, and returning the execution result of the completed test case; the test abort event comprises a test exception event and/or a test abort instruction issuing event.
4. The control system of claim 1, wherein the globally unique identifier comprises a global time ID generated based on a system time when the environment profile is copied to an automated test platform.
5. The control system of claim 1, wherein the server further comprises a basic input output module;
the basic input and output module is used for receiving an HTTP request sent by a client and determining processing logic according to the HTTP request; and the server is also used for outputting the rendered data and the web interface template and sending the rendered data and the web interface template to the client.
6. The control system of claim 1, wherein the client is further configured to: receiving a use case sequence sorting operation of a user, and determining a test use case sequence according to the use case sequence sorting operation.
7. The control system of claim 1, wherein the test case execution module is specifically configured to:
and starting a subprocess to schedule the automatic test platform, searching the copied environment configuration file and the case set file according to the global unique identifier, and determining a test environment by adopting the searched environment configuration file so as to test the searched case set file.
8. The control system of claim 1, wherein the environment configuration file and the use case assembly file with the globally unique identifier are copied to an automated testing platform using XML formatted files.
9. A control method of an automated test platform, the control method being performed by a control system of the automated test platform according to claims 1-8, the control method comprising:
if the login operation of the user is detected, determining whether an environment configuration file associated with the user information exists;
if so, calling a global unique identifier according to the environment configuration file;
determining whether the operation parameters of the use case set file are true or not according to the global unique identifier;
if the test result is true, determining the test progress of the case assembly file according to the case assembly file operation parameters, and continuing to test.
10. The method of claim 9, wherein after determining whether the environment profile associated with the user information exists, the method further comprises:
and if not, generating an environment configuration file according to the environment parameter setting operation of the user and generating a global unique identifier.
CN202110264213.5A 2021-03-11 2021-03-11 Control system and control method of automatic test platform Pending CN113051155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110264213.5A CN113051155A (en) 2021-03-11 2021-03-11 Control system and control method of automatic test platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110264213.5A CN113051155A (en) 2021-03-11 2021-03-11 Control system and control method of automatic test platform

Publications (1)

Publication Number Publication Date
CN113051155A true CN113051155A (en) 2021-06-29

Family

ID=76511496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110264213.5A Pending CN113051155A (en) 2021-03-11 2021-03-11 Control system and control method of automatic test platform

Country Status (1)

Country Link
CN (1) CN113051155A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973068A (en) * 2021-10-20 2022-01-25 重庆紫光华山智安科技有限公司 Chaos test method and device, chaos test platform and storage medium
CN114756478A (en) * 2022-06-14 2022-07-15 深圳联友科技有限公司 SOA service automatic test method
CN116225944A (en) * 2023-03-09 2023-06-06 矩阵时光数字科技有限公司 Software testing system and method for presetting networking environment
CN116467223A (en) * 2023-06-20 2023-07-21 建信金融科技有限责任公司 Method, device, system, equipment and medium for generating test report
CN116909200A (en) * 2023-09-11 2023-10-20 长光卫星技术股份有限公司 Satellite single-machine automatic universal loop test monitoring platform and control method and application thereof
CN117234827A (en) * 2023-11-14 2023-12-15 武汉凌久微电子有限公司 Multi-platform automatic test method and system based on domestic graphic processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295280A (en) * 2008-06-18 2008-10-29 腾讯科技(深圳)有限公司 Automatic software debugging method and system
CN104834595A (en) * 2015-02-15 2015-08-12 网易(杭州)网络有限公司 Visual automatic test method and system
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
US20200409828A1 (en) * 2019-06-26 2020-12-31 Inventec (Pudong) Technology Corporation Automatic test system and method thereof
CN112162914A (en) * 2020-07-27 2021-01-01 上海金融期货信息技术有限公司 Method and device for automatically generating test case

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295280A (en) * 2008-06-18 2008-10-29 腾讯科技(深圳)有限公司 Automatic software debugging method and system
CN104834595A (en) * 2015-02-15 2015-08-12 网易(杭州)网络有限公司 Visual automatic test method and system
US20200409828A1 (en) * 2019-06-26 2020-12-31 Inventec (Pudong) Technology Corporation Automatic test system and method thereof
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN112162914A (en) * 2020-07-27 2021-01-01 上海金融期货信息技术有限公司 Method and device for automatically generating test case

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973068A (en) * 2021-10-20 2022-01-25 重庆紫光华山智安科技有限公司 Chaos test method and device, chaos test platform and storage medium
CN114756478A (en) * 2022-06-14 2022-07-15 深圳联友科技有限公司 SOA service automatic test method
CN114756478B (en) * 2022-06-14 2022-08-19 深圳联友科技有限公司 SOA service automatic test method
CN116225944A (en) * 2023-03-09 2023-06-06 矩阵时光数字科技有限公司 Software testing system and method for presetting networking environment
CN116225944B (en) * 2023-03-09 2024-05-07 矩阵时光数字科技有限公司 Software testing system and method for presetting networking environment
CN116467223A (en) * 2023-06-20 2023-07-21 建信金融科技有限责任公司 Method, device, system, equipment and medium for generating test report
CN116467223B (en) * 2023-06-20 2023-09-19 建信金融科技有限责任公司 Method, device, system, equipment and medium for generating test report
CN116909200A (en) * 2023-09-11 2023-10-20 长光卫星技术股份有限公司 Satellite single-machine automatic universal loop test monitoring platform and control method and application thereof
CN117234827A (en) * 2023-11-14 2023-12-15 武汉凌久微电子有限公司 Multi-platform automatic test method and system based on domestic graphic processor
CN117234827B (en) * 2023-11-14 2024-02-13 武汉凌久微电子有限公司 Multi-platform automatic test method and system based on domestic graphic processor

Similar Documents

Publication Publication Date Title
CN113051155A (en) Control system and control method of automatic test platform
US6941546B2 (en) Method and apparatus for testing a software component using an abstraction matrix
US10824404B2 (en) Methods and systems for uploading a program based on a target network platform
US10176079B2 (en) Identification of elements of currently-executing component script
US6986125B2 (en) Method and apparatus for testing and evaluating a software component using an abstraction matrix
US8433733B2 (en) Web application record-replay system and method
CN1908895B (en) System and method for application program globalization problem verification
CN103729294A (en) Method and device for testing performance script of application software
US11507497B2 (en) Methods and systems for automated testing using browser extension
CN115080398A (en) Automatic interface test system and method
CN112149109A (en) Modularized authority control management method and system
CN112540924A (en) Interface automation test method, device, equipment and storage medium
CN111026080A (en) Hardware-in-loop test method and device for controller
CN111679976A (en) Method and device for searching page object
CN115514677B (en) Method and system for server dial testing
CN116185706A (en) Data backup method and device, computing and storage medium and electronic equipment
US11740995B2 (en) Source quality check service
CN115034173A (en) Test method of chip simulation model
CN112241370B (en) API interface class checking method, system and device
CN114398283A (en) Automatic testing method and device for user interface, electronic equipment and storage medium
CN114493360A (en) Process creative evaluation method, device, equipment and medium based on RPA and AI
CN114490892A (en) Data transmission method and device based on datax
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN117950991A (en) Program testing method, device, electronic equipment and computer readable storage medium
US11892941B2 (en) Self-learning application test automation

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