CN112015605A - Memory test method and device, computer equipment and storage medium - Google Patents

Memory test method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112015605A
CN112015605A CN202010739409.0A CN202010739409A CN112015605A CN 112015605 A CN112015605 A CN 112015605A CN 202010739409 A CN202010739409 A CN 202010739409A CN 112015605 A CN112015605 A CN 112015605A
Authority
CN
China
Prior art keywords
test
state
result
test result
terminal
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.)
Granted
Application number
CN202010739409.0A
Other languages
Chinese (zh)
Other versions
CN112015605B (en
Inventor
李创锋
邹念锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tigo Semiconductor Co ltd
Original Assignee
Shenzhen Tigo Semiconductor Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tigo Semiconductor Co ltd filed Critical Shenzhen Tigo Semiconductor Co ltd
Priority to CN202010739409.0A priority Critical patent/CN112015605B/en
Publication of CN112015605A publication Critical patent/CN112015605A/en
Application granted granted Critical
Publication of CN112015605B publication Critical patent/CN112015605B/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application relates to a method and a device for testing a memory, computer equipment and a storage medium. The method comprises the following steps: receiving a first test result sent by a test terminal; generating a control instruction and sending the control instruction; receiving a second test result of the test terminal; and sending the first test result according to the physical address so that the test terminal displays the first test result and the second test result of the test terminal. Based on the method, the memory tests in two different system modes are combined, and the test results of the two tests are displayed at the same time, so that a technician can conveniently combine the two test results and visually judge the memory bank condition in the two system modes.

Description

Memory test method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for testing a memory, a computer device, and a storage medium.
Background
Memory banks are a very important component of a computer system. In order to ensure the stability of the memory bank, people usually install the memory bank on a computer motherboard, and then run memory bank testing software on the computer motherboard to perform long-time read-write test on the memory bank. The conventional memory bank testing software usually needs to connect a display to a computer mainboard for displaying a memory bank testing result, and for the memory bank testing under different systems, the computer needs to respectively test corresponding to the different systems and respectively display the testing results of the corresponding systems, so that a technician cannot visually judge whether the memory bank of the testing terminal is abnormal according to one of the testing results.
Disclosure of Invention
In order to solve the technical problem, the application provides a method and a device for testing a memory, a computer device and a storage medium.
In a first aspect, the present application provides a method for testing a memory, which is applied to a server, and includes:
receiving a first test result sent by a test terminal, wherein the first test result is obtained after executing first test software when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries a physical address of the test terminal;
generating a control instruction, and sending the control instruction, wherein the control instruction is used for instructing a network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode;
receiving a second test result of the test terminal, wherein the second test result is obtained after second test software is executed when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
and sending the first test result according to the physical address so that the test terminal displays the first test result and the second test result of the test terminal.
Optionally, when the number of the test terminals is multiple, the method further includes:
and acquiring the number of the test terminals, detecting the number of the first test results, and executing the step of generating the control command when the number of the test terminals is the same as the number of the first test results.
Optionally, the method further comprises:
and detecting the number of the second test results, and when the number of the test terminals is the same as the number of the second test results, executing the sending of the first test results according to the physical address so as to enable each test terminal to display the first test results and the second test results corresponding to each test terminal.
Optionally, the first state is a network connected state, the first system is a disk operating system, the second state is a network unconnected state, and the second system is a microsoft operating system.
Optionally, the first state is a network unconnected state, the first system is a microsoft operating system, the second state is a network connected state, and the second system is a disk operating system.
In a second aspect, the present application provides a method for testing a memory, which is applied to a test terminal, and the method includes:
acquiring a network state of the test terminal, wherein the network state comprises a first state and a second state;
when the network state is a first state, executing first test software to obtain a first test result, and sending the first test result to a server, wherein the first test result is the test result of the test terminal when the system mode is a first system mode;
receiving a restart instruction returned by the server according to the first test result;
executing the restart instruction;
when the network state is detected to be switched to the second state, executing second test software to obtain a second test result, and sending the second test result to the server, wherein the second test result is the test result of the test terminal when the system mode is the second system mode;
sending the second test result to the server;
and receiving the first test result sent by the server, and displaying the first test result and the second test result.
In a third aspect, the present application provides a device for testing a memory, which is applied to a server, and includes:
the system comprises a first result receiving module, a first address generating module and a second result receiving module, wherein the first result receiving module is used for receiving a first test result sent by a test terminal, the first test result is obtained after first test software is executed when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries the physical address of the test terminal;
the system comprises a command generation module, a network relay and a test terminal, wherein the command generation module is used for generating a control command and sending the control command, the control command is used for instructing the network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control command is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode;
a second result receiving module, configured to receive a second test result of the test terminal, where the second test result is a test result obtained after executing second test software when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
and the result returning module is used for sending the first test result according to the physical address so as to enable the test terminal to display the first test result and the second test result of the test terminal.
In a fourth aspect, the present application provides a testing apparatus for a memory, which is applied to a testing terminal, and includes:
the state acquisition module is used for acquiring the network state of the test terminal, wherein the network state comprises a first state and a second state;
the first test module is used for executing first test software when the network state is a first state to obtain a first test result, and sending the first test result to the server, wherein the first test result is the test result of the test terminal when the system mode is the first system mode;
the instruction receiving module is used for receiving a restarting instruction returned by the server according to the first test result;
the restarting module is used for executing the restarting instruction;
the second testing module is used for executing second testing software when the network state is detected to be switched to the second state, obtaining a second testing result, and sending the second testing result to the server, wherein the second testing result is the testing result of the testing terminal when the system mode is the second system mode;
the second result sending module is used for sending the second test result to the server;
and the display module is used for receiving the first test result sent by the server and displaying the first test result and the second test result.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a first test result sent by a test terminal, wherein the first test result is obtained after executing first test software when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries a physical address of the test terminal;
generating a control instruction, and sending the control instruction, wherein the control instruction is used for instructing a network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode;
receiving a second test result of the test terminal, wherein the second test result is obtained after second test software is executed when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
and sending the first test result according to the physical address so that the test terminal displays the first test result and the second test result of the test terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a first test result sent by a test terminal, wherein the first test result is obtained after executing first test software when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries a physical address of the test terminal;
generating a control instruction, and sending the control instruction, wherein the control instruction is used for instructing a network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode;
receiving a second test result of the test terminal, wherein the second test result is obtained after second test software is executed when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
and sending the first test result according to the physical address so that the test terminal displays the first test result and the second test result of the test terminal.
The method, the device, the computer equipment and the storage medium for testing the memory comprise the following steps: receiving a first test result sent by a test terminal, wherein the first test result is obtained after executing first test software when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries a physical address of the test terminal; generating a control instruction, and sending the control instruction, wherein the control instruction is used for instructing a network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode; receiving a second test result of the test terminal, wherein the second test result is obtained after second test software is executed when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software; and sending the first test result according to the physical address so that the test terminal displays the first test result and the second test result of the test terminal. Based on the method, the memory tests in two different system modes are combined, and the test results of the two tests are displayed at the same time, so that a technician can conveniently combine the two test results and visually judge the memory bank condition in the two system modes.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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 description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a diagram of an exemplary embodiment of an application environment for a method for testing memory;
FIG. 2 is a flow chart illustrating a method for testing a memory according to an embodiment;
FIG. 3 is a flow chart illustrating a method for testing a memory according to an embodiment;
FIG. 4 is a block diagram illustrating an exemplary embodiment of an apparatus for testing a memory;
FIG. 5 is a block diagram illustrating an exemplary embodiment of an apparatus for testing a memory;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is an application environment diagram of a memory test method according to an embodiment. Referring to fig. 1, the method for testing a memory is applied to a system for testing a memory. The memory test system includes a test terminal 110 and a server 120. The test terminal 110 and the server 120 are connected through a network. The test terminal 110 may be a test computer or other test equipment. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In an embodiment, fig. 2 is a flowchart illustrating a method for testing a memory according to an embodiment, and referring to fig. 2, a method for testing a memory is provided. The embodiment is mainly exemplified by applying the method to the server 120 in fig. 1, and the method for testing the memory specifically includes the following steps:
step S210, receiving a first test result sent by the test terminal.
In this embodiment, the first test result is obtained after the first test software is executed when the network state of the test terminal is the first state and the system mode is the first system mode, and the first test result carries the physical address of the test terminal.
The Test terminal accesses a network through the network relay and the router, the network relay and the router may be integrated devices or may be two independent devices, the network state includes a first state and a second state, the first state is a network connected state or a network unconnected state, the System mode includes a first System mode and a second System mode, the first System mode may specifically be a Disk Operating System (DOS) or a Microsoft Operating System (Microsoft Windows), the first Test software may specifically be Ram Stress Test software, Memtest software, or other memory Test software, and the like, the System mode of the Test terminal in the first state is the first System mode, and the first Test software is memory Test software corresponding to the first System mode. The physical address of the test terminal may specifically be a MAC address.
In step S220, a control command is generated and sent.
In this embodiment, the control instruction is used to close or turn off a connection power supply between the network relay and the router, so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used to restart the test terminal, so as to change the system mode of the test terminal from the first system mode to the second system mode.
And under the condition of receiving the first test result, proving that the memory test of the test terminal in the first system mode is finished, and needing to switch the system mode, carrying out the memory test in the second system mode, and generating a control instruction according to the first test result, wherein the control instruction is used for switching the first state into the second state and switching the first system mode into the second system mode.
Step S230, receiving a second test result of the test terminal.
In this embodiment, the second Test result is a Test result obtained after executing second Test software when the network state is the second state and the system mode is the second system mode, the first Test software and the second Test software are different Test software, and the second Test software may specifically be Ram Stress Test software, Memtest Test software, or other memory Test software.
When the first state is a network connected state, the first system is a disk operating system, the first Test software run by the Test terminal is Ram Stress Test software or other software which can carry out a memory bank Test under the disk operating system, the second state is a network unconnected state, the second system is a Microsoft operating system, and the second Test software run by the Test terminal is Memtest Test software or other software which can carry out a memory bank Test under the Microsoft operating system.
Or the first state is a network unconnected state, the first system is a microsoft operating system, the first Test software run by the Test terminal is Memtest Test software or other software capable of testing the memory bank under the microsoft operating system, the second state is a network connected state, the second system is a disk operating system, and the second Test software run by the Test terminal is Ram Stress Test software or other software capable of testing the memory bank under the disk operating system.
Step S240, sending the first test result according to the physical address, so that the test terminal displays the first test result and the second test result of the test terminal.
In this embodiment, when the second test result is received, it is determined that the second test software is finished running, and the first test result is returned to the test terminal corresponding to the physical address, so that the test terminal can simultaneously display the first test result and the second test result, and a technician can conveniently and intuitively determine the condition of the memory bank in two system modes by combining the two test results.
In one embodiment, when the number of the test terminals is multiple, the number of the test terminals is obtained, the number of the first test results is detected, and when the number of the test terminals is the same as the number of the first test results, the step of generating the control command is performed.
Specifically, under the condition that a plurality of test terminals perform memory test simultaneously, the server detects the number of received first test results in real time, when the number of the first test results is the same as that of the test terminals, the server indicates that all the test terminals complete the operation of the first test software, generates a control instruction, and executes the control instruction, so that the network states of all the test terminals are switched from the first state to the second state, the system mode is switched from the first system mode to the second system mode, and all the test terminals start to operate the second test software.
In one embodiment, the number of the second test results is detected, and when the number of the test terminals is the same as the number of the second test results, sending the first test results according to the physical address is executed, so that each test terminal displays the first test result and the second test result corresponding to each test terminal.
Specifically, under the condition that a plurality of test terminals simultaneously perform memory testing, the server detects the number of the received second test results in real time, when the number of the second test results is the same as that of the test terminals, the operation of second test software is completed by all the test terminals, each first test result is sent to the test terminal corresponding to the physical address, each test terminal is enabled to simultaneously display the first test result and the second test result, and technicians can conveniently and visually judge the conditions of memory banks in two system modes by combining the two test results.
In an embodiment, fig. 3 is a schematic flow chart of a method for testing a memory in an embodiment, and referring to fig. 3, the embodiment provides a method for testing a memory, which is applied to a test terminal, and the method includes:
step S310, the network state of the test terminal is obtained.
In this embodiment, the test terminal accesses the network through the network relay and the router, where the network relay and the router may be integrated devices or may be two independent devices, and the network state includes a first state and a second state, and when the first state is a network connected state, the second state is a network unconnected state, or the first state is a network unconnected state, and the second state is a network connected state.
Step S320, when the network status is the first status, executing the first test software to obtain a first test result, and sending the first test result to the server, where the first test result is a test result of the test terminal when the system mode is the first system mode.
In this embodiment, the system mode of the test terminal in the first state is a first system mode, and the first test software is memory test software corresponding to the first system mode. The first Test result carries a physical address of the Test terminal, the first System mode may specifically be a Disk Operating System (DOS) or a Microsoft Operating System (Microsoft Windows), the first Test software may specifically be Ram Stress Test software, Memtest software, or other memory Test software, and the physical address of the Test terminal may specifically be an MAC address.
Step S330, a restart instruction returned by the server according to the first test result is received.
In this embodiment, the restart instruction instructs the test terminal to perform a restart operation, and the restarted test terminal re-detects the network state.
In step S340, a restart instruction is executed.
Step S350, when it is detected that the network state is switched to the second state, executing second test software to obtain a second test result, and sending the second test result to the server, where the second test result is a test result of the test terminal when the system mode is the second system mode.
In this embodiment, after the Test terminal is restarted, the network state is re-detected, when the network state is switched from the first state to the second state, the second Test software is run, a result after the second Test software is run is a second Test result, the first Test software and the second Test software are different Test software, and the second Test software may specifically be Ram Stress Test software, Memtest software, other memory Test software, or the like.
When the first state is a network connected state, the first system is a disk operating system, the first Test software run by the Test terminal is Ram Stress Test software or other software which can carry out a memory bank Test under the disk operating system, the second state is a network unconnected state, the second system is a Microsoft operating system, and the second Test software run by the Test terminal is Memtest Test software or other software which can carry out a memory bank Test under the Microsoft operating system.
Or the first state is a network unconnected state, the first system is a microsoft operating system, the first Test software run by the Test terminal is Memtest Test software or other software capable of testing the memory bank under the microsoft operating system, the second state is a network connected state, the second system is a disk operating system, and the second Test software run by the Test terminal is Ram Stress Test software or other software capable of testing the memory bank under the disk operating system.
Step S360, sending the second test result to the server.
In this embodiment, the second test result is sent to the server, and is used to inform the server that the test terminal has completed running the second test software, and trigger the information feedback operation of the server.
And when the server finishes sending the corresponding second test results to the server, triggering the information feedback operation of the server.
Step S370, receiving the first test result sent from the server, and displaying the first test result and the second test result.
In this embodiment, the information feedback operation of the server is triggered according to the second test result, the server is enabled to return the first test result, the test terminal receives the first test result returned by the server, and the first test result and the second test result are displayed at the same time, so that a technician can conveniently and visually judge the condition of the memory bank in two system modes by combining the two test results.
And under the condition that a plurality of test terminals are provided, the server returns each first test result to the corresponding test terminal according to the corresponding physical address according to the physical address of each test terminal carried by the first test result, and each test terminal is enabled to display the respective first test result and the second test result at the same time.
In one embodiment, the method comprises a plurality of Test terminals, each Test terminal runs Ram Stress Test software or other software capable of performing a memory bank Test under a disk operating system under the condition that the network state of each Test terminal is network connected and the system mode is the disk operating system, the Test result is sent to a server as a first Test result after the running is finished, each first Test result carries a physical address corresponding to the Test terminal, when the server detects that the number of the first Test results is the same as that of the Test terminals, namely all the Test terminals complete the memory bank Test under the disk operating system, the server sends a control instruction to a network relay, the network relay is enabled to disconnect a connection power supply between the network relay and a router, and controls all the Test terminals to restart, and the Test terminals acquire the network state again after restarting, when the network state of the test terminal is changed into a state that the network is not connected, the system mode of the test terminal is proved to be switched to a Microsoft operating system, the test terminal is enabled to run Memtest test software or other software which can carry out memory bank test under the Microsoft operating system, the test result after the test is finished is sent to a server as a second test result, when the server detects that the number of the second test result is the same as that of the test terminals, each first test result is returned to the corresponding test terminal according to the physical address, each test terminal is enabled to display the first test result and the second test result at the same time, and technicians can conveniently and visually judge the conditions of the memory banks under the two system modes by combining the two test results.
Fig. 2 and fig. 3 are schematic flow charts of memory testing methods in two embodiments. It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment, fig. 4 is a block diagram of a testing apparatus for a memory in an embodiment, and as shown in fig. 4, there is provided a testing apparatus for a memory, which is applied to a server, and includes:
a first result receiving module 410, configured to receive a first test result sent by the test terminal, where the first test result is a test result obtained after executing first test software when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries a physical address of the test terminal;
the instruction generating module 420 is configured to generate a control instruction, and send the control instruction, where the control instruction is used to instruct the network relay to change the network state of the test terminal, so that the network state of the test terminal is switched from the first state to the second state, and the control instruction is further used to restart the test terminal, so that the system mode of the test terminal is switched from the first system mode to the second system mode;
a second result receiving module 430, configured to receive a second test result of the test terminal, where the second test result is a test result obtained after executing second test software when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
the result returning module 440 is configured to send the first test result according to the physical address, so that the test terminal displays the first test result and the second test result of the test terminal.
In one embodiment, when the number of the test terminals is plural, the apparatus further includes:
and the first quantity detection module is used for acquiring the quantity of the test terminals, detecting the quantity of the first test results, and executing the step of generating the control command when the quantity of the test terminals is the same as the quantity of the first test results.
In one embodiment, the first state is a network connected state, the first system is a disk operating system, the second state is a network disconnected state, and the second system is a microsoft operating system.
In one embodiment, the first state is a network disconnected state, the first system is a microsoft operating system, the second state is a network connected state, and the second system is a disk operating system.
In one embodiment, the apparatus further comprises:
and the second quantity detection module is used for detecting the quantity of the second test results, and when the quantity of the test terminals is the same as that of the second test results, the first test results are sent according to the physical address, so that each test terminal displays the first test results and the second test results corresponding to each test terminal.
In an embodiment, fig. 5 is a block diagram of a testing apparatus of a memory in an embodiment, and referring to fig. 5, the embodiment provides an apparatus for testing a memory, the apparatus including:
a state obtaining module 510, configured to obtain a network state of the test terminal, where the network state includes a first state and a second state;
the first testing module 520 is configured to execute first testing software when the network state is the first state, obtain a first testing result, and send the first testing result to the server, where the first testing result is a testing result of the testing terminal when the system mode is the first system mode;
an instruction receiving module 530, configured to receive a restart instruction returned by the server according to the first test result;
a restart module 540, configured to execute a restart instruction;
the second testing module 550 is configured to execute second testing software when it is detected that the network state is switched to the second state, obtain a second testing result, and send the second testing result to the server, where the second testing result is a testing result of the testing terminal when the system mode is the second system mode;
a second result sending module 560, configured to send a second test result to the server;
the display module 570 is configured to receive the first test result sent by the server, and display the first test result and the second test result.
FIG. 6 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the test terminal 110 (or the server 120) in fig. 1. As shown in fig. 6, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the method for testing the memory. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform a method of testing the internal memory. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the apparatus for testing a memory provided in the present application may be implemented in the form of a computer program, and the computer program may be executed on a computer device as shown in fig. 6. The memory of the computer device may store various program modules of the testing apparatus constituting the memory, such as the first result receiving module 410, the instruction generating module 420, the second result receiving module 430 and the result returning module 440 shown in fig. 4. The computer program constituted by the program modules causes the processor to execute the steps in the method for testing the memory according to the embodiments of the present application described in the present specification.
The computer device shown in fig. 6 may execute, by using the first result receiving module 410 in the testing apparatus of the memory shown in fig. 4, receiving a first test result sent by the testing terminal, where the first test result is obtained after executing the first testing software when the network state of the testing terminal is the first state and the system mode is the first system mode, and the first test result carries a physical address of the testing terminal. The computer device may execute, by the instruction generating module 420, generating a control instruction, and sending the control instruction, where the control instruction is used to instruct the network relay to change the network state of the test terminal, so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used to restart the test terminal, so as to change the system mode of the test terminal from the first system mode to the second system mode. The computer device may execute, by the second result receiving module 430, a second test result of the test terminal, where the second test result is a test result obtained after executing second test software when the network state is the second state and the system mode is the second system mode, and the first test software and the second test software are different test software. The computer device may send the first test result according to the physical address through the result returning module 440, so that the test terminal displays the first test result and the second test result of the test terminal.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the steps in any one of the above-mentioned embodiments of the method for accessing the internet of things platform are implemented.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, realizes the steps of any one of the above-mentioned methods for accessing an internet of things platform.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for testing a memory is applied to a server, and the method comprises the following steps:
receiving a first test result sent by a test terminal, wherein the first test result is obtained after executing first test software when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries a physical address of the test terminal;
generating a control instruction, and sending the control instruction, wherein the control instruction is used for instructing a network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control instruction is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode;
receiving a second test result of the test terminal, wherein the second test result is obtained after second test software is executed when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
and sending the first test result according to the physical address so that the test terminal displays the first test result and the second test result of the test terminal.
2. The method of claim 1, wherein when the number of the test terminals is plural, the method further comprises:
and acquiring the number of the test terminals, detecting the number of the first test results, and executing the step of generating the control command when the number of the test terminals is the same as the number of the first test results.
3. The method of claim 2, further comprising:
and detecting the number of the second test results, and when the number of the test terminals is the same as the number of the second test results, executing the sending of the first test results according to the physical address so as to enable each test terminal to display the first test results and the second test results corresponding to each test terminal.
4. The method of claim 1, wherein the first state is a network connected state, the first system is a disk operating system, the second state is a network disconnected state, and the second system is a microsoft operating system.
5. The method of claim 1, wherein the first state is a network disconnected state, the first system is a microsoft operating system, the second state is a network connected state, and the second system is a disk operating system.
6. A method for testing a memory is applied to a test terminal, and comprises the following steps:
acquiring a network state of the test terminal, wherein the network state comprises a first state and a second state;
when the network state is a first state, executing first test software to obtain a first test result, and sending the first test result to a server, wherein the first test result is the test result of the test terminal when the system mode is a first system mode;
receiving a restart instruction returned by the server according to the first test result;
executing the restart instruction;
when the network state is detected to be switched to the second state, executing second test software to obtain a second test result, and sending the second test result to the server, wherein the second test result is the test result of the test terminal when the system mode is the second system mode;
sending the second test result to the server;
and receiving the first test result sent by the server, and displaying the first test result and the second test result.
7. An apparatus for testing a memory, applied to a server, the apparatus comprising:
the system comprises a first result receiving module, a first address generating module and a second result receiving module, wherein the first result receiving module is used for receiving a first test result sent by a test terminal, the first test result is obtained after first test software is executed when the network state of the test terminal is a first state and the system mode is a first system mode, and the first test result carries the physical address of the test terminal;
the system comprises a command generation module, a network relay and a test terminal, wherein the command generation module is used for generating a control command and sending the control command, the control command is used for instructing the network relay to change the network state of the test terminal so as to switch the network state of the test terminal from the first state to the second state, and the control command is also used for restarting the test terminal so as to change the system mode of the test terminal from the first system mode to the second system mode;
a second result receiving module, configured to receive a second test result of the test terminal, where the second test result is a test result obtained after executing second test software when the network state is a second state and the system mode is a second system mode, and the first test software and the second test software are different test software;
and the result returning module is used for sending the first test result according to the physical address so as to enable the test terminal to display the first test result and the second test result of the test terminal.
8. An apparatus for testing a memory, applied to a test terminal, the apparatus comprising:
the state acquisition module is used for acquiring the network state of the test terminal, wherein the network state comprises a first state and a second state;
the first test module is used for executing first test software when the network state is a first state to obtain a first test result, and sending the first test result to the server, wherein the first test result is the test result of the test terminal when the system mode is the first system mode;
the instruction receiving module is used for receiving a restarting instruction returned by the server according to the first test result;
the restarting module is used for executing the restarting instruction;
the second testing module is used for executing second testing software when the network state is detected to be switched to the second state, obtaining a second testing result, and sending the second testing result to the server, wherein the second testing result is the testing result of the testing terminal when the system mode is the second system mode;
the second result sending module is used for sending the second test result to the server;
and the display module is used for receiving the first test result sent by the server and displaying the first test result and the second test result.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
10. A computer device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store application program code and the processor is configured to invoke the program code to perform the method of any of claims 1-6.
CN202010739409.0A 2020-07-28 2020-07-28 Memory testing method and device, computer equipment and storage medium Active CN112015605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010739409.0A CN112015605B (en) 2020-07-28 2020-07-28 Memory testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010739409.0A CN112015605B (en) 2020-07-28 2020-07-28 Memory testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112015605A true CN112015605A (en) 2020-12-01
CN112015605B CN112015605B (en) 2024-05-14

Family

ID=73499160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010739409.0A Active CN112015605B (en) 2020-07-28 2020-07-28 Memory testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112015605B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360952A (en) * 2012-03-02 2015-02-18 北京奇虎科技有限公司 Software test system and software test method
CN107077377A (en) * 2016-12-29 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of device virtualization method, device, system and electronic equipment, computer program product
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107729244A (en) * 2017-10-12 2018-02-23 北京元心科技有限公司 Multi-system testing method and device, mobile terminal and testing equipment
CN110119222A (en) * 2019-04-29 2019-08-13 深圳汇茂科技股份有限公司 Touch-control module switching method, device, equipment and readable medium based on dual system
CN110164502A (en) * 2019-04-12 2019-08-23 深圳市金泰克半导体有限公司 Internal storage testing method, device, computer equipment and storage medium
CN110674037A (en) * 2019-09-19 2020-01-10 深圳忆联信息***有限公司 Automatic Microsoft power consumption testing method and device, computer equipment and storage medium
CN110784879A (en) * 2019-10-31 2020-02-11 上海移远通信技术股份有限公司 Network mode switching test method, system, equipment and medium of communication module

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360952A (en) * 2012-03-02 2015-02-18 北京奇虎科技有限公司 Software test system and software test method
CN107077377A (en) * 2016-12-29 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of device virtualization method, device, system and electronic equipment, computer program product
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107729244A (en) * 2017-10-12 2018-02-23 北京元心科技有限公司 Multi-system testing method and device, mobile terminal and testing equipment
CN110164502A (en) * 2019-04-12 2019-08-23 深圳市金泰克半导体有限公司 Internal storage testing method, device, computer equipment and storage medium
CN110119222A (en) * 2019-04-29 2019-08-13 深圳汇茂科技股份有限公司 Touch-control module switching method, device, equipment and readable medium based on dual system
CN110674037A (en) * 2019-09-19 2020-01-10 深圳忆联信息***有限公司 Automatic Microsoft power consumption testing method and device, computer equipment and storage medium
CN110784879A (en) * 2019-10-31 2020-02-11 上海移远通信技术股份有限公司 Network mode switching test method, system, equipment and medium of communication module

Also Published As

Publication number Publication date
CN112015605B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN108647141B (en) Automatic test method, device, computer readable medium and electronic equipment
CN108848000B (en) Network request testing method and device, computer equipment and storage medium
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN110798376A (en) Interface testing method and device, computer equipment and storage medium
CN112732499A (en) Test method and device based on micro-service architecture and computer system
CN111414309A (en) Automatic test method of application program, computer equipment and storage medium
US9501390B1 (en) Enhancing automated mobile application testing
CN111159025B (en) Application program interface testing method and device, computer equipment and storage medium
CN109388420A (en) Application upgrade test method, device, computer equipment and storage medium
CN113191114A (en) Method and apparatus for authenticating a system
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN112015605A (en) Memory test method and device, computer equipment and storage medium
CN109815083B (en) Application crash monitoring method and device, electronic equipment and medium
CN115733741B (en) Abnormal scene test method and device for system to be tested
CN111934937A (en) Dependent network node importance degree evaluation method and device based on importance iteration
CN115118646B (en) Data interaction method and device for switch test system and electronic equipment
CN111159027B (en) Automatic testing method and device, computer equipment and readable storage medium
CN109739752B (en) Built-in resource testing method and device, electronic equipment and readable storage medium
CN110879757B (en) Restarting method and device for abnormal operation of client and computer equipment
CN107220092B (en) Method for deploying software, control server, readable medium and storage controller
CN114116244A (en) Data processing method, device and system, electronic equipment and storage medium
CN112115057A (en) Automatic test method, device and equipment for application program page building process
CN110908725A (en) Application program starting method and device, electronic equipment and readable medium
CN112214703A (en) Webpage loading method and device, computer readable storage medium and computer equipment
CN110704218B (en) Data processing method, data processing device, computer 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