Saturday, December 27, 2008

iTutor - Next Steps - Sequence Generation

Posted on Sunday November 23, 2008 by Bellanov Apilli

Kunal has recently showed me how the method sequences will be generated using a switch statement. As I've come to find yet again, the passing of parameters makes things more complex. My question pertains to whether or not JCute can work with variables declared locally in each test driver method.

For instance, take into account that this is the testAddItem method.

void testAddItem(int a)

case 1: {
int item = 0;

I initially have a parameter coming in (int a) but am unsure as to whether or not it is useful anymore. My question still lies in whether or not I can declare parameters I may need within each case block, as opposed to sending them all to the method declaration (where (int a) is).

Other than the above, I am beginning to see how this will come in altogether and will try to complete the test driver over the upcoming break.


  1. Yes, you should make "item" as a parameter to the testAddItem. We can then use Java Path Finder(JPF) to generate values for all the parameters in the test method.

    Kunal Taneja

  2. Ok, will do. Thanks.