-2

I have developed unit test cases in c# using visual studio 2010 ultimate SP1, i have a requirement such that , i need to execute them without VS2010 and need to control the order and time of execution, Is there any scheduler which fulfill the said requirement.For eg : i need to execute for eg: TestCase1 for every 5 min, Testcase2 for every 10 min etc...The intention is to check load on server and performance evaluation.Unit test cases are developed for WCF operations.

Thanks in advance.

1 Answers1

1

I am not really sure what you meant by "to check load on server" but I suppose that you're talking about load testing, anyway:

I think that tool which would fulfill your requirement is Continuous Integration server.

You could set up build agent which would build your project and run tests at the end. In most of the popular CI server you can configure how often builds are executed.

If you think that configuring CI server is overkill for you. You can simply use Windows Task Scheduler. This SO Thread tell how to configure it execute task every x-minutes. Then you could run your test from standalone executor. Every unit test framework has such tool.

One more point about your tests. It seems that they're rather integration tests than unit tests since they're run on working system rather than single, isolated unit of code.

Community
  • 1
  • 1
sszarek
  • 434
  • 2
  • 12
  • A continuous integration server really doesn't feel like the right solution for a load testing problem. Why would I want to update and build my code if the goal was simply to run a suite of tests. – forsvarir Apr 27 '15 at 07:59
  • You don't really need to update and build the code. This was overview of CI capabilities. You can execute your tests only. – sszarek Apr 27 '15 at 08:01
  • Thanks folks, my intention was developing unit test case, due to lot of wiring in application i end up developing integrations test cases,hope windows task scheduler would by the suggestion for me , is it? – Vishwas Cheluva N Apr 27 '15 at 08:39
  • Yes, Task Scheduler will do in your scenario. – sszarek Apr 27 '15 at 09:00
  • I should create batch file with the commands to execute test cases right, I have many test cases. I want to execute TC's selectively on need basis, How can i select specific TC's and how can i create a batch file to execute them?? It seems silly but i am fresher to industry , i need some help – Vishwas Cheluva N Apr 27 '15 at 11:11