airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject airavata git commit: completing initial test framework - AIRAVATA-1652
Date Tue, 07 Apr 2015 19:48:57 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 16700506e -> 226539552


completing initial test framework - AIRAVATA-1652


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/22653955
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/22653955
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/22653955

Branch: refs/heads/master
Commit: 226539552a86fbf8e4500a869fbca43f010fbf42
Parents: 1670050
Author: Chathuri Wimalasena <kamalasini@gmail.com>
Authored: Tue Apr 7 15:48:53 2015 -0400
Committer: Chathuri Wimalasena <kamalasini@gmail.com>
Committed: Tue Apr 7 15:48:53 2015 -0400

----------------------------------------------------------------------
 .../multitenantedairavata/ExperimentExecution.java    | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/22653955/modules/test-suite/multi-tenanted-airavata/src/main/java/org/apache/airavata/testsuite/multitenantedairavata/ExperimentExecution.java
----------------------------------------------------------------------
diff --git a/modules/test-suite/multi-tenanted-airavata/src/main/java/org/apache/airavata/testsuite/multitenantedairavata/ExperimentExecution.java
b/modules/test-suite/multi-tenanted-airavata/src/main/java/org/apache/airavata/testsuite/multitenantedairavata/ExperimentExecution.java
index a12af50..807dd1d 100644
--- a/modules/test-suite/multi-tenanted-airavata/src/main/java/org/apache/airavata/testsuite/multitenantedairavata/ExperimentExecution.java
+++ b/modules/test-suite/multi-tenanted-airavata/src/main/java/org/apache/airavata/testsuite/multitenantedairavata/ExperimentExecution.java
@@ -191,8 +191,8 @@ public class ExperimentExecution {
                         String expId = event.getExperimentId();
                         String gatewayId = event.getGatewayId();
 
+                        resultWriter.println();
                         if (expState.equals(ExperimentState.COMPLETED)) {
-                            resultWriter.println();
                             resultWriter.println("Results for experiment : " + expId + "
of gateway Id : " + gatewayId);
                             resultWriter.println("=====================================================================");
                             resultWriter.println("Status : " + ExperimentState.COMPLETED.toString());
@@ -200,16 +200,17 @@ public class ExperimentExecution {
                             List<OutputDataObjectType> experimentOutputs = airavata.getExperimentOutputs(expId);
                             int i = 1;
                             for (OutputDataObjectType output : experimentOutputs) {
-
                                 System.out.println("################ Experiment : " + expId
+ " COMPLETES ###################");
                                 System.out.println("Output " + i + " : " + output.getValue());
                                 resultWriter.println("Output " + i + " : " + output.getValue());
                                 i++;
                             }
-                            resultWriter.println("################  End of Results for Experiment
: " + expId + " ###############");
+                            resultWriter.println("End of Results for Experiment : " + expId
);
+                            resultWriter.println("=====================================================================");
                             resultWriter.println();
                         } else if (expState.equals(ExperimentState.FAILED)) {
-                            // check file transfers
+                            resultWriter.println("Results for experiment : " + expId + "
of gateway Id : " + gatewayId);
+                            resultWriter.println("=====================================================================");
                             int j = 1;
                             resultWriter.println("Status : " + ExperimentState.FAILED.toString());
                             System.out.println("################ Experiment : " + expId +
" FAILED ###################");
@@ -221,13 +222,14 @@ public class ExperimentExecution {
                                 resultWriter.println("User Friendly Message : " + j + " :
" + errorDetails.getUserFriendlyMessage());
                                 resultWriter.println("Corrective Action : " + j + " : " +
errorDetails.getCorrectiveAction());
                             }
-                            resultWriter.println("################  End of Results for Experiment
: " + expId + " ###############");
+                            resultWriter.println("End of Results for Experiment : " + expId
);
+                            resultWriter.println("=====================================================================");
+                            resultWriter.println();
                         }
                         System.out.println(" Experiment Id : '" + expId
                                 + "' with state : '" + event.getState().toString() +
                                 " for Gateway " + event.getGatewayId());
                     } catch (TException e) {
-                        e.printStackTrace();
                         logger.error(e.getMessage(), e);
                     }
                 } else if (message.getType().equals(MessageType.JOB)) {


Mime
View raw message