Related to issue 38888: Failing SS Build
authorMartin Taal <martin.taal@openbravo.com>
Fri, 07 Dec 2018 14:29:05 +0100
changeset 7977 9785a5ae80c6
parent 7962 30dbc55fe0bf
child 7978 53b2174306c1
Related to issue 38888: Failing SS Build
Also print returned data in log
src-test/org/openbravo/test/mobile/retail/mobilecore/webservice/WebServicesHelper.java
--- a/src-test/org/openbravo/test/mobile/retail/mobilecore/webservice/WebServicesHelper.java	Fri Dec 07 11:52:23 2018 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/mobilecore/webservice/WebServicesHelper.java	Fri Dec 07 14:29:05 2018 +0100
@@ -139,14 +139,15 @@
         || !responseObject.has("requestStreamConnectionTime")
         || !responseObject.has("requestDataLoadedTime") || !responseObject.has("orders")) {
       logger.debug(responseJSON.toString());
-      fail("WS response does not contain responseDataSentTime or requestStreamConnectionTime or requestDataLoadedTime or orders keys");
+      fail("WS response does not contain responseDataSentTime or requestStreamConnectionTime or requestDataLoadedTime or orders keys, content: "
+          + responseObject);
     }
 
     if (!responseObject.has("status") || responseObject.getLong("status") != 0L) {
-      fail("WS response does not contain status key or it's different from 0");
+      fail("WS response does not contain status key or it's different from 0 " + responseObject);
     }
     if (!responseObject.has("result") || responseObject.getLong("result") != 0L) {
-      fail("WS response does not contain result key or it's different from 0");
+      fail("WS response does not contain result key or it's different from 0" + responseObject);
     }
   }