如何模拟大型机器网络进行测试?

发布于 2024-08-19 18:56:12 字数 153 浏览 1 评论 0原文

目前,我正在编写一个应用程序,利用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

软的没边 2024-08-26 18:56:12

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/

桃气十足 2024-08-26 18:56:12

您可以使用网络模拟: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/

无法言说的痛 2024-08-26 18:56:12

你有两个选择。

  1. 您可能是对的,使用 VMWare 这很容易,尝试寻找克隆工具。如果您计划复制和粘贴映像,您将遇到几个问题(计算机指南重复、网络计算机名称重复等)

  2. 您还可以通过包装要调用的 WMI 方法来“模拟”WMI 响应,实现一个接口,如果您使用 .NET(我假设您是使用 .NET)工作,请使用 Rhino Mock 或 NMock。

You have two options.

  1. 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)

  2. 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文