Test | Parser test - unrecognized argument |
---|
Description | This test checks GNU Parser for use of unrecognized argument. |
---|
Conditions | Argument must be one of given in tables above. |
---|
Test procedure | - Pass the argument to CLI "-l"
- Compare result with expected result
|
---|
Expected results | Output string: "Encountered exception while parsing using GnuParser:\nUnrecognized option: -l" |
---|
|
Test | Analyze Fault Tree - no tree loaded |
---|
Description | This test checks correctness of Fault Tree Analysis. |
---|
Conditions | No tree loaded. |
---|
Test procedure | - Pass the argument to CLI "-a"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "There is no tree that I could analyze." |
---|
|
Test | Check the Cohesion of Event Tree - no tree loaded |
---|
Description | This test checks cohesion of Event Tree. |
---|
Conditions | No tree loaded. |
---|
Test procedure | - Pass the argument to CLI "-c"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "There is no tree that I could analyze." |
---|
|
Test | Get Fuzzy Importance Index of Fault Tree - no tree loaded |
---|
Description | This test gets fuzzy importance index of fault tree. |
---|
Conditions | No tree loaded. |
---|
Test procedure | - Pass the argument to CLI "-i"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "There is no tree that I could analyze." |
---|
|
|
Test | Load Event Tree - wrong tree |
---|
Description | This test checks Event Tree loading from file. |
---|
Conditions | - |
---|
Test procedure | - Pass the argument to CLI "-e wrong.xml"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nRead Event Tree file from: wrong.xml Fail" |
---|
|
Test | Load Fault Tree - wrong tree |
---|
Description | This test checks Fault Tree loading from file. |
---|
Conditions | - |
---|
Test procedure | - Pass the argument to CLI "-f wrong.xml"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nRead Fault Tree file from: wrong.xml Fail" |
---|
|
Test | Load Event Tree - correct tree |
---|
Description | This test checks Event Tree loading from file. |
---|
Conditions | - |
---|
Test procedure | - Pass the argument to CLI "-e treeXmltest2.xml"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nRead Event Tree file from: treeXmltest2.xml Success" |
---|
|
Test | Check Cohesion of Event Tree |
---|
Description | This test checks cohesion of Event Tree. |
---|
Conditions | Sucesfully load Event Tree from file. |
---|
Test procedure | - Pass the argument to CLI "-e treeXmltest2.xml -c"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nRead Event Tree file from: treeXmltest2.xml Success\n"Result of the analysis Events Tree: \nEvents tree is ok" |
---|
|
Test | Check Report generation |
---|
Description | This test checks report generation. |
---|
Conditions | - |
---|
Test procedure | - Pass the argument to CLI "-r Report.odt"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nCreated file: Report.odt" |
---|
|
Test | Load Fault Tree - correct tree |
---|
Description | This test checks Fault Tree loading from file. |
---|
Conditions | - |
---|
Test procedure | - Pass the argument to CLI "-f exampleFaultTree.xml"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nRead Fault Tree file from: exampleFaultTree.xml Success" |
---|
|
Test | Get Fuzzy Importance Index of Fault Tree |
---|
Description | This test gets fuzzy importance index of fault tree. |
---|
Conditions | Sucesfully loaded Fault Tree. |
---|
Test procedure | - Pass the argument to CLI "-f exampleFaultTree.xml -i"
- Call the method
- Compare result with expected result
|
---|
Expected results | Output string: "\nRead Fault Tree file from: exampleFaultTree.xml Success\nResult of the analysis Fault Tree: \nKey: root = Value: " |
---|