1) After I've implemented a desired functinality, they're asking me to write a JunitTest case.
I got nervous.
I haven't heard that good word "TestCase" in my career till now!
So what is a TestCase & why we are using it ?
What is the speciality of a JunitTestCase & what is unit Testing?
I want the words of people who have practical experience in this so that it may sound simple & concise.
2) One more trivia doubt.
While using Eclipse, to navigate to the next consecutive occurence of a word what is the short cut
Ctrl + ?
If i use Ctrl+F then i need to press forward to move to consecutive words.
I need a key board short cut to achieve that in Eclipse.
What is that?
I remember using that but I've forgotten it now. It's also Ctrl + ? certainly sure it's not Ctrl+F
Seeking your help.
Well I'm not a pro at JUnitTesting but it is used to test units of your project. You can design a class which will be used to test the functionality of methods of another class. It's mostly an automatic process. You just choose a class whose test case you want to design and then test cases are generated for you. Then you decide the inputs and tell the unit testing system what the expected output should be. Then you run the test case and see if the correct result was produced during runtime.
It's not very difficult. I tried it a long time ago on netbeans when I didn't had any experience. Just read an article or two on the internet ...
A test case is a list of the conditions or issues of what the tester want to test in a software. For example a group of interviewers will first identify the areas they want to ask you questions on before coming up with the specific questions.
Test case helps to come up with test data ( just like the scenario of interview above)
You can define a unit test case as a piece of code which simulates the things which are expected to happen when the code is up and running and the people are using your code. You pump in dummy values into the methods which you want to test and see how it behaves to different inputs. It is done to make sure that your code is running error free.
SCJP 5.0 and now fighting with ExtJS
Joined: Oct 13, 2005
"Yuva" please read the important administrative private message which I shall send you very soon.