CN117520210B - System software testing method, target machine and remote testing central control machine - Google Patents

System software testing method, target machine and remote testing central control machine Download PDF

Info

Publication number
CN117520210B
CN117520210B CN202410016227.9A CN202410016227A CN117520210B CN 117520210 B CN117520210 B CN 117520210B CN 202410016227 A CN202410016227 A CN 202410016227A CN 117520210 B CN117520210 B CN 117520210B
Authority
CN
China
Prior art keywords
target
test case
interface
instruction
case
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
CN202410016227.9A
Other languages
Chinese (zh)
Other versions
CN117520210A (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.)
Xi'an Xintong Semiconductor Technology Co ltd
Original Assignee
Xi'an Xintong Semiconductor Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Xintong Semiconductor Technology Co ltd filed Critical Xi'an Xintong Semiconductor Technology Co ltd
Priority to CN202410016227.9A priority Critical patent/CN117520210B/en
Publication of CN117520210A publication Critical patent/CN117520210A/en
Application granted granted Critical
Publication of CN117520210B publication Critical patent/CN117520210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3684Test management for test design, e.g. generating new test cases
    • 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/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The invention discloses a system software testing method, a target machine and a remote testing central control machine, wherein after a target service is installed on the target machine, the target service can directly load all environment variables, so that the target service can be controlled to download and execute target testing cases directly through remote http access, related configuration operations and artificial participation processes are reduced, and the efficiency and flexibility of system software testing are improved; in addition, because the target test case is not required to be manually executed, the target test case is automatically executed through the case execution interface of the calling target service, and the accuracy of executing the target test case is improved.

Description

