WO2017016212A1 - 桌面云***的测试方法及装置 - Google Patents

桌面云***的测试方法及装置 Download PDF

Info

Publication number
WO2017016212A1
WO2017016212A1 PCT/CN2016/073799 CN2016073799W WO2017016212A1 WO 2017016212 A1 WO2017016212 A1 WO 2017016212A1 CN 2016073799 W CN2016073799 W CN 2016073799W WO 2017016212 A1 WO2017016212 A1 WO 2017016212A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
cloud system
desktop
desktop cloud
tested
Prior art date
Application number
PCT/CN2016/073799
Other languages
English (en)
French (fr)
Inventor
李锴
沈松
邱海军
宋伊漠
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017016212A1 publication Critical patent/WO2017016212A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines

Definitions

  • the present invention relates to the field of virtual cloud desktops, and in particular to a test method and apparatus for a desktop cloud system.
  • VDI Virtual Desktop Infrastructure
  • VDI technology can use virtualization technology to virtualize the powerful hardware resources of the server, and allocate these resources to the corresponding virtual desktop users as needed to achieve the purpose of using and managing some resources of the virtual machine.
  • the present invention provides a method and apparatus for a desktop cloud system to at least solve the technical problem in the related art that the test result is not true because there is no test tool specifically for the desktop cloud system.
  • a method for testing a desktop cloud system includes: determining a target desktop cloud system to be tested; and transmitting a test task to the determined target desktop cloud system to be tested, where the test task is used Performing attribute testing on the target desktop cloud system; receiving the test result returned by the target desktop cloud system according to the test task described above.
  • the target desktop cloud system includes at least one of the following: a virtual desktop, a virtual machine, and a virtual desktop host.
  • the method before determining the target desktop cloud system to be tested, the method further includes: determining a virtualization platform type of each desktop cloud system; and delivering a corresponding to the virtual desktop in each of the desktop cloud systems according to the determined virtualization platform type.
  • a desktop agent and deliver a corresponding host agent to the virtual desktop host host in each of the above desktop cloud systems, wherein
  • the test software client communicates with each virtual desktop through the above desktop agent, and communicates with each virtual desktop host host through the host agent, and the desktop agent communicates with the host agent.
  • the method before determining the target desktop cloud system to be tested, the method further includes: detecting whether a communication between the test software client and each desktop agent is a first abnormal condition; and/or detecting the test software client and Whether there is a second abnormal situation in the communication between the host agents; and/or detecting whether the communication between the above desktop agents and the corresponding host agent has a third abnormal condition; if at least one of the following abnormal conditions occurs: the first The abnormality, the second abnormal condition, and the third abnormal condition described above perform alarm processing.
  • the method further includes: performing a monitoring operation on the target desktop cloud system to be tested in the testing process.
  • determining the target desktop cloud system to be tested comprises: obtaining a server IP of the target desktop cloud system to be tested; using the test software client and determining the target desktop cloud system to be tested by using the foregoing IP.
  • the method before sending the test task to the determined target desktop cloud system to be tested, the method further includes: determining a test requirement of the user; and calling the corresponding test tool according to the determined test requirement of the user and by applying the virtualization system VAPP. Pushing the above test tool called to the virtual machine client of the above target desktop cloud system to be tested.
  • a test apparatus for a desktop cloud system including: a first determining unit configured to determine a target desktop cloud system to be tested; and a sending unit configured to determine the target to be tested
  • the desktop cloud system sends a test task, where the test task is used to perform attribute testing on the target desktop cloud system, and the receiving unit is configured to receive the test result returned by the target desktop cloud system according to the test task.
  • the foregoing apparatus further includes: a second determining unit, configured to determine a virtualization platform type of each desktop cloud system before determining the target desktop cloud system to be tested; and a sending unit, configured to determine the type of the virtualization platform according to the determined Delivering a corresponding desktop agent to the virtual desktop in the above-mentioned desktop cloud system, and delivering a corresponding host agent to the virtual desktop host in each of the desktop cloud systems, wherein during the testing process, the test software client passes the above
  • the desktop agent communicates with each virtual desktop, and communicates with each virtual desktop host host through the host agent, and the desktop agent communicates with the host agent.
  • the apparatus further includes: a first detecting unit, configured to detect whether a first abnormal condition occurs in the communication between the test software client and each desktop agent before determining the target desktop cloud system to be tested; and/or a second detecting unit, configured to detect whether a communication between the test software client and each host agent has a second abnormal condition; and/or a third detecting unit configured to detect between the desktop agents and the corresponding host agent Whether the communication has a third abnormal condition; the alarm unit is configured to perform an alarm process when at least one of the following abnormal conditions occurs: the first abnormal condition, the second abnormal condition, and the third abnormal condition.
  • the apparatus further includes: a monitoring unit, configured to perform a monitoring operation on the target desktop cloud system to be tested in the testing process after sending the testing task to the determined target desktop cloud system to be tested.
  • a monitoring unit configured to perform a monitoring operation on the target desktop cloud system to be tested in the testing process after sending the testing task to the determined target desktop cloud system to be tested.
  • the first determining unit includes: an obtaining module, configured to acquire a server IP of the target desktop cloud system to be tested; and a determining module, configured to use the testing software client to determine the target table to be tested by using the foregoing IP Face cloud system.
  • the apparatus further includes: a third determining unit, configured to determine a test requirement of the user before sending the test task to the determined target desktop cloud system to be tested; and the calling unit is set to be determined according to the determined test requirement of the user And the corresponding testing tool is invoked by the application virtualization system VAPP; the pushing unit is configured to push the invoked test tool to the virtual machine client of the target desktop cloud system to be tested.
  • a third determining unit configured to determine a test requirement of the user before sending the test task to the determined target desktop cloud system to be tested
  • the calling unit is set to be determined according to the determined test requirement of the user
  • the corresponding testing tool is invoked by the application virtualization system VAPP
  • the pushing unit is configured to push the invoked test tool to the virtual machine client of the target desktop cloud system to be tested.
  • test apparatus for a desktop cloud system comprising the apparatus of any of the above.
  • a computer storage medium storing an execution instruction for performing the method of any of the above.
  • the target desktop cloud system to be tested is determined; the test task is sent to the determined target desktop cloud system to be tested, wherein the test task is used for attribute testing of the target desktop cloud system; and the receiving target desktop cloud system is tested according to the test.
  • the test result returned after the task is tested solves the technical problem in the related art that the test result is not true due to the test tool not specifically for the desktop cloud system, and then achieves the function test and performance test on the desktop cloud system. Improve the technical effect of the objective authenticity of the test results.
  • FIG. 1 is a flowchart of a test method of a desktop cloud system according to an embodiment of the present invention
  • FIG. 2 is an architectural diagram of a test system in accordance with an embodiment of the present invention.
  • FIG. 3 is a flow chart of a method of testing a desktop cloud system in accordance with an alternative embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a test apparatus of a desktop cloud system according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a test method of a desktop cloud system according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 determining a target desktop cloud system to be tested
  • Step S104 Send a test task to the determined target desktop cloud system to be tested, where the test task is used to perform attribute testing on the target desktop cloud system.
  • Step S106 Receive a test result returned by the target desktop cloud system after testing according to the test task.
  • the above steps can be performed by the client of the test software installed on the virtual machine.
  • the test task may include at least one of the following: an instruction, an instruction set, and a test case;
  • the attribute test may include at least one of the following: a functional test, a performance test; and one test process may test one or more target desktop clouds. system. Additionally, the above steps can be performed during the testing phase of the testing process.
  • the above performance test may include: web stress security test. Specifically, when the administrator or the user logs in to the client interface of the test software, in the virtual desktop environment, the maximum amount of access of the cloud desktop to the web that can be carried by the desktop cloud system is created by the instruction, and the full load and the true load are realized.
  • the test environment after the client of the test software sends a request for accessing the web to the cloud desktop agent, the login operation is performed according to the test plan; the host of the web server feeds back the web response capability to the client of the test software, including delays and the like, and finally
  • the monitoring window form is displayed in real time. The relationship between the number of concurrent accesses and the web response capability can be seen through the monitoring window.
  • testing and generating test evaluation reports under full load and true load can verify the web service carrying capacity truly and reasonably.
  • the web security detection can be initiated from the client interface of the test software, including but not limited to code injection, cross-site attack, etc., and the custom attack script is imported and executed, and the system can be flexibly tested for different systems.
  • the test software for testing the desktop cloud system in the present invention is installed on the PC client, and the agent responsible for communicating with the test software is deployed in the desktop cloud system, and then the test software can be delivered to the target desktop cloud system.
  • the test task can be initiated and checked by the cloud access means at any time and any place.
  • the target desktop cloud system can be tested by using the mobile client to access the test software anytime and anywhere.
  • the testing software has the advantages of system testing, transparent testing process, traceability of test results and other test software.
  • test software can provide a client based on the CS architecture of the Windows operating system, and can also provide a client based on the operating system of ios, android, etc., the tester can access and initiate the test task through the mobile terminal in real time, view the test. Progress and test results.
  • the alarm function will also play the biggest role in the ios and android client, reminding the test personnel anytime and anywhere, to achieve timely resolution of problems and improve test efficiency.
  • the target desktop cloud system to be tested is determined; and the test task is sent to the determined target desktop cloud system to be tested, wherein the test task is used to perform attribute testing on the target desktop cloud system; and the target desktop cloud system is received.
  • the test results returned after testing according to the test task solve the technical problems in the related technology that the test results are not real due to the test tools not specifically for the desktop cloud system, thereby achieving the function test on the desktop cloud system. In the test and performance test, the technical effect of the objective authenticity of the test results is improved.
  • the target desktop cloud system includes at least one of the following: a virtual desktop, a virtual machine, and a virtual desktop host.
  • the test container can be flexibly created by the test software, and the virtual desktop, the virtual machine, and the virtual desktop host host in the virtual desktop environment are added to the corresponding test container, and the preset instruction, instruction set or various scenarios for the current test container are executed. Test cases, etc.
  • test software of the present invention can automatically identify the type of the desktop cloud system to be tested, and then test the type according to the type of the desktop cloud system. Set up a communication environment.
  • the foregoing method may further include:
  • the corresponding desktop agent is delivered to the virtual desktop in each of the desktop cloud systems according to the determined type of the virtualization platform, and the corresponding host agent is delivered to the virtual desktop host in the desktop cloud system.
  • the test software client communicates with each virtual desktop through the desktop agent, communicates with each virtual desktop host host through the host agent, and communicates between the desktop agent and the host agent.
  • the virtualization platform type of the desktop cloud system may include: a virtualized platform type such as XEN, KVM, VMWARE vpshare.
  • the test software is compatible with all three types of virtualization technologies (products) and can be connected to a desktop cloud system environment supported by multiple virtualization technologies.
  • the server of the target desktop cloud system is determined to be a virtual desktop server of the XEN architecture
  • the corresponding host agent is delivered to the target server, and a communication connection is established through the host agent and the virtual desktop host host.
  • the host agent is implemented by adding a proxy module of the test software on the basis of the original agent of the virtual desktop host host, and is responsible for communicating with the client of the test software, such as collecting and reporting the virtual desktop host host side.
  • Test Results For example, the virtual desktop agent is deployed on the virtual desktop. The virtual desktop agent is based on the original virtual desktop agent function, and the agent module of the test software is added, which is responsible for communicating with the client of the test software, collecting and reporting to the virtual desktop side. Test results.
  • test software when corresponding agents are sent for different virtualization platform types, the test software will also invoke instructions, instruction sets, and test cases corresponding to different platform types.
  • the virtual desktop created by the template can communicate with the test software.
  • the client of the test software can send commands, instruction sets, and targeted functions to the virtual desktop host host and the virtual desktop.
  • Test cases and performance test cases are examples of test cases. Among them, the instruction and instruction set can be written and sent in real time, and the test case needs to be obtained by loading the test case project file through the client of the test software.
  • test task based on a certain instruction or instruction set or test case is established, it can be regarded as a successful establishment of the test container.
  • the foregoing method may further include:
  • S12 Performing an alarm process if at least one of the following abnormal conditions occurs: the first abnormal condition, the second abnormal condition, and the third abnormal condition.
  • the method may further include:
  • the method may further include: analyzing the returned test result, and generating a test report according to the analysis result.
  • test instructions, the instruction set, and the execution results of the test cases in the test task can be monitored in real time, and the test results can be easily and efficiently evaluated, and the test report can be automatically generated.
  • test software can provide multiple monitoring windows for software testing of the running performance of the desktop cloud system host.
  • the main monitoring contents include:
  • the monitoring target can be selected from the corresponding test container by using a drop-down menu, wherein the virtual desktop host host and/or the virtual desktop can be presented in the current test container, such as memory, in the monitoring window. Performance curve of CPU and other performance indicators.
  • test plan node corresponding to the test container is the abscissa, and the number of test objects is the ordinate.
  • the number of dwells of the test object on each test step at the current time can be monitored, and the number of dwells can be further accurately located.
  • the specific test object can be combined with the test object to monitor other test indicators.
  • the average response time of the virtual desktop host host processing request can be monitored as the number of test objects in the test container of the virtual desktop increases.
  • step S102 determines that the target desktop cloud system to be tested includes:
  • the client of the test software after deploying the client of the test software, run the client and input the IP address of the virtual desktop environment server to be tested, and the client of the test software automatically detects which virtual desktop environment is based on Technology and deal with it accordingly.
  • the test tool with specific test functions can be deployed on a large scale and in batches, and the test software can be docked with the application virtualization system server, specifically, to the determined target desktop to be tested.
  • the foregoing method may further include:
  • the test software includes an interface for interfacing with the VAPP, and the test software can call a specific test tool through the VAPP. If you need to run specific test software on the virtual desktop, you can deploy specific test tools in batches through the VAPP server. For example, the test software can initiate a call request to the docked VAPP server, and the VAPP server pushes corresponding VMs to all virtual machine clients according to the call request. Supporting test software, after the APP is successfully pushed, the VAPP server replies to the test software with a successful response command. At this time, the test software can start to control the performance test software that has been successfully deployed on the client side of the virtual machine to perform the test function, thereby implementing a customizable test plan. the goal of.
  • the system module includes: a desktop cloud system test software 10, a virtual desktop host host 20, a virtual desktop 30, and a VAP server 40.
  • the desktop cloud system testing software 10 is the testing software, and includes: an authentication module 102, a test container configuration module 104, an alarm module 106, a WAP stress testing module 108, a test result parsing module 110, and a communication module 112.
  • the authentication module 102 is responsible for two-way authentication: 1) tester authentication; 2) virtual desktop environment docking, determining which virtualization technology the virtual desktop environment to be tested is based on and whether access to the test system is allowed.
  • the test container configuration module 104 When creating a new test task, the module needs to configure test instructions, test instruction sets, test cases, etc., and add test objects to form a test container. In other words, the tester uses the module to create test tasks and deliver them.
  • the alarm module 106 is configured to process the alarm information reported by the measured object, and send the alarm information to the tester according to the policy, and may send various real-time alarms by using an email, a short message, or a mobile APP message.
  • WAP stress test module 108 provides web stress and security testing services.
  • the test result parsing module 110 analyzes and displays the test result reported by the tested object, and displays the actual effect on the client side real-time monitoring and generating the test report.
  • the communication module 112 is responsible for the communication service between the test software and the tested virtual desktop environment, and all messages are exchanged through the module.
  • the virtual desktop host host 20 is a core module of the virtual desktop environment, and is responsible for running a scheduled virtual desktop, and performing message interaction through the host agent and the test software. There may be multiple host hosts in the actual environment.
  • the host agent 202 the virtual desktop host host performs message interaction through the module and the test software communication module, including receiving an instruction and a feedback response.
  • Virtual desktop 30 means a virtual desktop running on the host host. There may be multiple virtual tables in the actual environment. surface.
  • the virtual desktop agent 302 the virtual desktop performs message interaction with the test software communication module and the host host agent through the module, including accepting instructions and reporting the test result.
  • the VAP server 40 is deployed on the virtual desktop host. When receiving the relevant commands sent by the test software, the VAP server 40 is responsible for pushing the test software to the virtual desktop.
  • S28 The user logs in to the client, performs an authentication process, and authenticates to ensure the security of the test system. After logging in, the server IP address of the target cloud desktop system in the network is input.
  • the test system determines the type of the virtualization platform of the target cloud desktop system.
  • XEN is taken as an example.
  • the alarm prompts and initially detects the cause of the abnormality.
  • test container If it is normal, set up a test container and start testing. For example, let the host host start 100 virtual machines, and perform a series of document editing, video and audio playback operations on each virtual machine.
  • the client of the test software monitors the performance of the host host and the virtual machine in real time during the test.
  • the problems faced by the current desktop cloud system testing can be extended, combined with mainstream virtualization core technologies such as XEN, KVM, and VMWARE to provide an effective, professional, flexible, and objective
  • the function/performance testing software can make a systematic evaluation of the virtual desktop environment, and can also make a special evaluation of the user's individual needs, thus creating a desktop cloud system-specific system testing tool to fill the gap of the desktop cloud testing tool.
  • This test can provide desktop cloud system developers and users with the perfect solution for desktop cloud system testing. Its biggest feature is to achieve the goal of systemization and high efficiency. It can be seamlessly integrated with the virtual desktop environment under various virtualization technologies.
  • the test solution can be customized and tested in real time in real time. The test is completed by the system. Evaluative professional test report.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (eg, ROM/RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a storage medium eg, ROM/RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • test device for the desktop cloud system
  • module may implement a combination of software and/or hardware of a predetermined function.
  • apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the device includes: a first determining unit 502 configured to determine a target desktop cloud system to be tested; and a sending unit 504. And being configured to send a test task to the determined target desktop cloud system to be tested, where the test task is used to perform attribute testing on the target desktop cloud system; and the receiving unit 506 is configured to receive the target desktop cloud system according to the foregoing test task. The test results returned after the test.
  • the above steps can be performed by the client of the test software installed on the virtual machine.
  • the test task may include at least one of the following: an instruction, an instruction set, and a test case;
  • the attribute test may include at least one of the following: a functional test, a performance test; and one test process may test one or more target desktop clouds. system. Additionally, the above steps can be performed during the testing phase of the testing process.
  • the above performance test may include: web stress security test. Specifically, when the administrator or the user logs in to the client interface of the test software, in the virtual desktop environment, the maximum amount of access of the cloud desktop to the web that can be carried by the desktop cloud system is created by the instruction, and the full load and the true load are realized.
  • the test environment after the client of the test software sends a request for accessing the web to the cloud desktop agent, the login operation is performed according to the test plan; the host of the web server feeds back the web response capability to the client of the test software, including delays and the like, and finally
  • the monitoring window form is displayed in real time. The relationship between the number of concurrent accesses and the web response capability can be seen through the monitoring window.
  • testing and generating test evaluation reports under full load and true load can verify the web service carrying capacity truly and reasonably.
  • the web security detection can be initiated from the client interface of the test software, including but not limited to code injection, cross-site attack, etc., and the custom attack script is imported and executed, and the system can be flexibly tested for different systems.
  • the test software for testing the desktop cloud system in the present invention is installed on the PC client, and the agent responsible for communicating with the test software is deployed in the desktop cloud system, and then the test software can be delivered to the target desktop cloud system.
  • test task can be initiated and checked by the cloud access means at any time and any place.
  • target desktop cloud system can be tested by using the mobile client to access the test software anytime and anywhere.
  • test software has a systematic test direction, transparent test process, and test knots. It can be traced to other advantages that other test software does not have.
  • test software can provide a client based on the CS architecture of the Windows operating system, and can also provide a client based on the operating system of ios, android, etc., the tester can access and initiate the test task through the mobile terminal in real time, view the test. Progress and test results.
  • the alarm function will also play the biggest role in the ios and android client, reminding the test personnel anytime and anywhere, to achieve timely resolution of problems and improve test efficiency.
  • the target desktop cloud system to be tested is determined; and the test task is sent to the determined target desktop cloud system to be tested, wherein the test task is used to perform attribute testing on the target desktop cloud system; and the target desktop cloud system is received.
  • the test results returned after testing according to the test task solve the technical problems in the related technology that the test results are not real due to the test tools not specifically for the desktop cloud system, thereby achieving the functional test and performance test on the desktop cloud system.
  • the technical effect of the objective authenticity of the test results is improved.
  • the foregoing apparatus further includes: a second determining unit, configured to determine a virtualization platform type of each desktop cloud system before determining the target desktop cloud system to be tested; and a sending unit configured to be determined according to the determined virtualization platform
  • the type of the desktop agent is delivered to the virtual desktop in the above-mentioned desktop cloud system, and the corresponding host agent is delivered to the virtual desktop host in the desktop cloud system.
  • the test software client passes the test.
  • the desktop agent communicates with each virtual desktop, communicates with each virtual desktop host host through the host agent, and communicates with the desktop agent and the host agent.
  • the foregoing apparatus further includes: a first detecting unit, configured to detect whether a first abnormal condition occurs in the communication between the test software client and each desktop agent before determining the target desktop cloud system to be tested; and Or the second detecting unit is configured to detect whether the communication between the test software client and each host agent has a second abnormal condition; and/or the third detecting unit is configured to detect the foregoing desktop agents and the corresponding host agent. Whether there is a third abnormal condition in the communication; the alarm unit is configured to perform an alarm process when at least one of the following abnormal conditions occurs: the first abnormal condition, the second abnormal condition, and the third abnormal condition.
  • the device further includes: a monitoring unit, configured to perform a monitoring operation on the target desktop cloud system to be tested in the testing process after sending the testing task to the determined target desktop cloud system to be tested.
  • a monitoring unit configured to perform a monitoring operation on the target desktop cloud system to be tested in the testing process after sending the testing task to the determined target desktop cloud system to be tested.
  • the foregoing first determining unit includes: an obtaining module, configured to obtain a server IP of the target desktop cloud system to be tested; and a determining module, configured to use the testing software client to determine the target to be tested by using the foregoing IP Desktop cloud system.
  • the foregoing apparatus further includes: a third determining unit, configured to determine a test requirement of the user before sending the test task to the determined target desktop cloud system to be tested; and calling the unit, and setting the test according to the determined user
  • the corresponding test tool is invoked by the application virtualization system VAPP; the push unit is configured to push the invoked test tool to the virtual machine client of the target desktop cloud system to be tested.
  • test device for a desktop cloud system is provided in the embodiment of the present invention, including the device described in any one of the above.
  • a computer storage medium is further provided, where the computer storage medium stores a license A line instruction for performing the method of any of the above.
  • the second embodiment corresponds to the first embodiment, and the functions of the units/modules in the second embodiment are the same as those in the first embodiment, and are not described herein again.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be provided to store program code for executing the steps in Embodiment 1 and related embodiments.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs the functions of each unit/module in Embodiment 2 according to the stored program code in the storage medium.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • test results are not true due to the absence of a test tool specifically for the desktop cloud system, thereby achieving functional testing of the desktop cloud system and When performance testing, the technical effect of the objective authenticity of the test results is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明提供了一种桌面云***的测试方法及装置,其中,该方法包括:确定待测试的目标桌面云***;向确定的待测试的目标桌面云***发送测试任务,其中,测试任务用于对目标桌面云***进行属性测试;接收目标桌面云***依据测试任务进行测试后返回的测试结果。通过本发明,解决了相关技术中由于没有专门针对桌面云***的测试工具而导致测试结果不真实的技术问题,进而达到了在对桌面云***进行功能测试和性能测试时,提高了测试结果的客观真实性的技术效果。

Description

桌面云***的测试方法及装置 技术领域
本发明涉及虚拟云桌面领域,具体而言,涉及一种桌面云***的测试方法及装置。
背景技术
目前,在桌面虚拟化技术中,虚拟桌面基础架构(Virtual Desktop Infrastructure,简称为VDI)已经作为主流桌面虚拟化技术被广大厂商采用,在云计算技术需求日益增加的今天,很多厂商都已经推出了自己的虚拟桌面VDI。
VDI技术可以利用虚拟化技术将服务器的强大硬件资源进行虚拟使用,将这些资源按照需要分配给相应的虚拟桌面用户,达到虚拟机使用与管理部分资源的目的。
随着VDI的广泛使用,衍生出一系列问题。例如,由于虚拟桌面和普通PC桌面存在本质上的差异,导致无论是在产品研发过程中,还是在用户体验过程中,都无法及时客观地判断虚拟桌面的功能及性能是否完好,也无法及时客观地判断虚拟桌面的稳定性是否能够达到设计预期,只有经过长时间体验才能得出相应结论。
目前,市场上不乏针对windows操作***进行测评的各类跑分软件,但是这类软件无论开发还是测试,都是基于物理PC进行的,而在对虚拟桌面这个特殊群体进行测试时,由于虚拟桌面的特殊性,无法给出一个客观真实的测试结论。
针对上述的问题,目前尚未提出有效的解决方案。
发明内容
本发明提供了一种桌面云***的方法及装置,以至少解决相关技术中由于没有专门针对桌面云***的测试工具而导致测试结果不真实的技术问题。
根据本发明的一个方面,提供了一种桌面云***的测试方法,包括:确定待测试的目标桌面云***;向确定的待测试的上述目标桌面云***发送测试任务,其中,上述测试任务用于对上述目标桌面云***进行属性测试;接收上述目标桌面云***依据上述测试任务进行测试后返回的测试结果。
优选地,上述目标桌面云***包括以下至少之一:虚拟桌面,虚拟机,虚拟桌面宿主主机。
优选地,在确定待测试的目标桌面云***之前,上述方法还包括:确定各桌面云***的虚拟化平台类型;根据确定的虚拟化平台类型向上述各桌面云***中的虚拟桌面下发相应的桌面代理,并向上述各桌面云***中的虚拟桌面宿主主机下发相应的主机代理,其中,在测 试过程中,测试软件客户端通过上述桌面代理与各虚拟桌面通信,并通过上述主机代理与各虚拟桌面宿主主机通信,以及上述桌面代理与上述主机代理之间相互通信。
优选地,在确定待测试的目标桌面云***之前,上述方法还包括:检测上述测试软件客户端与各桌面代理之间的通信是否出现第一异常情况;和/或检测上述测试软件客户端与各主机代理之间的通信是否出现第二异常情况;和/或检测上述各桌面代理与相应的主机代理之间的通信是否出现第三异常情况;若出现以下至少之一异常情况:上述第一异常情况、上述第二异常情况和上述第三异常情况,则执行告警处理。
优选地,在向确定的待测试的上述目标桌面云***发送测试任务之后,上述方法还包括:在测试进程中,对待测试的上述目标桌面云***执行监视操作。
优选地,确定待测试的目标桌面云***包括:获取待测试的上述目标桌面云***的服务端IP;利用测试软件客户端并通过上述IP确定待测试的上述目标桌面云***。
优选地,在向确定的待测试的上述目标桌面云***发送测试任务之前,上述方法还包括:确定用户的测试需求;根据确定的用户的测试需求并通过应用虚拟化***VAPP调用相应的测试工具;将调用的上述测试工具推送至待测试的上述目标桌面云***的虚拟机客户端。
根据本发明的另一方面,提供了一种桌面云***的测试装置,包括:第一确定单元,设置为确定待测试的目标桌面云***;发送单元,设置为向确定的待测试的上述目标桌面云***发送测试任务,其中,上述测试任务用于对上述目标桌面云***进行属性测试;接收单元,设置为接收上述目标桌面云***依据上述测试任务进行测试后返回的测试结果。
优选地,上述装置还包括:第二确定单元,设置为在确定待测试的目标桌面云***之前,确定各桌面云***的虚拟化平台类型;下发单元,设置为根据确定的虚拟化平台类型向上述各桌面云***中的虚拟桌面下发相应的桌面代理,并向上述各桌面云***中的虚拟桌面宿主主机下发相应的主机代理,其中,在测试过程中,测试软件客户端通过上述桌面代理与各虚拟桌面通信,并通过上述主机代理与各虚拟桌面宿主主机通信,以及上述桌面代理与上述主机代理之间相互通信。
优选地,上述装置还包括:第一检测单元,设置为在确定待测试的目标桌面云***之前,检测上述测试软件客户端与各桌面代理之间的通信是否出现第一异常情况;和/或第二检测单元,设置为检测上述测试软件客户端与各主机代理之间的通信是否出现第二异常情况;和/或第三检测单元,设置为检测上述各桌面代理与相应的主机代理之间的通信是否出现第三异常情况;告警单元,设置为在出现以下至少之一异常情况时:上述第一异常情况、上述第二异常情况和上述第三异常情况,则执行告警处理。
优选地,上述装置还包括:监视单元,设置为在向确定的待测试的上述目标桌面云***发送测试任务之后,在测试进程中,对待测试的上述目标桌面云***执行监视操作。
优选地,上述第一确定单元包括:获取模块,设置为获取待测试的上述目标桌面云***的服务端IP;确定模块,设置为利用测试软件客户端并通过上述IP确定待测试的上述目标桌 面云***。
优选地,上述装置还包括:第三确定单元,设置为在向确定的待测试的上述目标桌面云***发送测试任务之前,确定用户的测试需求;调用单元,设置为根据确定的用户的测试需求并通过应用虚拟化***VAPP调用相应的测试工具;推送单元,设置为将调用的上述测试工具推送至待测试的上述目标桌面云***的虚拟机客户端。
根据本发明的另一方面,还提供了一种桌面云***的测试设备,包括上述任一项所述的装置。
根据本发明的还一方面,提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述任一项所述的方法。
通过本发明,采用确定待测试的目标桌面云***;向确定的待测试的目标桌面云***发送测试任务,其中,测试任务用于对目标桌面云***进行属性测试;接收目标桌面云***依据测试任务进行测试后返回的测试结果,解决了相关技术中由于没有专门针对桌面云***的测试工具而导致测试结果不真实的技术问题,进而达到了在对桌面云***进行功能测试和性能测试时,提高了测试结果的客观真实性的技术效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的桌面云***的测试方法的流程图;
图2是根据本发明实施例的测试***的架构图;
图3是根据本发明可选实施例的桌面云***的测试方法的流程图;以及
图4是根据本发明实施例的桌面云***的测试装置的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
在本实施例中提供了一种桌面云***的测试方法,图1是根据本发明实施例的桌面云***的测试方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,确定待测试的目标桌面云***;
步骤S104,向确定的待测试的上述目标桌面云***发送测试任务,其中,上述测试任务用于对上述目标桌面云***进行属性测试;
步骤S106,接收上述目标桌面云***依据上述测试任务进行测试后返回的测试结果。
需要说明的是,上述步骤可以通过安装在虚拟机上的测试软件的客户端执行。在此,测试任务可以包括至少以下之一:指令、指令集、测试用例;属性测试可以包括至少以下之一:功能测试、性能测试;在一个测试过程中,可以测试一个或者多个目标桌面云***。另外,上述步骤可以在测试过程的测试阶段执行。
其中,上述性能测试可以包括:web压力安全测试。具体地,在管理员或用户登录测试软件的客户端界面时,在虚拟桌面环境下,通过指令创建桌面云***所能承载的云桌面对web的最大限度的访问量,实现满负载、真负载测试环境;测试软件的客户端向云桌面代理发送访问web的请求后,按照测试计划进行登录执行相关操作;web服务器所在主机向测试软件的客户端反馈web响应能力,包括延迟等指标,最终以监视窗口形式实时显示,通过监视窗口可以看出并发访问数与web响应能力的关系;同时,在满负载、真负载下测试并生成测试评估报告,可真实、合理地检验web服务承载能力。
其中,可以从测试软件的客户端界面发起web安全性检测,包括但不限于代码注入、跨站攻击等功能,同时支持自定义攻击脚本导入下发执行,针对不同***可灵活测试。
实施时,在PC客户端安装本发明中对桌面云***进行测试的测试软件,并在桌面云***中部署负责和本测试软件通信的代理,之后,可以由本测试软件向目标桌面云***下发测试用例,桌面云***中的虚拟桌面宿主主机和虚拟桌面实时反馈测试结果,测试人员通过本测试软件的结果分析模块,可实时观察跟踪测试进度,并在测试结束后,由本测试软件生成测试报告。
需要说明的是,使用时,可以多渠道随时随地通过云接入手段发起测试任务并查看测试结果,例如,可以通过移动客户端随时随地接入上述测试软件,对目标桌面云***进行测试。与业界现有主流测试工具比较,本测试软件具有测试方向***化、测试过程透明化、测试结果可追溯等其他测试软件所不具备的优点。
另外,测试软件除了可以提供基于windows操作***的CS架构的客户端外,还可以提供基于ios、android等s操作***的客户端,测试人员可以通过移动终端实时接入并发起测试任务,查看测试进度及测试结果。优选地,告警功能也将在ios和android客户端上发挥最大作用,随时随地提醒测试人员,实现及时解决问题,提升测试效率的目的。
通过本发明实施例,采用确定待测试的目标桌面云***;向确定的待测试的目标桌面云***发送测试任务,其中,测试任务用于对目标桌面云***进行属性测试;接收目标桌面云***依据测试任务进行测试后返回的测试结果,解决了相关技术中由于没有专门针对桌面云***的测试工具而导致测试结果不真实的技术问题,进而达到了在对桌面云***进行功能测 试和性能测试时,提高了测试结果的客观真实性的技术效果。
可选地,上述目标桌面云***包括以下至少之一:虚拟桌面,虚拟机,虚拟桌面宿主主机。使用时,可以通过测试软件灵活创建测试容器,将虚拟桌面环境中的虚拟桌面、虚拟机和虚拟桌面宿主主机加入对应的测试容器,执行针对当前测试容器的预设指令、指令集或多种场景组成的测试用例等。
需要说明的是,本发明的测试软件除了可以实现轻量级部署及与桌面云***深度融合之外,还可以自动识别待测试的桌面云***的类型,进而根据桌面云***的类型为测试阶段搭建通信环境。可选地,在确定待测试的目标桌面云***之前,上述方法还可以包括:
S2,确定各桌面云***的虚拟化平台类型;
S4,根据确定的虚拟化平台类型向上述各桌面云***中的虚拟桌面下发相应的桌面代理,并向上述各桌面云***中的虚拟桌面宿主主机下发相应的主机代理。其中,在测试过程中,测试软件客户端通过上述桌面代理与各虚拟桌面通信,并通过上述主机代理与各虚拟桌面宿主主机通信,以及上述桌面代理与上述主机代理之间相互通信。
需要说明的是,此处,桌面云***的虚拟化平台类型可以包括:XEN、KVM、VMWARE vpshare等虚拟化平台类型。本测试软件对这三种类型的虚拟化技术(产品)均兼容,可以与多种虚拟化技术支撑下的桌面云***环境对接。
例如,在确定目标桌面云***的服务器为XEN架构的虚拟桌面服务器时,下发对应的主机代理到目标服务器,通过主机代理和虚拟桌面宿主主机建立通信连接。其中,该主机代理是通过在虚拟桌面宿主主机的原有代理的基础上,增加本测试软件的代理模块实现的,负责与本测试软件的客户端通信,如收集并上报虚拟桌面宿主主机侧的测试结果。例如,在虚拟桌面部署虚拟桌面代理,该虚拟桌面代理是在基于原有虚拟桌面代理功能的基础上,增加了测试软件的代理模块,负责和测试软件的客户端通信,收集并上报虚拟桌面侧的测试结果。
需要说明的是,在针对不同虚拟化平台类型下发对应代理的同时,测试软件也将调用不同平台类型对应的指令、指令集和测试用例。通过模板所创建的虚拟桌面均能与本测试软件通信,在此测试网络建成之后,即可通过测试软件的客户端向虚拟桌面宿主主机和虚拟桌面发送指令、指令集、以及有针对性的功能测试用例和性能测试用例。其中,指令和指令集可以实时编写发送,测试用例则需要通过测试软件的客户端载入测试用例工程文件得到。
优选地,在基于某个指令或指令集或测试用例的测试任务建立后,即可看作测试容器建立成功。在测试过程中,可以根据实际情况,增加或减少测试容器内的待测试对象(包括虚拟桌面宿主主机、虚拟桌面、虚拟机等)。
可选地,为了更好地保证测试效果,在确定待测试的目标桌面云***之前,上述方法还可以包括:
S6,检测上述测试软件客户端与各桌面代理之间的通信是否出现第一异常情况;和/或
S8,检测上述测试软件客户端与各主机代理之间的通信是否出现第二异常情况;和/或
S10,检测上述各桌面代理与相应的主机代理之间的通信是否出现第三异常情况;
S12,若出现以下至少之一异常情况:上述第一异常情况、上述第二异常情况和上述第三异常情况,则执行告警处理。
这样,可以随时随地提醒测试人员,实现及时解决问题,提升测试效率的目的。
可选地,在向确定的待测试的上述目标桌面云***发送测试任务之后,为了实时监控测试进程中的测试对象,对比测试结果,上述方法还可以包括:
S14,在测试进程中,对待测试的上述目标桌面云***执行监视操作。
优选地,在接收所述目标桌面云***依据所述测试任务进行测试后返回的测试结果之后,上述方法还可以包括:对返回的测试结果进行分析,并根据分析结果生成测试报告。
这样,可以实时监控测试指令、指令集和测试用例在测试任务中的执行结果,并轻松高效地对测试结果进行综合评估,自动生成测试报告。
需要说明的是,本测试软件可以提供多个针对桌面云***主机的运行性能的软件测试的监视窗口,主要监视内容包括:
(1)监视测试过程中测试容器内虚拟桌面宿主主机和/或虚拟桌面的数量变化曲线。若有多个测试容器,则可以通过下拉菜单选择待监视目标。
(2)监视每个虚拟桌面宿主主机和/或虚拟桌面的实时性能情况。具体地,可以通过下拉菜单从对应测试容器内选择监视目标后对其进行监视,其中,可以在监视窗口呈现该虚拟桌面宿主主机和/或虚拟桌面在当前测试容器中的运行情况,如内存、CPU等性能指标变化曲线。
(3)监视虚拟桌面宿主主机的负载能力变化情况。其中,将虚拟桌面宿主主机的性能曲线和其对应的测试容器内的虚拟桌面数量变化曲线叠加,可以直观显示出虚拟桌面宿主主机的负载能力变化情况。
(4)监视特定待测对象。当测试开始后,以测试容器对应的测试方案节点为横坐标,测试对象个数为纵坐标,可监视当前时刻每个测试步骤上测试对象的驻留数,点击驻留数可以进一步准确定位到具体的测试对象,进而可以结合该测试对象对其他测试指标进行监视。
(5)监视虚拟桌面宿主主机的响应能力。可以在虚拟桌面的测试容器内测试对象的数量增加时,监视虚拟桌面宿主主机处理请求的平均响应时间的变化曲线。
(6)监视特定虚拟机的性能。例如,监视测试容器内虚拟机数据量增加时,某一特定虚拟机的性能变化情况。
可选地,步骤S102确定待测试的目标桌面云***包括:
S16,获取待测试的上述目标桌面云***的服务端IP;
S18,利用测试软件客户端并通过上述IP确定待测试的上述目标桌面云***。
具体地,在windows操作环境下,部署测试软件的客户端后,运行该客户端,输入待测试的虚拟桌面环境服务端IP,该测试软件的客户端自动检测该虚拟桌面环境是基于何种虚拟化技术,并作出相应处理。
为了实现测试软件的测试功能可定制化,大规模、批量部署具有特定测试功能的测试工具,可以将本测试软件与应用虚拟化***服务器对接,具体地,在向确定的待测试的上述目标桌面云***发送测试任务之前,上述方法还可以包括:
S20,确定用户的测试需求;
S22,根据确定的用户的测试需求并通过应用虚拟化***VAPP(Virtual Application)调用相应的测试工具;
S24,将调用的上述测试工具推送至待测试的上述目标桌面云***的虚拟机客户端。
其中,本测试软件包含与VAPP对接的接口,测试软件可以通过VAPP调用特定测试工具。如需要在虚拟桌面上运行特定测试软件,可通过VAPP服务器批量部署特定的测试工具,如本测试软件可以向对接的VAPP服务器发起调用请求,VAPP服务器根据调用请求向所有虚拟机客户端推送相应的配套测试软件,APP推送成功后,VAPP服务器给测试软件回复成功响应命令,此时,测试软件可以开始控制虚拟机客户端侧已经部署成功的性能测试软件执行测试功能,从而实现可定制具体测试方案的目的。
图2是根据本发明实施例的测试***的架构图。如图2所示,该***模块包括:桌面云***测试软件10、虚拟桌面宿主主机20、虚拟桌面30、VAP服务器40。其中,桌面云***测试软件10为本测试软件,包含:鉴权模块102、测试容器配置模块104、告警模块106、WAP压力测试模块108、测试结果解析模块110和通信模块112。鉴权模块102:负责双向鉴权:1)测试人员鉴权;2)虚拟桌面环境对接,判断待测虚拟桌面环境是基于何种虚拟化技术并且是否允许接入本测试***。测试容器配置模块104:当新建一个测试任务时,需要通过该模块配置测试指令、测试指令集、测试用例等,并且添加测试对象,形成测试容器。换言之,测试人员通过该模块来创建测试任务,并下发执行。告警模块106:处理被测对象上报的告警信息,并根据策略向测试人员发送告警信息,可通过邮件、短信或者移动APP消息推送等多种途经实时告警。WAP压力测试模块108:提供web压力及安全性测试服务。测试结果解析模块110:针对被测对象上报的测试结果进行分析和展示,并将实际效果表现在客户端侧的实时监控和生成测试报告两个部分上。通信模块112:负责本测试软件和被测虚拟桌面环境的通信业务,所有消息通过该模块进行交互。
虚拟桌面宿主主机20:为虚拟桌面环境核心模块,负责运行调度虚拟桌面,通过主机代理和本测试软件进行消息交互。实际环境中可能有多个宿主主机。主机代理202:虚拟桌面宿主主机通过该模块和本测试软件通信模块进行消息交互,包括接收指令、反馈响应。
虚拟桌面30:即表示运行在宿主主机上的某台虚拟桌面,实际环境中可能有多个虚拟桌 面。虚拟桌面代理302:虚拟桌面通过该模块和本测试软件通信模块以及宿主主机代理进行消息交互,包括接受指令,上报测试结果。
VAP服务器40:部署在虚拟桌面宿主主机上,收到本测试软件发送的相关指令时,负责向虚拟桌面推送测试软件,实现测试软件大规模批量下发。
如图3所示,通过具体实施例详细阐述本发明如下:
S26,运行测试软件的客户端。
S28,用户登录该客户端,执行鉴权流程,通过鉴权以保证测试***的使用安全性,登录之后,输入网络内的目标云桌面***的服务端IP地址。
S30,测试***判断目标云桌面***的虚拟化平台类型,此处以XEN为例。
S32,若判断不是XEN类型,则将继续匹配支持的其他虚拟化平台类型。
S34,若是XEN类型,则向待测试的虚拟机宿主主机发送对应的主机代理。
S36,向虚拟机发送虚拟机代理。
S38,判断各级代理通信是否正常,即判断准备工作是否完备。
S40,若存在异常,报警提示并初步检测异常原因。
S42,若正常,建立测试容器并开始测试,例如,让宿主主机启动100台虚拟机,并在各台虚拟机上进行一系列文档编辑、视频音频播放等操作。
S44,测试过程中通过测试软件的客户端实时监控宿主主机和虚拟机的性能。
S46,测试任务执行完毕后生成测试报告。
S48,测试完成。
通过本发明实施例,针对目前桌面云***测试所面临的问题,可以通过一些技术的开发延伸,结合XEN、KVM、VMWARE等主流虚拟化核心技术,提供一个行之有效、专业、灵活、客观的功能/性能测试软件,既可以对虚拟桌面环境做出***的评估,也可以对用户个性需求做出专项评估,从而打造一个桌面云***专属的***测试工具,以填补桌面云测试工具的空白。本测试人间可以为桌面云***研发人员和用户提供针对桌面云***测试的完美解决方案。它的最大特点在于以***化、高效率为目标,通过与多种虚拟化技术下的虚拟桌面环境深度无缝融合,测试方案可定制、测试全过程实时跟踪、测试完毕由***生成具有高度可评估性的专业测试报告。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如 ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种桌面云***的测试装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
实施例2
图4是根据本发明实施例的桌面云***的测试装置的结构框图,如图4所示,该装置包括:第一确定单元502,设置为确定待测试的目标桌面云***;发送单元504,设置为向确定的待测试的上述目标桌面云***发送测试任务,其中,上述测试任务用于对上述目标桌面云***进行属性测试;接收单元506,设置为接收上述目标桌面云***依据上述测试任务进行测试后返回的测试结果。
需要说明的是,上述步骤可以通过安装在虚拟机上的测试软件的客户端执行。在此,测试任务可以包括至少以下之一:指令、指令集、测试用例;属性测试可以包括至少以下之一:功能测试、性能测试;在一个测试过程中,可以测试一个或者多个目标桌面云***。另外,上述步骤可以在测试过程的测试阶段执行。
其中,上述性能测试可以包括:web压力安全测试。具体地,在管理员或用户登录测试软件的客户端界面时,在虚拟桌面环境下,通过指令创建桌面云***所能承载的云桌面对web的最大限度的访问量,实现满负载、真负载测试环境;测试软件的客户端向云桌面代理发送访问web的请求后,按照测试计划进行登录执行相关操作;web服务器所在主机向测试软件的客户端反馈web响应能力,包括延迟等指标,最终以监视窗口形式实时显示,通过监视窗口可以看出并发访问数与web响应能力的关系;同时,在满负载、真负载下测试并生成测试评估报告,可真实、合理地检验web服务承载能力。
其中,可以从测试软件的客户端界面发起web安全性检测,包括但不限于代码注入、跨站攻击等功能,同时支持自定义攻击脚本导入下发执行,针对不同***可灵活测试。
实施时,在PC客户端安装本发明中对桌面云***进行测试的测试软件,并在桌面云***中部署负责和本测试软件通信的代理,之后,可以由本测试软件向目标桌面云***下发测试用例,桌面云***中的虚拟桌面宿主主机和虚拟桌面实时反馈测试结果,测试人员通过本测试软件的结果分析模块,可实时观察跟踪测试进度,并在测试结束后,由本测试软件生成测试报告。
需要说明的是,使用时,可以多渠道随时随地通过云接入手段发起测试任务并查看测试结果,例如,可以通过移动客户端随时随地接入上述测试软件,对目标桌面云***进行测试。与业界现有主流测试工具比较,本测试软件具有测试方向***化、测试过程透明化、测试结 果可追溯等其他测试软件所不具备的优点。
另外,测试软件除了可以提供基于windows操作***的CS架构的客户端外,还可以提供基于ios、android等s操作***的客户端,测试人员可以通过移动终端实时接入并发起测试任务,查看测试进度及测试结果。优选地,告警功能也将在ios和android客户端上发挥最大作用,随时随地提醒测试人员,实现及时解决问题,提升测试效率的目的。
通过本发明实施例,采用确定待测试的目标桌面云***;向确定的待测试的目标桌面云***发送测试任务,其中,测试任务用于对目标桌面云***进行属性测试;接收目标桌面云***依据测试任务进行测试后返回的测试结果,解决了相关技术中由于没有专门针对桌面云***的测试工具而导致测试结果不真实的技术问题,进而达到了在对桌面云***进行功能测试和性能测试时,提高了测试结果的客观真实性的技术效果。
可选地,上述装置还包括:第二确定单元,设置为在确定待测试的目标桌面云***之前,确定各桌面云***的虚拟化平台类型;下发单元,设置为根据确定的虚拟化平台类型向上述各桌面云***中的虚拟桌面下发相应的桌面代理,并向上述各桌面云***中的虚拟桌面宿主主机下发相应的主机代理,其中,在测试过程中,测试软件客户端通过上述桌面代理与各虚拟桌面通信,并通过上述主机代理与各虚拟桌面宿主主机通信,以及上述桌面代理与上述主机代理之间相互通信。
可选地,上述装置还包括:第一检测单元,设置为在确定待测试的目标桌面云***之前,检测上述测试软件客户端与各桌面代理之间的通信是否出现第一异常情况;和/或第二检测单元,设置为检测上述测试软件客户端与各主机代理之间的通信是否出现第二异常情况;和/或第三检测单元,设置为检测上述各桌面代理与相应的主机代理之间的通信是否出现第三异常情况;告警单元,设置为在出现以下至少之一异常情况时:上述第一异常情况、上述第二异常情况和上述第三异常情况,则执行告警处理。
可选地,上述装置还包括:监视单元,设置为在向确定的待测试的上述目标桌面云***发送测试任务之后,在测试进程中,对待测试的上述目标桌面云***执行监视操作。
可选地,上述第一确定单元包括:获取模块,设置为获取待测试的上述目标桌面云***的服务端IP;确定模块,设置为利用测试软件客户端并通过上述IP确定待测试的上述目标桌面云***。
可选地,上述装置还包括:第三确定单元,设置为在向确定的待测试的上述目标桌面云***发送测试任务之前,确定用户的测试需求;调用单元,设置为根据确定的用户的测试需求并通过应用虚拟化***VAPP调用相应的测试工具;推送单元,设置为将调用的上述测试工具推送至待测试的上述目标桌面云***的虚拟机客户端。
优选地,在本发明实施例中还提供了一种桌面云***的测试设备,包括上述任一项所述的装置。
优选地,在本发明实施例中还提供了一种计算机存储介质,该计算机存储介质存储有执 行指令,该执行指令用于执行上述任一项所述的方法。
需要说明的是,实施例2与实施例1相对应,实施例2中各单元/模块的功能与实施例1中执行相应的步骤所实现的功能相同,在此不再赘述。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
实施例3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行实施例1及其相关实施方式中的各步骤的程序代码。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执实施例2中的各单元/模块的功能。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,通过上述实施例及优选实施方式,解决了相关技术中由于没有专门针对桌面云***的测试工具而导致测试结果不真实的技术问题,进而达到了在对桌面云***进行功能测试和性能测试时,提高了测试结果的客观真实性的技术效果。

