Commit 259f3844 authored by Malo Toudic's avatar Malo Toudic
Browse files
parent 91f6d36e
......@@ -334,7 +334,7 @@ public class RunInstanceAction {
execution.setCompany(Application.getCompanyKeyword());
execution.setLaunchDate(new Date());
execution.setSoapuiProject(currentProject);
if (componentToExecute != null && !(componentToExecute instanceof GwtProject)) {
if (componentToExecute != null) {
execution.setTestComponent((TestComponent) componentToExecute);
}
}
......
......@@ -183,10 +183,12 @@ public class Execution implements Serializable {
}
public String getTestComponentToString() {
if (testComponent instanceof GwtTestSuite) {
setTestComponentToString(testComponent.getLabel());
} else if (testComponent instanceof GwtTestCase) {
if(testComponent != null) {
if (testComponent instanceof GwtTestCase) {
setTestComponentToString(((GwtTestCase) testComponent).getTestSuite().getLabel() + " > " + testComponent.getLabel());
} else {
setTestComponentToString(testComponent.getLabel());
}
}
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