CN114610329B - Solid state disk deployment method and device, readable storage medium and electronic equipment - Google Patents

Solid state disk deployment method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN114610329B
CN114610329B CN202210503219.8A CN202210503219A CN114610329B CN 114610329 B CN114610329 B CN 114610329B CN 202210503219 A CN202210503219 A CN 202210503219A CN 114610329 B CN114610329 B CN 114610329B
Authority
CN
China
Prior art keywords
solid state
state disk
tested
acquiring
information
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
CN202210503219.8A
Other languages
Chinese (zh)
Other versions
CN114610329A (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.)
Biwin Storage Technology Co Ltd
Original Assignee
Biwin Storage Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Biwin Storage Technology Co Ltd filed Critical Biwin Storage Technology Co Ltd
Priority to CN202210503219.8A priority Critical patent/CN114610329B/en
Publication of CN114610329A publication Critical patent/CN114610329A/en
Application granted granted Critical
Publication of CN114610329B publication Critical patent/CN114610329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a solid state disk deployment method, a solid state disk deployment device, a readable storage medium and electronic equipment.

Description

Solid state disk deployment method and device, readable storage medium and electronic equipment
Technical Field
The invention relates to the field of memory testing, in particular to a solid state disk deployment method and device, a readable storage medium and electronic equipment.
Background
Currently, the test objects of SSD (Solid State Disk) products are only tested in release (candidate) version. And lack of a continuous integrated deployment solution to monitor for development code quality. Therefore, the code quality cannot be monitored in time.
However, with the continuous development of computer technology, the demand of the market for SSD products is also increasing, and the quality requirement is also increasing. However, due to the lack of automated test flow and deployment schemes, continuous integration and deployment for SSD products are difficult to achieve. So that the efficiency of SSD development and testing cannot be improved.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a solid state disk deployment method, a solid state disk deployment device, a readable storage medium and electronic equipment are provided, and continuous integrated deployment of an SSD is achieved.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a solid state disk deployment method comprises the following steps:
judging whether a timing trigger command is received or not, and if so, acquiring a development code;
acquiring the specification of the solid state disk;
compiling a mirror image file corresponding to the specification of the solid state disk according to the development code;
acquiring the specification of a solid state disk to be tested, and an image file and an upgrade case script corresponding to the specification of the solid state disk to be tested, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrade case script;
judging whether the solid state disk to be tested is upgraded successfully or not, and if so, acquiring a test case script;
and testing the upgraded solid state disk to be tested according to the test case script.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a solid state disk deployment apparatus, comprising:
the first judgment module is used for judging whether a timing trigger command is received or not, and if so, acquiring a development code;
the acquisition module is used for acquiring the specification of the solid state disk;
the compiling module is used for compiling a mirror image file corresponding to the specification of the solid state disk according to the development code;
the upgrading module is used for acquiring the specification of the solid state disk to be tested, the image file corresponding to the specification of the solid state disk to be tested and an upgrading case script, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrading case script;
the second judgment module is used for judging whether the solid state disk to be tested is successfully upgraded or not, and if so, acquiring a test case script;
and the test module is used for testing the upgraded solid state disk to be tested according to the test case script.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for deploying a solid state disk as described above.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in a solid state disk deployment method as described above
The invention has the beneficial effects that: after a timing trigger command is received, the corresponding development code is automatically pulled, the specification of the solid state disk is obtained, the development code is compiled to obtain the image file corresponding to the specification of the solid state disk, so that the test terminal can obtain the corresponding image file and the corresponding upgrade case script to upgrade the solid state disk in the subsequent upgrade deployment process, and further test the upgraded solid state disk, so that the complete process of automatic integration, deployment, test and report of the solid state disk product is realized, manual intervention is not needed, and the efficiency of development and test of the solid state disk is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for deploying a solid state disk according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a solid state disk deployment apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic timing engineering interface diagram of a solid state disk deployment method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another timing engineering interface of a solid state disk deployment method according to an embodiment of the present invention;
fig. 6 is a schematic view of a test tool installation interface of a solid state disk deployment method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a basic information entry interface of a solid state disk deployment method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a test task case selection interface of a solid state disk deployment method according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a test environment setting interface of a solid state disk deployment method according to an embodiment of the present invention;
fig. 10 is a schematic view of an interface of a mirror file stored in an FTP server of the solid state disk deployment method according to an embodiment of the present invention;
fig. 11 is a schematic view of an interface of a mirror image file stored in another FTP server in the solid state disk deployment method according to an embodiment of the present invention;
fig. 12 is a flowchart illustrating another step of a method for deploying a solid state disk according to an embodiment of the present invention;
fig. 13 is a schematic view of a test result interface of a solid state disk deployment method according to an embodiment of the present invention;
fig. 14 is a schematic view of Jenkins engineering monitoring of a solid-state disk deployment method according to an embodiment of the present invention.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1, a method for deploying a solid state disk includes the steps of:
judging whether a timing trigger command is received or not, and if so, acquiring a development code;
acquiring the specification of the solid state disk;
compiling a mirror image file corresponding to the specification of the solid state disk according to the development code;
acquiring the specification of a solid state disk to be tested, and an image file and an upgrade case script corresponding to the specification of the solid state disk to be tested, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrade case script;
judging whether the solid state disk to be tested is upgraded successfully or not, and if so, acquiring a test case script;
and testing the upgraded solid state disk to be tested according to the test case script.
As can be seen from the above description, the beneficial effects of the present invention are: after a timing trigger command is received, the corresponding development code is automatically pulled, the specification of the solid state disk is obtained, the development code is compiled to obtain the image file corresponding to the specification of the solid state disk, so that the test terminal can obtain the corresponding image file and the corresponding upgrade case script to upgrade the solid state disk in the subsequent upgrade deployment process, and further test the upgraded solid state disk, so that the complete process of automatic integration, deployment, test and report of the solid state disk product is realized, manual intervention is not needed, and the efficiency of development and test of the solid state disk is improved.
Further, the determining whether a timing trigger command is received, and if so, acquiring the development code includes:
receiving an automatic test task ID, a test project name and a test project number to obtain information to be tested;
obtaining the specification of the solid state disk according to the information to be tested;
and establishing an automatic test task according to the information to be tested, and setting the timing trigger command.
According to the description, after the automatic test task ID, the test item name and the test item number are received and the to-be-tested information is generated, the automatic test task is created according to the corresponding to-be-tested information and the timing trigger command is set, so that the corresponding test content can be performed according to the specific test task requirement, the test can be performed at the set time point, and the convenience of the solid state disk test is improved.
Further, the compiling the image file corresponding to the specification of the solid state disk according to the development code comprises:
acquiring current time, and generating a file name of the mirror image file according to the current time;
and placing the image files corresponding to different specifications under corresponding catalogues according to the specifications of the solid state disk.
According to the description, the current system time is obtained and is used as the file name of the image file, so that different image files can be distinguished at a glance, the compiling time can be recorded at the same time, and meanwhile, the image files are placed in a classified mode according to the specifications of different solid state disks, so that the management of the image files by the system is more efficient, and the files in the upgrading process can be conveniently searched.
Further, the upgrading and deploying the solid state disk to be tested according to the image file and the upgrade case script comprises:
acquiring test environment information corresponding to the automatic test task ID;
judging whether the state information is idle according to the state information in the test environment information, and if not, not upgrading; and if so, upgrading and deploying the solid state disk to be tested.
It can be known from the above description that the configuration information of the test environment is set according to different specifications of the test environment and different characteristics of subsequent test cases, so that the upgrade process is more stable, and the current state information of each test environment is obtained, when the test environment is in an idle state, it indicates that the current test environment is available, and when the test environment is not in an idle state, it indicates that the current test environment is unavailable, thereby improving the stability of the upgrade and the test process.
Further, the compiling the image file corresponding to the specification of the solid state disk according to the development code further includes:
acquiring a compiling result of the development code;
judging whether the compiling is successful according to the compiling result of the development code, if not, setting the state information of the test environment information of the solid state disk corresponding to the development code as a failure state; and if so, setting the state information to be in an idle state.
According to the description, the state information of the test environment information of the solid state disk is set to be failed or idle according to the compiling result of the development code, so that the corresponding state information is set to be in a failure state after the compiling of the development code is failed, the solid state disk corresponding to the development code is not subjected to subsequent upgrading and testing steps, and the energy consumption of a system is reduced.
Further, the judging whether the solid state disk to be tested is successfully upgraded, and if so, acquiring the test case script includes:
receiving an upgrading result of the solid state disk to be tested;
judging whether the upgrading result is successful, if not, setting the state information as failure; and if so, setting the state information to be idle, and acquiring the test case script.
As can be seen from the above description, by obtaining the upgrade result of the solid state disk, and setting the state information of the corresponding test environment as failed when the upgrade result is failed, and setting the state information of the corresponding test environment as successful when the upgrade result is successful, it is possible to perform subsequent test steps only on the solid state disk that is successfully upgraded, avoid invalid message transmission, and reduce system energy consumption.
Further, the determining whether a timing trigger command is received, and if so, acquiring the development code includes:
acquiring serial port information and port information;
and interacting with the solid state disk to be tested according to the serial port information and the port information.
According to the description, each serial port information and the port information are obtained, so that the system can accurately position each solid state disk, and accurate information transmission is realized.
Referring to fig. 2, another embodiment of the present invention provides a solid state disk deployment device, including:
the first judgment module is used for judging whether a timing trigger command is received or not, and if so, acquiring a development code;
the acquisition module is used for acquiring the specification of the solid state disk;
the compiling module is used for compiling a mirror image file corresponding to the specification of the solid state disk according to the development code;
the upgrading module is used for acquiring the specification of the solid state disk to be tested, the image file corresponding to the specification of the solid state disk to be tested and an upgrading case script, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrading case script;
the second judgment module is used for judging whether the solid state disk to be tested is successfully upgraded or not, and if so, acquiring a test case script;
and the test module is used for testing the upgraded solid state disk to be tested according to the test case script.
Another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps in a method for deploying a solid state disk as described above.
Referring to fig. 3, another embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in the solid state disk deployment method.
The solid state disk deployment method, the solid state disk deployment device, the computer readable storage medium and the electronic equipment can be suitable for the complete processes of automatic integration, deployment, testing and reporting of NVMe solid state disks with various specifications, and are described in the following by specific embodiments:
example one
When executing the corresponding method, a corresponding timing project needs to be established in advance, and communication between the executive machine, the testing machine and the scheduling system is carried out; specifically, the method comprises the following steps:
please refer to fig. 4 and 5: building Jenkins timing engineering, and triggering a test task at nine-point timing every night from Monday to Friday if setting; test project names, code branches, an automatic test task ID (the ID of the test task stored in a self-developed test scheduling server database) and project numbers can be transmitted; setting up all the environments of the execution machine and the testing machine (wherein, the Windows system starts to enter the communication with the server, bat files and Linux writes system service), and ensuring the communication between the execution machine and the socket of the scheduling system; connecting to a serial server; starting SSH server service;
referring to fig. 6, the automated dispatch platform is used to install tools required for testing; referring to fig. 7, basic information of a tester, an execution machine, and a serial server is entered on the self-research scheduling platform; referring to fig. 8-9, an automated testing task for CI (continuous integration) is created in the self-research testing scheduling system, and a testing case and a testing environment are selected, where the testing environment information is stored in data corresponding to the task ID of the automated scheduling platform, and a testing result sender and testing parameter configuration are set;
referring to fig. 1, a method for deploying a solid state disk includes the steps of:
s01, receiving the ID of the automatic test task, the name of the test item and the number of the test item to obtain information to be tested; obtaining the specification of the solid state disk according to the information to be tested; establishing an automatic test task according to the information to be tested, and setting the timing trigger command; the automatic scheduling platform receives the corresponding test task and waits for receiving the timing trigger command;
s02, acquiring serial port information and port information; interacting with the solid state disk to be tested according to the serial port information and the port information; specifically, the method comprises the following steps: acquiring the executive machine and the tester which are distributed to the test engineering and the serial server and port information of the tester by calling the rear-end interface of the automatic test scheduling platform; as shown in fig. 8, the selected test environment is a test environment that can participate in the current test; recording information of all environments as in the middle list of fig. 9;
s1, judging whether a timing trigger command is received or not, and if so, acquiring a development code; acquiring a corresponding development code by using git through a compiling server;
s2, obtaining the specification of the solid state disk; obtaining the specification of the solid state disk according to the information such as the test project name, the project number and the like transmitted in the set up timing project;
s3, compiling a mirror image file corresponding to the specification of the solid state disk according to the development codes; referring to fig. 10 and 11, an FTP server is also built; the FTP server is used for storing the mirror image version backup; the specific compiling process comprises the following steps:
s31, compiling new version images of the various specifications (before compiling, a temporary version is written into a version. cfg file, and the temporary version number has a project number, a commit id, a nand type abbreviation and time information, and can be identified during compiling and compiled into an image file) according to the various specifications (nand is a product to be tested with different models) of the project in the self-built configuration file on the Jenkins server;
s32, uploading the mirror images of all specifications to an ftp server for version management after compiling is successful;
specifically, the method includes step S321, obtaining current time, and generating a file name of the image file according to the current time;
s321, placing the image files corresponding to different specifications under corresponding catalogues according to the specifications of the solid state disk;
if the compiling of the solid state disks of all specifications fails (only whether a corresponding image file is compiled or not is judged, and if the file cannot be checked in subsequent upgrading), the project is finished; if the partial specification is compiled successfully, uploading the successfully compiled mirror image to an ftp server;
s4, acquiring the specification of the solid state disk to be tested, the image file corresponding to the specification of the solid state disk to be tested and the upgrade case script, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrade case script;
s5, judging whether the solid state disk to be tested is upgraded successfully, and if so, acquiring a test case script;
and S6, testing the upgraded solid state disk to be tested according to the test case script.
Example two
The difference between the embodiment and the first embodiment is that the compiling, upgrading and testing processes are controlled by arranging a test machine turntable and a test environment state;
specifically, referring to fig. 12, the step S31 and the step S32 further include:
s301, acquiring test environment information corresponding to the automatic test task ID;
s302, judging whether the state information is idle according to the state information in the test environment information, and if not, not upgrading; if yes, upgrading and deploying the solid state disk to be tested
S303, acquiring a compiling result of the development code;
s304, judging whether the compiling is successful according to the compiling result of the development code, and if not, setting the state information of the test environment information of the solid state disk corresponding to the development code as a failure state; if yes, setting the state information to be in an idle state;
specifically, the smartclt and nvme tools are used for respectively acquiring the specification (nand) of the test disk of the windows system and the linux system, if the nand is compiled successfully in the compiling process, the successfully compiled mirror image file and the successfully compiled upgrade case script are downloaded on the testing machine, the case script for upgrading the firmware version is executed (the case name is configured in the project), and the test disk is upgraded and deployed; if the nand fails to be compiled in the compiling flow, calling an automatic testing platform interface to set the state of the testing machine in the dispatching platform as Fault (no longer distributing for testing);
step S5 further includes:
s51, receiving the upgrade result of the solid state disk to be tested;
s52, judging whether the upgrading result is successful, if not, setting the state information as failure; if yes, setting the state information to be idle, and acquiring a test case script;
specifically, if the result returned by the case script for upgrading is Fail, an automatic test platform interface is called to set the state of the test machine in the dispatching platform as Fault (no longer distributed for testing); if all the test machines fail to be upgraded, the project is finished; meanwhile, SSH is connected with a serial server, and a test machine serial log which is successfully upgraded is started;
step S6 further includes:
s61, calling the automatic test platform interface to trigger an automatic test task;
s62, the automatic scheduling platform schedules the tester to execute the test (the test case is the case set checked in 9), and sends the result to the relevant responsible person in a mail manner, as shown in FIG. 7; if the use case fails in the test environment, the state of the environment on the scheduling platform is Fault, and the subsequent use case distribution and execution are not participated;
s63, monitoring the execution state and the result of the automated testing task by the Jenkins project through an automated testing execution platform interface, and if all cases are successfully executed, determining the project pass as shown in FIGS. 13 and 14;
and the steps S1-S4 are executed on the server, and the tester acquires the corresponding image file, the upgrading case script and the test case script from the server and then upgrades and tests the solid state disk to be tested.
EXAMPLE III
Referring to fig. 2, a solid state disk deployment apparatus includes:
the first judgment module is used for judging whether a timing trigger command is received or not, and if so, acquiring a development code;
the acquisition module is used for acquiring the specification of the solid state disk;
the compiling module is used for compiling a mirror image file corresponding to the specification of the solid state disk according to the development code;
the upgrading module is used for acquiring the specification of the solid state disk to be tested, the image file corresponding to the specification of the solid state disk to be tested and an upgrading case script, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrading case script;
the second judgment module is used for judging whether the solid state disk to be tested is successfully upgraded or not, and if so, acquiring a test case script;
and the test module is used for testing the upgraded solid state disk to be tested according to the test case script.
Example four
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of a method for deploying a solid state disk according to any one of the first or second embodiments.
EXAMPLE five
Referring to fig. 3, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps in a solid state disk deployment method according to any one of the first embodiment or the second embodiment.
In summary, according to the solid state disk deployment method, the apparatus, the readable storage medium and the electronic device provided by the present invention, after receiving the timing trigger command, the corresponding development code is automatically pulled and the specification of the solid state disk is obtained, and the development code is compiled to obtain the image file corresponding to the specification of the solid state disk, so that the test terminal can obtain the corresponding image file and the corresponding upgrade case script to upgrade the solid state disk in the subsequent upgrade deployment process, and further test the upgraded solid state disk, and meanwhile, control over the test machine and the test environment is added in the process of compiling, upgrading and testing the solid state disk, so that the process of compiling, upgrading and testing the solid state disk is more stable, the energy consumption of the system is reduced, and automatic integration for solid state disk products is realized, The complete process of deployment, test and report is realized without manual intervention, and the efficiency of development and test of the solid state disk is improved.
In the above embodiments provided in the present application, it should be understood that the disclosed method, apparatus, computer-readable storage medium, and electronic device may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of components or modules may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or components or modules, and may be in an electrical, mechanical or other form.
The components described as separate parts may or may not be physically separate, and parts displayed as components may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the components can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each component may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module 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 invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. 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 or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently considered to be preferred embodiments and that no single act or module is essential to the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent modifications made by the present invention and the contents of the accompanying drawings, which are directly or indirectly applied to the related technical fields, are included in the scope of the present invention.