System software testing method, target machine and remote testing central control machine
Technical Field
The application relates to the technical field of computers, in particular to a system software testing method, a target machine and a remote testing central control machine.
Background
System software testing is a technique for checking whether the performance of system software is consistent with the requirements of users and whether loopholes exist in the system. In the process of testing system software, the system software can be usually tested manually or automatically.
In the related art, the related test cases are usually adopted to perform system software test, and currently, the related test cases are executed by manually inputting specific command lines or remotely through a Secure Shell (SSH) interaction mode.
However, when the system software test is performed in the above manner, there are problems of low efficiency and poor flexibility.
Disclosure of Invention
The present application aims at solving at least the technical problems existing in the prior art, and therefore, a first aspect of the present application provides a system software testing method, which is applied to a remote test central control machine, wherein the remote test central control machine is used for testing system software of a target machine, and target services based on a hypertext transfer protocol are deployed on the target machine in advance, and the method includes:
the method comprises the steps of sending a first instruction to a target service, and controlling the target service to download a target test case for system software based on the first instruction;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log corresponding to the target test case, which is obtained by the target service based on the third instruction.
In one possible implementation, the control objective service downloads the objective test case based on the first instruction, including:
the control target service obtains a target test case from a test case warehouse based on a first instruction;
and downloading the target test cases into a preset catalog of the target machine.
In one possible implementation, the control objective service executes the objective test case based on the second instruction, including:
and based on the second instruction, controlling the target service to call the target test case in a subprocess call mode or a function call mode, and executing operation on the target test case.
In one possible implementation, after the control target service executes the target test case based on the second instruction, the method further includes:
and the control target service collects and stores the execution log corresponding to the target test case.
In one possible implementation manner, obtaining an execution log corresponding to the target test case, where the execution log is obtained by the target service based on the third instruction, includes:
the control target service detects the execution state of the target test case based on the third instruction;
and under the condition that the execution state is determined to be a successful state, downloading an execution log corresponding to the target test case.
In one possible implementation manner, the target service at least comprises a use case downloading interface, a use case executing interface, a checking use case executing state interface, a log collecting and packaging interface and a log downloading interface; the system comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface, a log downloading interface and a log downloading interface, wherein the case downloading interface is used for downloading a target test case, the case executing interface is used for executing the target test case, the checking case executing state interface is used for detecting the executing state of the target test case, the log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, and the log downloading interface is used for downloading the executing log corresponding to the target test case.
The second aspect of the present application proposes a target machine, on which a target service based on a hypertext transfer protocol is deployed in advance, where the target service is configured to receive a first instruction, a second instruction, and a third instruction sent by a remote testing central control machine;
the target service is also used for downloading a target test case for the system software based on the first instruction; executing the target test case based on the second instruction; and based on the execution log corresponding to the target test case obtained by the third instruction.
The third aspect of the present application proposes a remote test central control machine, where the remote test central control machine is configured to test system software of a target machine, and target services based on a hypertext transfer protocol are deployed in advance on the target machine, and the remote test central control machine is configured to:
the method comprises the steps of sending a first instruction to a target service, and controlling the target service to download a target test case for system software based on the first instruction;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log corresponding to the target test case, which is obtained by the target service based on the third instruction.
A fourth aspect of the present application proposes a system software testing device, the device comprising:
the first sending module is used for sending a first instruction to the target service and controlling the target service to download a target test case aiming at the system software based on the first instruction;
the second sending module is used for sending a second instruction to the target service and controlling the target service to execute the target test case based on the second instruction;
and the third sending module is used for sending a third instruction to the target service and acquiring an execution log, which is obtained by the target service based on the third instruction and corresponds to the target test case.
In one possible implementation manner, the first sending module is specifically configured to:
the control target service obtains a target test case from a test case warehouse based on a first instruction;
and downloading the target test cases into a preset catalog of the target machine.
In one possible implementation manner, the second sending module is specifically configured to:
and based on the second instruction, controlling the target service to call the target test case in a subprocess call mode or a function call mode, and executing operation on the target test case.
In one possible implementation manner, the system software testing device is further configured to:
and the control target service collects and stores the execution log corresponding to the target test case.
In one possible implementation manner, the third sending module is specifically configured to:
the control target service detects the execution state of the target test case based on the third instruction;
and under the condition that the execution state is determined to be a successful state, downloading an execution log corresponding to the target test case.
In one possible implementation manner, the target service at least comprises a use case downloading interface, a use case executing interface, a checking use case executing state interface, a log collecting and packaging interface and a log downloading interface; the system comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface, a log downloading interface and a log downloading interface, wherein the case downloading interface is used for downloading a target test case, the case executing interface is used for executing the target test case, the checking case executing state interface is used for detecting the executing state of the target test case, the log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, and the log downloading interface is used for downloading the executing log corresponding to the target test case.
A fifth aspect of the present application proposes a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes or a set of instructions, the at least one instruction, the at least one program, the set of codes or the set of instructions being loaded and executed by a processor to implement the system software testing method according to the first aspect.
The embodiment of the application has the following beneficial effects:
the system software testing method provided by the embodiment of the application comprises the following steps: the method comprises the steps of sending a first instruction to a target service, controlling the target service to download a target test case for system software based on the first instruction, sending a second instruction to the target service, controlling the target service to execute the target test case based on the second instruction, sending a third instruction to the target service, and obtaining an execution log, corresponding to the target test case, obtained by the target service based on the third instruction. According to the scheme, after the target service is installed on the target machine, the target service can directly load all environment variables, so that the target service can be controlled to download and execute the target test case directly through remote http access, related configuration operation and artificial participation processes are reduced, and the efficiency and flexibility of system software test are improved; in addition, because the target test case is not required to be manually executed, the target test case is automatically executed through the case execution interface of the calling target service, and the accuracy of executing the target test case is improved.
Drawings
FIG. 1 is a block diagram of a computer device provided in an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of a system software testing method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating steps for downloading a target test case according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating steps for downloading an execution log according to an embodiment of the present disclosure;
FIG. 5 is an overall flowchart of a system software testing method according to an embodiment of the present application;
fig. 6 is a block diagram of a system software testing device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
System software testing is a technique for checking whether the performance of system software is consistent with the requirements of users and whether loopholes exist in the system. In the process of testing system software, the system software can be usually tested manually or automatically.
In the related art, system software test is usually performed by using related test cases, and currently, when the related test cases are executed, the related test cases can be executed by manually inputting a specific command line shell on a target machine, but in this way, each test case needs to be logged on the target machine, and related environment variables need to be manually imported. Due to frequent manual operations, there is a problem of inefficiency in performing system software testing.
The related test cases can also be executed remotely by means of Secure Shell protocol (SSH) interaction, but the related test cases must be displayed each time by means of the SSH protocol interaction, and the SSH timeout depends on the configuration of the target machine, and may be caused when the log is large, so that the problem of poor flexibility in performing the system software test is caused due to frequent SSH operation, and the influence of the network is also large.
In view of this, the application proposes a system software testing method, after installing the goal service on the goal machine, the goal service can load all environment variables directly, thus can control the goal service to download and carry out the goal test case directly through the remote http visit, have reduced the relevant configuration operation and artificial participated course, have raised the efficiency and flexibility to carry on the system software test; in addition, because the target test case is not required to be manually executed, the target test case is automatically executed through the case execution interface of the calling target service, and the accuracy of executing the target test case is improved.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more. In addition, the use of "based on" or "according to" is intended to be open and inclusive in that a process, step, calculation, or other action "based on" or "according to" one or more of the stated conditions or values may in practice be based on additional conditions or beyond the stated values.
The system software testing method provided by the application can be applied to computer equipment (electronic equipment), wherein the computer equipment can be a server or a terminal, the server can be one server or a server cluster consisting of a plurality of servers, the embodiment of the application is not particularly limited to the method, and the terminal can be but not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable equipment.
Taking the example of a computer device as the terminal, fig. 1 shows a block diagram of a terminal, as shown in fig. 1, the computer device may include a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a system software testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely a block diagram of a portion of the structure associated with the present application and does not constitute a limitation of the terminal to which the present application is applied, and that alternatively the terminal may comprise more or less components than shown in the drawings, or may combine some components, or have a different arrangement of components.
It should be noted that, the execution body in the embodiment of the present application may be a computer device or a system software testing apparatus, and in the following method embodiment, the execution body is described with reference to the computer device.
Fig. 2 is a flowchart of steps of a system software testing method according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step 202, a first instruction is sent to a target service, and the target service is controlled to download a target test case for system software based on the first instruction.
The system software testing method provided by the embodiment of the application is applied to a remote testing central control machine, wherein the remote testing central control machine is used for testing system software of a target machine, and the remote testing central control machine serves as an upper computer.
In addition, a target service based on the hypertext transfer protocol, also called a Case-http service, is pre-deployed on the target machine, which is a service based on the hypertext transfer protocol, in other words, an http service.
In some alternative embodiments, the target service provides a plurality of http interfaces, which are implementations of the target service. The http interface at least comprises a use case downloading interface, a use case executing interface, a checking use case executing state interface, a log collecting and packaging interface and a log downloading interface. The system comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface, a log downloading interface and a log downloading interface, wherein the case downloading interface is used for downloading a target test case, the case executing interface is used for executing the target test case, the checking case executing state interface is used for detecting the executing state of the target test case, the log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, and the log downloading interface is used for downloading the executing log corresponding to the target test case. Of course, other types of interfaces may be included, as embodiments of the present application are not specifically limited in this regard.
Because the target service is pre-deployed on the target machine, alternatively, the tester may automatically or manually deploy the target service using the remote test center control unit SSH while the target service is deployed. The target service can be issued along with the operating system of the target machine to realize the deployment of the target service, and in addition, the automatic starting of the starting machine can be set so as to serve as a desktop service. By the deployment mode, the target service loads all environment variables of the desktop. Where environment variables generally refer to parameters used in an operating system to specify the operating system's operating environment, such as temporary folder locations and system folder locations.
In addition, in the network environment, each http connection needs to use one port to identify a different http service, so after the target service is deployed, the port used by the target service is exposed, for example, may be an 8099 port.
After the target service is deployed, if the tester receives the version test task for the software system, the process of testing by adopting the target test case can be adopted, and the test process can be periodically carried out.
Optionally, the remote test central control machine can input an internet protocol address (Internet Protocol Address, abbreviated as IP address) of the target machine, so that http access to a target service of the target machine can be realized, i.e. related instructions can be sent to the target service.
Optionally, the first instruction may be sent to the target service when the port of the target service is detected to be normal by the network detection tool, that is, when the target service is determined to be present, and the target service is controlled to download the target test case for the system software based on the first instruction. If a port does not exist, this may mean that the target service is not running or that other network problems exist.
In addition, the first instruction corresponds to the case downloading interface, and the instruction is used for calling the corresponding interface by the remote test central control unit, namely the first instruction is used for calling the case downloading interface.
Therefore, the target test case can be downloaded by calling the case download interface, as shown in fig. 3, fig. 3 is a flowchart of steps for downloading the target test case, which is provided in the embodiment of the present application, and includes:
step 302, the control target service obtains a target test case from the test case warehouse based on the first instruction.
Step 304, downloading the target test case to a preset catalog of the target machine.
After the target service receives the first instruction, the target service can firstly acquire the target test case from the test case warehouse by calling the case download interface, and then download the acquired target test case into a preset catalog of the target machine. The preset catalog is preset by a tester, and the target test case is automatically downloaded into the preset catalog when the target test case is downloaded.
Alternatively, the target test case may be implemented in a shell script, a python package, or the like, and the implementation manner of the target test case is not specifically limited in this embodiment of the present application.
And step 204, sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction.
After downloading the target test case, the target test case needs to be executed. And the remote test central control machine can send a second instruction to the target service, and the target service is controlled to execute the target test case based on the second instruction.
In some alternative embodiments, the target service may be controlled to call the target test case in a sub-process call mode or a function call mode based on the second instruction, and perform an operation on the target test case.
For the sub-process calling mode, the target test case is used as a sub-process, so that the target service calls the target test case through the sub-process and performs execution operation on the target test case.
For the function calling mode, the target test case is realized as a test case package, so that the target service calls the test case package through the function and executes the operation on the target test case.
In addition, the second instruction corresponds to the use case execution interface, that is, the second instruction is to call the use case execution interface.
In some optional embodiments, after the execution of the target test case is completed, the target service may be further controlled to collect and store an execution log corresponding to the target test case. Optionally, the execution log corresponding to the target test case may be collected and stored by calling a log collection and packaging interface.
And 206, sending a third instruction to the target service, and acquiring an execution log corresponding to the target test case, which is obtained by the target service based on the third instruction.
After collecting the packaged execution log, the remote test central control computer can send a third instruction to the target service, and obtain the execution log, corresponding to the target test case, obtained by the target service based on the third instruction.
In some alternative embodiments, as shown in fig. 4, fig. 4 is a flowchart of a step of downloading an execution log provided in an embodiment of the present application, including:
step 402, the control target service detects an execution state of the target test case based on the third instruction.
Step 404, downloading an execution log corresponding to the target test case when the execution state is determined to be a successful state.
The third instruction corresponds to the execution state interface of the check case, namely the third instruction is to call the execution state interface of the check case. The execution state of the target test case may include a success state and a failure state, and when the execution state of the target test case is detected based on the third instruction, it may be determined according to a return value of the case execution state interface. Illustratively, a return value of 1 indicates a successful state and a return value of 0 indicates a failed state. The embodiment of the present application does not limit the specific form of the return value.
Therefore, under the condition that the execution state is determined to be a successful state, namely after the target test case is successfully executed, the execution log corresponding to the target test case is downloaded. Alternatively, a log download interface may be invoked to download an execution log corresponding to the target test case.
The embodiment of the application provides a system software testing method, which comprises the following steps: the method comprises the steps of sending a first instruction to a target service, controlling the target service to download a target test case for system software based on the first instruction, sending a second instruction to the target service, controlling the target service to execute the target test case based on the second instruction, sending a third instruction to the target service, and obtaining an execution log, corresponding to the target test case, obtained by the target service based on the third instruction. According to the scheme, after the target service is installed on the target machine, the target service can directly load all environment variables, so that the target service can be controlled to download and execute the target test case directly through remote http access, related configuration operation and artificial participation processes are reduced, and the efficiency and flexibility of system software test are improved; in addition, because the target test case is not required to be manually executed, the target test case is automatically executed through the case execution interface of the calling target service, and the accuracy of executing the target test case is improved.
Fig. 5 is an overall flowchart of a system software testing method provided by the embodiment of the present application, where a remote testing central control computer can control a target service to download and execute a target test case directly through remote http access, and a case module includes the downloaded target test case.
According to the embodiment, after the target service is installed on the target machine, the target service can directly load all environment variables, so that the target service can be controlled to download and execute the target test case directly through remote http access, related configuration operation and artificial participation processes are reduced, and the efficiency and flexibility of system software test are improved; in addition, because the target test case is not required to be manually executed, the target test case is automatically executed through the case execution interface of the calling target service, and the accuracy of executing the target test case is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
In some embodiments, a target machine is further provided, on which a target service based on a hypertext transfer protocol is deployed in advance, where the target service is configured to receive a first instruction, a second instruction, and a third instruction sent by a remote testing central control machine. The target service is also used for downloading a target test case for the system software based on the first instruction and executing the target test case based on the second instruction; and based on the execution log corresponding to the target test case obtained by the third instruction.
The target machine provided in the above embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
In some embodiments, there is further provided a remote test center for testing system software of a target machine on which a target service based on a hypertext transfer protocol is pre-deployed, the remote test center being configured to:
the method comprises the steps of sending a first instruction to a target service, and controlling the target service to download a target test case for system software based on the first instruction;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log corresponding to the target test case, which is obtained by the target service based on the third instruction.
The implementation principle and technical effects of the remote test central control computer provided in the above embodiment are similar to those of the above method embodiment, and are not described herein again.
Fig. 6 is a block diagram of a system software testing device according to an embodiment of the present application.
As shown in fig. 6, the system software testing apparatus 600 includes:
the first sending module 602 is configured to send a first instruction to a target service, and control the target service to download a target test case for the system software based on the first instruction.
And the second sending module 604 is configured to send a second instruction to the target service, and control the target service to execute the target test case based on the second instruction.
The third sending module 606 is configured to send a third instruction to the target service, and obtain an execution log corresponding to the target test case obtained by the target service based on the third instruction.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein. The modules in the system software testing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may invoke and perform the operations of the above modules.
In one embodiment of the present application, a computer device is provided, the computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor, when executing the computer program, performing the steps of:
the method comprises the steps of sending a first instruction to a target service, and controlling the target service to download a target test case for system software based on the first instruction;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log corresponding to the target test case, which is obtained by the target service based on the third instruction.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of:
the control target service obtains a target test case from a test case warehouse based on a first instruction;
and downloading the target test cases into a preset catalog of the target machine.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of:
and based on the second instruction, controlling the target service to call the target test case in a subprocess call mode or a function call mode, and executing operation on the target test case.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of:
and the control target service collects and stores the execution log corresponding to the target test case.
In one embodiment of the present application, the processor when executing the computer program further performs the steps of:
the control target service detects the execution state of the target test case based on the third instruction;
and under the condition that the execution state is determined to be a successful state, downloading an execution log corresponding to the target test case.
In one embodiment of the present application, the target service at least includes a use case download interface, a use case execution interface, a view use case execution status interface, a log collection and package interface, and a log download interface; the system comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface, a log downloading interface and a log downloading interface, wherein the case downloading interface is used for downloading a target test case, the case executing interface is used for executing the target test case, the checking case executing state interface is used for detecting the executing state of the target test case, the log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, and the log downloading interface is used for downloading the executing log corresponding to the target test case.
The computer device provided in the embodiments of the present application has similar implementation principles and technical effects to those of the above method embodiments, and will not be described herein.
In one embodiment of the present application, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
the method comprises the steps of sending a first instruction to a target service, and controlling the target service to download a target test case for system software based on the first instruction;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log corresponding to the target test case, which is obtained by the target service based on the third instruction.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of:
the control target service obtains a target test case from a test case warehouse based on a first instruction;
and downloading the target test cases into a preset catalog of the target machine.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of:
and based on the second instruction, controlling the target service to call the target test case in a subprocess call mode or a function call mode, and executing operation on the target test case.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of:
and the control target service collects and stores the execution log corresponding to the target test case.
In one embodiment of the present application, the computer program when executed by the processor further performs the steps of:
the control target service detects the execution state of the target test case based on the third instruction;
and under the condition that the execution state is determined to be a successful state, downloading an execution log corresponding to the target test case.
In one embodiment of the present application, the target service at least includes a use case download interface, a use case execution interface, a view use case execution status interface, a log collection and package interface, and a log download interface; the system comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface, a log downloading interface and a log downloading interface, wherein the case downloading interface is used for downloading a target test case, the case executing interface is used for executing the target test case, the checking case executing state interface is used for detecting the executing state of the target test case, the log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, and the log downloading interface is used for downloading the executing log corresponding to the target test case.
The computer readable storage medium provided in this embodiment has similar principles and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. The specification and examples are to be regarded in an illustrative manner only.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof.