Claims (15)

  1. 一种桌面云***的测试方法,包括:
    确定待测试的目标桌面云***;
    向确定的待测试的所述目标桌面云***发送测试任务,其中,所述测试任务用于对所述目标桌面云***进行属性测试;
    接收所述目标桌面云***依据所述测试任务进行测试后返回的测试结果。
  2. 根据权利要求1所述的测试方法,其中,所述目标桌面云***包括以下至少之一:虚拟桌面,虚拟机,虚拟桌面宿主主机。
  3. 根据权利要求1所述的测试方法,其中,在确定待测试的目标桌面云***之前,所述方法还包括:
    确定各桌面云***的虚拟化平台类型;
    根据确定的虚拟化平台类型向所述各桌面云***中的虚拟桌面下发相应的桌面代理,并向所述各桌面云***中的虚拟桌面宿主主机下发相应的主机代理,
    其中,在测试过程中,测试软件客户端通过所述桌面代理与各虚拟桌面通信,并通过所述主机代理与各虚拟桌面宿主主机通信,以及所述桌面代理与所述主机代理之间相互通信。
  4. 根据权利要求3所述的测试方法,其中,在确定待测试的目标桌面云***之前,所述方法还包括:
    检测所述测试软件客户端与各桌面代理之间的通信是否出现第一异常情况;和/或
    检测所述测试软件客户端与各主机代理之间的通信是否出现第二异常情况;和/或
    检测所述各桌面代理与相应的主机代理之间的通信是否出现第三异常情况;
    若出现以下至少之一异常情况:所述第一异常情况、所述第二异常情况和所述第三异常情况,则执行告警处理。
  5. 根据权利要求1所述的测试方法,其中,在向确定的待测试的所述目标桌面云***发送测试任务之后,所述方法还包括:
    在测试进程中,对待测试的所述目标桌面云***执行监视操作。
  6. 根据权利要求1所述的测试方法,其中,确定待测试的目标桌面云***包括:
    获取待测试的所述目标桌面云***的服务端IP;
    利用测试软件客户端并通过所述IP确定待测试的所述目标桌面云***。
  7. 根据权利要求1所述的测试方法,其中,在向确定的待测试的所述目标桌面云***发送测试任务之前,所述方法还包括:
    确定用户的测试需求;
    根据确定的用户的测试需求并通过应用虚拟化***VAPP调用相应的测试工具;
    将调用的所述测试工具推送至待测试的所述目标桌面云***的虚拟机客户端。
  8. 一种桌面云***的测试装置,包括:
    第一确定单元,设置为确定待测试的目标桌面云***;
    发送单元,设置为向确定的待测试的所述目标桌面云***发送测试任务,其中,所述测试任务用于对所述目标桌面云***进行属性测试;
    接收单元,设置为接收所述目标桌面云***依据所述测试任务进行测试后返回的测试结果。
  9. 根据权利要求8所述的测试装置,其中,所述装置还包括:
    第二确定单元,设置为在确定待测试的目标桌面云***之前,确定各桌面云***的虚拟化平台类型;
    下发单元,设置为根据确定的虚拟化平台类型向所述各桌面云***中的虚拟桌面下发相应的桌面代理,并向所述各桌面云***中的虚拟桌面宿主主机下发相应的主机代理,
    其中,在测试过程中,测试软件客户端通过所述桌面代理与各虚拟桌面通信,并通过所述主机代理与各虚拟桌面宿主主机通信,以及所述桌面代理与所述主机代理之间相互通信。
  10. 根据权利要求9所述的测试装置,其中,所述装置还包括:
    第一检测单元,设置为在确定待测试的目标桌面云***之前,检测所述测试软件客户端与各桌面代理之间的通信是否出现第一异常情况;和/或
    第二检测单元,设置为检测所述测试软件客户端与各主机代理之间的通信是否出现第二异常情况;和/或
    第三检测单元,设置为检测所述各桌面代理与相应的主机代理之间的通信是否出现第三异常情况;
    告警单元,设置为在出现以下至少之一异常情况时:所述第一异常情况、所述第二异常情况和所述第三异常情况,则执行告警处理。
  11. 根据权利要求8所述的测试装置,其中,所述装置还包括:
    监视单元,设置为在向确定的待测试的所述目标桌面云***发送测试任务之后,在 测试进程中,对待测试的所述目标桌面云***执行监视操作。
  12. 根据权利要求8所述的测试装置,其中,所述第一确定单元包括:
    获取模块,设置为获取待测试的所述目标桌面云***的服务端IP;
    确定模块,设置为利用测试软件客户端并通过所述IP确定待测试的所述目标桌面云***。
  13. 根据权利要求8所述的测试装置,其中,所述装置还包括:
    第三确定单元,设置为在向确定的待测试的所述目标桌面云***发送测试任务之前,确定用户的测试需求;
    调用单元,设置为根据确定的用户的测试需求并通过应用虚拟化***VAPP调用相应的测试工具;
    推送单元,设置为将调用的所述测试工具推送至待测试的所述目标桌面云***的虚拟机客户端。
  14. 一种桌面云***的测试设备,包括权利要求8至13中任一项所述的装置。
  15. 一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行权利要求1至7中任一项所述的方法。