Claims (7)

1. A solid state disk deployment method is characterized by comprising the following steps:
judging whether a timing trigger command is received or not, and if so, acquiring a development code;
acquiring the specification of the solid state disk;
compiling a mirror image file corresponding to the specification of the solid state disk according to the development code; after compiling is successful, uploading the mirror images of all specifications to an ftp server for version management;
acquiring the specification of a solid state disk to be tested, and an image file and an upgrade case script corresponding to the specification of the solid state disk to be tested, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrade case script;
judging whether the solid state disk to be tested is upgraded successfully or not, and if so, acquiring a test case script;
testing the upgraded solid state disk to be tested according to the test case script;
the judging whether a timing trigger command is received or not, and if so, acquiring the development code comprises the following steps:
receiving an automatic test task ID, a test project name and a test project number to obtain information to be tested;
obtaining the specification of the solid state disk according to the information to be tested;
establishing an automatic test task according to the information to be tested, and setting the timing trigger command;
the upgrading and deploying the solid state disk to be tested according to the image file and the upgrading case script comprises the following steps:
acquiring test environment information corresponding to the automatic test task ID;
judging whether the state information is idle or not according to the state information in the test environment information, if not, not upgrading, and if so, upgrading and deploying the solid state disk to be tested;
the compiling of the image file corresponding to the specification of the solid state disk according to the development code further comprises:
acquiring a compiling result of the development code;
judging whether the compiling is successful according to the compiling result of the development code, if not, setting the state information of the test environment information of the solid state disk corresponding to the development code as a failure state; and if so, setting the state information to be in an idle state.
2. The method according to claim 1, wherein compiling the image file corresponding to the specification of the solid state disk according to the development code comprises:
acquiring current time, and generating a file name of the mirror image file according to the current time;
and placing the image files corresponding to different specifications under corresponding catalogues according to the specifications of the solid state disk.
3. The method for deploying the solid state disk according to claim 1, wherein the step of judging whether the solid state disk to be tested is upgraded successfully or not, and if yes, the step of obtaining the test case script comprises the steps of:
receiving an upgrading result of the solid state disk to be tested;
judging whether the upgrading result is successful, if not, setting the state information as failure; and if so, setting the state information to be idle, and acquiring the test case script.
4. The method according to claim 1, wherein the determining whether the timing trigger command is received, and if so, acquiring the development code comprises:
acquiring serial port information and port information;
and interacting with the solid state disk to be tested according to the serial port information and the port information.
5. A solid state disk deployment device, comprising:
the first judgment module is used for judging whether a timing trigger command is received or not, and if so, acquiring a development code;
the acquisition module is used for acquiring the specification of the solid state disk;
the compiling module is used for compiling a mirror image file corresponding to the specification of the solid state disk according to the development code; after compiling is successful, uploading the mirror images of all specifications to an ftp server for version management;
the upgrading module is used for acquiring the specification of the solid state disk to be tested, the image file corresponding to the specification of the solid state disk to be tested and an upgrading case script, and upgrading and deploying the solid state disk to be tested according to the image file and the upgrading case script;
the second judgment module is used for judging whether the solid state disk to be tested is successfully upgraded or not, and if so, acquiring a test case script;
the test module is used for testing the upgraded solid state disk to be tested according to the test case script;
the judging whether a timing trigger command is received or not, and if so, acquiring the development code comprises the following steps:
receiving an automatic test task ID, a test project name and a test project number to obtain information to be tested;
obtaining the specification of the solid state disk according to the information to be tested;
establishing an automatic test task according to the information to be tested, and setting the timing trigger command;
the upgrading and deploying the solid state disk to be tested according to the image file and the upgrading case script comprises the following steps:
acquiring test environment information corresponding to the automatic test task ID;
judging whether the state information is idle or not according to the state information in the test environment information, if not, not upgrading, and if so, upgrading and deploying the solid state disk to be tested;
the compiling of the image file corresponding to the specification of the solid state disk according to the development code further comprises:
acquiring a compiling result of the development code;
judging whether the compiling is successful according to the compiling result of the development code, if not, setting the state information of the test environment information of the solid state disk corresponding to the development code as a failure state; and if so, setting the state information to be in an idle state.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for deploying a solid state disk according to any of claims 1 to 4.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of a method for deploying a solid state disk according to any one of claims 1 to 4 when executing the computer program.
CN202210503219.8A 2022-05-10 2022-05-10 Solid state disk deployment method and device, readable storage medium and electronic equipment Active CN114610329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210503219.8A CN114610329B (en) 2022-05-10 2022-05-10 Solid state disk deployment method and device, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210503219.8A CN114610329B (en) 2022-05-10 2022-05-10 Solid state disk deployment method and device, readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114610329A CN114610329A (en) 2022-06-10
CN114610329B true CN114610329B (en) 2022-09-06

Family

ID=81869444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210503219.8A Active CN114610329B (en) 2022-05-10 2022-05-10 Solid state disk deployment method and device, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114610329B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347395A (en) * 2018-04-03 2019-10-18 中移信息技术有限公司 Software distribution method and device based on cloud computing platform
CN111338632A (en) * 2018-12-19 2020-06-26 中国移动通信集团湖南有限公司 Cloud platform mirror image construction method and device
CN112463585A (en) * 2020-10-29 2021-03-09 至誉科技(武汉)有限公司 Solid state disk code testing method and system, storage medium and electronic equipment
CN112912841A (en) * 2018-12-03 2021-06-04 北京比特大陆科技有限公司 Hardware upgrading method, device, equipment and storage medium
CN113254326A (en) * 2021-04-06 2021-08-13 至誉科技(武汉)有限公司 Method and system for releasing firmware codes of solid state disk by utilizing Jenkins
CN113805953A (en) * 2021-09-24 2021-12-17 深圳忆联信息系统有限公司 UEFI environment deployment implementation method and device, computer equipment and storage medium
CN114064058A (en) * 2021-11-17 2022-02-18 上海浦东发展银行股份有限公司 Program automatic publishing method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4006721A4 (en) * 2019-08-27 2023-04-12 Siemens Aktiengesellschaft Application program development and deployment method and apparatus, and computer readable medium
CN111399771B (en) * 2020-02-28 2023-01-10 苏州浪潮智能科技有限公司 Protocol configuration method, device and equipment of MCS storage system
CN114443060A (en) * 2021-09-06 2022-05-06 中科方德软件有限公司 Operating system deployment method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347395A (en) * 2018-04-03 2019-10-18 中移信息技术有限公司 Software distribution method and device based on cloud computing platform
CN112912841A (en) * 2018-12-03 2021-06-04 北京比特大陆科技有限公司 Hardware upgrading method, device, equipment and storage medium
CN111338632A (en) * 2018-12-19 2020-06-26 中国移动通信集团湖南有限公司 Cloud platform mirror image construction method and device
CN112463585A (en) * 2020-10-29 2021-03-09 至誉科技(武汉)有限公司 Solid state disk code testing method and system, storage medium and electronic equipment
CN113254326A (en) * 2021-04-06 2021-08-13 至誉科技(武汉)有限公司 Method and system for releasing firmware codes of solid state disk by utilizing Jenkins
CN113805953A (en) * 2021-09-24 2021-12-17 深圳忆联信息系统有限公司 UEFI environment deployment implementation method and device, computer equipment and storage medium
CN114064058A (en) * 2021-11-17 2022-02-18 上海浦东发展银行股份有限公司 Program automatic publishing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114610329A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
CN109683899B (en) Software integration method and device
CN106681924A (en) Software testing method and software testing system
CN113111000B (en) Continuous integrated automatic test system and method, electronic equipment and storage medium
CN110659202A (en) Client automatic testing method and device
CN111813495A (en) Node testing method and device, storage medium and electronic device
CN115525557A (en) Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium
CN113032245A (en) Error positioning identification test method and device, computer equipment and storage medium
CN113721957B (en) Automatic test method, device and system for firmware deployment upgrade of embedded equipment
CN111324365A (en) Method and equipment for upgrading super-converged system
CN110739025A (en) storage equipment power failure test method, device and system
CN112543478B (en) WiFi module automatic test method and device, computer equipment and storage medium
CN114610329B (en) Solid state disk deployment method and device, readable storage medium and electronic equipment
CN111628910A (en) TTCN software testing system of cellular communication terminal protocol stack
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN112650815B (en) Method and device for synchronizing environment data, storage medium and electronic device
CN115372803B (en) Motherboard test system, method, device and storage medium
CN115757088B (en) Fault injection method, device and equipment based on environment variable
CN111240986B (en) Artificial intelligent device detection system and method
CN110765011B (en) Automatic acquisition and verification device and method for test operation and maintenance data in configuration library
CN117453537A (en) Automatic testing method and device for embedded operating system, electronic equipment and medium
CN114817042A (en) Server testing method and device, testing platform and readable storage medium
CN116303065A (en) Firewall upgrading automatic test system, device and method and computer storage medium
CN117492869A (en) Visual automatic deployment service system and method
CN116680170A (en) Test method and computing device
CN116627740A (en) Equipment testing method and device, storage medium and electronic device

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