Claims (8)

1. The system software testing method is applied to a remote testing central control machine, and the remote testing central control machine is used for testing system software of a target machine and is characterized in that a target service based on a hypertext transfer protocol is deployed on the target machine in advance, the target service can directly load all environment variables, and at least comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface and a log downloading interface; the method comprises the steps that a user case downloading interface is used for downloading a target test case, a user case executing interface is used for executing the target test case, a user case checking executing state interface is used for detecting the executing state of the target test case, a log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, and a log downloading interface is used for downloading an executing log corresponding to the target test case, and the method comprises the following steps:
a first instruction is sent to the target service, and the target service is controlled to acquire the target test case from a test case warehouse based on the first instruction; downloading the target test case into a preset catalog of the target machine;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log, corresponding to the target test case, obtained by the target service based on the third instruction.
2. The method of claim 1, wherein the controlling the target service to execute the target test case based on the second instruction comprises:
and based on the second instruction, controlling the target service to call the target test case in a subprocess call mode or a function call mode, and executing operation on the target test case.
3. The method of claim 1 or 2, wherein after the controlling the target service to execute the target test case based on the second instruction, the method further comprises:
and controlling the target service to collect and store the execution log corresponding to the target test case.
4. The method of claim 3, wherein the obtaining the execution log corresponding to the target test case obtained by the target service based on the third instruction comprises:
controlling the target service to detect the execution state of the target test case based on the third instruction;
and under the condition that the execution state is determined to be a successful state, downloading an execution log corresponding to the target test case.
5. The target machine is characterized in that a target service based on a hypertext transfer protocol is deployed on the target machine in advance, the target service can directly load all environment variables, and the target service at least comprises a use case downloading interface, a use case executing interface, a checking use case executing state interface, a log collecting and packaging interface and a log downloading interface; the system comprises a user case downloading interface, a user case executing interface, a log collecting and packaging interface, a remote test central control computer and a log downloading interface, wherein the user case downloading interface is used for downloading a target test case, the user case executing interface is used for executing the target test case, the checking user case executing state interface is used for detecting the executing state of the target test case, the log collecting and packaging interface is used for collecting an executing log corresponding to the target test case, the log downloading interface is used for downloading an executing log corresponding to the target test case, and the target service is used for receiving a first instruction, a second instruction and a third instruction which are sent by the remote test central control computer; the remote test central control machine is used for testing system software of the target machine;
the target service is further used for downloading target test cases aiming at system software from a test case warehouse to a preset catalog of the target machine based on the first instruction; executing the target test case based on the second instruction; and based on the execution log corresponding to the target test case, which is obtained by the third instruction.
6. The remote test central control machine is characterized in that the remote test central control machine is used for testing system software of a target machine, target service based on a hypertext transfer protocol is deployed on the target machine in advance, the target service can directly load all environment variables, and the target service at least comprises a use case downloading interface, a use case executing interface, a use case checking executing state interface, a log collecting and packaging interface and a log downloading interface; the remote test center control computer is used for receiving a target test case, downloading the target test case, checking the execution state of the target test case, and downloading the execution log corresponding to the target test case, wherein the case downloading interface is used for downloading the target test case, the case executing interface is used for executing the target test case, the checking case executing state interface is used for detecting the execution state of the target test case, the log collecting and packaging interface is used for collecting the execution log corresponding to the target test case, the log downloading interface is used for downloading the execution log corresponding to the target test case, and the remote test center control computer is used for:
a first instruction is sent to the target service, and the target service is controlled to acquire the target test case from a test case warehouse based on the first instruction; downloading the target test case into a preset catalog of the target machine;
sending a second instruction to the target service, and controlling the target service to execute the target test case based on the second instruction;
and sending a third instruction to the target service, and acquiring an execution log, corresponding to the target test case, obtained by the target service based on the third instruction.
7. The system software testing device is applied to a remote testing central control machine and is characterized in that the remote testing central control machine is used for testing system software of a target machine, a target service based on a hypertext transfer protocol is deployed on the target machine in advance, the target service can directly load all environment variables, and the target service at least comprises a case downloading interface, a case executing interface, a checking case executing state interface, a log collecting and packaging interface and a log downloading interface; the device comprises a case download interface, a case execution interface, a log collection packaging interface and a log download interface, wherein the case download interface is used for downloading a target test case, the case execution interface is used for executing the target test case, the check case execution state interface is used for detecting the execution state of the target test case, the log collection packaging interface is used for collecting an execution log corresponding to the target test case, the log download interface is used for downloading an execution log corresponding to the target test case, and the device comprises:
the first sending module is used for sending a first instruction to a target service and controlling the target service to acquire the target test case from a test case warehouse based on the first instruction; downloading the target test case into a preset catalog of the target machine;
the second sending module is used for sending a second instruction to the target service and controlling the target service to execute the target test case based on the second instruction;
and the third sending module is used for sending a third instruction to the target service and acquiring an execution log, which is obtained by the target service based on the third instruction and corresponds to the target test case.
8. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by a processor to implement the system software testing method of any of claims 1-4.
CN202410016227.9A 2024-01-05 2024-01-05 System software testing method, target machine and remote testing central control machine Active CN117520210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410016227.9A CN117520210B (en) 2024-01-05 2024-01-05 System software testing method, target machine and remote testing central control machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410016227.9A CN117520210B (en) 2024-01-05 2024-01-05 System software testing method, target machine and remote testing central control machine