PCT/CN2016/073799 2015-07-30 2016-02-15 桌面云***的测试方法及装置 WO2017016212A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510460558.2 2015-07-30
CN201510460558.2A CN106406975A (zh) 2015-07-30 2015-07-30 桌面云***的测试方法及装置

Publications (1)

Publication Number Publication Date
WO2017016212A1 true WO2017016212A1 (zh) 2017-02-02

Family

ID=57885100

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073799 WO2017016212A1 (zh) 2015-07-30 2016-02-15 桌面云***的测试方法及装置

Country Status (2)

Country Link
CN (1) CN106406975A (zh)
WO (1) WO2017016212A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710378A (zh) * 2018-12-18 2019-05-03 广东微云科技股份有限公司 虚拟机的故障检测方法
CN111314131A (zh) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 任务下发方法和装置、存储介质和电子装置
CN113590403A (zh) * 2021-08-05 2021-11-02 北京百度网讯科技有限公司 压力测试方法、装置、***、电子设备、存储介质及产品

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763003B (zh) * 2018-05-25 2022-02-22 厦门集微科技有限公司 一种测试方法、装置和***
CN109726941B (zh) * 2019-02-21 2021-03-12 厦门芯鸽信息科技有限公司 一种智能终端的自动营销***及自动营销方法
CN109831360A (zh) * 2019-02-27 2019-05-31 深圳市吉祥腾达科技有限公司 用于多用户并发web认证的自动化测试方法及测试***
CN112162926A (zh) * 2020-09-30 2021-01-01 新华三大数据技术有限公司 一种自动化测试方法及装置
CN112306639B (zh) * 2020-11-11 2023-02-24 新华三大数据技术有限公司 一种虚拟桌面的测试方法及装置
CN112416769A (zh) * 2020-11-23 2021-02-26 山东乾云启创信息科技股份有限公司 云桌面场景下批量模拟用户操作的自动化测试方法及***
US11520692B1 (en) * 2021-09-08 2022-12-06 International Business Machines Corporation Performing software testing with best possible user experience
CN113890877B (zh) * 2021-09-27 2023-09-26 新华三信息安全技术有限公司 一种云测试方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239214A1 (en) * 2010-03-29 2011-09-29 Frields Paul W Mechanism for Utilizing a Virtual Machine Cloud for Automated Test System Deployment
CN102779090A (zh) * 2011-05-12 2012-11-14 中国科学院计算技术研究所 一种桌面虚拟化***性能测量方法和***
CN103248535A (zh) * 2013-04-28 2013-08-14 华为技术有限公司 一种云***测试方法及装置
CN104424093A (zh) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 一种兼容性测试方法及***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239214A1 (en) * 2010-03-29 2011-09-29 Frields Paul W Mechanism for Utilizing a Virtual Machine Cloud for Automated Test System Deployment
CN102779090A (zh) * 2011-05-12 2012-11-14 中国科学院计算技术研究所 一种桌面虚拟化***性能测量方法和***
CN103248535A (zh) * 2013-04-28 2013-08-14 华为技术有限公司 一种云***测试方法及装置
CN104424093A (zh) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 一种兼容性测试方法及***

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710378A (zh) * 2018-12-18 2019-05-03 广东微云科技股份有限公司 虚拟机的故障检测方法
CN109710378B (zh) * 2018-12-18 2023-06-02 广东微云科技股份有限公司 虚拟机的故障检测方法
CN111314131A (zh) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 任务下发方法和装置、存储介质和电子装置
CN113590403A (zh) * 2021-08-05 2021-11-02 北京百度网讯科技有限公司 压力测试方法、装置、***、电子设备、存储介质及产品
CN113590403B (zh) * 2021-08-05 2023-08-01 北京百度网讯科技有限公司 压力测试方法、装置、***、电子设备、存储介质及产品

