Testing - Interview Questions and Answers for 'Testing' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   
 Q31. What is the sequence in which you write different types of autmated test cases ?Testing
Ans. Junits or Unit Tests
Integration Tests
End to End Automation if required

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q32. What is the sequence in which you write different types of autmated test cases ?Testing
Ans. Junits or Unit Tests
Integration Tests
End to End Automation if required
Stress / Load Tests if required

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q33. Does it make sense to mock integration calls during stress / load test ?Testing
Ans. No, its usually not done.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     integration testing  stress testing  mocking  Mockito


 Q34. what is the testcase techniqueTesting
 This question was recently asked at 'HCL Technologies'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q35. How to work with dynamic webtable ?Testing
Ans. List lists=driver.FindElements(xpath);
int row= lists.size();

List lists=driver.FindElements(xpath);
int column= lists.size();

String value=Rowtable.FindElement(xpath);
system.out.println(value);

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Selenium     Asked in 1 Companies


 Q36. can we write multiple CATCH in webdriver code?Testing
Ans. A try block can be followed by one or more catch blocks. Each catch block must contain a different exception handler. So, if you have to perform different tasks at the occurrence of different exceptions, use java multi-catch block.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     webdriver     Asked in 1 Companies


 Q37. What is a difference between JUnit 3 and 4 ?Junit
 This question was recently asked at 'Conde Nast'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     testing  junit     Asked in 1 Companies


 Q38. How would you test a Twitter application ? Testing
 This question was recently asked at 'Slalom'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     solution  testing     Asked in 1 Companies


 Q39. If you are asked to test an application without any documentation, What type of testing will you do ?Testing
Ans. White Box Testing
Unit Testing
Ad Hoc Testing

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q40. What is stress testing ?Testing
Ans. Stress testing is a software testing activity that determines the robustness of software by testing beyond the limits of normal operation.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q41. Can we mock private methods ?PowerMock
Ans. Yes, using Power Mock.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     mockito  mocking  testing


 Q42. Can we pass the junit test if the tested method throws the exception ? and Should we do that ?Junit
Ans. Yes, We can pass the test even if the tested method throws an exception.

One way is know as exception testing in which the tested method is expected to throw exception and hence the expectation is set accordingly.

@Test(expected = IndexOutOfBoundsException.class)
public void test(){}

Other way is to just ignore if the tested code throws an exception. In that case , we can enclose the tested method call in the try block and within exception block, we just return gracefully.

Exception testing is perfectly ok to be done as we would like test code in case an exception occurs and if the code is handling the exception properly. Ignoring the exception by putting the tested method call within try block isn't something normal and should be avoided.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Junit exception testing


 Q43. Which of following annotation is used to initialize objects before executing set of tests ?Junit
a. @Test
b. @Ignore
c. @After
d. @Before

Ans.d. @Before

previous 30   

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: