CN115407926A - System installation method, device and storage medium - Google Patents

System installation method, device and storage medium Download PDF

Info

Publication number
CN115407926A
CN115407926A CN202211173653.0A CN202211173653A CN115407926A CN 115407926 A CN115407926 A CN 115407926A CN 202211173653 A CN202211173653 A CN 202211173653A CN 115407926 A CN115407926 A CN 115407926A
Authority
CN
China
Prior art keywords
picture
positioning
target
keyboard
system installation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211173653.0A
Other languages
Chinese (zh)
Inventor
安子文
王卫钢
郭庆
丁磊
姜涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202211173653.0A priority Critical patent/CN115407926A/en
Publication of CN115407926A publication Critical patent/CN115407926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a system installation method, equipment and a storage medium, wherein the method comprises the following steps: identifying a target picture corresponding to a keyboard and mouse operation position related to system installation through a target positioning module, and positioning the target picture; and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module until system installation is completed. The technical scheme provided by the embodiment of the invention can improve the system installation efficiency, improve the working efficiency and save precious human resources.

Description

System installation method, device and storage medium
Technical Field
The present invention relates to the field of operating system technologies, and in particular, to a system installation method, device, and storage medium.
Background
The operating system has strong window control capability and man-machine operability, a large number of application software is supported, and the system has good compatibility with hardware. In order to improve the system compatibility and the usability of server products, an efficient and convenient automatic system installation method is indispensable.
In the related art, there are two methods for implementing server system installation: one method is to install by a preboot execution Environment (PXE) technology, and the method can transmit and automatically install the image file, but the method needs to perform the PXE Environment and the Environment construction is complex; the other method is to mount the mirror image through a USB flash disk, an optical drive, a KVM and the like, and then manually mount the mirror image on a graphical mounting interface through manpower, which is very inconvenient and affects the mounting efficiency.
Disclosure of Invention
The embodiment of the invention provides a system installation method, equipment and a storage medium, which can improve the system installation efficiency, improve the working efficiency and save precious human resources.
In a first aspect, an embodiment of the present invention provides a system installation method, including:
identifying a target picture corresponding to a keyboard and mouse operation position related to system installation through a target positioning module, and positioning the target picture;
and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module until system installation is completed.
Optionally, the identifying, by the target location module, a target picture corresponding to a keyboard and mouse operation position involved in system installation, and locating the target picture include:
identifying a preset access picture of a system installation interface through the target positioning module, and positioning the preset access picture;
correspondingly, the performing corresponding keyboard and mouse operations at the positioning position of the target picture through the keyboard and mouse control module comprises:
and triggering the preset entering picture at the corresponding positioning position through the keyboard and mouse control module, and entering a system installation interface.
According to the technical scheme, the preset entering picture of the system installation interface is identified and positioned through the target positioning module, the trigger operation is carried out at the positioning position through the keyboard and mouse control, the system installation interface is entered, the entering of the system installation interface can be automatically realized, the efficiency is improved, and the manpower resource is saved.
Optionally, the identifying, by the target location module, a target picture corresponding to a keyboard and mouse operation position involved in system installation, and locating the target picture include:
identifying an instruction input picture through the target positioning module on a system installation interface, and positioning the instruction input picture;
correspondingly, the performing corresponding keyboard and mouse operations at the positioning position of the target picture through the keyboard and mouse control module comprises:
and inputting an instruction at a positioning position corresponding to the instruction input picture through the keyboard and mouse control module to empty the existing partition of the current disk and select a system installation disk.
According to the technical scheme, the command input picture is identified and positioned through the target positioning module, and the command is input at the positioning position through the keyboard and mouse control module, so that the command can be automatically input, and the installation efficiency is improved.
Optionally, the identifying, by the target positioning module, a target picture corresponding to a key and mouse operation position involved in system installation, and positioning the target picture, and performing a corresponding key and mouse operation at the positioning position of the target picture by the key and mouse control module include:
identifying a key input picture through the target positioning module, and positioning the key input picture;
inputting a key at a positioning position corresponding to the key input picture through the keyboard and mouse control module;
identifying a version selection picture through the target positioning module, and positioning the version selection picture;
selecting a system installation version at a positioning position corresponding to the version selection picture through the keyboard and mouse control module;
identifying a protocol selection picture through the target positioning module, and positioning the protocol selection picture;
and selecting a protocol at a positioning position corresponding to the protocol selection picture through the keyboard and mouse control module to start system installation.
According to the technical scheme, the key input picture, the version selection picture and the protocol selection picture are identified and positioned through the target positioning module, and the key, the version selection and the protocol selection are respectively input to the positioning position through the keyboard and mouse control module, so that the system installation efficiency can be improved, and the manpower resources can be saved.
Optionally, the method further includes:
and after the system is installed and the system is restarted, if the picture which is installed successfully is identified through the target positioning module, the system is judged to be installed successfully.
According to the technical scheme, the pictures which are successfully installed are identified through the target positioning module, whether the system is successfully installed is judged, and human resources can be saved.
Optionally, the method further includes:
if the target picture cannot be identified through the target positioning module, adjusting the identification precision;
and re-identifying the target picture through the adjusted identification precision.
According to the technical scheme, the recognition precision is adjusted to recognize again, so that the effectiveness of the installation operation can be improved.
Optionally, the method further includes:
and if the abnormal condition is detected in the system installation process, screenshot is carried out on the interface corresponding to the abnormal condition.
According to the technical scheme, when abnormal conditions occur, screenshot is carried out on the interface, so that subsequent problems can be conveniently located and solved.
Optionally, the identifying, by the target location module, a target picture corresponding to a keyboard and mouse operation position related to system installation, and locating the target picture include:
identifying a target picture corresponding to a keyboard and mouse operation position related to system installation through a target positioning module in a PyAutoGUI module, and positioning the target picture;
correspondingly, the method carries out corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module, and comprises the following steps:
and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module in the PyAutoGUI module.
According to the technical scheme, the identification and the positioning are realized through the target positioning module in the PyAutoGUI module, and the corresponding operation is carried out on the positioning through the keyboard and mouse control module in the PyAutoGUI module, so that the development cost can be saved.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method provided by the embodiments of the present invention.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to, when executed, cause a processor to implement a method provided by an embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the target image corresponding to the keyboard and mouse operation position related to system installation is identified through the target positioning module, and the target image is positioned; corresponding key mouse operation is carried out at the positioning position of the target picture through the key mouse control module until the system installation is completed, the system installation efficiency can be improved, the working efficiency is improved, and precious human resources are saved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a system installation method provided by an embodiment of the invention;
FIG. 2 is a flow chart of a system installation method provided by an embodiment of the invention;
FIG. 3 is a block diagram of a system installation apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart of a system installation method provided by an embodiment of the present invention, where the method may be performed by a system installation apparatus, the apparatus may be configured in a specific tool, the tool is configured in an electronic device such as a computer, and the method may be applied in a scenario of performing system installation on a server.
As shown in fig. 1, the technical solution provided by the embodiment of the present invention includes:
s110: and identifying a target picture corresponding to the key mouse operation position related to system installation through a target positioning module, and positioning the target picture.
In the embodiment of the present invention, optionally, the system may be written in python language, and the installed system may be a windows system or may also be another system (for example, a server-related system with complicated operation and many steps). Optionally, a storage disk (for example, a usb disk) with a windows image is inserted into the server, and a Baseboard Management Controller (BMC) and a KVM (keyboard-based Virtual Machine) in the computer are powered on, so that management and control of the server can be achieved through the computer, and installation of a system in the server is controlled through the computer. After the BMC KVM is turned on, the Python code in the tool is executed and installation begins.
In the embodiment of the present invention, optionally, the target picture may be a picture of a keyboard and mouse operation position. In the system installation process, a target image corresponding to the keyboard and mouse operation position related to the system installation is identified through a target positioning module, and the target image is positioned. Specifically, a target picture corresponding to a keyboard and mouse operation position related to system installation can be stored in a picture library, and in the case of system installation, a picture in a screen is compared with pictures in the picture library through a target positioning module, so that the target picture is identified and positioned.
In an implementation manner of the embodiment of the present invention, optionally, the identifying, by the target location module, the target picture corresponding to the keyboard and mouse operation position related to system installation, and locating the target picture includes: and identifying a target picture corresponding to the keyboard and mouse operation position related to system installation through a target positioning module in the PyAutoGUI module, and positioning the target picture. The PyAutoGUI module can be installed in a pyton environment of the tool, the position of the target picture is identified through a PyAutoGUI.
In this embodiment of the present invention, optionally, before the positioning the target picture, the method may further include: if the target picture cannot be identified through the target marking and positioning module, adjusting and identifying precision; and re-identifying the target picture through the adjusted identification precision. A retry mechanism and corresponding operations are added in the code, so that the target picture can be identified again. Therefore, the effectiveness of the installation operation can be greatly improved by adjusting the precision to perform re-identification.
S120: and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module until system installation is completed.
In the embodiment of the present invention, the keyboard and mouse control module may be written in python language. In the system installation process, click or input and other corresponding keyboard and mouse operations are carried out on the positioning of the target picture through the keyboard and mouse control module until the system installation is completed.
In the embodiment of the present invention, optionally, the performing, by the keyboard and mouse control module, a corresponding keyboard and mouse operation at the positioning position of the target picture includes: and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module in the PyAutoGUI module. Specifically, a mouse click operation on a positioning position may be implemented by a pyaugui.click () function, and an input of a keyboard may be implemented by a pyaugui.typewrite () function.
In an implementation manner of the embodiment of the present invention, optionally, screenshot may be performed on an interface corresponding to an abnormal situation if the abnormal situation is detected in the system installation process. The captured picture contains detailed information of the abnormal condition, and the test environment is reserved by capturing the interface corresponding to the abnormal condition, so that the subsequent positioning and solving of the abnormal problem can be facilitated.
In the embodiment of the invention, the tool configured in the computer is operated, the installation of the server system is realized by operating the tool, and the execution process of the code is completely recorded in the process of operating the tool, so that the monitoring and the later code debugging are convenient in the installation process.
According to the technical scheme provided by the embodiment of the invention, the target image corresponding to the keyboard and mouse operation position related to system installation is identified through the target positioning module, and the target image is positioned; corresponding key mouse operation is carried out at the positioning position of the target picture through the key mouse control module until system installation is completed, the system installation efficiency can be improved, the working efficiency is improved, and precious human resources are saved.
It should be noted that this embodiment is only an optional manner of the present invention, and in other embodiments of the present invention, the openCV module may identify the target picture, and simulate the operation of the keyboard through the single-chip microcomputer control tester at the positioning position of the target picture to complete the system installation.
Fig. 2 is a flowchart of a system installation method provided in an embodiment of the present invention, and in this embodiment, optionally, the identifying, by a target location module, a target picture corresponding to a keyboard and mouse operation position involved in system installation, and locating the target picture includes:
identifying a preset access picture of a system installation interface through the target positioning module, and positioning the preset access picture;
correspondingly, the performing corresponding keyboard and mouse operation at the positioning position of the target picture through the keyboard and mouse control module comprises:
and triggering the preset entering picture at the corresponding positioning position through the keyboard and mouse control module, and entering a system installation interface.
Optionally, the identifying, by the target location module, a target picture corresponding to a keyboard and mouse operation position involved in system installation, and locating the target picture include:
identifying an instruction input picture through the target positioning module and positioning the instruction input picture on a system installation interface;
correspondingly, the performing corresponding keyboard and mouse operation at the positioning position of the target picture through the keyboard and mouse control module comprises:
and inputting an instruction at a positioning position corresponding to the instruction input picture through the keyboard and mouse control module to empty the existing partition of the current disk and select a system installation disk.
Optionally, the method includes identifying, by a target location module, a target picture corresponding to a key and mouse operation position involved in system installation, locating the target picture, and performing, by a key and mouse control module, a corresponding key and mouse operation at the located position of the target picture, and includes:
identifying a key input picture through the target positioning module, and positioning the key input picture;
inputting a key at a positioning position corresponding to the key input picture through the keyboard and mouse control module;
identifying a version selection picture through the target positioning module, and positioning the version selection picture;
selecting a system installation version at a positioning position corresponding to the version selection picture through the keyboard and mouse control module;
identifying a protocol selection picture through the target positioning module, and positioning the protocol selection picture;
and selecting a protocol at a positioning position corresponding to the protocol selection picture through the keyboard and mouse control module to start system installation.
Optionally, the technical solution provided in the embodiment of the present invention may further include:
and after the system is installed and the system is restarted, if the picture which is installed successfully is identified through the target positioning module, the system is judged to be installed successfully.
As shown in fig. 2, the technical solution provided by the embodiment of the present invention includes:
s210: and identifying a preset access picture of a system installation interface through the target positioning module, and positioning the preset access picture.
In the embodiment of the invention, the preset entry picture is an operation position picture entering a system installation interface.
S220: and triggering operation is carried out at the positioning position corresponding to the preset entering picture through the keyboard and mouse control module, and a system installation interface is entered.
In the embodiment of the invention, the central position of the preset entering picture can be triggered through the keyboard and mouse control module, and the triggering operation can be clicking, so that the entering of a system installation interface is controlled.
S230: and identifying the instruction input picture through the target positioning module on a system installation interface, and positioning the instruction input picture.
In the embodiment of the invention, the system installation interface can be identified and entered through the target positioning module, and the judgment can be specifically realized through identifying the identifier of the system installation interface. Optionally, in the system installation interface, the instruction input picture is identified and positioned by the target positioning module, so that the instruction is conveniently input. The instruction input picture may be a picture of an instruction input box.
S240: and inputting an instruction at a positioning position corresponding to the instruction input picture through the keyboard and mouse control module to empty the existing partition of the current disk and select a system installation disk.
In the embodiment of the invention, the instruction input by the keyboard and mouse control module can be set in advance, and the input instruction can be a corresponding instruction in the related technology, so that the partition of the existing disk is cleared and the system installation disk is selected.
It should be noted that, for step S230 and step S240, the following scheme may be further used instead: when the target positioning module identifies that the system installation interface is accessed, the keyboard and mouse control module inputs an instruction at a specified position to empty the existing partition of the current disk and select the system installation disk.
S250: and identifying a key input picture through the target positioning module, and positioning the key input picture.
In the embodiment of the invention, the key input picture can be a picture of the key input box, and the key can be conveniently input by identifying and positioning the picture.
S260: and inputting the key at the positioning position corresponding to the key input picture through the keyboard and mouse control module.
In the embodiment of the invention, the key input by the keyboard and mouse control module can be set in advance.
Therefore, the key input picture is identified and positioned through the target positioning module, and the key is input at the positioning position corresponding to the picture through the keyboard and mouse control module, so that the key can be automatically input, the human resources are saved, and the efficiency is improved.
S270: and identifying the version selection picture through the target positioning module, and positioning the version selection picture.
In the embodiment of the invention, after the key is input, a session of version selection can be automatically popped up, and the picture of version selection is identified in the session, or after the key is input, a page of version selection can be automatically entered, and the picture of version selection is identified by the target positioning module. Optionally, after the key is input, the target identification module may further identify and locate a trigger position for executing the next step, and the keyboard and mouse control module triggers the trigger position, so as to pop up a session for version selection or enter a page for version selection.
In the embodiment of the present invention, the version selection picture may be a picture for installing a specified version, and by identifying and locating the picture, it is convenient to select the system installation version, for example, if the system needs to install the version a, the version selection picture may be a selection picture of the version a.
S280: and selecting a system installation version at a positioning position corresponding to the version selection picture through the keyboard and mouse control module.
In the embodiment of the invention, the keyboard and mouse control template can select the corresponding system installation version at the positioning position corresponding to the version selection picture.
S290: and identifying a protocol selection picture through the target positioning module, and positioning the protocol selection picture.
In the embodiment of the invention, after the system installation version is selected, the session of the protocol selection can be automatically popped up, the protocol selection picture is identified in the session, or after the key is input, the page of the protocol selection can be automatically entered, and the protocol selection picture is identified by the target positioning module. Optionally, after the system installation version is selected, the target identification module may identify and locate a trigger position for executing the next step, and the keyboard and mouse control module may trigger the trigger position, so as to pop up a session for version selection or enter a page for protocol selection.
S291: and selecting a protocol at a positioning position corresponding to the protocol selection picture through the keyboard and mouse control module to start system installation.
In the embodiment of the invention, the protocol selection picture contains the protocol information to be checked, so that the required protocol can be checked at the corresponding position of the picture through the keyboard and mouse control module to start system installation.
S292: and after the system is installed and the system is restarted, if the picture which is installed successfully is identified through the target positioning module, the system is judged to be installed successfully.
In the embodiment of the invention, the successfully installed picture can contain the successfully installed identifier, and the successful system installation can be judged by identifying the picture.
Therefore, the target positioning module identifies the successfully installed picture to judge that the system is successfully installed, and precious human resources can be saved.
Fig. 3 is a block diagram of a system installation apparatus according to an embodiment of the present invention, where the apparatus may perform a system installation method, and as shown in fig. 3, the apparatus includes:
the target positioning module 310 is used for identifying a target picture corresponding to a keyboard and mouse operation position related to system installation and positioning the target picture;
and the keyboard and mouse control module 320 is used for performing corresponding keyboard and mouse operations at the positioning position of the target picture until the system installation is completed.
Optionally, the identifying a target picture corresponding to a keyboard and mouse operation position related to system installation, and positioning the target picture include:
identifying a preset access picture of a system installation interface, and positioning the preset access picture;
correspondingly, the performing corresponding keyboard and mouse operations at the positioning position of the target picture includes:
and triggering at the positioning position corresponding to the preset entering picture, and entering a system installation interface.
Optionally, the identifying a target picture corresponding to a keyboard and mouse operation position related to system installation, and positioning the target picture include:
identifying an instruction input picture and positioning the instruction input picture on a system installation interface;
correspondingly, the performing corresponding keyboard and mouse operations at the positioning position of the target picture includes:
and inputting an instruction at a positioning position corresponding to the instruction input picture to empty the existing partition of the current disk and select a system installation disk.
Optionally, identifying a target picture corresponding to a key and mouse operation position related to system installation, positioning the target picture, and performing a corresponding key and mouse operation at the positioning position of the target picture, including:
identifying a key input picture and positioning the key input picture;
inputting a key at a positioning position corresponding to the key input picture;
identifying a version selection picture and positioning the version selection picture;
selecting a system installation version at a positioning position corresponding to the version selection picture;
identifying a protocol selection picture and positioning the protocol selection picture;
and checking a protocol at a positioning position corresponding to the protocol selection picture to start system installation.
Optionally, the determining module is configured to determine that the system is successfully installed if the target positioning module identifies the successfully installed picture after the system is installed and the system is restarted.
Optionally, the apparatus may further include a re-recognition module, configured to adjust the recognition accuracy if the target picture is not recognized;
and re-identifying the target picture through the adjusted identification precision.
Optionally, the apparatus further includes a screenshot module, configured to capture a screenshot of an interface corresponding to an abnormal situation if the abnormal situation is detected in the system installation process.
The device provided by the embodiment of the invention can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
FIG. 4 illustrates a block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the system installation method.
In some embodiments, the system installation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the system installation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the system installation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A system installation method, comprising:
identifying a target picture corresponding to a keyboard and mouse operation position related to system installation through a target positioning module, and positioning the target picture;
and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module until system installation is completed.
2. The method of claim 1,
the identifying of the target picture corresponding to the key mouse operation position related to the system installation through the target positioning module and the positioning of the target picture comprise:
identifying a preset access picture of a system installation interface through the target positioning module, and positioning the preset access picture;
correspondingly, the performing corresponding keyboard and mouse operations at the positioning position of the target picture through the keyboard and mouse control module comprises:
and triggering operation is carried out at the positioning position corresponding to the preset entering picture through the keyboard and mouse control module, and a system installation interface is entered.
3. The method of claim 2,
the identifying of the target picture corresponding to the key mouse operation position related to the system installation through the target positioning module and the positioning of the target picture comprise:
identifying an instruction input picture through the target positioning module and positioning the instruction input picture on a system installation interface;
correspondingly, the performing corresponding keyboard and mouse operations at the positioning position of the target picture through the keyboard and mouse control module comprises:
and inputting an instruction at a positioning position corresponding to the instruction input picture through the keyboard and mouse control module to empty the existing partition of the current disk and select a system installation disk.
4. The method according to claim 3, wherein identifying a target picture corresponding to a keyboard and mouse operation position involved in system installation by a target positioning module, positioning the target picture, and performing a corresponding keyboard and mouse operation at the positioning position of the target picture by a keyboard and mouse control module comprises:
identifying a key input picture through the target positioning module, and positioning the key input picture;
inputting a key at a positioning position corresponding to the key input picture through the keyboard and mouse control module;
identifying a version selection picture through the target positioning module, and positioning the version selection picture;
selecting a system installation version at a positioning position corresponding to the version selection picture through the keyboard and mouse control module;
identifying a protocol selection picture through the target positioning module, and positioning the protocol selection picture;
and selecting a protocol at a positioning position corresponding to the protocol selection picture through the keyboard and mouse control module to start system installation.
5. The method according to any one of claims 1-4, further comprising:
and after the system is installed and the system is restarted, if the picture which is installed successfully is identified through the target positioning module, the system is judged to be installed successfully.
6. The method of claim 1, further comprising:
if the target picture cannot be identified through the target positioning module, adjusting the identification precision;
and re-identifying the target picture through the adjusted identification precision.
7. The method of claim 1, further comprising:
and if the abnormal condition is detected in the system installation process, screenshot is carried out on the interface corresponding to the abnormal condition.
8. The method of claim 1,
the identifying of the target picture corresponding to the key mouse operation position related to the system installation through the target positioning module and the positioning of the target picture comprise:
identifying a target picture corresponding to a keyboard and mouse operation position related to system installation through a target positioning module in a PyAutoGUI module, and positioning the target picture;
correspondingly, the corresponding keyboard and mouse operation is carried out at the positioning position of the target picture through the keyboard and mouse control module, and the method comprises the following steps:
and performing corresponding keyboard and mouse operation at the positioning position of the target picture through a keyboard and mouse control module in the PyAutoGUI module.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method of any one of claims 1-8 when executed.
CN202211173653.0A 2022-09-26 2022-09-26 System installation method, device and storage medium Pending CN115407926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211173653.0A CN115407926A (en) 2022-09-26 2022-09-26 System installation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211173653.0A CN115407926A (en) 2022-09-26 2022-09-26 System installation method, device and storage medium

