CN113553226B - Startup and shutdown testing method, device, testing system, electronic equipment and storage medium - Google Patents

Startup and shutdown testing method, device, testing system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113553226B
CN113553226B CN202110840898.3A CN202110840898A CN113553226B CN 113553226 B CN113553226 B CN 113553226B CN 202110840898 A CN202110840898 A CN 202110840898A CN 113553226 B CN113553226 B CN 113553226B
Authority
CN
China
Prior art keywords
testing
input
password
test
testing machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110840898.3A
Other languages
Chinese (zh)
Other versions
CN113553226A (en
Inventor
张迎华
蒲嘉鹏
董艳芳
刘晓玲
王凯东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202110840898.3A priority Critical patent/CN113553226B/en
Publication of CN113553226A publication Critical patent/CN113553226A/en
Application granted granted Critical
Publication of CN113553226B publication Critical patent/CN113553226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

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

Abstract

The application relates to a startup and shutdown testing method, a startup and shutdown testing device, a testing system, electronic equipment and a storage medium, and belongs to the technical field of computers. The startup and shutdown testing method comprises the following steps: in the testing process, automatically inputting a pre-recorded account and a password to log in a system when a testing machine is detected to be started for the first time and loaded to a login interface; acquiring current equipment information of the testing machine; and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result. According to the method, in the testing process, when the testing machine is detected to be started up for the non-first time and loaded to a login interface, the account number and the password which are recorded in advance are automatically input to log in the system, so that the safety certification of the testing machine is completed, the system is automatically logged in without manual intervention, and the purposes of automatic testing of the startup and shutdown and the operation stability of the testing machine are achieved.

Description

Startup and shutdown testing method and device, testing system, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a startup and shutdown testing method, a startup and shutdown testing device, a testing system, electronic equipment and a storage medium.
Background
When the computer is subjected to quality inspection, if the power is cut off and the test is restarted in a manual mode, the time and the labor are consumed. With the continuous development of the technology, the automatic test can be realized through the secret-free login and automatic wake-up functions supported by the BIOS (Basic Input Output System) and the BMC (Baseboard Management Controller) of the computer, and the test efficiency is greatly improved. However, in some special scenarios, the computer is not allowed to be set to be a secret-free login based on information security requirements, and when the computer does not support the secret-free login function, the system must input an account password for verification to log in, which causes that the startup and shutdown test cannot be automated.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus for testing power on/off, an electronic device and a storage medium, so as to solve the problem that when a computer does not support a password-free login function, if an account and a password are manually input to perform the power on/off test, a lot of time and effort are required to be consumed, which results in low test efficiency.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a startup and shutdown testing method, including: in the testing process, automatically inputting a pre-recorded account and a password to log in a system when a testing machine is detected to be started for the first time and loaded to a login interface; acquiring current equipment information of the testing machine; and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result. In the embodiment of the application, when the test machine is detected to be started up for a non-first time and loaded to the login interface in the test process, the pre-recorded account and the pre-recorded password are automatically input to log in the system, so that the safety certification of the test machine is completed, the system is automatically logged in without manual intervention, and the purpose of automatically testing the startup, shutdown and operation stability of the test machine is achieved.
With reference to a possible implementation manner of the embodiment of the first aspect, the account and the password are obtained from a recorder through a controller, and the recorder records input operation information when a user inputs the account and the password through an input device in advance. In the embodiment of the application, the input operation information of the user when the account and the password are input through the input equipment in advance is recorded through the recorder, so that the action reproduction of a keyboard and a mouse can be realized by utilizing the recording function of the recorder when the test machine is tested, and the timed input of the account and the password is completed.
With reference to one possible implementation manner of the embodiment of the first aspect, after obtaining the comparison result, the method further includes: and if the current equipment information of the tester is inconsistent with the standard equipment information of the tester, storing inconsistent information in the current equipment information and the standard equipment information. In the embodiment of the application, if the comparison result is inconsistent, inconsistent information in the current equipment information and the standard equipment information is stored, so that the inconsistent information can be conveniently acquired in the following process, and analysis is performed.
With reference to a possible implementation manner of the embodiment of the first aspect, before obtaining the current device information of the tester, the method further includes: counting the startup and shutdown times of the tester; and determining that the startup and shutdown times are less than the preset test times. In the embodiment of the application, the current equipment information of the testing machine is acquired only when the startup and shutdown times are smaller than the preset testing times, and the method can be ensured to operate stably by introducing the startup and shutdown times, so that infinite repetition is avoided.
In a second aspect, an embodiment of the present application further provides a test system, including: the device comprises input equipment, a recorder, a controller and a tester; the recorder is connected with the input equipment and is used for recording and storing input operation information when the account and the password are input by the user through the input equipment; the controller is connected with the recorder and used for inputting the input operation information which is recorded by the recorder and corresponds to the account and the password into the tester when the tester is subjected to a startup and shutdown test and the tester is loaded to a login interface; the testing machine is used for automatically inputting the account and the password obtained from the controller to log in the system when the testing machine is not started for the first time and loaded to a login interface in the testing process, obtaining the current equipment information of the testing machine, and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine obtained in advance to obtain a comparison result.
With reference to a possible implementation manner of the embodiment of the second aspect, the controller is connected to a plurality of testing machines at the same time, so that the account number and the password can be input to the plurality of testing machines at the same time. In the embodiment of the application, the plurality of testing machines are connected simultaneously, so that batch testing can be realized, and the testing efficiency is further improved.
With reference to a possible implementation manner of the embodiment of the second aspect, when the test machine is started up and loaded to the login interface for the first time in the test process, the recording function of the recorder is started so as to record and store the input operation information when the user manually inputs the account and the password through the input device, when the test machine is started up and loaded to the login interface for the second time, the recording is stopped, and the assignment function of the recorder is started so as to input the account and the password to the test machine through the controller. In the embodiment of the application, in the test process of the test machine, when the test machine is started up and loaded to the login interface for the first time, the recording function of the recorder is started, and when the test machine is started up and loaded to the login interface for the second time, the recording is stopped, so that the time interval for the controller to input the account and the password at regular time is obtained, and therefore when the test machine is started up and loaded to the login interface for the subsequent time, the controller can input the input operation information recorded by the recorder to the test machine at regular time, the action recurrence of a keyboard and a mouse is realized, and the regular input of the account and the password is completed.
In a third aspect, an embodiment of the present application further provides a power on/off testing apparatus, including: the device comprises an input module, an acquisition module and a comparison module; the input module is used for automatically inputting a pre-recorded account and a password to log in the system when the test machine is detected to be started for the non-first time and loaded to a login interface in the test process; the acquisition module is used for acquiring the current equipment information of the tester; and the comparison module is used for comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the processor coupled to the memory; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform the method according to the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fifth aspect, this embodiment of the present application further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method provided in the foregoing first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a schematic structural diagram of a test system provided in an embodiment of the present application.
Fig. 2 is a schematic diagram illustrating connection between a recorder and an input device according to an embodiment of the present application.
Fig. 3 shows a schematic diagram of a controller cascade provided in an embodiment of the present application.
Fig. 4 shows a schematic flowchart of a power on/off test method provided in an embodiment of the present application.
Fig. 5 shows a block schematic diagram of a startup and shutdown testing apparatus according to an embodiment of the present application.
Fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The problem that when a computer does not support a password-free login function, if an account and a password are manually input to perform a startup and shutdown test, a large amount of time and energy are consumed, and the test efficiency is low is solved. The embodiment of the application provides a testing system, which records input operation information corresponding to an account number and a password for logging in the system in advance through a recorder, so that when a testing machine is subjected to a startup and shutdown test and a machine to be tested is loaded to a login interface, action reproduction of a keyboard and a mouse is realized according to the input operation information corresponding to the account number and the password recorded by the recorder, timing input of the account number and the password is completed, system login is completed, and the problem that the testing machine does not support a secret-free login function is solved.
The test system provided by the embodiment of the present application will be described with reference to fig. 1. As shown in fig. 1, the test system includes: input device, recorder, controller and test machine. The input equipment is connected with the recorder, the recorder is connected with the controller, and the controller is connected with the testing machine.
The input device comprises a mouse and a keyboard, and a user can input an account and a password required by logging in the test machine system through the input device. The input device is connected to the recorder via an interface, such as a USB interface.
The recorder is used for recording and storing input operation information when a user inputs an account and a password through the input equipment, can perform circular assignment to realize the action reproduction of a keyboard and a mouse, realizes the timed input of the account and the password by utilizing the recording function of the recorder, completes the safety certification of the testing machine, and automatically logs in a system under the condition of no manual intervention, thereby achieving the purpose of automatic testing of the startup and shutdown stability and the running stability of the testing machine.
When the test machine is started up for the first time and loaded to the login interface in the test process, the recording function of the recorder is started so as to record and store input operation information when a user manually inputs an account and a password through input equipment, when the test machine is started up for the second time and loaded to the login interface, the recording is stopped, the assignment function of the recorder is started so as to transmit the input operation information to the controller, and the account and the password are input to the test machine through the controller. Therefore, the time interval of starting the tester and loading the tester to the login interface twice can be obtained, so that the time interval of inputting the account and the password by the controller at regular time can be obtained, and the controller can input the input operation information recorded by the recorder to the tester at regular time when the tester is started and loaded to the login interface every time in the following process, thereby realizing the action reproduction of the keyboard and the mouse and completing the regular input of the account and the password. The time interval of the account and the password which are input by the controller at regular time is consistent with the time interval of the two times of starting the testing machine and loading the testing machine to the login interface.
In one embodiment, a schematic structural diagram of the recorder is shown in fig. 2, and includes a HOST Unit, an MCU (Micro Controller Unit) control Unit, a serial port Unit, an indicator light Unit, a data storage Unit, and a serial port control Unit.
The HOST unit contains at least two USB interfaces for connecting input devices, namely a mouse and a keyboard. And the HOST unit acquires input operation information when a user manually inputs an account number and a password through a mouse and a keyboard and transmits the input operation information to the MCU control unit. The MCU control unit stores the input operation information into the data storage unit and also serves to transmit the input operation information to the controller through the device unit (for connecting the controller). The serial port control unit is a control management unit of the serial port and is responsible for managing the serial port. The indicating lamp unit is used for indicating the state of the recorder, and the states indicated by different indicating lamps are different, for example, the color of the indicating lamp when the recording function of the recorder is started is different from the color of the indicating lamp when the assignment function of the recorder is started, so that the state of the recorder can be intuitively known through the color of the indicating lamp.
The controller is used for connecting the recorder and the testing machine, the controller acquires input operation information recorded by the recorder and transmits the input operation information to the testing machine, so that when the testing machine is subjected to startup and shutdown testing and a to-be-tested machine is loaded to a login interface, the input operation information corresponding to an account number and a password recorded by the recorder and acquired from the controller is automatically input, the action of the keyboard and the mouse is repeated, the timed input of the account number and the password is completed, and the system login is completed. In order to realize batch test of the testers, the controller can be connected with a plurality of testers at the same time, so that account numbers and passwords can be input into the plurality of testers at the same time.
In addition, in order to connect more test machines, a plurality of controllers can be connected in series through a cascade interface on the controller by using the cascade function of the controller, so as to realize a larger-scale synchronous test and further improve the test efficiency, and the cascade schematic diagram of the controller is shown in fig. 3. For example, the first controller on the left is connected to the cascade interface a of the second controller through its own cascade interface B, the cascade interface B of the second controller is connected to the cascade interface a of the third controller, the cascade interface B of the third controller is connected to the cascade interface a of the fourth controller, and so on, so that a plurality of controllers can be connected in series. When the controllers adopt the cascade mode, the plurality of controllers can correspond to only one recorder, for example, the recorder is connected with only one controller in the cascade mode, and the purpose of inputting account numbers and passwords into the plurality of test machines at the same time can be achieved.
It should be noted that, during batch testing, the passwords required for logging in the system of the connected multiple testing machines are the same, so that account numbers and passwords can be input to the multiple testing machines at the same time.
The test machine may be a computer to be tested, such as a server, and when the test machine needs to be subjected to a power on/off test, the test script is copied to a root directory root of the test machine system, and a log is cleared, and the input device, the recorder, the controller and the test machine are connected according to the connection mode shown in fig. 1. The test script parameters can be adjusted according to the version of the server system and the architecture requirement, the test times are set to be N (N is a positive integer), the test script is operated, and the startup and shutdown test of the tester is started. The test script automatically checks the device information of the tester during each on/off test, for example, captures information such as a model of the tester, a Serial Number (SN), a Baseboard Management Controller (BMC), a Basic Input Output System (BIOS), a Central Processing Unit (CPU), a memory, a hard disk, and a network card, compares the captured device information with standard device information, outputs a comparison result, and can obtain whether there is an abnormal problem such as a speed reduction or a loss of a hardware device in the device information of the server during the test according to the comparison result. And if the current equipment information of the testing machine is inconsistent with the standard equipment information of the testing machine, storing inconsistent information in the current equipment information and the standard equipment information.
In the testing process of the testing machine, when the testing machine is detected to be started for a non-first time and loaded to a login interface, an account number and a password acquired from a controller are automatically input to log in a system, current equipment information of the testing machine is acquired, and the current equipment information of the testing machine is compared with standard equipment information of the testing machine acquired in advance to obtain a comparison result. The standard equipment information is equipment information of the testing machine acquired by running the testing script for the first time.
In an alternative embodiment, before obtaining current device information for a testing machine, the testing machine is further configured to: counting the startup and shutdown times of the tester, and determining that the startup and shutdown times are smaller than the preset test times (N). And if the startup and shutdown times of the testing machine are equal to the preset testing times, ending the test.
To facilitate understanding of the whole testing process, the following description will be made on the testing process:
firstly, copying a test script to a root directory root of a test machine system, emptying a log, and connecting an input device, a recorder, a controller and a test machine according to a connection mode shown in fig. 1. The test script parameters can be adjusted according to the version of the server system and the architecture requirement, and the test times are set to be N (N is a positive integer).
And then, running a test script, automatically acquiring the equipment information of the tester by the test script, storing the acquired equipment information of the tester into the map _ info.txt as standard equipment information of the tester, and controlling the tester to restart.
When a test machine is started for the first time and loaded to a login interface, a [ R _ Ctrl ] + [ R _ Alt ] + [9] key is pressed on a keyboard, an indicator lamp on a recorder flickers at the moment, the recorder starts recording, and then a mouse and the keyboard are operated to input an account number and a password required by logging in a test machine system and enter the system; the method comprises the steps of continuously running a script, counting the startup and shutdown times of a tester, judging and counting the startup and shutdown times of the tester, determining whether the startup and shutdown times are smaller than a preset test time (N) or not, if so, acquiring current equipment information of the tester, comparing the current equipment information of the tester with standard equipment information of the tester acquired in advance to obtain a comparison result, if not, storing the inconsistent information in the current equipment information and the standard equipment information, if so, storing the current equipment information in a macro _ info _ error.txt file, and if so, storing the captured current equipment information in the macro _ info _ pass.txt file, and then controlling the tester to restart to perform the next test.
When the test machine is started up for the second time and loaded to the login interface, pressing the [ R _ Ctrl ] + [ F12] key on the keyboard, and stopping recording; then, press [ R _ Ctrl ] + [9] on the keyboard, start the assignment function of the recorder, the controller realizes the action reproduction of the keyboard and the mouse according to the account number and the input operation information corresponding to the password recorded by the recorder, complete the automatic input of the account number and the password, and enter the system; the method comprises the steps of continuously running a script, counting the startup and shutdown times of a tester, judging and counting the startup and shutdown times of the tester, determining whether the startup and shutdown times are smaller than a preset test time (N) or not, if so, acquiring current equipment information of the tester, comparing the current equipment information of the tester with standard equipment information of the tester acquired in advance to obtain a comparison result, if not, storing the inconsistent information in the current equipment information and the standard equipment information, if so, storing the current equipment information in a mac _ info _ error.txt file, and if so, storing the captured current equipment information in the mac _ info _ pass.txt file, and then controlling the tester to restart to perform the next test.
And then, carrying out next test until the startup and shutdown times are equal to the preset test times, and ending the test. Each test procedure after the second start is the same as the second test procedure described above.
The program file part code segment for testing on and off and acquiring the equipment information is as follows:
(1) The startup and shutdown test part code segment is as follows:
Figure BDA0003177371430000101
Figure BDA0003177371430000111
Figure BDA0003177371430000121
Figure BDA0003177371430000131
(2) Part of the script code for acquiring the device information is as follows, and here, only the BIOS information is taken as an example:
Figure BDA0003177371430000132
Figure BDA0003177371430000141
Figure BDA0003177371430000151
based on the same inventive concept, the embodiment of the present application further provides a power on/off testing method, and the power on/off testing method provided by the embodiment of the present application will be described below with reference to fig. 4.
S1: in the testing process, when the testing machine is detected to be started up for the first time and loaded to a login interface, the account number and the password which are recorded in advance are automatically input to log in the system.
A middle test script is deployed in the test machine, and the startup and shutdown test is started by running the test script. In the testing process of the testing machine, when the testing machine is detected to be started for a non-first time (not for the first time) and loaded to a login interface, a pre-recorded account and a pre-recorded password are automatically input to log in the system. The account and the password are acquired from a recorder through a controller, and the recorder records input operation information when a user inputs the account and the password through input equipment in advance. Furthermore, in the test process of the test machine, when the test machine is started up for the first time and loaded to the login interface, the recording function of the recorder is started so as to record and store the input operation information when the user manually inputs the account and the password through the input equipment, when the test machine is started up for the second time and loaded to the login interface, the recording is stopped, and the assignment function of the recorder is started so as to input the account and the password to the test machine through the controller.
S2: and acquiring the current equipment information of the tester.
The current device information includes: the tester comprises information such as a tester model, a machine Serial Number (SN), a Baseboard Management Controller (BMC), a Basic Input Output System (BIOS), a Central Processing Unit (CPU), a memory, a hard disk, a network card and the like.
S3: and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result.
The standard equipment information is equipment information of the testing machine acquired by running the testing script for the first time. When the comparison is carried out, whether the number of items in the device information of the previous time and the next time is the same and whether the parameters under the same item are the same can be compared; if the current device information of the tester is inconsistent with the standard device information of the tester, storing the inconsistent information in the current device information and the standard device information, for example, storing the inconsistent information in a map _ info _ error.txt file, and if the inconsistent information is the same, storing the captured current device information in the map _ info _ pass.txt file.
In an alternative embodiment, before S2, the method further includes: and counting the startup and shutdown times of the tester, and determining that the startup and shutdown times are less than the preset test times. In this embodiment, before obtaining the current device information of the testing machine, it is necessary to determine whether the number of times of power on/off is smaller than the preset number of times of testing, and the current device information of the testing machine is obtained only when it is determined that the number of times of power on/off is smaller than the preset number of times of testing, otherwise, the testing is finished.
In the embodiment of the on/off test method, reference may be made to the above-mentioned test system.
Based on the same inventive concept, the embodiment of the present application further provides a power on/off test apparatus 100, as shown in fig. 5. The startup and shutdown test apparatus 100 includes: an input module 110, an acquisition module 120, and a comparison module 130.
The input module 110 is configured to automatically input a pre-recorded account and a pre-recorded password to log in the system when it is detected that the testing machine is not started for the first time and is loaded to the login interface in the testing process.
An obtaining module 120, configured to obtain current device information of the testing machine.
The comparing module 130 is configured to compare the current device information of the testing machine with the standard device information of the testing machine obtained in advance, so as to obtain a comparison result.
Optionally, the startup and shutdown testing apparatus 100 further includes a determining module, configured to count the startup and shutdown times of the testing machine before the obtaining module 120 obtains the current device information of the testing machine, and determine that the startup and shutdown times are smaller than the preset testing times.
Optionally, the startup and shutdown testing apparatus 100 further includes a saving module, configured to save inconsistent information in the current device information and the standard device information of the testing machine if the current device information of the testing machine is inconsistent with the standard device information of the testing machine.
The implementation principle and the resulting technical effect of the startup and shutdown testing apparatus 100 provided in the embodiment of the present application are the same as those of the foregoing method embodiments, and for brief description, reference may be made to corresponding contents in the foregoing method embodiments for the parts of the apparatus embodiments that are not mentioned.
As shown in fig. 6, fig. 6 is a block diagram illustrating a structure of an electronic device 200 according to an embodiment of the present disclosure. The electronic device 200 includes: a transceiver 210, a memory 220, a communication bus 230, and a processor 240.
The elements of the transceiver 210, the memory 220, and the processor 240 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 230 or signal lines. The transceiver 210 is used for transceiving data. The memory 220 is used for storing a computer program, such as the software functional module shown in fig. 5, i.e. the power on/off test apparatus 100. The on/off test apparatus 100 includes at least one software function module, which may be stored in the memory 220 in the form of software or firmware (firmware) or fixed in an Operating System (OS) of the electronic device 200. The processor 240 is configured to execute an executable module stored in the memory 220, such as a software functional module or a computer program included in the power on/off test apparatus 100. For example, the processor 240 is configured to automatically input a pre-recorded account and password to log in the system when it is detected that the testing machine is not started for the first time and is loaded to the login interface in the testing process; acquiring current equipment information of the testing machine; and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result.
The Memory 220 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 240 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 240 may be any conventional processor or the like.
The electronic device 200 includes, but is not limited to, a computer, and the computer may be a server.
The embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter, referred to as a storage medium), where the storage medium stores a computer program, and the computer program is executed by the computer, such as the electronic device 200, to execute the startup and shutdown testing method described above.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or an electronic device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A startup and shutdown test method is characterized by comprising the following steps:
in the testing process, when a testing machine is detected to be started up for a non-first time and loaded to a login interface, a pre-recorded account and a password login system acquired from a controller are automatically input, and the controller is simultaneously connected with a plurality of testing machines so that the account and the password can be simultaneously input to the plurality of testing machines;
acquiring current equipment information of the testing machine;
and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result.
2. The method of claim 1, wherein the account and the password are obtained from a recorder through a controller, and the recorder records input operation information when a user inputs the account and the password through an input device in advance.
3. The method of claim 1, wherein after obtaining the comparison result, the method further comprises:
and if the current equipment information of the tester is inconsistent with the standard equipment information of the tester, storing inconsistent information in the current equipment information and the standard equipment information.
4. The method of any of claims 1-3, wherein prior to obtaining current device information for the tester, the method further comprises:
counting the startup and shutdown times of the tester;
and determining that the startup and shutdown times are less than the preset test times.
5. A test system, comprising:
an input device;
the recorder is connected with the input equipment and is used for recording and storing input operation information when the account and the password are input by the user through the input equipment;
the controller is connected with the recorder and used for inputting input operation information which is recorded by the recorder and corresponds to the account and the password into the tester when the tester is subjected to a startup and shutdown test and loaded to a login interface, wherein the controller is simultaneously connected with a plurality of testers so that the account and the password can be simultaneously input into the plurality of testers;
the testing machine is used for automatically inputting the account number and the password acquired from the controller to log in a system when the testing machine is detected to be started for a non-first time and loaded to a login interface in the testing process, acquiring the current equipment information of the testing machine, and comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result.
6. The test system of claim 5, wherein when the tester is started up and loaded on the login interface for the first time in the test process, a recording function of a recorder is started so as to record and store input operation information when a user manually inputs the account and the password through the input device, and when the tester is started up and loaded on the login interface for the second time, the recording is stopped, and an assignment function of the recorder is started so as to input the account and the password to the tester through the controller.
7. A startup and shutdown test device is characterized by comprising:
the device comprises an input module, a login module and a control module, wherein the input module is used for automatically inputting a pre-recorded account and a password login system acquired from a controller when a test machine is not started for the first time and is loaded to a login interface in the test process, and the controller is simultaneously connected with a plurality of test machines so that the account and the password can be simultaneously input to the plurality of test machines;
the acquisition module is used for acquiring the current equipment information of the tester;
and the comparison module is used for comparing the current equipment information of the testing machine with the standard equipment information of the testing machine acquired in advance to obtain a comparison result.
8. An electronic device, comprising:
a memory and a processor, the processor coupled to the memory;
the memory is used for storing programs;
the processor to invoke a program stored in the memory to perform the method of any of claims 1-4.
9. A storage medium, having stored thereon a computer program which, when executed by a processor, performs the method of any one of claims 1-4.
CN202110840898.3A 2021-07-23 2021-07-23 Startup and shutdown testing method, device, testing system, electronic equipment and storage medium Active CN113553226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110840898.3A CN113553226B (en) 2021-07-23 2021-07-23 Startup and shutdown testing method, device, testing system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110840898.3A CN113553226B (en) 2021-07-23 2021-07-23 Startup and shutdown testing method, device, testing system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113553226A CN113553226A (en) 2021-10-26
CN113553226B true CN113553226B (en) 2023-03-21

