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?
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?