diff --git a/rsync_to_superx.x b/rsync_to_superx.x index 2a46819..41d347a 100755 --- a/rsync_to_superx.x +++ b/rsync_to_superx.x @@ -1,7 +1,7 @@ #!/bin/bash #Synchronisierung webapp zum Zielpfad -ant -DMODULE_PATH=$MEINMODUL_PFAD -DBASE_DIR=. -DMODULE=meinmodul all +ant -DMODULE_PATH=$QA_PFAD -DBASE_DIR=. -DMODULE=qa all diff --git a/src-modules/module/qa/datentabellen/qa_dbtest_ausfuehren.sql b/src-modules/module/qa/datentabellen/qa_dbtest_ausfuehren.sql index a33df33..fca23a9 100644 --- a/src-modules/module/qa/datentabellen/qa_dbtest_ausfuehren.sql +++ b/src-modules/module/qa/datentabellen/qa_dbtest_ausfuehren.sql @@ -95,6 +95,13 @@ select ${dbtest_assertion.tid}, A.beginn, now(), +<#if dbtest_assertion.def_col_value=""> +--Test wenn Zielspalte leer sein soll: +case when T.${dbtest_assertion.def_col_name} is null or '' || T.${dbtest_assertion.def_col_name}='' +then 0 +else 1 end +<#else> + case when T.${dbtest_assertion.def_col_name}= <#if dbtest_assertion.def_col_function !=""> ${dbtest_assertion.def_col_function}('${dbtest_assertion.def_col_value}') @@ -102,7 +109,10 @@ ${dbtest_assertion.def_col_function}('${dbtest_assertion.def_col_value}') '${dbtest_assertion.def_col_value}' then 0 -else 1 end as result_code, +else 1 end + + +as result_code, T.${dbtest_assertion.def_col_name} as result_value from tmp_anfang A left outer join tmp_rs T on (A.dbtest_id=${dbtest_assertion.dbtest_id}