如何模拟大型机器网络进行测试?
目前,我正在编写一个应用程序,利用 WMI 扫描 Active Directory 网络上的所有计算机。
我有兴趣在测试环境中针对所有版本的 Windows 机器测试该程序。
有没有办法在VMware或者其他东西中模拟这个环境?
有什么想法吗?
Currently, I am writing an application that utilizes WMI to scan all the computers on our Active Directory network.
I'm interested in testing the program against all flavors of Windows machines in a testing environment.
Is there a way to similuate this environment in VMware or something?
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
VMWare 运行良好,可以在一台物理计算机上托管许多虚拟计算机。您还可以将虚拟计算机放在活动目录网络上。
如果您的目标是建立一个单独的大型网络进行测试,并拥有自己的 AD 服务器,您可以使用 Amazon EC2 进行测试。这样做的优点是,一旦您设置了一组服务器,您就可以根据需要打开和关闭它们,并且只需为实际使用的时间付费(每小时 0.12 美元)。
http://aws.amazon.com/
VMWare works well and can host many virtual computers on a single physical computer. You can also put the virtual computers on your active directory network.
If your goal is to set up a separate large network for testing that has it's own AD server you can look into Amazon EC2 for testing. The advantage here is once you setup your set of servers, you can turn them on and off as needed and only pay for the time actually used ($0.12 per hour).
http://aws.amazon.com/
您可以使用网络模拟:http://en.wikipedia.org/wiki/Network_simulation
好的 GPL 工具是 http://www.nsnam.org/
You can use network simulation: http://en.wikipedia.org/wiki/Network_simulation
and good GPL tool is http://www.nsnam.org/
你有两个选择。
您可能是对的,使用 VMWare 这很容易,尝试寻找克隆工具。如果您计划复制和粘贴映像,您将遇到几个问题(计算机指南重复、网络计算机名称重复等)
您还可以通过包装要调用的 WMI 方法来“模拟”WMI 响应,实现一个接口,如果您使用 .NET(我假设您是使用 .NET)工作,请使用 Rhino Mock 或 NMock。
You have two options.
You probably have it right, with VMWare this is easy, try looking for cloning tools. If you plan on copying and pasting the image, you will get several problems (computer Guids repeated, Network Computer Names repeated, etc)
You can also "mock" the WMI response by wrapping the WMI methods that you want to call and implementing an interface, using Rhino Mock or NMock if you are working in .NET (which I assume you are).