Publications (2)

Publication Number Publication Date
CN117520210A CN117520210A (en) 2024-02-06
CN117520210B true CN117520210B (en) 2024-04-16

Family

ID=89755311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410016227.9A Active CN117520210B (en) 2024-01-05 2024-01-05 System software testing method, target machine and remote testing central control machine

Country Status (1)

Country Link
CN (1) CN117520210B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832217A (en) * 2017-11-09 2018-03-23 政采云有限公司 A kind of automated testing method and device
CN110109817A (en) * 2019-03-13 2019-08-09 深圳壹账通智能科技有限公司 Automatic interface testing method, device, equipment and storage medium
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN113176997A (en) * 2021-04-30 2021-07-27 深圳市共进电子股份有限公司 Test case loading method and device, computer equipment and readable storage medium
CN113485933A (en) * 2021-07-21 2021-10-08 广联达科技股份有限公司 Automatic testing method and distributed system
CN113760722A (en) * 2021-01-13 2021-12-07 北京京东振世信息技术有限公司 Test system and test method
CN115309657A (en) * 2022-08-31 2022-11-08 上海哈恩德技术开发有限公司 Method, device, medium and program product for providing test case
CN115437933A (en) * 2022-09-02 2022-12-06 深圳前海环融联易信息科技服务有限公司 Automatic testing method and device, computer equipment and storage medium
CN115696196A (en) * 2022-10-18 2023-02-03 佛山市顺德区智慧科技产业创新研究院 Wi-Fi fingerprint reconstruction method and system for space positioning based on deep learning
CN115794519A (en) * 2022-11-22 2023-03-14 苏州浪潮智能科技有限公司 Test method, test system, electronic device and readable storage medium
CN116155771A (en) * 2021-11-19 2023-05-23 腾讯科技(深圳)有限公司 Network anomaly test method, device, equipment, storage medium and program
CN116303069A (en) * 2023-03-28 2023-06-23 中国第一汽车股份有限公司 Test method, device, upper computer, system and medium of vehicle-mounted terminal
CN116521573A (en) * 2023-07-03 2023-08-01 太平金融科技服务(上海)有限公司深圳分公司 Automatic test method, device, equipment and storage medium
CN116561013A (en) * 2023-07-04 2023-08-08 建信金融科技有限责任公司 Testing method and device based on target service framework, electronic equipment and medium
WO2023225801A1 (en) * 2022-05-23 2023-11-30 北京小米移动软件有限公司 Automated testing method and apparatus for application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101132560B1 (en) * 2010-06-09 2012-04-03 강원대학교산학협력단 System and method for automatic interface testing based on simulation for robot software components
US9755945B2 (en) * 2015-04-01 2017-09-05 Verizon Digital Media Services Inc. Stream publishing and distribution capacity testing
US10372596B2 (en) * 2017-03-24 2019-08-06 International Business Machines Corporation Distributed system test device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832217A (en) * 2017-11-09 2018-03-23 政采云有限公司 A kind of automated testing method and device
CN110109817A (en) * 2019-03-13 2019-08-09 深圳壹账通智能科技有限公司 Automatic interface testing method, device, equipment and storage medium
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN113760722A (en) * 2021-01-13 2021-12-07 北京京东振世信息技术有限公司 Test system and test method
CN113176997A (en) * 2021-04-30 2021-07-27 深圳市共进电子股份有限公司 Test case loading method and device, computer equipment and readable storage medium
CN113485933A (en) * 2021-07-21 2021-10-08 广联达科技股份有限公司 Automatic testing method and distributed system
CN116155771A (en) * 2021-11-19 2023-05-23 腾讯科技(深圳)有限公司 Network anomaly test method, device, equipment, storage medium and program
WO2023225801A1 (en) * 2022-05-23 2023-11-30 北京小米移动软件有限公司 Automated testing method and apparatus for application
CN115309657A (en) * 2022-08-31 2022-11-08 上海哈恩德技术开发有限公司 Method, device, medium and program product for providing test case
CN115437933A (en) * 2022-09-02 2022-12-06 深圳前海环融联易信息科技服务有限公司 Automatic testing method and device, computer equipment and storage medium
CN115696196A (en) * 2022-10-18 2023-02-03 佛山市顺德区智慧科技产业创新研究院 Wi-Fi fingerprint reconstruction method and system for space positioning based on deep learning
CN115794519A (en) * 2022-11-22 2023-03-14 苏州浪潮智能科技有限公司 Test method, test system, electronic device and readable storage medium
CN116303069A (en) * 2023-03-28 2023-06-23 中国第一汽车股份有限公司 Test method, device, upper computer, system and medium of vehicle-mounted terminal
CN116521573A (en) * 2023-07-03 2023-08-01 太平金融科技服务(上海)有限公司深圳分公司 Automatic test method, device, equipment and storage medium
CN116561013A (en) * 2023-07-04 2023-08-08 建信金融科技有限责任公司 Testing method and device based on target service framework, electronic equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张载龙 ; 王菊 ; .一种实现NGOSS分布式自动化测试的方法.南京邮电大学学报(自然科学版).2011,(第03期),全文. *
林俊明 等.《电磁无损检测集成技术及云检测/监测》.机械工业出版社,2021,全文. *

