English 中文(简体)
Fake FTP服务器
原标题:Fake FTP server

I m 撰写C++级,作为财务计划客户开展一些业务。 我愿为此进行一些测试,因此,我需要使用一个快车轮机服务器。

我正在寻找一个字眼,我认为我可以撰写一些文字,用于:pyftpdlib。 但是,我猜测,每次测试之后,建立和摧毁服务器会有一些缺点。

欢迎就如何易于操作C++自动测试的快车轮机服务器提出任何建议。

http://www.un.org。

我已扩大了我的搜索范围,发现,这正是我所期待的,虽然是在C++而不是在 Java撰写的。

问题回答

你们应当设计你的可测试性代码,在这种情况下,TP服务器是一种外部资源。 界定一个适应器,在您的方案和手提服务器之间。 在测试过程中,你能够使测试者适应快车轮机的反应。 现在,你还可以为偷窃服务器采取不同的行为。

If you re talking about Unit Testing, then @peer s answer is correct. You should mock up the FTP connection, because ideally your unit tests are running as part of each build and they shouldn t depend on things that are outside of the client s package.

OTOH,如果你再次谈论系统/一体化测试,那么你就应当有辅助生产环境的工作布局,包括一个FTP服务器。 我不敢肯定,为什么你们想要一个假的TP服务器来进行系统/一体化测试。 或许最好与贵客户实际使用的一个财务计划服务器接洽。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签