what is unit testing ? on which basis you will write test case ?



what is unit testing ? on which basis you will write test case ?..

Answer / Tajpal Singh

Unit testing is a type of software testing that focuses on individual units or components of a software application to ensure they function as expected. The goal of unit testing is to isolate and validate each component independently, before integrating it into the larger system. When writing a unit test case, you should: 1. Identify the input values and expected output for the unit under test. 2. Write a test method that exercises the unit with the identified input values. 3. Verify that the output produced by the unit is equal to the expected output. 4. Repeat this process for multiple test cases, covering various edge cases and error conditions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM MainFrame AllOther Interview Questions

What is the difference between the mro & isc?

1 Answers  


how do u start your process after conducting impact analysis ?

1 Answers   TCS,


what is the meaning of notcat 2?

1 Answers   IBM,


State all the file open modes?

1 Answers  


what is the difference between the jes2 and jes3

2 Answers  


does anybody know about niit technologies ? how is that company ? any body working in that company ? please answer my question.I got selected in NIIT Technologies delhi.

1 Answers  


How to find all duplicate records?

1 Answers  


how do we describe cataloged procedure and an instream procedure?

1 Answers   IBM,


hi provide info about any real time requirement in health care services mainframe applications bye ramya

2 Answers   ACS,


what are the present versions of all mainframe modules?can any body let me know pls

1 Answers  


How to define a directory?

1 Answers  


how will you find a particular line in debugging if its a infinite loop

1 Answers  


Categories