Also Published As

Publication number Publication date
CN117520210A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107783795B (en) Application program starting method and device, computer equipment and storage medium
CN109726099B (en) Application gray level publishing method, device and equipment
CN109766256B (en) Method and device for testing H5 page performance in application program and computer equipment
US9585033B2 (en) System and method for enhanced diagnostics on mobile communication devices
CN111797026A (en) Test case generation method and device, computer equipment and storage medium
CN112506758A (en) Firmware refreshing method and device, computer equipment and storage medium
CN110798376A (en) Interface testing method and device, computer equipment and storage medium
CN109766205A (en) Abnormality eliminating method, device, computer equipment and storage medium
CN110365641A (en) Cross-site scripting attack leak detection method, equipment and computer-readable medium
CN111400179B (en) Method and device for terminal application program interaction, computer equipment and storage medium
CN111381847B (en) Information processing method and device
CN109471799B (en) Method, device, storage medium and terminal for deploying demand environment
CN117520210B (en) System software testing method, target machine and remote testing central control machine
CN112286821A (en) HTML5 page compatibility testing method, device, equipment and storage medium
CN112579398A (en) Monitoring deployment method and device
CN111061610B (en) Generation method and device of cluster system performance test report and computer equipment
CN112422328A (en) Log obtaining method and device, computer equipment and storage medium
CN108810163A (en) Oneself signature SSL certificate processing system and method
CN115357260A (en) Program upgrading method and device for terminal equipment, terminal equipment and storage medium
CN113918373A (en) Memory leak monitoring method, memory leak detection method and corresponding devices
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN112527606A (en) Data flow analysis method and device, computer equipment and storage medium
CN110704218B (en) Data processing method, data processing device, computer equipment and storage medium
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium

Legal Events

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