Wednesday, March 11, 2009
Readings & Poster
Friday, January 30, 2009
Functionality of Driver
Referring to the sample code Suresh sent me...
static testDriver(){
sequence generation;
}
One of my supposed testMethods...
testAdd(){
testDriver()
conduct testing operations & report differences
}
My question pertains to simply calling the testDriver method in each testMethod in order to generate the sequences, as opposed to reproducing the same code found in the testDriver in each and every test method.
Friday, January 9, 2009
iTutor Approach & Other Ideas
I have also picked up the Pragmatic Thinking & Learning text Dr. Xie put on the shelf last week. I shall begin reading this weekend, as I wait for a response.
Saturday, December 27, 2008
iTutor: Method Sequences/Declarations
I met with Dr. Xie to discuss my progress on the project. We decided that I should begin writing the "examples" section on the paper as a means to confirm the correctness of my possible implementation. As such, I will create examples and what I expect their output to look like. As far as parameters that each method may require go, Dr. Xie suggested declaring methods after analyzing its contents. For now, I will write the paper and submit my writing to Kunal and Suresh for verification.
iTutor: passing of parameters
Posted on Wednesday December 03, 2008 by Bellanov Apilli
While continuing on the test driver and implementing each method's respective switch statement, the problem I've come across relates to the passing of parameters. Take the following case:
case 1:{
addItem(item);
break;
}
It simply invokes the addItem method, sending the parameter "item". As you've instructed, this parameter should go in the method declaration, which brought about another question.
In my mind, the proposed method declaration would be as follows:
addItem(int a, int item1, int item2, int item3, ... )
iTutor - Next Steps - Sequence Generation
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;
stObj.add(item);
taObj.add(item);
break;
}
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.iTutor, Toster, & Next Steps
I met with Suresh and Kunal today to discuss the contents of a poster I will be creating, as well as my progress regarding the tool. As far as the poster is concerned, we decided on following a similar format to one of Kunal's previous works. Although we technically do not have results (which we are unsure as to what a "result" is), we do have a solid methodology, which we will stress in the poster.
Regarding the iTutor tool, I have compiled all of the elements (from both TA & ST) solutions into a data structure and am focusing on writing them out to the test driver. I should also be able to generate a skeleton with my data structure and will do so after my current task. I went ahead and addressed the issue of having multiple parameters so the tool can keep track of that as well. The problem we encountered regarded testing void methods. The solution we came up with involved invoking the constructor in each solution, calling the void method, and then checking for any changes present within methods containing return values. Another problem we discussed pertained to non-primitive types, where we decided an "equals" method would be predefined in the TA solution.
I am now faced with:
1) Generating Test Cases
2) Using JPF to execute test cases
3) Using Kunal's poster as a basis for my current poster