Publications (1)

Publication Number Publication Date
CN115407926A true CN115407926A (en) 2022-11-29

Family

ID=84164856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211173653.0A Pending CN115407926A (en) 2022-09-26 2022-09-26 System installation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115407926A (en)

Similar Documents

Publication Publication Date Title
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
US8171406B1 (en) Automating user interface navigation
CN110673936B (en) Breakpoint continuous operation method and device for arrangement service, storage medium and electronic equipment
CN111984476A (en) Test method and device
CN108959064B (en) Popup window processing method and device for automatic test
CN113360144B (en) Auxiliary processing method, device, storage medium and program product for software development
CN113256583A (en) Image quality detection method and apparatus, computer device, and medium
CN112712498A (en) Vehicle damage assessment method and device executed by mobile terminal, mobile terminal and medium
CN115168130A (en) Chip testing method and device, electronic equipment and storage medium
CN113821433A (en) Method, device, equipment, medium and product for testing cloud mobile phone application program
CN114417780A (en) State synchronization method and device, electronic equipment and storage medium
CN111476349A (en) Model testing method and server
CN116450176A (en) Version updating method and device, electronic equipment and storage medium
CN114116034B (en) Distributed brushing method and device
CN115407926A (en) System installation method, device and storage medium
CN115061921A (en) Automatic test method, device, electronic equipment and readable storage medium
CN115391204A (en) Test method and device for automatic driving service, electronic equipment and storage medium
CN115062304A (en) Risk identification method and device, electronic equipment and readable storage medium
CN110968519A (en) Game testing method, device, server and storage medium
CN114428747A (en) User interface testing method, device, server and storage medium
CN112819760A (en) Image detection method, device and system
CN111258618A (en) File configuration method and device, computer equipment and storage medium
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN110443180B (en) System, method, device, medium and equipment for processing brightness of fingerprint image under screen
CN113722231B (en) User operation simulation method and device, electronic 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