diff --git a/README.md b/README.md index 60e6a29..5af4b82 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/VFT/src/vft/test/README.md b/VFT/src/vft/test/README.md new file mode 100644 index 0000000..e938b5c --- /dev/null +++ b/VFT/src/vft/test/README.md @@ -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. + diff --git a/VFT/src/vft/test/filterTest.java b/VFT/src/vft/test/filterTest.java index 0635e80..d94238a 100644 --- a/VFT/src/vft/test/filterTest.java +++ b/VFT/src/vft/test/filterTest.java @@ -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 diff --git a/VFT/src/vft/test/paserTest.java b/VFT/src/vft/test/paserTest.java index 0019801..4b8acf2 100644 --- a/VFT/src/vft/test/paserTest.java +++ b/VFT/src/vft/test/paserTest.java @@ -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); - } - }