Family

ID=78132738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110840898.3A Active CN113553226B (en) 2021-07-23 2021-07-23 Startup and shutdown testing method, device, testing system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113553226B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114153726B (en) * 2021-11-25 2024-05-17 麒麟软件有限公司 Login test method and device based on linux desktop operating system
CN117234827B (en) * 2023-11-14 2024-02-13 武汉凌久微电子有限公司 Multi-platform automatic test method and system based on domestic graphic processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732452A (en) * 2002-10-25 2006-02-08 贝蒂纳·埃克斯珀顿 System and method for automatically launching and accessing netwrok addresses and applications
CN103106358A (en) * 2011-11-15 2013-05-15 研祥智能科技股份有限公司 Method and device for distributing computer system permissions
CN112632160A (en) * 2020-12-03 2021-04-09 聚好看科技股份有限公司 Intelligent device and intelligent device login method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924306B2 (en) * 2008-02-20 2014-12-30 International Business Machines Corporation Remote computer rebooting tool
CN107766189A (en) * 2017-10-13 2018-03-06 郑州云海信息技术有限公司 Server restarts the method for testing of stability automatically under a kind of Windows systems
CN107943643A (en) * 2017-11-28 2018-04-20 郑州云海信息技术有限公司 One kind is based on MOC boards hardware DC test methods and system
CN108693976A (en) * 2018-08-10 2018-10-23 唐山数通科技有限公司 Transcripter
CN109508269A (en) * 2018-11-13 2019-03-22 郑州云海信息技术有限公司 Test method and system are restarted under a kind of windows system
CN111310160A (en) * 2020-01-19 2020-06-19 深圳忆联信息系统有限公司 WINDOWS automatic login deployment method, device, computer equipment and storage medium
CN111858321B (en) * 2020-07-09 2024-05-10 麒麟软件有限公司 Automatic test method based on Xdotool

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732452A (en) * 2002-10-25 2006-02-08 贝蒂纳·埃克斯珀顿 System and method for automatically launching and accessing netwrok addresses and applications
CN103106358A (en) * 2011-11-15 2013-05-15 研祥智能科技股份有限公司 Method and device for distributing computer system permissions
CN112632160A (en) * 2020-12-03 2021-04-09 聚好看科技股份有限公司 Intelligent device and intelligent device login method

