*
The moose likes Jobs Discussion and the fly likes One interview question i faced today, any one help ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Careers » Jobs Discussion
Bookmark "One interview question i faced today, any one help ?" Watch "One interview question i faced today, any one help ?" New topic
Author

One interview question i faced today, any one help ?

jami siva
Ranch Hand

Joined: Oct 16, 2009
Posts: 63
Hi,

Today I attended one interview , in secound round she asked me question like this,
For ex , in BRD Document there are 10 points are there, you developed code based on BRD Document, and in Unit testing how you ensure your code satisfyes all the Points.

for this
I said like this, i will write test cases for all these 10 points, i have to test based on those test cases.

Again she asked me like this.
Even in your test cases if you missed out to write 6th point in BRD as an Unit Test case, how you ensure your code reaches all the points.

Is any strategy is there behind this to did Unit testing based on BRD Document.


Any help, highly appriciate...



Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Even in your test cases if you missed out to write 6th point in BRD as an Unit Test case, how you ensure your code reaches all the points.


There is no tool that can match a requirements document with a JUNIT test case. You answer seems fair and the interviewer seems to want to get a very particular answer from you. One of the projects I worked on had an excel sheet that tracked requirements to functionality to test cases. I cannot remember what the excel sheet was named, but it was supposed to be some sort of standard that project managers in the organization followed. I guess the interviewer was looking for an answer that named the process / excel sheet that allows you to track this.

Standards are there to put in place a process but usually I find that the process is never followed dutifully because it is almost always a painful drag on the entire team. Change in requirement -> Change to plan -> Change to excel sheet and so on, and this chain is usually not updated after a few changes in requirements.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Naresh Bafna
Ranch Hand

Joined: Mar 23, 2007
Posts: 35
Deepak Bala wrote:
I cannot remember what the excel sheet was named, but it was supposed to be some sort of standard that project managers in the organization followed



We call it traceability matrix that connects the requirements in BRD, to the design, java classes and test cases..

Updating it when the requirements keep changing is a bit hard but if the major requirements are frozen then it is good enough.


SCJP 5 - 94%
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

traceability matrix


ah ! thats the word
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3219
In addition to traceability matrices, you can also look at some of the code coverage tools

http://java-source.net/open-source/code-coverage



Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

code coverage is a bit of a dark art, some swear by it and others doubt the results, but in my opinion it is a useful tool and handy extension to your testing toolbelt.
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3219
David O'Meara wrote:code coverage is a bit of a dark art, some swear by it and others doubt the results, but in my opinion it is a useful tool and handy extension to your testing toolbelt.


very true.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Well, sorry for hijacking the thread, but I'm not aware of test case, traceability matrices and BRD(??) things. I work for small company and unfortunately our organization doesn't follow this practice. So how much this affect my interview process/employment chances with prospective employer?


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9381
    
    2

Sagar Rohankar wrote:Well, sorry for hijacking the thread, but I'm not aware of test case, traceability matrices and BRD(??) things. I work for small company and unfortunately our organization doesn't follow this practice. So how much this affect my interview process/employment chances with prospective employer?


The traceability matrix will essentially be maintained by testing team. You will only update that as a developer. From a developer's perspective, it is the JUnit test scenarios that matter most.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Thanks Jothi.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
It looks like the interviewer expected for "traceability matrix" word or some code coverage tool name.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Sagar Rohankar wrote:Well, sorry for hijacking the thread, but I'm not aware of test case, traceability matrices and BRD(??) things. I work for small company and unfortunately our organization doesn't follow this practice. So how much this affect my interview process/employment chances with prospective employer?


As long as you can convince the interviewer about how you can ensure for quality code with less defects it will not affect your interview or employment chances.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Thanks Kj, thats encouraging
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: One interview question i faced today, any one help ?