CN115794519A - Test method, test system, electronic device and readable storage medium - Google Patents

Test method, test system, electronic device and readable storage medium Download PDF

Info

Publication number
CN115794519A
CN115794519A CN202211466230.8A CN202211466230A CN115794519A CN 115794519 A CN115794519 A CN 115794519A CN 202211466230 A CN202211466230 A CN 202211466230A CN 115794519 A CN115794519 A CN 115794519A
Authority
CN
China
Prior art keywords
test
target
machine
tested
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.)
Pending
Application number
CN202211466230.8A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211466230.8A priority Critical patent/CN115794519A/en
Publication of CN115794519A publication Critical patent/CN115794519A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]

Abstract

The embodiment of the invention provides a test method, a test system, electronic equipment and a readable storage medium, wherein the method is applied to a control end, and the control end is connected with a plurality of testers; the method comprises the following steps: in response to the equipment selection operation, determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test; for any target machine to be tested, responding to the case selection operation, and determining the test case selected by the case selection operation as the target test case corresponding to the target machine to be tested; acquiring a test environment file corresponding to the target test case, and sending the test environment file to the target to-be-tested machine so as to control the target to-be-tested machine to build a test environment based on the test environment file; controlling the target to-be-tested machine to execute test operation based on the test environment according to the target test case, and returning a test result of the test operation to the control end; and executing specified processing on the received test result. The realization cost of the interactive test can be reduced, and the test efficiency is improved.

Description

