Answered by:
question in about code test

Question
-
hi
i have a question in about code test
i want understant , what is this Sentence ?
"code must have the potential test by the programmer"
please help me
thanks
Monday, April 16, 2012 1:58 PM
Answers
-
Hi,
This sentence means
Your code must be tested potentially by the programmer against a set of requirements that were placed by the customer before it is released to the market or customer. It must undergo rigourous unit tests, load tests, etc before being released and pass all the potential tests a programmer is able to perform to test his code. Each programmer must follow the pattern laid down for programming by the software organization right from the idea of design, planning, requirements to final release and maintenance which makes testing a part of practices to programming.
For more information visit
http://en.wikipedia.org/wiki/Embedded_system
http://www.cs.ucl.ac.uk/staff/A.Finkelstein/advmsc/4.pdf
http://en.wikipedia.org/wiki/Extreme_programming
http://en.wikipedia.org/wiki/Software_testing
Please mark as answer if this helps you or unpropose as answer if it does not help you.
Thanks Rehan Bharucha - The Tech Robot (MCTS, MCITP, MCPD, MCT, MCC)
- Edited by REHAN BHARUCHA Monday, April 16, 2012 4:29 PM
- Proposed as answer by MusicDemon Monday, April 16, 2012 7:27 PM
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 4:28 PM -
Despite the generic phrasing, I think it means that your "code" - should read class or classes or class hierarchy - should be loose coupled and the class(es) itself should have a high cohesion. See this Patterns in Practice article. Such classes are easier to test. Especially when we consider using automated unit tests.
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 2:08 PM -
Hi,
In simple words,
As a programmer you write a piece of code, but how do you guarantee it will not break in any case and With developer point of view it can be done through Unit Test, It can be performed various free available frameworks likeMSTest, NUnit , ...etc.
There are software developement process like TDD which makes you writing test case first. as Stefen Hoffman mentioned above for this you application should follow OOAD principles to be able to test easy.
I hope this helps you.
If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".
- Edited by Kris444 Monday, April 16, 2012 4:56 PM
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 4:55 PM -
Hi vahidbakhtiary,
The sentence you cite makes no sense to me. It contains words like "code", "test", or "programmer", which could be interpreted at large as having to do with some kind of testing, but - per se - the sentence is inconclusive. Therefore: could you please provide some context? Also: Is this your translation from some other language?
Marcel
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 6:07 PM -
Like the others have said the sentence is not really English so it is very difficult to help, 'potential' is a real problem here unless it is a business phrase. I believe that this means you should provide code and automated tests Unit tests.
class MyClass { public int i; }
class MyClassTest { public void Test1() { .. test something ... }}
There is a number of frameworks available to automate this testing. If you using Visual Studio you can add a test project and you can then use the VS to build unit test infrastructure automatically. You will be surprised at the number of test shells it will generate. It is up to you to generate the real logic.
I have used the Visual Studio test framework and Nunit. Providing unit test classes ensures that you code will work and continue to work in the face of change.
Ta Ken
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Tuesday, April 17, 2012 12:47 AM
All replies
-
Despite the generic phrasing, I think it means that your "code" - should read class or classes or class hierarchy - should be loose coupled and the class(es) itself should have a high cohesion. See this Patterns in Practice article. Such classes are easier to test. Especially when we consider using automated unit tests.
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 2:08 PM -
Hi,
This sentence means
Your code must be tested potentially by the programmer against a set of requirements that were placed by the customer before it is released to the market or customer. It must undergo rigourous unit tests, load tests, etc before being released and pass all the potential tests a programmer is able to perform to test his code. Each programmer must follow the pattern laid down for programming by the software organization right from the idea of design, planning, requirements to final release and maintenance which makes testing a part of practices to programming.
For more information visit
http://en.wikipedia.org/wiki/Embedded_system
http://www.cs.ucl.ac.uk/staff/A.Finkelstein/advmsc/4.pdf
http://en.wikipedia.org/wiki/Extreme_programming
http://en.wikipedia.org/wiki/Software_testing
Please mark as answer if this helps you or unpropose as answer if it does not help you.
Thanks Rehan Bharucha - The Tech Robot (MCTS, MCITP, MCPD, MCT, MCC)
- Edited by REHAN BHARUCHA Monday, April 16, 2012 4:29 PM
- Proposed as answer by MusicDemon Monday, April 16, 2012 7:27 PM
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 4:28 PM -
Hi,
In simple words,
As a programmer you write a piece of code, but how do you guarantee it will not break in any case and With developer point of view it can be done through Unit Test, It can be performed various free available frameworks likeMSTest, NUnit , ...etc.
There are software developement process like TDD which makes you writing test case first. as Stefen Hoffman mentioned above for this you application should follow OOAD principles to be able to test easy.
I hope this helps you.
If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".
- Edited by Kris444 Monday, April 16, 2012 4:56 PM
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 4:55 PM -
Hi vahidbakhtiary,
The sentence you cite makes no sense to me. It contains words like "code", "test", or "programmer", which could be interpreted at large as having to do with some kind of testing, but - per se - the sentence is inconclusive. Therefore: could you please provide some context? Also: Is this your translation from some other language?
Marcel
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Monday, April 16, 2012 6:07 PM -
Like the others have said the sentence is not really English so it is very difficult to help, 'potential' is a real problem here unless it is a business phrase. I believe that this means you should provide code and automated tests Unit tests.
class MyClass { public int i; }
class MyClassTest { public void Test1() { .. test something ... }}
There is a number of frameworks available to automate this testing. If you using Visual Studio you can add a test project and you can then use the VS to build unit test infrastructure automatically. You will be surprised at the number of test shells it will generate. It is up to you to generate the real logic.
I have used the Visual Studio test framework and Nunit. Providing unit test classes ensures that you code will work and continue to work in the face of change.
Ta Ken
- Marked as answer by Bob ShenModerator Tuesday, May 1, 2012 3:39 AM
Tuesday, April 17, 2012 12:47 AM