惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
N
Netflix TechBlog - Medium
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
V
Visual Studio Blog
H
Help Net Security
Engineering at Meta
Engineering at Meta
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
博客园 - 【当耐特】
B
Blog
Stack Overflow Blog
Stack Overflow Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
博客园 - 司徒正美
博客园 - 叶小钗
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
G
Google Developers Blog
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - Gordon Golden Shining

who am I inside of me STGenerator Released ObjectDataSource的Add-In Asp.net page lifecycle explain in msdn 我做的代码生成的工具的思路 (支持.NET2.0) Programming Haskell in Visual Studio.net 2003 C#/VB.Net converter A good book to read a break in .net 2.0 remoting WinXP sp2 and win 2003 does break com+/System.Transaction 2.0 You have to read this All about codes generation New tools box for year 2005 Recommend: IOC container must read article dynamic proxy how to How to implement AOP in .net My Wishlist for .net development some common used tips in web development No refresh dropdownlist using xmlhttp callback
A possible way for testing threading/server application
Gordon Golden Shining · 2006-02-23 · via 博客园 - Gordon Golden Shining

We have our current quite large application which is  a server and so many parts as their own semaphore threading.
The thing is it then become so hard to test it now...the whole server needs to be started to have a full scheduling/queueing/running function,
mock object maybe works for really very small unit test...but for a much more complete end to end test, it is quite impossible now...

So I have this idea, because we are currently writing the server information to log to track the activities in log4net...
log4net is very fast and easy to use, but I am still struggling to find any good log viewer and filtering it...

Then logparser comes to rescue...it can easily to parse the current log text file and filtering it...

So what if I wirte my own script/C# codes, in each test case, i am refreshing the data snapshot for server to load, then I start the server for running some time, then use logparser(dll version) to filter the log4net logs text and check it....

Is this sounds a good way to do ? or any people have some other ideas about the testing for an server application?