Test method, test system, electronic device and readable storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a testing method, a testing system, electronic equipment and a readable storage medium.
Background
With the development of the times and the advancement of science and technology, the field of the server is rapidly developed, the market demand is gradually improved, and the difficulty and complexity of after-sale maintenance are increased. In order to reduce the difficulty of after-sale service and maintenance and meet the requirements of users for use and updating, interactive tests based on user experience are applied to the field of servers, and the requirements of the interactive tests of the servers are stricter and more diverse.
In the prior art, server interactive test is usually performed manually by a tester on a single server. Specifically, a tester can manually set up a test environment, manually test the to-be-tested machine according to the test case, and manually collect test data. However, in this implementation, the test implementation cost is high, and the test efficiency is low.
Disclosure of Invention
The invention provides a testing method, a testing system, electronic equipment and a readable storage medium, which are used for solving the technical problems of high testing implementation cost and low testing efficiency of interactive testing.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, the present invention provides a testing method, which is applied to a control end, wherein the control end is connected with a plurality of testers; the method comprises the following steps:
responding to equipment selection operation, and determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test;
for any target machine to be tested, responding to case selection operation, and determining a test case selected by the case selection operation as a target test case corresponding to the target machine to be tested;
acquiring a test environment file corresponding to the target test case, and sending the test environment file to the target to-be-tested machine so as to control the target to-be-tested machine to build a test environment based on the test environment file;
controlling the target machine to be tested to execute test operation based on the test environment according to the target test case, and returning a test result of the test operation to the control end;
and executing specified processing on the received test result.
Optionally, the obtaining a test environment file corresponding to the target test case and sending the test environment file to the target dut to control the target dut to build a test environment based on the test environment file includes:
according to the operating system information and/or the component information represented by the target test case, acquiring an appointed file corresponding to the operating system information and/or the component information from a database corresponding to the control terminal, and taking the appointed file as a test environment file corresponding to the target test case;
and sending the test environment file to the target to-be-tested machine, and controlling the target to-be-tested machine to install the test environment file so as to build a test environment corresponding to the target test case.
Optionally, the controlling the target dut according to the target test case to execute the test operation based on the test environment includes:
sending a test execution instruction to the target to-be-tested machine according to the test content in the target test case;
the test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the test execution instruction based on the test environment.
Optionally, the control end is connected to a couplet machine, and under the condition that the target test case includes couplet test content, the method further includes:
sending a test connection instruction to the antithetical couplet machine so as to control the antithetical couplet machine to respond to the test connection instruction and establish connection with a target machine to be tested corresponding to the target test case;
sending an antithetical couplet test environment file to the antithetical couplet machine so as to control the antithetical couplet machine to establish an antithetical couplet test environment based on the antithetical couplet test environment file;
the sending of the test execution instruction to the target to-be-tested machine according to the test content in the target test case includes:
sending a couplet test execution instruction to the target to-be-tested machine according to the couplet test content in the target test case;
the antithetical couplet test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the antithetical couplet test execution instruction based on the test environment and the antithetical couplet test environment in the antithetical couplet machine.
Optionally, the determining, in response to the device selection operation, the dut selected in the device selection operation as the target dut of the current test operation includes:
responding to equipment selection operation, and determining equipment information of the equipment to be tested selected by the equipment selection operation from the pre-collected equipment information of the plurality of equipment to be tested;
and determining a target machine to be tested of the test from the plurality of machines to be tested connected with the control end according to the equipment information.
Optionally, the determining, in response to the use case selection operation, the test case selected by the use case selection operation as the target test case corresponding to the target dut includes:
responding to a use case selection operation, and determining a use case number of a test use case selected by the use case selection operation;
and acquiring the test case corresponding to the case number from the database corresponding to the control end, and determining the acquired test case as the target test case corresponding to the target to-be-tested machine.
Optionally, before controlling the target dut to execute the test operation based on the test environment according to the target test case, the method further includes:
for any target machine to be tested, generating a test task for the target machine to be tested according to a target test case and equipment information corresponding to the target machine to be tested;
displaying the task information of the test task on an interface of the control end so that a user of the control end can view the task information; the task information comprises the execution progress of the target test case;
the test result comprises an execution result of the target test case and a data file, and the executing of the specified processing on the received test result comprises:
and adding the received execution result and the file identifier of the data file into the task information so as to enable a user of the control end to perform data analysis on the target to-be-tested machine based on the task information.
In a second aspect, the present invention provides a test system, which includes a control terminal and a plurality of testers; the control end is connected with the plurality of testers;
the control terminal is used for responding to equipment selection operation and determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test;
the control end is also used for responding to case selection operation for any target machine to be tested and determining the test case selected by the case selection operation as a target test case corresponding to the target machine to be tested;
the control end is further used for acquiring a test environment file corresponding to the target test case and sending the test environment file to the target to-be-tested machine;
the target to-be-tested machine is used for building a test environment based on the test environment file;
the control end is also used for controlling the target to-be-tested machine to execute test operation based on the test environment according to the target test case;
the target to-be-tested machine is also used for returning the test result of the test operation to the control end;
the control end is also used for executing appointed processing to the received test result.
In a third aspect, the present invention provides an electronic device comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the above-described test method when executing the program.
In a fourth aspect, the present invention provides a readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the above-described testing method.
In a fifth aspect, the present invention provides a testing apparatus, which is applied to a control end, wherein the control end is connected to a plurality of testers; the device comprises:
the first determining module is used for responding to equipment selection operation and determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test;
the second determining module is used for responding to case selection operation for any target machine to be tested and determining the test case selected by the case selection operation as a target test case corresponding to the target machine to be tested;
the control module is used for acquiring a test environment file corresponding to the target test case and sending the test environment file to the target to-be-tested machine so as to control the target to-be-tested machine to build a test environment based on the test environment file;
the execution module is used for controlling the target to-be-tested machine to execute the test operation based on the test environment according to the target test case and returning the test result of the test operation to the control end;
and the processing module is used for executing specified processing on the received test result.
The test method is applied to a control end, the control end is connected with a plurality of testers, a target tester is determined by responding to equipment selection operation, a target test case is determined by responding to case selection operation for any target tester, and the target tester is controlled to build a test environment based on a test environment file corresponding to the target test case. Therefore, the target test case can be conveniently determined for the target to-be-tested machine of the test. Compared with the operation of manually setting up the test environment by a tester in the prior art, the test environment can be automatically set up for the target to-be-tested machine under the control of the control end, so that the labor cost required for setting up the test environment can be reduced. And controlling the target to-be-tested machine to execute the test operation based on the test environment according to the target test case, returning the test result of the test operation to the control end, and executing the designated processing on the received test result by the control end. Therefore, the target machine to be tested can be tested automatically under the control of the control end conveniently, and compared with the operation of manually testing the machine to be tested by testing personnel in the prior art, the testing implementation cost of interactive testing can be reduced to a certain extent, and the testing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart illustrating steps of a testing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another testing method provided by embodiments of the present invention;
FIG. 3 is a schematic diagram of an add machine page of the control system provided by an embodiment of the present invention;
fig. 4 is a schematic diagram of a use case selection page of the control system according to the embodiment of the present invention;
FIG. 5 is a schematic diagram of a test task page of the control system provided by an embodiment of the invention;
FIG. 6 is a schematic diagram of a task detail page of the control system provided by an embodiment of the present invention;
FIG. 7 is a block diagram of a test system according to an embodiment of the present invention;
FIG. 8 is a block diagram of a testing apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
It should be noted that the test case in the embodiment of the present invention refers to a description of a test task performed on a specific software product, and embodies a test scheme, a method, a technique, and a policy. The contents of which include test objects, test environments, input data, test steps, expected results, test scripts, etc., ultimately forming a document. A test case may be understood as a set of test inputs, execution conditions, and expected results tailored to a particular target for verifying that a particular software requirement is met.
As shown in fig. 1, an embodiment of the present invention provides a testing method, which is applied to a control end, where the control end is connected to multiple testers; the method comprises the following steps:
step 101, responding to equipment selection operation, and determining the machine to be tested selected by the equipment selection operation as a target machine to be tested of the current test.
In this embodiment of the present invention, the control terminal may be a computer device with an external interface, such as a server, a computer, and the like, and the to-be-tested device may be a computer device with an interactive function, such as a server, which is only illustrated here, and the embodiment of the present invention is not limited thereto. The plurality of to-be-tested machines can be accessed to the control end through the external interfaces of the control end, so that the to-be-tested machines can be interactively tested under the control of the control end. The multiple testers can include testers of different models, so that the testers of different models can be tested simultaneously. Interactive testing refers to a testing mode for testing user experience, including functional interaction, interface interaction and other testing contents.
In the embodiment of the present invention, the device selection operation may be a trigger operation of a user at the control end on a device selection control corresponding to any one to-be-tested machine on an interface at the control end, where the trigger operation may be a click trigger, a long-press trigger, and the like, which are only exemplified herein, and the embodiment of the present invention is not limited thereto. Or, the device selection operation may be an operation in which the control terminal receives an input of the user to an input control on the control terminal interface, and determines device selection information according to input content in response to an input action of the user. The device selection information may be related information of the selected dut, so that the control end may determine the dut selected by the user from the multiple testers according to the related information of the testers, which is not limited in the embodiment of the present invention. The target machine to be tested refers to an object corresponding to an object selected by the equipment selection operation of the user at the control end in the plurality of machines to be tested, namely the machine to be tested selected by the equipment selection operation. The target dut may be one or more target duts, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, in response to the equipment selection operation, the to-be-tested machine selected by the equipment selection operation is determined according to the equipment selection information corresponding to the equipment selection operation, and then the to-be-tested machine selected by the equipment selection operation is determined as the target to-be-tested machine of the current test from the plurality of to-be-tested machines.
And 102, responding to case selection operation for any target machine to be tested, and determining the test case selected by the case selection operation as a target test case corresponding to the target machine to be tested.
In the embodiment of the present invention, the use case selecting operation may be a triggering operation of a user at the control end on a use case selecting control corresponding to any test use case on an interface at the control end, where the triggering operation may be a click triggering operation, a long-press triggering operation, and the like, and this is only an example, and the embodiment of the present invention is not limited to this. Or, the use case selection operation may be an operation in which the control terminal receives an input of a user to a search control on the control terminal interface, and selects a corresponding test case according to the use case related information in response to an input action of the user. The use case related information may be keywords of the selected test case, such as a use case name, a use case number, and the like, which are only examples, and the embodiment of the present invention is not limited thereto. The target test case refers to a test case selected by the case selection operation of the user at the control end, namely, the test case is used for carrying out interactive test on the target to-be-tested machine. The target test case may be one or more, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, for any target to-be-tested machine, the test case executed during the interactive test can be determined for the target to-be-tested machine. Specifically, the test case selected by the use case selecting operation can be determined according to the use case selecting information corresponding to the use case selecting operation in response to the use case selecting operation, and then the selected test case is obtained and the obtained test case is determined as the target test case corresponding to the target to-be-tested machine.
Step 103, obtaining a test environment file corresponding to the target test case, and sending the test environment file to the target to-be-tested machine so as to control the target to-be-tested machine to build a test environment based on the test environment file.
In the embodiment of the invention, the test environment file refers to a related file required for building a test environment corresponding to the target test case. The test environment file may include installation files of an operating system, related firmware, related drivers, test tools, and the like, and is used for the target dut to build a test environment based on the installation files. Here, firmware (FW) refers to a program written in an erasable programmable read only memory (eprom) or an electrically erasable programmable read only memory (eeprom). The test environment refers to an operating system, firmware, driver, test tool, etc. corresponding to the target test case. The embodiments of the present invention are not limited thereto.
In the embodiment of the invention, the test environment file corresponding to the target test case can be obtained according to the relevant information of the test environment represented by the target test case, and the obtained test environment file is sent to the target to-be-tested machine through the transmission path between the control end and the target to-be-tested machine. The testing environment represented by the target testing case is the testing environment required when testing is carried out based on the target testing case. The control end can control the target to-be-tested machine to receive the test environment file and build a test environment corresponding to the target test case based on the test environment file. It should be noted that any target dut may correspond to one or more target test cases, and the test environment files corresponding to the one or more target test cases may have the same portion. In the embodiment of the invention, comprehensive analysis can be carried out according to one or more target test cases to determine the comprehensive test environment file corresponding to one or more test cases of the target test machine, so as to obtain the comprehensive test environment file. Therefore, the data transmission quantity and the occupancy rate of the target to-be-tested machine system can be reduced, and the building efficiency of the test environment can be improved to a certain extent.
And 104, controlling the target to-be-tested machine to execute test operation based on the test environment according to the target test case, and returning a test result of the test operation to the control end.
In the embodiment of the present invention, the test operation refers to a test process that needs to be executed in a test environment corresponding to the target test case in the target test case, and may be, for example, a specific test step. The test result refers to relevant information obtained after the target dut performs a test operation based on the test environment, and may be test data, for example. The embodiments of the present invention are not limited thereto, and the examples are only illustrative.
In the embodiment of the invention, the control end can control the target to-be-tested machine to execute the test operation in the target test case based on the test environment according to the relevant information of the test operation in the target test case so as to obtain the test result corresponding to the test operation. In one possible implementation, the target dut stores the test results in a memory location specified in the target dut. Furthermore, the target to-be-tested machine can send the obtained test result to the control end through a transmission path between the control end and the target to-be-tested machine so as to enable the control end to carry out designated processing. The transmission path may be a wired connection path, for example, the transmission path may be formed based on a computer Bus capable of data transmission, such as a Universal Serial Bus (USB). Alternatively, the transmission path may be formed based on respective connection lines of the control terminal and the intermediate device, and the intermediate device and the target device under test, where the intermediate device may be a switch. Alternatively, the transmission path may be a wireless connection path, for example, the control terminal and the device under test may be connected via a wireless network.
And 105, executing appointed processing on the received test result.
In the embodiment of the invention, the control terminal can perform designated processing on the test result sent by the target to-be-tested machine through the transmission path between the control terminal and the target to-be-tested machine. The specifying process may include storing the test result in a preset storage location, analyzing the test result, or displaying information in the test result on an interface of the control end, which is only an example and is not limited in this embodiment of the present invention.
The test method is applied to a control end, the control end is connected with a plurality of testers, a target tester is determined by responding to equipment selection operation, a target test case is determined by responding to case selection operation for any target tester, and the target tester is controlled to build a test environment based on a test environment file corresponding to the target test case. Therefore, the target test case can be conveniently determined for the target to-be-tested machine of the test. Compared with the operation of manually setting up the test environment by a tester in the prior art, the test environment can be automatically set up for the target to-be-tested machine under the control of the control end, so that the labor cost required for setting up the test environment can be reduced. And controlling the target to-be-tested machine to execute the test operation based on the test environment according to the target test case, returning the test result of the test operation to the control end, and executing the designated processing on the received test result by the control end. Therefore, the target machine to be tested can be automatically tested under the control of the control end conveniently, and compared with the operation of manually testing the machine to be tested by a tester in the prior art, the test implementation cost of the interactive test can be reduced to a certain extent, and the test efficiency is improved.
It should be noted that, in the embodiment of the present invention, the dut selected in the device selection operation may be multiple duts, and the corresponding test includes multiple target duts. The control end can be used for simultaneously testing a plurality of target testers, and for the testing process of any target tester, reference may be made to steps 101 to 105, which are not described herein again. Like this, compare in prior art the operation that testing personnel tested to single await measuring machine, can reduce the required time cost of test to a certain extent, and then can improve efficiency of software testing.
As shown in fig. 2, an embodiment of the present invention provides another testing method, which is applied to a control end, where the control end is connected to a plurality of testers; the method comprises the following steps:
step 201, responding to the equipment selection operation, and determining the machine to be tested selected by the equipment selection operation as the target machine to be tested of the current test.
Specifically, the implementation manner of this step may refer to the description related to step 101, and is not described herein again.
Step 202, for any target test machine, responding to a case selection operation, and determining a test case selected by the case selection operation as a target test case corresponding to the target test machine.
Specifically, the implementation manner of this step may refer to the related description of step 102, and is not described herein again.
Step 203, according to the operating system information and/or the component information represented by the target test case, obtaining an appointed file corresponding to the operating system information and/or the component information from a database corresponding to the control terminal, and using the appointed file as a test environment file corresponding to the target test case.
In this embodiment of the present invention, the Operating System information may include information such as a type and a version of an Operating System (OS), for example, the type information may be a linux System, a Windows System, and the like, and the version information may be Windows 7, windows 8, windows 10, and the like. The component information may be a name, a model number, and the like of a component, such as a Baseboard Management Controller (BMC), a Complex Programmable Logic Device (CPLD). The database is used for storing relevant information of each stage of the interactive test and storing various files required by the test. The testing stages comprise testing preparation, testing execution and testing analysis stages. The database may be a storage space in the control terminal, or a storage space in any device connected to the control terminal, for example, the database may be located in a server, the control terminal establishes a connection with the server, and a related file may be acquired from the database. The specified file refers to a relevant file of the test environment for building the target test case, such as an operating system installation file, determined according to the operating system information and/or the component information. The embodiments of the present invention are not limited thereto.
In this embodiment of the present invention, the target test case may include information related to an operating system environment and/or a component environment required for the test, that is, operating system information and/or component information. The databases may include an operating system library, a parts library, a firmware library, a driver library, and a tools library. The operating system library comprises installation files of a mainstream operating system, the component library comprises component information of components required by interactive testing, the firmware library comprises firmware installation files of the components, the drive library comprises drive installation files corresponding to the components under different operating systems, and the tool library comprises testing tools of the interactive testing, such as a system complete machine testing tool and a component testing tool. The operating system library and the drive library can be associated through version information of the operating system, and the component library can be associated with the drive library, the firmware library and the tool library through component information.
In the embodiment of the invention, the operating system installation file can be obtained from the operating system library according to the operating system information, and the operating system drive file can be obtained from the drive library. The firmware installation file, the component drive file and/or the test tool installation file, namely the specified file corresponding to the operating system information and/or the component information, can be acquired from the firmware library, the driver library and/or the tool library according to the component information, and the specified file corresponding to the operating system information and/or the component information is used as the test environment file corresponding to the target test case.
And 204, sending the test environment file to the target to-be-tested machine, and controlling the target to-be-tested machine to install the test environment file so as to establish a test environment corresponding to the target test case.
In the embodiment of the invention, the test environment file can be sent to the target to-be-tested machine through the transmission path between the control terminal and the target to-be-tested machine, and the test environment establishment instruction is sent to the target to-be-tested machine so as to control the target to-be-tested machine to respond to the test environment establishment instruction, and the environment test file is received and installed so as to establish the test environment corresponding to the target test case. The control end and the plurality of to-be-tested machines can be connected through the switch, and the switch can be used as a connecting medium between the control end and the to-be-tested machines to carry out data transmission.
Step 205, controlling the target dut to execute a test operation based on the test environment according to the target test case, and returning a test result of the test operation to the control end.
Specifically, the implementation manner of this step may refer to the description related to step 104, and is not described herein again.
And step 206, executing appointed processing on the received test result.
Specifically, the implementation manner of this step may refer to the description related to step 105, and is not described herein again.
The test method provided by the embodiment of the invention is applied to a control end, the control end is connected with a plurality of testers, a target tester is determined by responding to equipment selection operation, for any target tester, a target test case is determined by responding to case selection operation, an environment file is tested according to operating system information and/or component information, and the target tester is controlled to install the test environment file sent by the control end so as to build a test environment. The target machine to be tested is controlled to execute the test operation based on the test environment according to the target test case, the test result of the test operation is returned to the control end, and the control end executes the designated processing on the received test result. Therefore, the test environment file can be conveniently acquired according to the system information and/or the component information, and the test environment file is automatically installed for the target to-be-tested machine under the control of the control end so as to build a test environment. Compared with the operation of manually downloading and installing related files for building the test environment by testers in the prior art, the time cost for building the test environment can be reduced to a certain extent, and the test environment building efficiency is improved.
Optionally, step 104 may include the steps of:
step 1041, sending a test execution instruction to the target to-be-tested device according to the test content in the target test case; the test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the test execution instruction based on the test environment.
In the embodiment of the invention, the test content refers to the description about the test process in the test case, and is used for embodying a test scheme, a method, a technology, a strategy and the like. The test content may include, among other things, a test target, a test environment, input data, test procedures, expected results, test scripts, etc. The test execution instruction is sent to the target to-be-tested machine by the control end and is used for controlling the target to-be-tested machine to execute a section of command of the indicated test operation based on the test environment. Wherein the instruction is the smallest unit of function that the computer runs.
In the embodiment of the invention, the test execution instruction can be determined according to the test content, such as the test step, in the target test case. The test execution instruction may include relevant information required to complete the test procedure, such as the model of the component to be tested, the action execution instruction, the data storage path, and the like. In a feasible implementation manner, a component to be tested can be determined according to the model number of the component in the test content, a test tool, an action to be executed by the component to be tested and the like can be determined according to the test step in the test content, a storage path of test data of the component to be tested is determined according to the category of the test tool, and the address of the component to be tested, the identifier of the test tool, the action instruction and the data storage path are added into a preset instruction template, so that a test execution instruction is obtained.
In the embodiment of the invention, the test execution instruction can be sent to the target to-be-tested machine through the transmission path between the control end and the target to-be-tested machine so as to control the target to-be-tested machine to respond to the test execution instruction and execute the test step indicated by the test execution instruction based on the test environment.
In the embodiment of the invention, the test execution instruction is sent to the target to-be-tested machine according to the test content in the target test case, so that the target to-be-tested machine can be conveniently controlled to automatically execute the test operation indicated by the test execution instruction based on the test environment, and the operation is different from the operation of manually testing a single to-be-tested machine by a tester in the prior art. Therefore, the labor cost required by the test execution stage can be reduced, the time cost required by the test execution stage can be reduced under the control of the control end, and the test efficiency can be improved.
Optionally, the control end is connected to a couplet machine, and in a case that the target test case includes couplet test content, the method further includes:
and 106, sending a test connection instruction to the antithetical couplet machine so as to control the antithetical couplet machine to respond to the test connection instruction and establish connection with a target machine to be tested corresponding to the target test case.
In the embodiment of the present invention, the couplet machine may be a computer device with an interactive function, such as a server or a computer, and the couplet machine is used for connecting with the target dut under the control of the control end to perform the couplet test on the target dut. The antithetical couplet machine can access the control terminal through the external interface of the control terminal, and in a feasible implementation mode, the antithetical couplet machine can be connected with the control terminal through the switch, which is not limited by the invention. The antithetical couplet test content refers to test content which can be performed only this time when the target to-be-tested device is connected with the computer device with antithetical couplet test conditions, for example, test content related to the network card. In the embodiment of the invention, the computer equipment with the couplet test condition is a couplet machine. The test connection instruction is a computer command for controlling the antithetical couplet machine to establish connection with a target machine to be tested corresponding to the target test case.
In the embodiment of the invention, under the condition that the target test case comprises the antithetical couplet test content, the test connection instruction can be sent to the antithetical couplet machine through a transmission path between the control end and the antithetical couplet machine, such as a switch, so as to control the antithetical couplet machine to respond to the test connection instruction and establish connection with the target machine to be tested. The connection between the peer-to-peer machine and the target dut may be a physical connection or a network connection, which is not limited in this embodiment of the present invention.
And 107, sending a couplet test environment file to the couplet machine to control the couplet machine to establish a couplet test environment based on the couplet test environment file.
In the embodiment of the invention, the antithetical couplet test environment file refers to a relevant file required for building an antithetical couplet test environment corresponding to antithetical couplet test contents in a target test case. The antithetical couplet test environment file can be used for building an antithetical couplet test environment based on the installation file by a target to-be-tested machine. The antithetical couplet test environment refers to firmware, drivers, test tools, and the like corresponding to antithetical couplet test contents, and this is merely an example, and the embodiment of the present invention is not limited to this.
In the embodiment of the invention, the antithetical couplet test environment file can be obtained according to the correlative information of the antithetical couplet test environment represented by the antithetical couplet test content in the target test case, and the obtained antithetical couplet test environment file is sent to the antithetical couplet machine through the transmission path between the control end and the antithetical couplet machine. The control end can control the antithetical couplet machine to receive the antithetical couplet test environment file, and the antithetical couplet test environment corresponding to the target test case is built on the basis of the antithetical couplet test environment file.
Step 1041 may include the steps of:
step 1041a, sending a couplet test execution instruction to the target to-be-tested machine according to the couplet test content in the target test case; the antithetical couplet test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the antithetical couplet test execution instruction based on the test environment and the antithetical couplet test environment in the antithetical couplet machine.
In the embodiment of the present invention, the antithetical couplet test execution instruction may be a computer command that is sent by the control terminal to the target device under test and is used to control the target device under test to perform an antithetical couplet interaction test between the target device under test and the antithetical couplet device based on an antithetical couplet test part in a self test environment and an antithetical couplet test environment in the antithetical couplet device, that is, to execute a test step indicated by the antithetical couplet test execution instruction.
In the embodiment of the invention, the execution instruction of the antithetical couplet test can be determined according to antithetical couplet test contents, such as test steps, in the target test case. The antithetical couplet test execution instruction may include relevant information required for completing the test step, such as a model of a component to be tested, an action execution instruction, a data storage path, and the like. In one possible implementation manner, the parts for the couplet test, such as the network card, may be determined according to the part model in the couplet test content, such as the network card model. And determining a test tool according to the test steps in the antithetical couplet test content, for example, if the test step is a network card pressure test, determining that the test tool is the network card pressure test tool, and the action required to be executed by the component to be tested, for example, inputting various parameters to the network card to test various main performances of the network card. And determining a storage path of the test data of the component to be tested according to the type of the test tool, for example, a storage area in a target machine-to-be-tested memory specified by the network card pressure test tool. And adding the address of the component to be tested, the identification of the test tool, the action instruction and the data storage path into a preset instruction template, and taking the preset instruction template as a couplet test execution instruction.
In the embodiment of the invention, the antithetical couplet test execution instruction can be sent to the target to-be-tested machine through the transmission path between the control end and the target to-be-tested machine so as to control the target to-be-tested machine to respond to the antithetical couplet test execution instruction, and the test step indicated by the antithetical couplet test execution instruction is executed based on an antithetical couplet test part in a self test environment and an antithetical couplet test environment in the antithetical couplet machine. For example, when the target device to be tested is subjected to network card testing, the target device to be tested and the antithetical couplet device are configured in the same network segment, the target device to be tested responds to an antithetical couplet test execution instruction, receives test parameters in the antithetical couplet test execution instruction, and inputs a network card test tool of the target device to be tested to generate a test command. And calling the test command by a network card test tool of the antithetical couplet machine to generate a network card test script, and sending the network card test script to the target machine to be tested. And the target to-be-tested machine executes the network card test script to obtain the variable of the input test parameter and takes the variable of the test parameter as a test result.
In the embodiment of the invention, the test connection instruction and the couplet test environment file are sent to the couplet machine, so that the couplet machine can be conveniently controlled to automatically establish connection with the target to-be-tested machine and establish the couplet test environment. In addition, according to the antithetical couplet test content in the target test case, an antithetical couplet test execution instruction is sent to the target to-be-tested machine, the target to-be-tested machine can be conveniently controlled to automatically execute the test operation indicated by the antithetical couplet test execution instruction based on the test environment and the antithetical couplet test environment in the antithetical couplet machine, the test operation is manually established between a single to-be-tested machine and the antithetical couplet machine by a tester, the antithetical couplet test environment is established on the antithetical couplet machine, and the operation for carrying out manual test is different. Therefore, the labor cost required by the antithetical couplet test content can be reduced, the required time cost can be reduced under the control of the control end, and the test efficiency can be improved.
Optionally, step 101 includes the following steps:
step 1011, in response to the device selection operation, determining the device information of the device under test selected by the device selection operation from the pre-collected device information of the plurality of devices under test.
In the embodiment of the present invention, the database corresponding to the control end may include an information base of the dut. The device information of a plurality of testers connected with the control terminal can be collected in advance, and the device information of each tester is stored in the information base of the testers so as to be backed up and called by the control terminal. In a possible implementation manner, the control terminal may send a device information collection instruction to the dut according to a baseboard controller address (BMC IP) or an operating system address (OS IP) of the dut, so as to control the dut to collect and return device information. The device information may include a BMC IP, a component model, and the like of the dut.
In the embodiment of the invention, the equipment information of the to-be-tested machine selected by the equipment selection operation can be acquired from the to-be-tested machine information base in the database in response to the triggering operation of the user of the control end on the equipment selection control corresponding to any to-be-tested machine on the control system interface of the control end or the triggering operation of the input control on the control system interface for inputting the equipment selection information. The information base of the machine to be tested stores the pre-collected equipment information of the plurality of machines to be tested.
And 1012, determining a target dut of the current test from the multiple testers connected to the control terminal according to the device information.
In the embodiment of the invention, the target to-be-tested machine selected by the equipment selection operation can be taken as the to-be-tested machine represented by the equipment information from the plurality of to-be-tested machines connected with the control end according to the equipment information, namely, the target to-be-tested machine of the current test is determined.
Fig. 3 is a schematic diagram of a machine page added to the control system according to the embodiment of the present invention, and as shown in fig. 3, the control end may receive an input to the BMC IP space or the OS IP control by a user, for example, the input may be a click input, automatically trigger to send a device information collection instruction to the device under test according to the BMC IP or the OS IP of the device under test, so as to control the device under test to collect and return device information. The control end can receive the input of the user to the adding button control, and according to the equipment information returned by the to-be-tested machine, the to-be-tested machine represented by the equipment information is used as the target to-be-tested machine selected by the equipment selecting operation from the plurality of to-be-tested machines connected with the control end, namely the target to-be-tested machine of the current test is determined. As shown in fig. 3, after determining the target dut for the current test, the control end may display the device information of the target dut on a device list on the control system interface for the tester to check and perform related operations, for example, edit the device information of the target dut, or cancel the target dut for the current test by deleting the device information. The machine list may include a BMC IP, an OS IP, a machine type, a Media Access Control (MAC) address, an operation, and the like of any target device under test. The MAC address is a unique code that a manufacturer assigns to network hardware, such as a wireless network card or an ethernet network card, and each code corresponds to a unique device.
Optionally, after determining the target dut for the current test, the control end may check whether the data transmission path with the target dut is normal. Specifically, the verification instruction may be sent to the target to-be-tested machine to control the target to-be-tested machine to perform the designated processing on the verification code in the verification instruction and return the verification result, so as to detect the data transmission path between the control end and the target to-be-tested machine.
In the embodiment of the invention, the control terminal can respond to the equipment selection operation of the user by collecting the equipment information of the plurality of the testers in advance, and conveniently and automatically determine the target testers of the current test from the plurality of the testers according to the equipment information of the testers selected by the equipment selection operation.
Optionally, step 102 may include the steps of:
step 1021, responding to the case selection operation, and determining the case number of the test case selected by the case selection operation.
In the embodiment of the invention, the case number refers to the case identifier of the test case and is used for distinguishing different test cases. The control system interface of the control end may display relevant information of multiple test cases and respective operation controls, for example, the relevant information of a case may be a case name, and the operation control may be a case selection control, which is only an example, and this is not limited in the embodiment of the present invention.
In the embodiment of the invention, for any target to-be-tested machine, the triggering operation of a user at the control end on the case selection control corresponding to any test case on the control system interface can be responded, or the user at the control end inputs case related information to the search control on the control system interface, the triggering operation of the corresponding test case is selected according to the case related information, and the case number of the test case selected by the case selection operation is determined.
Fig. 4 is a schematic diagram of a case selection page of a control system of a control end according to an embodiment of the present invention, and as shown in fig. 4, related information of multiple test cases and respective operation controls, including a case 1, a case 2, a case N information control, and respective addition and deletion controls, are displayed in a case library page, and a user of the control end can directly select a test case for a target dut through the addition control according to the related information of the test case. The page is provided with a case searching control, the control end can receive case related information input by a user to the searching control, and the control end automatically triggers the searching of the test case selected by the user from a plurality of test cases on the page.
And 1022, obtaining the test case corresponding to the case number from the database corresponding to the control end, and determining the obtained test case as the target test case corresponding to the target dut.
In the embodiment of the present invention, the database corresponding to the control terminal may include a test case library, and the test case library is used for storing various test cases of the interactive test and managing the test cases. According to the case number of the test case selected by the case selection operation, the test case corresponding to the case number can be searched and obtained from the test case library, and the obtained test case is used as the target test case corresponding to the target to-be-tested machine.
In the embodiment of the invention, the case number of the test case selected by the case selection operation is determined in response to the case selection operation, so that the target test case corresponding to the target to-be-tested machine can be conveniently obtained from the database corresponding to the control terminal.
Optionally, before step 104, the method further includes:
and 108, for any target test machine, generating a test task for the target test machine according to a target test case corresponding to the target test machine and equipment information.
In the embodiment of the invention, for any target to-be-tested machine, a test task can be established for the target to-be-tested machine according to the equipment information of the target to-be-tested machine. The testing task is used for representing a testing scheme of the target to-be-tested machine, and comprises equipment information and a task testing progress. Adding one or more target test cases to be executed in a test task established for the target machine to be tested, and taking the test task added with the target test cases as a test task of the generated target machine to be tested.
Optionally, the test task of the target dut may be displayed on the control system interface of the control end, so that a user of the control end can obtain task information and test progress of the test task of the target dut, and perform related operations on the test task, such as modifying the test task, increasing or decreasing target test cases, or deleting the test task. The embodiments of the present invention are not limited thereto, and the examples are only illustrative.
Fig. 5 is a schematic diagram of a test task page of a control system of a control end according to an embodiment of the present invention, and as shown in fig. 5, a task list includes test tasks of a plurality of target testers, where any test task includes a serial number, a BMC IP of the target testers, and a test progress of the test task is, for example: the system comprises a task executing module, a task testing module, a task completing module and an operation control module, wherein the operation control module comprises a view button, and the input of a user to the view button, such as click input, can be received, and relevant information of the task is displayed.
Step 109, displaying the task information of the test task on the interface of the control end, so that the user of the control end can view the task information; and the task information comprises the execution progress of the target test case.
In the embodiment of the invention, the task information can comprise the use case name, the execution progress, the use case execution time and the like of the target test case. The task information of the test task of the target to-be-tested machine can be displayed on the control system interface, so that a user of the control end can check the task information and know the detailed condition of the test task of the target to-be-tested machine through the task information.
The test result includes an execution result of the target test case and a data file, and step 105 may include the following steps:
step 1051, adding the received execution result and the file identifier of the data file to the task information, so that the user of the control end can perform data analysis on the target to-be-tested machine based on the task information.
In the embodiment of the invention, the test result returned to the control end by the target test machine can comprise the execution result of the target test case and the data file. The execution result of the target test case is used for characterizing the execution conclusion of the test case, and may include, for example, pass, fail, skip, and the like. The data file comprises test data generated by the target machine to be tested executing the test operation. The file identifier of the data file is used to distinguish different test data files, and may be, for example, a file name or a storage address of the data file. The embodiments of the present invention are not limited thereto.
In the embodiment of the invention, the execution result of the target test case and the file identifier of the data file received by the control terminal can be added into the task information of the test task to which the target test case belongs, so that a user of the control terminal can perform data analysis on the target to-be-tested machine based on the task information. For example, whether the interactive function corresponding to the target dut conforms to the functional description of the interactive function of the target dut in the research and development stage may be analyzed according to the execution result of the target test case. Specifically, the part of the interactive function of the target device under test that does not meet the functional specification or does not meet the specific requirements in the functional specification may be analyzed according to the data file, that is, the functional defect of the interactive function is found out, so as to obtain an analysis conclusion that the interactive function of the target device under test does not match the functional specification.
Fig. 6 is a schematic diagram of a task detail page of the control system according to the embodiment of the present invention, and as shown in fig. 6, the task detail page may include target test cases corresponding to the target dut, where details of the task include sequence numbers of the target test cases, case names, execution schedules such as completed and executing, case execution times, and file identifications of the data files such as file names.
Optionally, the database corresponding to the control end further includes a test database, and the test database is used for backing up the data file returned by the target device under test. In the embodiment of the invention, the data file of the target test case received by the control terminal can be stored in the test database so as to be checked, downloaded and the like by a tester.
In the embodiment of the invention, for any target to-be-tested machine, the test task is generated according to the target test case and the equipment information, and the task information of the test task is displayed on the interface of the control end, so that a user of the control end can conveniently check the task information. In addition, the received execution result and the file identification of the data file are added into the task information, so that a user of the control end can conveniently perform data analysis on the target to-be-tested machine based on the task information, and the scene practicability of the test method in the embodiment of the invention in an actual test line is improved.
It should be noted that the interactive test involves multiple functions, and the corresponding test cases are also complex and diverse. For example, the interactive test includes interactive under System pressure, influence of BMC reset on the System, influence of BMC upgrade on the System, influence of System pressure on BMC, influence of System restart on BMC, system pressure and Basic Input Output System (BIOS) refresh interactive test, system pressure and CPLD refresh interactive test, system pressure and disk array (RAID) card FW refresh interactive test, system pressure and network card FW refresh interactive test, and the like. The test process of the system pressure and CPLD refreshing interaction test comprises the following steps: firstly, a test environment is established, the test environment comprises a main stream OS, a necessary driver connected with a to-be-tested machine, a new and old two-version main board CPLD file and a refreshing tool, the new and old two-version CPLD file and the refreshing tool of one or more tested backplanes, and a system pressure tool such as a CPU, an internal memory, a hard disk, a network card and other pressure test tools is installed. And secondly, executing test operation, namely repeatedly refreshing the CPLD of the mainboard for 20 times and the backboard for 20 times in the process of the pressure of the whole machine of the system, and restarting the system before refreshing the CPLD each time to enable the CPLD to take effect. By the testing method provided by the embodiment of the invention, the testing items manually executed in the prior art such as the whole machine system pressure, BMC refreshing, BIOS refreshing, CPLD refreshing, network card interactive type, RAID interactive type and the like can be automatically executed under the control of the control end, so that the testing cost can be reduced, the working efficiency can be improved, and the human errors can be reduced by carrying out interactive testing under the control of the control end, so that the testing quality and the testing reliability can be improved.
The invention provides a test system, which comprises a control end and a plurality of testers; the control end is connected with the plurality of testers;
the control terminal is used for responding to equipment selection operation and determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test;
the control end is also used for responding to case selection operation for any target machine to be tested and determining the test case selected by the case selection operation as a target test case corresponding to the target machine to be tested;
the control end is further used for acquiring a test environment file corresponding to the target test case and sending the test environment file to the target to-be-tested machine;
the target to-be-tested machine is used for building a test environment based on the test environment file;
the control end is also used for controlling the target machine to be tested to execute test operation based on the test environment according to the target test case;
the target to-be-tested machine is also used for returning the test result of the test operation to the control end;
the control end is also used for executing appointed processing to the received test result.
Optionally, the system further includes a switch, the switch is connected to the control end, and the control end is connected to the multiple testers through the switch; the switch is used for realizing data transmission between the control end and any one of the testers.
Optionally, the system further includes a couplet machine, the couplet machine is connected to the switch, and the couplet machine can be connected to any one of the testers under the control of the control end; the antithetical couplet machine is used for carrying out antithetical couplet test on any one machine to be tested under the control of the control end.
Optionally, the control end further includes a control system; the control system is used for receiving equipment selection operation and case selection operation of a user, controlling the target to-be-tested machine to build a test environment based on the test environment file, executing the test operation based on the test environment, receiving the test of the test operation returned by the target to-be-tested machine and executing appointed processing on the test result.
Optionally, the control end further includes a database; the database comprises an information base of the machine to be tested, a test case base, an operating system base, a firmware base, a drive base, a component base and a test database. The database is used for storing relevant files of a test case, an operating system, firmware and a driver required by the interactive test, and information, component information and test data of the machine to be tested.
Fig. 7 is a structural diagram of a test system according to an embodiment of the present invention, and as shown in fig. 7, the test system includes a control end, a switch, a peer to peer machine, and testers 1 \ 8230; \8230and N. The control end comprises a control system and a database. The control end is connected with the switch, the control end is respectively connected with the to-be-tested machine 1 \8230and \8230, the to-be-tested machine N is connected with the antithetical couplet machine through the switch, and the antithetical couplet machine is connected with the to-be-tested machine 1 under the control of the control end.
In the embodiment of the present invention, the database corresponding to the control end may include a switch database, and the control end may obtain the device data of the switch and store the device data in the switch database. The switch can be used as a connecting medium of the control end, the to-be-tested machines and the antithetical couplet machines, and data transmission between the control end and the to-be-tested machines and between the control end and the antithetical couplet machines is achieved.
Optionally, in a possible implementation manner, the to-be-tested device is installed with a CPU, a memory, a motherboard, a backplane, a Serial ATA (SATA), a non-volatile memory host controller (NVM Express, NVMe) hard disk, a network card, and a RAID card. The antithetical couplet machine is provided with a CPU, an internal memory and a network card required by the machine to be tested. The machine to be tested and the antithetical couplet machine are respectively connected with the control end through the switch.
The embodiment of the invention also provides a testing device which is applied to the control end, wherein the control end is connected with the plurality of testers; as shown in fig. 8, the apparatus 30 includes:
a first determining module 301, configured to determine, in response to a device selection operation, a dut selected in the device selection operation as a target dut of a current test;
a second determining module 302, configured to, for any target dut, respond to a case selection operation, determine a test case selected by the case selection operation as a target test case corresponding to the target dut;
the control module 303 is configured to obtain a test environment file corresponding to the target test case, and send the test environment file to the target dut to control the target dut to build a test environment based on the test environment file;
the execution module 304 is configured to control the target dut to execute a test operation based on the test environment according to the target test case, and return a test result of the test operation to the control end;
a processing module 305, configured to perform specified processing on the received test result.
Optionally, the control module 303 is specifically configured to:
according to the operating system information and/or the component information represented by the target test case, acquiring an appointed file corresponding to the operating system information and/or the component information from a database corresponding to the control terminal, and taking the appointed file as a test environment file corresponding to the target test case;
and sending the test environment file to the target to-be-tested machine, and controlling the target to-be-tested machine to install the test environment file so as to establish a test environment corresponding to the target test case.
Optionally, the executing module 304 is specifically configured to:
sending a test execution instruction to the target to-be-tested machine according to the test content in the target test case; the test execution instruction is used for controlling the target to-be-tested device to execute the test operation indicated by the test execution instruction based on the test environment.
Optionally, the control end is connected to an antithetical couplet machine, and the apparatus further includes, in a case that the target test case includes antithetical couplet test content:
the first sending module is used for sending a test connection instruction to the antithetical couplet machine so as to control the antithetical couplet machine to respond to the test connection instruction and establish connection with a target machine to be tested corresponding to the target test case;
the second sending module is used for sending the antithetical couplet test environment file to the antithetical couplet machine so as to control the antithetical couplet machine to establish an antithetical couplet test environment based on the antithetical couplet test environment file;
the execution module 304 is further specifically configured to:
sending a couplet test execution instruction to the target to-be-tested machine according to the couplet test content in the target test case; the antithetical couplet test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the antithetical couplet test execution instruction based on the test environment and the antithetical couplet test environment in the antithetical couplet machine.
Optionally, the first determining module 301 is specifically configured to:
responding to equipment selection operation, and determining equipment information of the equipment to be tested selected by the equipment selection operation from the pre-collected equipment information of the plurality of equipment to be tested;
and determining a target machine to be tested of the test from the plurality of machines to be tested connected with the control end according to the equipment information.
Optionally, the second determining module 302 is specifically configured to:
responding to a use case selection operation, and determining a use case number of a test use case selected by the use case selection operation;
and acquiring the test case corresponding to the case number from the database corresponding to the control end, and determining the acquired test case as the target test case corresponding to the target to-be-tested machine.
Optionally, before controlling the target dut to execute the test operation based on the test environment according to the target test case, the apparatus further includes:
the generating module is used for generating a test task for any target machine to be tested according to a target test case and equipment information corresponding to the target machine to be tested;
the display module is used for displaying the task information of the test task on an interface of the control end so that a user of the control end can view the task information; the task information comprises the execution progress of the target test case;
the test result includes an execution result of the target test case and a data file, and the processing module 305 is specifically configured to:
and adding the received execution result and the file identifier of the data file into the task information so as to enable a user of the control end to perform data analysis on the target to-be-tested machine based on the task information.
The present invention also provides an electronic device, referring to fig. 9, including: a processor 401, a memory 402 and a computer program 4021 stored on the memory and executable on the processor, which when executed implements the testing method of the previous embodiments.
The invention also provides a readable storage medium, wherein the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to execute the testing method of the aforementioned embodiment.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. The required structure for constructing such a system is apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed to reflect the intent: rather, the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore, may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a sequencing device according to the present invention. The present invention may also be embodied as an apparatus or device program for carrying out a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is intended to be illustrative of the preferred embodiment of the present invention and should not be taken as limiting the invention, but rather, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It should be noted that, in the embodiments of the present application, the processes related to obtaining various data are performed under the premise of complying with the policies of the corresponding data protection laws and regulations in the country of the location, and obtaining the authorization given by the owner of the corresponding device.

