This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One interview question i faced today, any one help ?

 
jami siva
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Naresh Bafna
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
traceability matrix


ah ! thats the word
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to traceability matrices, you can also look at some of the code coverage tools

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


 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Joe Harry
Ranch Hand
Posts: 10105
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like the interviewer expected for "traceability matrix" word or some code coverage tool name.
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kj, thats encouraging
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic