Browse Source

Better error message and improved test data

bernhardbuhl 3 years ago
parent
commit
b302af7c15
3 changed files with 5 additions and 3 deletions
  1. 3 1
      baangt/base/HandleDatabase.py
  2. BIN
      examples/CompleteBaangtWebdemo.xlsx
  3. 2 2
      examples/globals.json

+ 3 - 1
baangt/base/HandleDatabase.py

@@ -214,7 +214,9 @@ class HandleDatabase:
         if first_value not in self.sheet_dict:
             self.sheet_dict, _ = self.__read_excel(path=fileName)
         processed_datas = self.__processRrd(first_value, second_value, evaluated_dict)
-        assert len(processed_datas)>0, "No matching data for RRD_. Please check the input file"
+        assert len(processed_datas)>0, f"No matching data for RRD_. Please check the input file. Was searching for " \
+                                       f"{first_value}, {second_value} and {str(evaluated_dict)} " \
+                                       f"but didn't find anything"
         return processed_datas[randint(0, len(processed_datas)-1)]
 
     def __process_rrd_string(self, rrd_string):

BIN
examples/CompleteBaangtWebdemo.xlsx


+ 2 - 2
examples/globals.json

@@ -8,6 +8,6 @@
     "TC.BrowserAttributes": "",
     "TC.ParallelRuns": "1",
     "TC.BrowserWindowSize": "1024x768",
-    "TC.Stage": "other",
-    "TC.LogLevel": "Info"
+    "TC.LogLevel": "Info",
+    "Stage": "Test"
 }