Where NUnit spot on SDLC?
In other words, we can ask when to start unit automation on project? It depends on various parameters say for example Complexity of Method(s) / API(s) or Classes in production cycle - How Method(s) API(s) / Classes are called by other Method(s) / API(s) / Classes in production cycle.
We can start NUnit automation after completion of any independent Method / API / its Class created at production and making automation continued towards parallel of development cycle of more dependent Method(s) / API(s) / Classe(s).
Now lets start NUnit Automation in 7 simple steps :
- Create New Test C# Project (Here Named TestProject) and add production class (.dll) reference.
- Add reference NUnit.Frameworkto the TestProject.
- Add attribute "TestFixture" to mark as Test Class and so NUnit GUI can recognize.
- To create Test Category / Test-Cases group, add attribute “Category” passing with CategoryName as a param say for here [Category(“TestCategory1”)].
- Add attribute “Test”to the test-cases which will teardown inside test-class.
- To implement test-case , create Object of the AUT Class and call Assert with its various methods as required.
- Save the project and Open this on NUnit GUI and last run the test.
How MS visio is used in software testing..
ReplyDelete