Browse Source

Remove obsolete file, Empty values in dbtest assertions #4

qa_0.7_Release
Daniel Quathamer 5 months ago
parent
commit
1a25908b02
  1. 2
      rsync_to_superx.x
  2. 12
      src-modules/module/qa/datentabellen/qa_dbtest_ausfuehren.sql

2
rsync_to_superx.x

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#Synchronisierung webapp zum Zielpfad #Synchronisierung webapp zum Zielpfad
ant -DMODULE_PATH=$MEINMODUL_PFAD -DBASE_DIR=. -DMODULE=meinmodul all ant -DMODULE_PATH=$QA_PFAD -DBASE_DIR=. -DMODULE=qa all

12
src-modules/module/qa/datentabellen/qa_dbtest_ausfuehren.sql

@ -95,6 +95,13 @@ select
${dbtest_assertion.tid}, ${dbtest_assertion.tid},
A.beginn, A.beginn,
now(), 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}= case when T.${dbtest_assertion.def_col_name}=
<#if dbtest_assertion.def_col_function !=""> <#if dbtest_assertion.def_col_function !="">
${dbtest_assertion.def_col_function}('${dbtest_assertion.def_col_value}') ${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}' '${dbtest_assertion.def_col_value}'
</#if> </#if>
then 0 then 0
else 1 end as result_code, else 1 end
</#if>
as result_code,
T.${dbtest_assertion.def_col_name} as result_value T.${dbtest_assertion.def_col_name} as result_value
from tmp_anfang A left outer join tmp_rs T from tmp_anfang A left outer join tmp_rs T
on (A.dbtest_id=${dbtest_assertion.dbtest_id} on (A.dbtest_id=${dbtest_assertion.dbtest_id}

Loading…
Cancel
Save