public String getText(Object element) {
+ String text = "";
+
if(element instanceof TestSuite)
return ((TestSuite)element).getName();
- else if(element instanceof TestCase)
- return ((TestCase)element).getTestName();
- else
- return "UNKNOWN ELEMENT TYPE";
+ else if(element instanceof TestCase) {
+ text = ((TestCase)element).getTestName();
+
+ //has the form: TESTSUITENAME_TESTNAME
+
+ }
+ else
+ text = "UNKNOWN ELEMENT TYPE";
+ return text;
}