技术领域technical field
本发明属于服务器测试领域,具体涉及一种创建虚拟操作系统测试服务器的方法。The invention belongs to the field of server testing, and in particular relates to a method for creating a virtual operating system testing server.
背景技术Background technique
目前我们在做某些Linux服务器测试项目,如DC reboot测试时,会用另外一台Linux服务器节点作为控制节点,或用到光口交换机、SFP光模块、SFP光纤跳线等设备。这样用到的测试设备就较多,给测试准备工作带来不便。在windows电脑上虚拟出linux操作系统,并作出相应的系统环境配置,虚拟的Linux系统在服务器测试中代替实际的Linux服务器控制节点进行服务器测试。At present, we are doing some Linux server test projects, such as DC reboot test, we will use another Linux server node as the control node, or use optical port switches, SFP optical modules, SFP fiber jumpers and other equipment. In this way, more test equipment is used, which brings inconvenience to the test preparation work. The linux operating system is virtualized on the windows computer, and the corresponding system environment configuration is made. The virtual Linux system replaces the actual Linux server control node in the server test for server testing.
发明内容Contents of the invention
本发明的目的在于,针对上述现有技术存在的缺陷,提供设计一种基于虚拟操作系统的服务器测试的方法,以解决上述技术问题。The object of the present invention is to provide a method for designing a server test based on a virtual operating system to solve the above-mentioned technical problems.
为了达到上述目的,本发明的技术方案是:In order to achieve the above object, technical scheme of the present invention is:
一种创建虚拟操作系统测试服务器的方法,包括如下步骤:A method for creating a virtual operating system test server, comprising the steps of:
在客户端创建虚拟操作系统,并做出相应的系统环境配置;Create a virtual operating system on the client and make corresponding system environment configurations;
在虚拟操作系统中将客户端与被测服务器建立网络桥接;Establish a network bridge between the client and the server under test in the virtual operating system;
获取服务器测试点的识别信息与预先设定的参考测试信息进行匹配,对匹配成功的测试点,运行调用测试程序进行测试。Obtain the identification information of the server test point and match it with the preset reference test information, and run and call the test program for the test point that matches successfully.
进一步的,在客户端创建虚拟操作系统,并做出相应的系统环境配置的步骤包括:Further, the steps of creating a virtual operating system on the client and making corresponding system environment configurations include:
客户端内存空间中加载应用程序的执行代码;Load the execution code of the application program in the client memory space;
根据加载在客户端内存空间中的应用程序的执行代码,获取对系统资源的调用请求;According to the execution code of the application program loaded in the client memory space, obtain the call request for the system resource;
根据对系统资源的调用请求修改系统资源的路径为虚拟系统目录下的对应路径,同时获取执行应用程序所需的虚拟操作系统的配置信息;Modify the path of the system resource to the corresponding path under the virtual system directory according to the calling request of the system resource, and obtain the configuration information of the virtual operating system required to execute the application program;
根据修改后的路径,对系统资源执行调用请求。According to the modified path, the call request is executed on the system resource.
进一步的,根据对系统资源的调用请求修改系统资源的路径为虚拟系统目录下的对应路径包括:Further, modifying the path of the system resource to the corresponding path under the virtual system directory according to the call request to the system resource includes:
根据系统资源的调用请求,获取应用程序所要调用的操作系统资源;Obtain the operating system resources to be called by the application program according to the calling request of the system resources;
操作系统资源访问入口处的执行程序被跳转程序代替,根据跳转程序所述应用程序改为调用虚拟操作系统。The execution program at the access entry point of the operating system resource is replaced by a jump program, and the application program according to the jump program calls the virtual operating system instead.
进一步的,根据配置信息将相同功能的、执行应用程序所需的虚拟操作系统的组件组成模组,与虚拟操作系统核心部分建立链接并载入客户端内存空间中。Further, according to the configuration information, the components of the virtual operating system with the same function and required for executing the application program are formed into a module, and a link is established with the core part of the virtual operating system and loaded into the memory space of the client.
进一步的,根据更改组件的指令消息,虚拟操作系统核心部分动态更改与虚拟操作系统核心部分链接的虚拟操作系统组件。Further, according to the instruction message for changing components, the core part of the virtual operating system dynamically changes the components of the virtual operating system linked to the core part of the virtual operating system.
进一步的,对匹配成功的测试点运行调用测试程序进行测试的步骤包括:Further, the steps of running and invoking the test program for testing the successfully matched test points include:
将标准测试数据发送到测试点;Send standard test data to the test point;
接收测试点反馈的对标准测试数据分析处理的结果;Receive the results of analysis and processing of standard test data fed back from test points;
根据反馈的分析处理结果判断是否与预先设定的标准结果相匹配,并输出测试数据。According to the analysis and processing results of the feedback, it is judged whether it matches the preset standard results, and the test data is output.
进一步的,获取服务器测试点的识别信息与预先设定的参考测试信息进行匹配,对匹配成功的测试点,运行调用测试程序进行测试,测试结束之后还包括:Further, the identification information of the obtained server test point is matched with the preset reference test information, and the test point that is successfully matched is tested by running and calling the test program. After the test is completed, it also includes:
执行被跳转程序代替的操作系统资源访问入口处的执行程序,返回调用客户端本机操作系统资源。Execute the execution program at the access entry point of the operating system resource replaced by the jump program, and return the calling client's native operating system resource.
本发明的有益效果在于,在客户端创建虚拟操作系统搭建成一个测试控制节点,节省工作时间,提高工作效率,比起传统笨重的测试控制节点,该控制节点可随身携带到任何测试地点,既方便又节约空间;不需配置另外的服务器节点,节约测试资源。The beneficial effect of the present invention is that a virtual operating system is created on the client side to build a test control node, which saves working time and improves work efficiency. Compared with the traditional bulky test control node, the control node can be carried to any test site It is convenient and saves space; there is no need to configure additional server nodes, saving test resources.
此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the design principle of the present invention is reliable, the structure is simple, and has very wide application prospects.
由此可见,本发明与现有技术相比,具有突出的实质性特点和显著地进步,其实施的有益效果也是显而易见的。It can be seen that, compared with the prior art, the present invention has outstanding substantive features and remarkable progress, and the beneficial effects of its implementation are also obvious.
附图说明Description of drawings
图1为本实施例提供的一种创建虚拟操作系统测试服务器的方法的流程图。FIG. 1 is a flowchart of a method for creating a virtual operating system testing server provided by this embodiment.
图2为另一实施例提供的一种创建虚拟操作系统测试服务器的方法的流程图。Fig. 2 is a flowchart of a method for creating a virtual operating system testing server provided by another embodiment.
图3为另一实施例提供的一种创建虚拟操作系统测试服务器的方法的流程图。Fig. 3 is a flowchart of a method for creating a virtual operating system testing server provided by another embodiment.
具体实施方式detailed description
下面结合附图并通过具体实施例对本发明进行详细阐述,以下实施例是对本发明的解释,而本发明并不局限于以下实施方式。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are explanations of the present invention, but the present invention is not limited to the following embodiments.
如图1所示,本实施例提供的一种创建虚拟操作系统测试服务器的方法,包括如下步骤:As shown in Figure 1, a kind of method for creating virtual operating system test server provided by the present embodiment comprises the following steps:
步骤1:在客户端创建虚拟操作系统,并做出相应的系统环境配置;Step 1: Create a virtual operating system on the client and make corresponding system environment configurations;
其中步骤1还包括:Wherein step 1 also includes:
步骤11:客户端内存空间中加载应用程序的执行代码;Step 11: Load the execution code of the application program in the client memory space;
步骤12:根据加载在客户端内存空间中的应用程序的执行代码,获取对系统资源的调用请求;Step 12: According to the execution code of the application program loaded in the memory space of the client, obtain a calling request for system resources;
步骤13:根据对系统资源的调用请求修改系统资源的路径为虚拟系统目录下的对应路径,同时获取执行应用程序所需的虚拟操作系统的配置信息;Step 13: Modify the path of the system resource to the corresponding path under the virtual system directory according to the call request to the system resource, and obtain the configuration information of the virtual operating system required for executing the application program;
步骤14:根据修改后的路径,对系统资源执行调用请求。Step 14: Execute a call request to the system resource according to the modified path.
步骤2:在虚拟操作系统中将客户端与被测服务器建立网络桥接;Step 2: establish a network bridge between the client and the server under test in the virtual operating system;
步骤3:获取服务器测试点的识别信息与预先设定的参考测试信息进行匹配,对匹配成功的测试点,运行调用测试程序进行测试。Step 3: Obtain the identification information of the server test point and match it with the preset reference test information, and run and call the test program for the test point that matches successfully.
步骤31:将标准测试数据发送到测试点;Step 31: Send standard test data to the test point;
步骤32:接收测试点反馈的对标准测试数据分析处理的结果;Step 32: receiving the result of analysis and processing of the standard test data fed back by the test point;
步骤33:根据反馈的分析处理结果判断是否与预先设定的标准结果相匹配,并输出测试数据。Step 33: Judging whether the feedback analysis and processing results match the preset standard results, and outputting test data.
步骤4:执行被跳转程序代替的操作系统资源访问入口处的执行程序,返回调用客户端本机操作系统资源。Step 4: Execute the execution program at the access entry point of the operating system resource replaced by the jump program, and return the calling client's native operating system resource.
如图2、图3所示,本发明提供的另一实施例一种基于虚拟操作系统的服务器测试的方法,包括如下步骤:As shown in Fig. 2 and Fig. 3, another embodiment provided by the present invention is a method for server testing based on a virtual operating system, comprising the following steps:
步骤1:在客户端创建虚拟操作系统,并做出相应的系统环境配置;Step 1: Create a virtual operating system on the client and make corresponding system environment configurations;
其中步骤1还包括:Wherein step 1 also includes:
步骤11:客户端内存空间中加载应用程序的执行代码;Step 11: Load the execution code of the application program in the client memory space;
步骤12:根据加载在客户端内存空间中的应用程序的执行代码,获取对系统资源的调用请求;Step 12: According to the execution code of the application program loaded in the memory space of the client, obtain a calling request for system resources;
步骤13:根据对系统资源的调用请求修改系统资源的路径为虚拟系统目录下的对应路径,同时获取执行应用程序所需的虚拟操作系统的配置信息;Step 13: Modify the path of the system resource to the corresponding path under the virtual system directory according to the call request to the system resource, and obtain the configuration information of the virtual operating system required for executing the application program;
其中步骤13还包括:Wherein step 13 also includes:
步骤131:根据系统资源的调用请求,获取应用程序所要调用的操作系统资源;操作系统资源访问入口处的执行程序被跳转程序代替,根据跳转程序所述应用程序改为调用虚拟操作系统。Step 131: Obtain operating system resources to be invoked by the application program according to the call request of the system resources; the execution program at the access entry of the operating system resources is replaced by a jump program, and the application program is changed to call the virtual operating system according to the jump program.
步骤132:根据配置信息将相同功能的、执行应用程序所需的虚拟操作系统的组件组成模组,与虚拟操作系统核心部分建立链接并载入客户端内存空间中。Step 132: According to the configuration information, the components of the virtual operating system with the same function and required for executing the application program are formed into a module, and a link is established with the core part of the virtual operating system and loaded into the memory space of the client.
步骤14:根据修改后的路径,对系统资源执行调用请求。Step 14: Execute a call request to the system resource according to the modified path.
步骤2:在虚拟操作系统中将客户端与被测服务器建立网络桥接;Step 2: establish a network bridge between the client and the server under test in the virtual operating system;
步骤3:获取服务器测试点的识别信息与预先设定的参考测试信息进行匹配,对匹配成功的测试点,运行调用测试程序进行测试。Step 3: Obtain the identification information of the server test point and match it with the preset reference test information, and run and call the test program for the test point that matches successfully.
步骤3具体包括:Step 3 specifically includes:
将标准测试数据发送到测试点;Send standard test data to the test point;
接收测试点反馈的对标准测试数据分析处理的结果;Receive the results of analysis and processing of standard test data fed back from test points;
根据反馈的分析处理结果判断是否与预先设定的标准结果相匹配,并输出测试数据。According to the analysis and processing results of the feedback, it is judged whether it matches the preset standard results, and the test data is output.
步骤4:执行被跳转程序代替的操作系统资源访问入口处的执行程序,返回调用客户端本机操作系统资源。Step 4: Execute the execution program at the access entry point of the operating system resource replaced by the jump program, and return the calling client's native operating system resource.
以上公开的仅为本发明的优选实施方式,但本发明并非局限于此,任何本领域的技术人员能思之的没有创造性的变化,以及在不脱离本发明原理前提下所作的若干改进和润饰,都应落在本发明的保护范围内。The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto, any non-creative changes that those skilled in the art can think of, and some improvements and modifications made without departing from the principle of the present invention , should fall within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710828644.3ACN107608887A (en) | 2017-09-14 | 2017-09-14 | A kind of method for creating virtual opetrating system test server |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710828644.3ACN107608887A (en) | 2017-09-14 | 2017-09-14 | A kind of method for creating virtual opetrating system test server |
| Publication Number | Publication Date |
|---|---|
| CN107608887Atrue CN107608887A (en) | 2018-01-19 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710828644.3APendingCN107608887A (en) | 2017-09-14 | 2017-09-14 | A kind of method for creating virtual opetrating system test server |
| Country | Link |
|---|---|
| CN (1) | CN107608887A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109828927A (en)* | 2019-01-31 | 2019-05-31 | 北京三快在线科技有限公司 | A kind of method, apparatus of integration testing, equipment and storage medium |
| CN114374999A (en)* | 2020-10-15 | 2022-04-19 | 大唐移动通信设备有限公司 | Test method, test device, electronic equipment and storage medium |
| CN118093448A (en)* | 2024-04-29 | 2024-05-28 | 浪潮云信息技术股份公司 | Full test method, equipment and medium based on core function of information creation operating system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101645020A (en)* | 2008-08-04 | 2010-02-10 | 优诺威讯国际有限公司 | Virtual operating system creation method |
| CN103973515A (en)* | 2014-05-12 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Network card stability testing method |
| CN104597390A (en)* | 2014-12-31 | 2015-05-06 | 苏州征之魂专利技术服务有限公司 | Multi-model multi-interpolation lattice structure test automatic identification system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101645020A (en)* | 2008-08-04 | 2010-02-10 | 优诺威讯国际有限公司 | Virtual operating system creation method |
| CN103973515A (en)* | 2014-05-12 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Network card stability testing method |
| CN104597390A (en)* | 2014-12-31 | 2015-05-06 | 苏州征之魂专利技术服务有限公司 | Multi-model multi-interpolation lattice structure test automatic identification system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109828927A (en)* | 2019-01-31 | 2019-05-31 | 北京三快在线科技有限公司 | A kind of method, apparatus of integration testing, equipment and storage medium |
| CN114374999A (en)* | 2020-10-15 | 2022-04-19 | 大唐移动通信设备有限公司 | Test method, test device, electronic equipment and storage medium |
| CN114374999B (en)* | 2020-10-15 | 2024-02-06 | 大唐移动通信设备有限公司 | Test method, test device, electronic equipment and storage medium |
| CN118093448A (en)* | 2024-04-29 | 2024-05-28 | 浪潮云信息技术股份公司 | Full test method, equipment and medium based on core function of information creation operating system |
| CN118093448B (en)* | 2024-04-29 | 2024-08-09 | 浪潮云信息技术股份公司 | Full test method, equipment and medium based on core function of information creation operating system |
| Publication | Publication Date | Title |
|---|---|---|
| CN106843869B (en) | Front-end development engineering system and method | |
| Woods | Software architecture in a changing world | |
| CN104991773B (en) | Program creating method and device | |
| CN111400000B (en) | Network request processing method, device, equipment and storage medium | |
| CN113010181A (en) | Deployment method and device of operators in deep learning framework and electronic equipment | |
| CN106547527B (en) | JavaScript file construction method and device | |
| CN111290753A (en) | Method, device, equipment and storage medium for building front-end development environment | |
| WO2016177341A1 (en) | Interface calling method and device, and terminal | |
| CN113805882A (en) | Method and device for developing application program, electronic equipment and storage medium | |
| CN106372250A (en) | Parameter passing method and device capable of starting local application through URL protocol | |
| CN113050940B (en) | Mini-program preview method, related device and computer program product | |
| CN111414154A (en) | Method and device for front-end development, electronic equipment and storage medium | |
| CN107608887A (en) | A kind of method for creating virtual opetrating system test server | |
| CN112835615A (en) | Plug-in processing method and device for software development kit and electronic equipment | |
| CN115202623A (en) | Service capability using method, device and equipment | |
| CN112650502A (en) | Batch processing task processing method and device, computer equipment and storage medium | |
| CN112068879A (en) | Method and device for constructing client application development framework based on configuration | |
| CN113608996B (en) | A mirror compilation test method, system, device and readable storage medium | |
| CN111538530A (en) | Page jump method and system, storage medium and electronic equipment | |
| CN115794355B (en) | Task processing method, device, terminal equipment and storage medium | |
| CN107491330A (en) | A kind of method for improving the built-in browser speed of service | |
| CN111399931B (en) | Method and terminal for exporting UI (user interface) resources by LayaAir engine | |
| CN110262841B (en) | Method and device for enhancing byte codes | |
| CN112612531A (en) | Application program starting method and device, electronic equipment and storage medium | |
| CN114168150B (en) | Application compilation method, device, electronic device and storage medium |
| 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:20180119 |