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

推荐订阅源

IT之家
IT之家
Engineering at Meta
Engineering at Meta
腾讯CDC
宝玉的分享
宝玉的分享
H
Help Net Security
I
InfoQ
博客园 - Franky
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
博客园_首页
美团技术团队
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
The Cloudflare Blog
博客园 - 司徒正美
Vercel News
Vercel News
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
月光博客
月光博客

博客园 - 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?