Commit 259f3844 authored by Malo Toudic's avatar Malo Toudic
Browse files
parent 91f6d36e
...@@ -334,7 +334,7 @@ public class RunInstanceAction { ...@@ -334,7 +334,7 @@ public class RunInstanceAction {
execution.setCompany(Application.getCompanyKeyword()); execution.setCompany(Application.getCompanyKeyword());
execution.setLaunchDate(new Date()); execution.setLaunchDate(new Date());
execution.setSoapuiProject(currentProject); execution.setSoapuiProject(currentProject);
if (componentToExecute != null && !(componentToExecute instanceof GwtProject)) { if (componentToExecute != null) {
execution.setTestComponent((TestComponent) componentToExecute); execution.setTestComponent((TestComponent) componentToExecute);
} }
} }
......
...@@ -183,10 +183,12 @@ public class Execution implements Serializable { ...@@ -183,10 +183,12 @@ public class Execution implements Serializable {
} }
public String getTestComponentToString() { public String getTestComponentToString() {
if (testComponent instanceof GwtTestSuite) { if(testComponent != null) {
setTestComponentToString(testComponent.getLabel()); if (testComponent instanceof GwtTestCase) {
} else if (testComponent instanceof GwtTestCase) { setTestComponentToString(((GwtTestCase) testComponent).getTestSuite().getLabel() + " > " + testComponent.getLabel());
setTestComponentToString(((GwtTestCase) testComponent).getTestSuite().getLabel() + " > " + testComponent.getLabel()); } else {
setTestComponentToString(testComponent.getLabel());
}
} }
return testComponentToString; return testComponentToString;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment