Differentiate unit testing and integration testing.
Answer:
Sr. No.
Key
Unit Testing
Integration Testing
1
Definition
Unit testing is the testing where primarily single module is tested or it checks if the small piece of code is doing what it is supposed to do.
On other hand Integration testing is the testing where multiple modules are tested to verify that if different pieces of the modules are working together as per expectation or not.
2
Focus Area
In case of Unit testing as single module is going to be tested at a time so focus of tester is on internal design of the application as well.
On other hand in case of Integration testing multiple modules get integrated and are tested as a single module so tester focus more on integrated functionality rather on internal design of the application.
3
Perform stage
Unit testing is performed at the first stage of testing as it is performed first of all other testing processes.
On other hand Integration testing is performed after all modules get integrated are done with unit tested i.e Integration testing is done after unit testing and before System testing.
4
Abbreviation
Unit testing is also known as white box testing.
On other hand Integration testing is known as black box testing.
5
Tester
As unit testing as mentioned in above points performed at first stage of testing so generally performed by developers.
While Integration testing is done after all modules get integrated and thus performed by Testers.
6
Defect Detection
In unit testing the detection of defects is comparatively easy as single module interaction at a time.
While in case of Integration testing detection of defects is comparatively difficult as compare to Unit testing.
Q.Enlist three drawbacks of software testing.
Answer:
• Software testing can be hard, difficult, complicated, time-consuming but only if it is not done in the right way
• Software testing requires highly skilled and trained professionals
• Everything in software testing cannot be automated
• Lack of focus from the testers end can lead to bugs and errors in the software
• Debugging the test script is not easy and sometimes becomes a major issue
• The poorly estimated budget of the project increases budget costs
Differentiate unit testing and integration testing.
Answer:
Q.Enlist three drawbacks of software testing.
Answer:
• Software testing can be hard, difficult, complicated, time-consuming but only if it is not done in the right way
• Software testing requires highly skilled and trained professionals
• Everything in software testing cannot be automated
• Lack of focus from the testers end can lead to bugs and errors in the software
• Debugging the test script is not easy and sometimes becomes a major issue
• The poorly estimated budget of the project increases budget costs