Also Published As

Publication number Publication date
CN106406975A (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2017016212A1 (zh) 桌面云***的测试方法及装置
US10877876B2 (en) System and method for automated thin client contact center agent desktop testing
KR102158754B1 (ko) 스마트 네트워크 인터페이스 카드의 조작 방법 및 조작 장치
US10462029B2 (en) Device cloud monitoring and stability
TWI544328B (zh) 用於經由背景虛擬機器的探測***的方法及系統
US8990813B2 (en) Automated virtual machine image deployment and testing by accessing downloadable test packages and dynamically-changing test parameters
TWI516059B (zh) 主從裝置環境的部署方法與系統
US9218231B2 (en) Diagnosing a problem of a software product running in a cloud environment
US20150358392A1 (en) Method and system of virtual desktop infrastructure deployment studio
US20150339216A1 (en) Providing Testing Environments Using Virtualization
US20120066681A1 (en) System and method for management of a virtual machine environment
US10789111B2 (en) Message oriented middleware with integrated rules engine
CN105022659B (zh) 虚拟机状态控制方法与***
CN109388569B (zh) 远程检测客户端环境异常的方法、测试服务器及存储介质
JP2021509498A (ja) コンピューティング・デバイス
US10469400B2 (en) Method and apparatus for provisioning of resources to support applications and their varying demands
US9021008B1 (en) Managing targeted scripts
US9170924B2 (en) Ecosystem certification of a partner product
US20150019722A1 (en) Determining, managing and deploying an application topology in a virtual environment
US9195562B2 (en) Recording external processes
CN114168471A (zh) 测试方法、装置、电子设备及存储介质
US10360614B1 (en) Assessing and rating deployments of resources
CN115454576B (zh) 一种虚拟机进程管理方法、***及电子设备
US9342341B2 (en) Systems and methods for deploying an application and an agent on a customer server in a selected network
US9191445B2 (en) Systems and methods for managing emulation sessions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16829580

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16829580

Country of ref document: EP

Kind code of ref document: A1