Claims (10)

1. The test method is characterized by being applied to a control end, wherein the control end is connected with a plurality of testers; the method comprises the following steps:
responding to equipment selection operation, and determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test;
for any target machine to be tested, responding to case selection operation, and determining the test case selected by the case selection operation as a target test case corresponding to the target machine to be tested;
acquiring a test environment file corresponding to the target test case, and sending the test environment file to the target to-be-tested machine so as to control the target to-be-tested machine to build a test environment based on the test environment file;
controlling the target to-be-tested machine to execute test operation based on the test environment according to the target test case, and returning a test result of the test operation to the control end;
and executing specified processing on the received test result.
2. The method according to claim 1, wherein the obtaining of the test environment file corresponding to the target test case and the sending of the test environment file to the target device under test are performed to control the target device under test to construct a test environment based on the test environment file, and the method includes:
according to the operating system information and/or the component information represented by the target test case, acquiring an appointed file corresponding to the operating system information and/or the component information from a database corresponding to the control terminal, and taking the appointed file as a test environment file corresponding to the target test case;
and sending the test environment file to the target to-be-tested machine, and controlling the target to-be-tested machine to install the test environment file so as to establish a test environment corresponding to the target test case.
3. The method of claim 1, wherein the controlling the target dut to perform the test operation based on the test environment according to the target test case comprises:
sending a test execution instruction to the target to-be-tested machine according to the test content in the target test case;
the test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the test execution instruction based on the test environment.
4. The method according to claim 3, wherein a couplet machine is connected to the control end, and in the case that the target test case includes couplet test content, the method further comprises:
sending a test connection instruction to the antithetical couplet machine so as to control the antithetical couplet machine to respond to the test connection instruction and establish connection with a target machine to be tested corresponding to the target test case;
sending a couplet test environment file to the couplet machine to control the couplet machine to establish a couplet test environment based on the couplet test environment file;
the sending of the test execution instruction to the target to-be-tested machine according to the test content in the target test case includes:
sending a couplet test execution instruction to the target to-be-tested machine according to the couplet test content in the target test case;
the antithetical couplet test execution instruction is used for controlling the target to-be-tested machine to execute the test operation indicated by the antithetical couplet test execution instruction based on the test environment and the antithetical couplet test environment in the antithetical couplet machine.
5. The method of claim 1, wherein the determining, in response to the device selection operation, the dut selected by the device selection operation as the target dut of the current test operation comprises:
responding to equipment selection operation, and determining equipment information of the equipment to be tested selected by the equipment selection operation from the pre-collected equipment information of the plurality of equipment to be tested;
and determining a target machine to be tested of the test from the plurality of machines to be tested connected with the control end according to the equipment information.
6. The method according to claim 1, wherein the determining, in response to a use case selection operation, the test case selected by the use case selection operation as the target test case corresponding to the target dut comprises:
responding to a use case selection operation, and determining a use case number of a test use case selected by the use case selection operation;
and acquiring the test case corresponding to the case number from the database corresponding to the control end, and determining the acquired test case as the target test case corresponding to the target to-be-tested machine.
7. The method according to any one of claims 1 to 6, wherein before controlling the target DUT to perform a test operation based on the test environment according to the target test case, the method further comprises:
for any target machine to be tested, generating a test task for the target machine to be tested according to a target test case and equipment information corresponding to the target machine to be tested;
displaying the task information of the test task on an interface of the control end so that a user of the control end can view the task information; the task information comprises the execution progress of the target test case;
the test result comprises an execution result of the target test case and a data file, and the executing of the specified processing on the received test result comprises:
and adding the received execution result and the file identifier of the data file into the task information so as to enable a user of the control end to perform data analysis on the target to-be-tested machine based on the task information.
8. The test system is characterized by comprising a control end and a plurality of testers; the control end is connected with the plurality of testers;
the control terminal is used for responding to equipment selection operation and determining the to-be-tested machine selected by the equipment selection operation as a target to-be-tested machine of the current test;
the control end is also used for responding to case selection operation for any target machine to be tested and determining the test case selected by the case selection operation as a target test case corresponding to the target machine to be tested;
the control end is also used for acquiring a test environment file corresponding to the target test case and sending the test environment file to the target to-be-tested machine;
the target to-be-tested machine is used for building a test environment based on the test environment file;
the control end is also used for controlling the target machine to be tested to execute test operation based on the test environment according to the target test case;
the target machine to be tested is also used for returning the test result of the test operation to the control end;
the control end is also used for executing appointed processing to the received test result.
9. An electronic device, comprising:
processor, memory and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the testing method according to any of claims 1-7 when executing the program.
10. A readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the testing method of one or more of claims 1-7.
CN202211466230.8A 2022-11-22 2022-11-22 Test method, test system, electronic device and readable storage medium Pending CN115794519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211466230.8A CN115794519A (en) 2022-11-22 2022-11-22 Test method, test system, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211466230.8A CN115794519A (en) 2022-11-22 2022-11-22 Test method, test system, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115794519A true CN115794519A (en) 2023-03-14

Family

ID=85440036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211466230.8A Pending CN115794519A (en) 2022-11-22 2022-11-22 Test method, test system, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115794519A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116881063A (en) * 2023-09-06 2023-10-13 合肥康芯威存储技术有限公司 Test system and test method for storage unit of electronic product
CN117520210A (en) * 2024-01-05 2024-02-06 芯瞳半导体技术(山东)有限公司 System software testing method, target machine and remote testing central control machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116881063A (en) * 2023-09-06 2023-10-13 合肥康芯威存储技术有限公司 Test system and test method for storage unit of electronic product
CN117520210A (en) * 2024-01-05 2024-02-06 芯瞳半导体技术(山东)有限公司 System software testing method, target machine and remote testing central control machine
CN117520210B (en) * 2024-01-05 2024-04-16 芯瞳半导体技术(山东)有限公司 System software testing method, target machine and remote testing central control machine

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107402880B (en) Test method and electronic equipment
US7895565B1 (en) Integrated system and method for validating the functionality and performance of software applications
EP1691276B1 (en) System and method for verifying compatiblity of computer equipment with a software product
CN115794519A (en) Test method, test system, electronic device and readable storage medium
US8635170B2 (en) Adaptive business process automation
US6587960B1 (en) System model determination for failure detection and isolation, in particular in computer systems
CN108959059B (en) Test method and test platform
CN109614157A (en) A kind of configuration method of system, device and storage medium
US9645911B2 (en) System and method for debugging firmware/software by generating trace data
JP2004514208A (en) Online diagnostics of computer hardware and software
CN112270149A (en) Verification platform automation integration method and system, electronic equipment and storage medium
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN106557878B (en) Development project management method and device
CN112115051A (en) Page traversal detection method, device and equipment for application and readable storage medium
CN116166525A (en) Method and device for generating test script
JP5968451B2 (en) Computer system and program
CN112911283B (en) Smart television testing method and device
KR20150025106A (en) Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result
US10545858B2 (en) Method for testing a graphical interface and corresponding test system
JP6890795B1 (en) Programs, methods, information processing equipment, and systems
JPH07219980A (en) Test execution system
JP2010182218A (en) Software behavior analysis system
CN116382243A (en) Vehicle control signal testing method and device, storage medium and electronic device
CN117785650A (en) Automatic fuzzy test system for embedded browser software

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