InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the valuable steps to resolve issues while testing? |
|
Answer» The following steps can assist in resolving issues during testing:
|
|
| 2. |
What is the best way to set priority for test cases in TestNG? |
|
Answer» Prioritizing the order of your test methods can be accomplished by defining a priority order. Consequently, the test will execute in accordance with the priority set. Syntax: @Test(priority=2) Example: The following code demonstrates how to set the priority of a test case in TestNG. package TestNG;import org.testng.annotations.*; public class SettingPriority { @Test(priority=0) public void scalermethod1() { } @Test(priority=1) public void scalermethod2() { } @Test(priority=2) public void scalermethod3() { } } Test Execution Sequence: ScalerMethod1ScalerMethod2 ScalerMethod3 |
|
| 3. |
Is it possible to skip a method or a code block in TestNG? |
|
Answer» Yes, you can skip a particular test method or code by setting the 'enabled' parameter to ‘false’ in test annotations. @Test(enabled = false). |
|
| 4. |
What is the purpose of TestNG? |
|
Answer» The TestNG framework for Java is an open-source advanced test automation framework that is designed to benefit both testers and developers. The purpose of TestNG is to provide an easy-to-use, readable, structured, maintainable, and user-friendly environment for automated tests. NG stands for 'Next Generation' in TestNG. The high-end annotations, such as data providers, make cross-browser testing easier since you can test across multiple devices and browsers. Furthermore, the framework has an inbuilt mechanism for handling exceptions that prevent the program from terminating unexpectedly. |
|
| 5. |
Can you explain sanity testing in software testing? |
|
Answer» The term 'sanity testing' refers to a subset of regression testing. The sanity testing ensures that the changes made to the code do not adversely affect the system's performance. After the software build is received, a sanity test is conducted to ensure that the changes made to the code are working correctly. As a checkpoint, this testing is used to determine whether the build can proceed with further testing. Sanity testing focuses on validating the functionality of the application rather than detailed testing. Features
|
|
| 6. |
What do you mean by latent defect and masked defect? |
Answer»
|
|
| 7. |
What is spice in software testing? |
|
Answer» SPICE stands for Software Process Improvement and Capability Determination. In the field of software development processes, SPICE is a standard framework for assessing the efficiency and effectiveness of the development process. IEC (International Electrotechnical Commission) and ISO (International Organization for Standardization) jointly developed SPICE. |
|
| 8. |
What is defects in software testing? |
|
Answer» The term defect refers to a system error that prevents the intended action from being accomplished. Testing is most important when it comes to finding defects. Testing needs to begin early in the development process since defects can be found throughout. As shown in the following figure, defects are divided into three main categories:
|
|
| 9. |
List some of the popular software testing tools/frameworks, providing a brief description of each. |
Answer»
|
|
| 10. |
State the difference between bugs and errors |
||||||||||
|
Answer» Bugs and errors differ in the following ways:
|
|||||||||||
| 11. |
What is a bug in software testing? |
|
Answer» A software bug is an error in the software that produces wrong results. A software tester tests the software to find bugs in it. There are many causes for the bugs—for example, poor design, sloppy programming, lack of version control, or miscommunication. Throughout development, developers introduce hundreds or thousands of bugs in the system. The goal of the tester is to uncover those bugs. You can find a bug in many different ways, regardless of your role. When building the software, the software developer might notice the bug in another module, written by another developer or by themselves. The tester actively tries to find the bugs as part of a routine testing process. Finally, the users could see the bugs when the software is in production. All bugs, no matter how they are found, are recorded into a bug-tracking system. A triage team triages the bugs and assigns a priority to the bug, and assigns the bug to a software developer to fix it. Once the developer resolves the problem, they check in the code and mark that bug as ready for testing. Once a bug is ready for testing, it goes to the tester, who tests the software to verify if it’s indeed fixed. If it is, then it’s closed. If not, they assign it to the same developer with a description of the exact steps to reproduce the bug. Some examples of popular bug-tracking systems include BugZilla, FogBugz, etc. Trivia: The first software bug was discovered by Admiral Grace Hopper, on September 9, 1947. After they opened a malfunctioning piece of hardware, they found an insect stuck in the relay. Image Source: Link First Software Bug |
|
| 12. |
Explain test scenarios, test scripts, and test cases in software testing. |
Answer»
|
|
| 13. |
Is Automation testing in agile methodology useful? |
|
Answer» It is extremely beneficial to use automation testing when using the agile model in software testing. It helps in achieving maximum test coverage in a lesser time of the sprint. |
|
| 14. |
Explain black-box testing, white-box testing, and grey-box testing. |
Answer»
|
|
| 15. |
Can you describe the different types of test coverage techniques? |
|
Answer» Among the different types of test coverage techniques are:
|
|
| 16. |
Explain how does a test coverage tool work? |
|
Answer» When software is being tested, the code coverage measures how much of the program's source code is covered by the test plan. Code coverage testing runs in parallel with actual product testing. Using the code coverage tool, you can monitor the execution of statements in your source code. A complete report of the pending statements, along with the coverage percentage, is provided at the end of the final testing. |
|
| 17. |
What is regression testing in software testing? |
|
Answer» The dictionary definition of regression is the act of going back to a previous place or state. In software, regression implies that a feature that used to work suddenly stopped working after a developer added a new code or functionality to the software. Regression problems are pervasive in the software industry, as new features are getting added all the time. Developers don't build these features in isolation, separate from the existing code. Instead, the new code interacts with the legacy code and modifies it in various ways, introducing side effects, whether intended or not. As a result, there is always a chance that introducing new changes may negatively impact a working feature. It's important to keep in mind that even a small change has the potential to cause regression. Regression testing helps ensure that the new code or modifications to the existing code don't break the present behaviour. It allows the tester to verify that the new code plays well with the legacy code. |
|
| 18. |
What are the principles of software testing? |
|
Answer» Software testing is governed by seven principles:
|
|