Skip to content

Commit

Permalink
Merge pull request #50 from pinetree408/userguide
Browse files Browse the repository at this point in the history
Add test guide for VFT
  • Loading branch information
pinetree408 committed Jun 9, 2016
2 parents 2011ea0 + 2b87fd9 commit 05991de
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ based on Eclipse plug-in

+ [Development guideline for VFT](https://github.com/pinetree408/VFT/tree/master/VFT)
+ [Class guideline for VFT](https://github.com/pinetree408/VFT/tree/master/VFT/src)
+ [Test guideline for VFT](https://github.com/pinetree408/VFT/tree/master/VFT/src/vft/test)
59 changes: 59 additions & 0 deletions VFT/src/vft/test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#Test guideline for VFT

##Test for parsing module
parsing module test case consists of 5 test methods.
+ "testParser()" tests "parse()" function
+ these test method checks that whether "parse()" function return "parser" class.
+ "testXml_parsing()" tests "xml_parsing()" function
+ these test method checks that whether "xml_parsing()" function return "parsed_Arch".
+ "testLog_parsing()" tests "log_parsing()" function
+ these test method checks that whether "log_parsing()" function return "parsed_LogData".
+ "testGet_parsed_LogData()" tests "get_parsed_LogData()" function
+ these test method checks that whether "get_parsed_LogData()" function return "parsed_LogData".
+ "testGet_pared_Arch()" tests "get_pared_arch()" function
+ these test method checks that whether "get_pared_arch()" function return "parsed_Arch".

##Test for filtering module
filtering module test case consists of 11 test methods.
+ testPrePareLogData() tests "prePareLogData()" functions.
+ these test method checks that whether "prePareLogData()" function sets "packageList" variable.
+ testSetInterface() tests "setInterface()" functions.
+ these test method checks that whether "setInterface()" function sets interface and return "true".
+ testPrePareTestCaseInfo() tests "prePareTestCaseInfo()" functions.
+ these test method checks that whether "prePareTestCaseInfo()" function sets test case and return "true".
+ testPrePareTextTreeData() tests "prePareTextTreeData()" functions.
+ these test method checks that whether "prePareTextTreeData()" function sets test case and return "true".
+ testGetGraphNode() tests "getGraphNode()" functions.
+ these test method checks that whether "getGraphNode()" function return "graphNode".
+ testGetTextualNode() tests "getTextualNode()" functions.
+ these test method checks that whether "getTextualNode()" function return "graphNode" variable.
+ testGetMethodListForTC() tests "getMethodListForTC()" functions.
+ these test method checks that whether "getMethodListForTC()" function sets "methodListForTC" variable.
+ testGetFunctionListForTC() tests "getFunctionListForTC()" functions.
+ these test method checks that whether "getFunctionListForTC()" function sets "functionListForTC" variable.
+ testFilterWrapper() tests "FilterWrapper()" functions.
+ these test method checks that whether "FilterWrapper()" function returns "FilterWrapper()" class.
+ testSetFilterRule() tests "setFilterRule()" functions.
+ these test method checks that whether "setFilterRule()" function sets "filterRule" variable and return results.
+ testSelectComponent() tests "selectComponent()" functions.
+ these test method checks that whether "selectComponent()" function sets each options and return results.

##Test for viewing module
###Test for Performance
1. Please guess where this line of log came from.
2. Use VFT at guess again.
+ Q. Was it helpful to you to understand cause of log message? (0 ~ 5)
+ Q. Did it provided smooth experience when you using it? (0 ~ 5)

###Test for function.
1. Does filtering rule select button shows 5 filtering rule correctly? (0 ~ 5)
2. When you set filtering rule, does specific option buttons made correctly? (0 ~ 5)
3. When you set all of options & filtering rule, does graph show correctly? (0 ~ 5)
4. When you set all of options & filtering rule, does texture tree show correctly? (0 ~ 5)
5. When you change all of options & filtering rule, does graph change correctly? (0 ~ 5)
6. When you change all of options & filtering rule, does texture tree change correctly? (0 ~ 5)

###How to check viewing module passes these test.
Total sum of test is 40 point.
The passing score is 30 points or more if.

3 changes: 1 addition & 2 deletions VFT/src/vft/test/filterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public void testGetFunctionListForTC() throws SAXException, IOException, ParserC
@Test
public void testFilterWrapper() throws SAXException, IOException, ParserConfigurationException {
FilterWrapper Filter = new FilterWrapper();
Filter.prePareLogData();
assertNotEquals(null, Filter.getFunctionListForTC());
assertNotEquals(null, Filter);
}

@Test
Expand Down
6 changes: 0 additions & 6 deletions VFT/src/vft/test/paserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,4 @@ public void testGet_pared_Arch() throws SAXException, IOException, ParserConfigu
assertNotEquals(null, parsedData.get_pared_Arch());
}

@Test
public void testPrint_parsed_Arch() throws SAXException, IOException, ParserConfigurationException {
parser parsedData = new parser();
assertNotEquals(null, parsedData);
}

}

0 comments on commit 05991de

Please sign in to comment.