Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Ho do we select Valid/Interesting values for a test case?

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ho do we select Valid/Interesting values for a test case?

    I am doing research on automatic generation of test cases based on Junit rules framework. I developed a new tool i.e. automatically generating test cases for Java bean naming conventions(getters and setters). It generating test cases for only those methods. In market we have different types semi-automatic test tools . I tried a different one through JavaBean naming conventions, Reflection API and parameter space partition. It is working perfectly. But i am confused in what type of parameter values have to give for testing methods of given code.
    My question: How do we select valid/intersting values for the test case?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Ho do we select Valid/Interesting values for a test case?

    I would suspect choosing test cases which can cover as many code execution paths as possible would be a good place to start, but that is by no means an end-all answer. Creating good test cases is a very difficult problem, even when they are written by people.

Similar Threads

  1. Ho do we select Valid/Interesting values for a test case?
    By subbuchavala in forum Java Theory & Questions
    Replies: 2
    Last Post: August 15th, 2011, 11:52 AM
  2. This is Cool and interesting but i failed
    By Jhovarie in forum Java SE APIs
    Replies: 0
    Last Post: March 6th, 2011, 11:10 PM
  3. Ranging Case Values in Switch Construct
    By WhiteSoup12 in forum Loops & Control Statements
    Replies: 1
    Last Post: February 6th, 2011, 11:50 AM
  4. Again Interesting JButton query
    By ravjot28 in forum AWT / Java Swing
    Replies: 0
    Last Post: January 14th, 2010, 11:22 AM
  5. Get <SELECT> tag values on other jsp page
    By nehakuls in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: November 18th, 2009, 02:29 AM