Also Published As

Publication number Publication date
CN113553226A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN113553226B (en) Startup and shutdown testing method, device, testing system, electronic equipment and storage medium
TWI465901B (en) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
CN104536875A (en) Automatic server restart testing method based on IPMI
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN105302687A (en) Hard disk sequence detection method based on linux
CN110750396A (en) Server operating system compatibility testing method and device and storage medium
CN113504932B (en) Firmware data updating method and device
CN111274059A (en) Software exception handling method and device for slave equipment
CN112231163A (en) Multifunctional computer detection equipment and operation method thereof
CN112269697B (en) Equipment storage performance testing method, system and related device
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN114626053A (en) Testing method and device for national secret authentication, national secret authentication program and system
CN113538725B (en) Method for testing hardware products and related equipment
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
CN114817010A (en) Python-based Redfish automatic testing method and device
CN114462879A (en) Electronic equipment quality control method and device
CN113626233B (en) Method, device and equipment for automatically detecting BIOS watchdog function
CN117116333B (en) Method and device for testing VPD information of enterprise-level solid state disk
CN114911656A (en) Automatic IPMI instruction testing method, single chip microcomputer and related device
CN110765022B (en) Method, device, computer equipment and storage medium for automatically testing sample sending SSD
CN117453472B (en) Single board testing method, single board testing cabinet and computer readable storage medium
CN116546551B (en) Wireless network equipment detection method, device and system
CN107943699A (en) A kind of method and system of test server FRU and DMI synchronizing information function
CN113866606A (en) Module pin detection method and device, electronic equipment and storage medium
CN115794511A (en) Product development test method, device, equipment and storage medium

Legal Events

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