CN107168837A - A kind of automatic switchover OS method of testing and test system - Google Patents
A kind of automatic switchover OS method of testing and test system Download PDFInfo
- Publication number
- CN107168837A CN107168837A CN201710339793.3A CN201710339793A CN107168837A CN 107168837 A CN107168837 A CN 107168837A CN 201710339793 A CN201710339793 A CN 201710339793A CN 107168837 A CN107168837 A CN 107168837A
- Authority
- CN
- China
- Prior art keywords
- subregion
- activation
- test
- home server
- instrument
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2294—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention discloses a kind of automatic switchover OS method of testing, following steps are specifically included:1) hard disk that, will need to install OS home server carries out logical partition;2), first subregion of activation instrument activation signal transmission instruction, and OS is installed in the subregion;3), home server launches into OS tests;4), after the completion of OS tests, test result is issued remote control terminal by home server;5), fdisk is checked, if last subregion, then shows that the OS of all subregions is completed, shutdown test is carried out and terminates;Otherwise, remote control terminal sends the next subregion of instruction activation and installs OS, continues executing with and 3) operates.Present invention additionally comprises a kind of automatic switchover OS test system.The present invention can disposably be automatically performed the test of the various projects of a variety of OS of server, effectively improve testing efficiency, the use environment for the customers' place that can more fit, and shorten test period increase product competitiveness.
Description
Technical field
The present invention relates to computer server technical field, specifically a kind of automatic switchover OS method of testing and survey
Test system.
Background technology
In the test of server product, pressure and compatibility test must be surveyed during the electronic products such as calculator are tested
Project, it is related to the compatibility and stability of product.And need the OS species of test many at present, it is all necessary under every kind of OS
Measuring pressure and compatibility test are wanted, because the testing time is long, when project is a lot, the conflict and waste of equipment is easily caused,
The extended testing system time, the R&D cycle of product can be increased, the mode for also having modification guiding menu at present solves OS switching problems
Scheme, but this can change other test environment and influence test result for test.
The content of the invention
It is an object of the invention to provide a kind of automatic switchover OS method of testing and test system, for solving when required
When the OS and many test events of test, easily cause testing time length, device conflict and waste, increase the research and development week of product
The problem of phase, inaccurate test result.
The technical scheme adopted by the invention to solve the technical problem is that:
A kind of automatic switchover OS method of testing, it is characterized in that, specifically include following steps:
1) hard disk that, will need to install OS home server carries out logical partition;
2), first subregion of activation instrument activation signal transmission instruction, and OS is installed in the subregion;
3), home server launches into OS tests;
4), after the completion of OS tests, test result is issued remote control terminal by home server;
5), fdisk is checked, if last subregion, then shows that the OS of all subregions is completed,
Shutdown test is carried out to terminate;Otherwise, remote control terminal sends the next subregion of instruction activation and installs OS, continues executing with step 3)
Operation.
Further, the method for activating subregion and OS being installed in subregion specifically includes following steps:
21), using a certain subregion of instrument activation is activated, installing the subregion needs OS to be mounted;
22), activation instrument receives the activation signal of previous step subregion, to reset command under home server, cancels simultaneously
The state of activation of previous step subregion;
23) after, home server is restarted, next subregion is launched into from signal transmission specified partition, using activating instrument
The subregion is activated, the OS suitable for the subregion is installed;
23) step 22, is continued executing with) operation, until all subregions are respectively mounted OS.
Further, the mode that the state of activation of activation instrument cancellation subregion is taken includes:Change corresponding in subregion
Identification byte is guided, makes byte invalid, in unactivated state;
The mode that the unactivated state of activation instrument activation subregion is taken includes:Change corresponding boot flag in subregion
Byte, makes byte effectively, is active.
Further, activation instrument passes through the boot flag byte in SATA/SAS protocol modifications subregion;Activation instrument
Activation signal is received by TCP/IP procotols.
Further, the method for OS tests is specially:
31), tested according to the project of required test by corresponding automated test tool;
32), the return value and matching value of test are contrasted;
33), comparing result is recorded and test log is generated.
Further, test result is sent to remote control terminal by home server by ICP/IP protocol.
A kind of automatic switchover OS test system, it is characterized in that, including home server and remote control terminal, local service
Device and remote control terminal are communicated by ICP/IP protocol;Home server includes activation instrument and automated test tool.
Further, described activation instrument is used to activate fdisk.
Further, activation instrument is received by TCP/IP procotol after the signal of activation correspondence subregion, local
It is unactivated state through corresponding guiding identification byte in SATA/SAS protocol modifications this boot partition;
Activation instrument transmits corresponding guiding identification byte in specified partition by SATA/SAS protocol modifications signal
State of activation, and to reset command under local host.
Further, described automated test tool is used to test OS, and will test return value and matching value
Contrasted, by comparing result record and production test log.
The beneficial effects of the invention are as follows:
The present invention can disposably be automatically performed the test of two kinds, three kinds or four kinds OS of server various projects, ensure
In the case of testing quality, testing efficiency is effectively improved, the use environment for the customers' place that can more fit shortens test period
Increase product competitiveness.
Present invention employs the automatic switchover OS tests that activation instrument and automated test tool realize server OS.Automatically
Increase shell script, such as compatibility test or/and pressure test can be configured as needed by changing testing tool.
Brief description of the drawings
Fig. 1 is flow chart of the invention;
Fig. 2 is system connection figure of the invention.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair
It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention
Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with
Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated
Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale
Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
As shown in figure 1, a kind of automatic switchover OS method of testing, comprises the following steps:
1) hard disk that, will need to install OS home server carries out logical partition;
2), first subregion of activation instrument activation signal transmission instruction, and OS is installed in the subregion;
3), home server launches into OS tests;
4), after the completion of OS tests, test result is issued remote control terminal by home server;
5), fdisk is checked, if last subregion, then shows that the OS of all subregions is completed,
Shutdown test is carried out to terminate;Otherwise, remote control terminal sends the next subregion of instruction activation and installs OS, continues executing with step 3)
Operation.
The method for activating instrument activation subregion and OS being installed in subregion specifically includes following steps:
21), using a certain subregion of instrument activation is activated, installing the subregion needs OS to be mounted;
22), activation instrument receives the activation signal of previous step subregion, to reset command under home server, cancels simultaneously
The state of activation of previous step subregion;
23) after, home server is restarted, next subregion is launched into from signal transmission specified partition, using activating instrument
The subregion is activated, the OS suitable for the subregion is installed;
23) step 22, is continued executing with) operation, until all subregions are respectively mounted OS.
The mode that the state of activation that activation instrument cancels subregion is taken includes:Change corresponding guiding identifier word in subregion
Section, makes byte invalid, in unactivated state;
The mode that the unactivated state of activation instrument activation subregion is taken includes:Change corresponding boot flag in subregion
Byte, makes byte effectively, is active.
Activation instrument passes through the boot flag byte in SATA/SAS protocol modifications subregion;Activation instrument passes through TCP/IP
Procotol receives activation signal.
OS test method be specially:
31), tested according to the project of required test by corresponding automated test tool;
32), the return value and matching value of test are contrasted;
33), comparing result is recorded and test log is generated.
Test event detail content in subregion OS, including under OS the software and hardware information of product is done by software and hardware pair
Than confirming, scanography is done to soft or hard body function, the load capacity to software and hardware is checked.
Test result is sent to remote control terminal by home server by ICP/IP protocol.
The hard disk of home server is divided into four logical partitions by this implementation, and OS is respectively mounted in four logical partitions,
Four kinds of OS are had, automatic switchover test is carried out to these four OS respectively.
1) hard disk that, will need to install OS home server carries out logical partition:Subregion 1, subregion 2, subregion 3, subregion
4;
21), activation instrument changes the boot flag byte of subregion 1, makes byte effectively, activates subregion 1, and in subregion 1
OS1 is installed;
22), home server starts to OS1, and automated test tool carries out compatibility test and pressure test;
23), home server will test log1 and be sent to remote control terminal by ICP/IP protocol;
24), activation instrument receives the activation signal of subregion 1 by TCP/IP procotols, to weight under home server
Order is opened, while changing the boot flag byte of subregion 1, makes byte invalid, subregion 1 is in unactivated state;
41), activation instrument changes the boot flag byte of subregion 2, makes byte effectively, activates subregion 2, and in subregion 2
OS2 is installed;
42), home server reboots into OS2;Automated test tool carries out compatibility test and pressure test;
43), home server will test log2 and be sent to remote control terminal by ICP/IP protocol;
44), activation instrument receives the activation signal of subregion 2 by TCP/IP procotols, to weight under home server
Order is opened, while changing the boot flag byte of subregion 2, makes byte invalid, subregion 2 is in unactivated state;
51), activation instrument changes the boot flag byte of subregion 3, makes byte effectively, activates subregion 3, and in subregion 3
OS3 is installed;
52), home server reboots into OS3;Automated test tool carries out compatibility test and pressure test;
53), home server will test log3 and be sent to remote control terminal by ICP/IP protocol;
54), activation instrument receives the activation signal of subregion 3 by TCP/IP procotols, to weight under home server
Order is opened, while changing the boot flag byte of subregion 3, makes byte invalid, subregion 3 is in unactivated state;
61), activation instrument changes the boot flag byte of subregion 4, makes byte effectively, activates subregion 4, and in subregion 4
OS4 is installed;
62), home server reboots into OS4;Automated test tool carries out compatibility test and pressure test;
63), home server will test log4 and be sent to remote control terminal by ICP/IP protocol;
64), activation instrument receives the activation signal of subregion 4 by TCP/IP procotols, to weight under home server
Order is opened, while changing the boot flag byte of subregion 4, makes byte invalid, subregion 4 is in unactivated state;
7) all subregions of hard disk, are checked, if last subregion, then shows that the OS of all subregions is completed, enters
Row shutdown test terminates;Otherwise OS tests are proceeded.
It it may also be possible to apply the invention for hard disk point 2 logical partitions, 2 kinds of OS, 3 logical partitions 3 kinds of OS, 2 kinds of OS and 3 kinds
4 kinds of OS of OS automatic switchover OS method of testings and 4 logical partitions automatic switchover OS method of testing is identical, herein just no longer
Repeat.
As shown in Fig. 2 present invention additionally comprises a kind of automatic switchover OS test system, utilizing a kind of automatic switchover OS survey
Method for testing, realizes OS automatic switchover test function.
Automatic switchover OS test system includes home server and remote control terminal, home server and remote control terminal
Communicated by ICP/IP protocol;Home server includes activation instrument and automated test tool.
Activation instrument is used to activate fdisk.
Activation instrument is received by TCP/IP procotol after the signal of activation correspondence subregion, is locally passing through SATA/
It is unactivated state that SAS protocol, which changes corresponding guiding identification byte in this boot partition,;
Activation instrument transmits corresponding guiding identification byte in specified partition by SATA/SAS protocol modifications signal
State of activation, and to reset command under local host.
Automated test tool is used to test OS, and test return value is contrasted with matching value, will contrast
As a result record and production test log.
The present embodiment is to do OS switchings by the different subregions to the single hard disk of server, when server has multiple hard disks to need
When carrying out multidomain treat-ment, it can also be switched by being done in the independent OS of multiple hard disks, the startup by remotely modifying hard disk is suitable
Sequence, and activate the switching that hard disk is OS.
The present invention can once be automatically performed a variety of OS of server compatibility test or/and pressure test, ensure test
In the case of quality, testing efficiency is effectively improved, the use environment for the customers' place that can more fit shortens test period increase
Product competitiveness.
Simply the preferred embodiment of the present invention described above, for those skilled in the art,
Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also regarded as this hair
Bright protection domain.
Claims (10)
1. a kind of automatic switchover OS method of testing, it is characterized in that, specifically include following steps:
1) hard disk that, will need to install OS home server carries out logical partition;
2), first subregion of activation instrument activation signal transmission instruction, and OS is installed in the subregion;
3), home server launches into OS tests;
4), after the completion of OS tests, test result is issued remote control terminal by home server;
5), fdisk is checked, if last subregion, then shows that the OS of all subregions is completed, is carried out
Shutdown test terminates;Otherwise, remote control terminal sends the next subregion of instruction activation and installs OS, continues executing with step 3) behaviour
Make.
2. a kind of automatic switchover OS according to claim 1 method of testing, it is characterized in that, activate subregion and in subregion
The method for installing OS specifically includes following steps:
21), using a certain subregion of instrument activation is activated, installing the subregion needs OS to be mounted;
22), activation instrument receives the activation signal of previous step subregion, to reset command under home server, while cancelling upper one
Walk the state of activation of subregion;
23) after, home server is restarted, next subregion is launched into from signal transmission specified partition, using activating instrument activation
The subregion, installs the OS suitable for the subregion;
23) step 22, is continued executing with) operation, until all subregions are respectively mounted OS.
3. a kind of automatic switchover OS according to claim 2 method of testing, it is characterized in that,
The mode that the state of activation that activation instrument cancels subregion is taken includes:Corresponding guiding identification byte in subregion is changed,
Make byte invalid, in unactivated state;
The mode that the unactivated state of activation instrument activation subregion is taken includes:Change corresponding boot flag word in subregion
Section, makes byte effectively, is active.
4. a kind of automatic switchover OS according to claim 3 method of testing, it is characterized in that, activation instrument passes through SATA/
Boot flag byte in SAS protocol modification subregion;Activation instrument receives activation signal by TCP/IP procotols.
5. a kind of automatic switchover OS according to claim 1 method of testing, it is characterized in that, the method for OS tests is specific
For:
31), tested according to the project of required test by corresponding automated test tool;
32), the return value and matching value of test are contrasted;
33), comparing result is recorded and test log is generated.
6. a kind of automatic switchover OS according to claim 1 method of testing, it is characterized in that, home server passes through TCP/
Test result is sent to remote control terminal by IP agreement.
7. a kind of automatic switchover OS test system, it is characterized in that, including home server and remote control terminal, home server
Communicated with remote control terminal by ICP/IP protocol;Home server includes activation instrument and automated test tool.
8. a kind of automatic switchover OS according to claim 7 test system, it is characterized in that, described activation instrument is used for
Activate fdisk.
9. a kind of automatic switchover OS according to claim 8 test system, it is characterized in that,
Activation instrument is received by TCP/IP procotol after the signal of activation correspondence subregion, locally through SATA/SAS associations
It is unactivated state that view, which changes corresponding guiding identification byte in this boot partition,;
It is activation that activation instrument transmits corresponding guiding identification byte in specified partition by SATA/SAS protocol modifications signal
State, and to reset command under local host.
10. a kind of automatic switchover OS according to claim 7 test system, it is characterized in that, described automatic test
Instrument is used to test OS, and test return value is contrasted with matching value, by comparing result record and production test
log。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710339793.3A CN107168837A (en) | 2017-05-15 | 2017-05-15 | A kind of automatic switchover OS method of testing and test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710339793.3A CN107168837A (en) | 2017-05-15 | 2017-05-15 | A kind of automatic switchover OS method of testing and test system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107168837A true CN107168837A (en) | 2017-09-15 |
Family
ID=59816782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710339793.3A Pending CN107168837A (en) | 2017-05-15 | 2017-05-15 | A kind of automatic switchover OS method of testing and test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107168837A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113961257A (en) * | 2021-10-29 | 2022-01-21 | 苏州浪潮智能科技有限公司 | Automatic detection method, system and storage medium for activation of server operating system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7032107B2 (en) * | 2002-10-30 | 2006-04-18 | Symantec Corporation | Virtual partition for recording and restoring computer data files |
US8725689B1 (en) * | 2007-10-11 | 2014-05-13 | Parallels IP Holdings GmbH | Method and system for creation, analysis and navigation of virtual snapshots |
CN104156270A (en) * | 2014-07-28 | 2014-11-19 | 浪潮(北京)电子信息产业有限公司 | Method and system for single machine running multiple operating systems at the same time |
-
2017
- 2017-05-15 CN CN201710339793.3A patent/CN107168837A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7032107B2 (en) * | 2002-10-30 | 2006-04-18 | Symantec Corporation | Virtual partition for recording and restoring computer data files |
US8725689B1 (en) * | 2007-10-11 | 2014-05-13 | Parallels IP Holdings GmbH | Method and system for creation, analysis and navigation of virtual snapshots |
CN104156270A (en) * | 2014-07-28 | 2014-11-19 | 浪潮(北京)电子信息产业有限公司 | Method and system for single machine running multiple operating systems at the same time |
Non-Patent Citations (2)
Title |
---|
蒋夏森: "硬盘安装多个操作系统的实现", 《电脑爱好者》 * |
陆丽芳: "Windows系统自动切换和GUI自动化测试的集成", 《计算机时代》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113961257A (en) * | 2021-10-29 | 2022-01-21 | 苏州浪潮智能科技有限公司 | Automatic detection method, system and storage medium for activation of server operating system |
CN113961257B (en) * | 2021-10-29 | 2023-07-18 | 苏州浪潮智能科技有限公司 | Automatic detection method, system and storage medium for activation of server operating system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9747192B2 (en) | Automated operating system installation on multiple drives | |
CN106598835B (en) | Application testing method, device and system | |
US8185884B2 (en) | System and method for offline updation of software in virtual machine (VM) images | |
US20130007720A1 (en) | Dynamic Isolated Debugging via Class Instrumentation | |
US9678816B2 (en) | System and method for injecting faults into code for testing thereof | |
US20140033189A1 (en) | Providing virtual appliance system firmware images | |
US20230128809A1 (en) | Efficient fuzz testing of low-level virtual devices | |
CN113157508B (en) | Test method, system, device, equipment and storage medium of embedded system | |
US20200379742A1 (en) | Validation of configurations of factory installations | |
CN107220085B (en) | Method for automatically upgrading RAID card firmware | |
CN111752635A (en) | Application program running method and device, computer equipment and storage medium | |
US7865854B2 (en) | Simultaneous parameter-driven and deterministic simulation with or without synchronization | |
CN107168837A (en) | A kind of automatic switchover OS method of testing and test system | |
CN115599645B (en) | Method and device for testing stability of linux driving module | |
CN112463574A (en) | Software testing method, device, system, equipment and storage medium | |
CN105868101B (en) | A kind of method for testing software | |
US7539839B1 (en) | Method to test error recovery with selective memory allocation error injection | |
CN106802847B (en) | Method and apparatus for emulating a slow storage disk | |
US10216525B1 (en) | Virtual disk carousel | |
CN113986263A (en) | Code automation test method, device, electronic equipment and storage medium | |
CN108874605B (en) | Display screen testing method and device, electronic equipment and storage medium | |
EP3619612B1 (en) | Temporary de-optimization of target functions in a cloud debugger | |
CN109271288B (en) | Method for evaluating performance of processor before silicon | |
CN111694727A (en) | Network card firmware upgrading and downgrading test method, system, terminal and storage medium | |
EP4137977A1 (en) | Coverage guided fuzzing of remote embedded devices using a debugger |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170915 |