Browse Source

qa_dbtests verwalten

qa_0.6_Release
Daniel Quathamer 3 years ago
parent
commit
01c0db8aad
  1. 132
      src-modules/module/qa/conf/qa.xml
  2. 6
      src-modules/module/qa/masken/37120_felderinfo.unl
  3. 1
      src-modules/module/qa/masken/37120_maske_system_bez.unl
  4. 6
      src-modules/module/qa/masken/37120_masken_felder_bez.unl
  5. 130
      src-modules/module/qa/masken/37120_maskeninfo.unl
  6. 1
      src-modules/module/qa/masken/37120_sachgeb_maske_bez.unl

132
src-modules/module/qa/conf/qa.xml

@ -488,7 +488,7 @@ notnull="false"> @@ -488,7 +488,7 @@ notnull="false">
<columns><column name="tid" type ="SERIAL" size ="10" default ="" notnull ="true" />
<column name="uniquename" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="project_id" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="project_id" type ="INTEGER" size ="10" default ="" notnull ="false" currentlyUsed="false" />
<column name="resultset_field_id" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="whereclause" type ="TEXT" size ="2147483647" default ="" notnull ="false" />
<column name="active" type ="SMALLINT" size ="5" default ="" notnull ="false" />
@ -614,6 +614,12 @@ parent="Qualitätssicherung">Abfragen zur Administration</thema> @@ -614,6 +614,12 @@ parent="Qualitätssicherung">Abfragen zur Administration</thema>
<path>$QA_PFAD/masken</path>
</src>
</maske>
<maske tid="37120" name="Datenbank-Tests planen" thema="Administration Qualitätssicherung">
<description>Datenbank-Tests planen</description>
<src>
<path>$QA_PFAD/masken</path>
</src>
</maske>
</masken>
<data-integrity>
<!-- qa_mask_execution -->
@ -725,7 +731,11 @@ delete="FALSE" displayType="select" visibleFields="name" @@ -725,7 +731,11 @@ delete="FALSE" displayType="select" visibleFields="name"
format="%s">
<relation-column from="tid" to="project_id" />
</relation>
<relation from="qa_resultset_field" to="qa_dbtest"
delete="FALSE" displayType="select" visibleFields="name"
format="%s">
<relation-column from="tid" to="resultset_field_id" />
</relation>
<!--qa_dbtest_assertion-->
<relation from="qa_dbtest" to="qa_dbtest_assertion"
delete="FALSE" displayType="select" visibleFields="name"
@ -911,6 +921,124 @@ mode="update_insert_delete_copy"> @@ -911,6 +921,124 @@ mode="update_insert_delete_copy">
</customfield>
</form>
<form name="qa_dbtest_edit"
table="qa_dbtest"
path="/edit/qa/qa_dbtest_edit.jsp"
followUp=""
caption="DB-Tests verwalten"
orderBy="name"
gotoHt=""
helpfile=""
maxRows="1"
mode="update_insert_delete_copy">
<description>In diesem Formular können Sie Datenbanktests verwalten.</description>
<filters>
<filter mandatory="true" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="name" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="resultset_field_id" visibleSize="50" nullFieldValue="" />
<customfield name="whereclause" visibleSize="80" nullFieldValue="" />
<customfield name="active" visibleSize="10" nullFieldValue="" />
<!--<customfield name="stylesheet_id" visibleSize="50" nullFieldValue="" />
<customfield name="contenttype" visibleSize="50" nullFieldValue="" />
<customfield name="output_filename" visibleSize="50" nullFieldValue="" />
<customfield name="systeminfo_id" visibleSize="50" nullFieldValue="" />-->
</form>
<form name="qa_resultset_list"
table="qa_resultset"
path="/edit/qa/qa_resultset_list.jsp"
followUp=""
caption="Ausgabetabellen verwalten"
orderBy="name"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Ausgabetabellen verwalten. Im Details-Formular können Sie Tabellen und Felder zuordnen.</description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="name" nullFieldValue="" visibleSize="30" />
<customfield name="uniquename" nullFieldValue="" visibleSize="30" />
<customfield name="active" nullFieldValue="" pattern="" visibleSize="10" />
<customfield type="link" name="Details" path="/superx/edit/qa/qa_resultset_edit.jsp" linkid="tid"/>
</form>
<form name="qa_resultset_edit"
table="qa_resultset"
path="/edit/qa/qa_resultset_edit.jsp"
followUp=""
caption="Ausgabetabellen verwalten"
orderBy="name"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Ausgabetabellen für Datenbanktests verwalten.</description>
<filters>
<filter mandatory="true" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="systeminfo_id" visibleSize="50" nullFieldValue="" />
<customfield name="name" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="active" visibleSize="10" nullFieldValue="" />
<customfield name="fromclause" visibleSize="10" nullFieldValue="" />
</form>
<form name="qa_resultset_field_list"
table="qa_resultset_field"
path="/edit/qa/qa_resultset_field_list.jsp"
followUp=""
caption="Felder in Ausgabetabellen verwalten"
orderBy="name"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Felder Ausgabetabellen verwalten. Im Details-Formular können Sie Tabellen und Felder zuordnen.</description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="name" nullFieldValue="" visibleSize="30" />
<customfield name="uniquename" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/qa/qa_resultset_field_edit.jsp" linkid="tid"/>
</form>
<form name="qa_resultset_field_edit"
table="qa_resultset_field"
path="/edit/qa/qa_resultset_field_edit.jsp"
followUp=""
caption="Felder für Ausgabetabellen verwalten"
orderBy="name"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Felder für Ausgabetabellen für Datenbanktests verwalten.</description>
<filters>
<filter mandatory="true" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="resultset_id" visibleSize="50" nullFieldValue="" />
<customfield name="name" visibleSize="50" nullFieldValue="" />
<customfield name="uniquename" visibleSize="50" nullFieldValue="" />
<customfield name="fieldclause" visibleSize="10" nullFieldValue="" />
</form>
</dbforms>
</module>

6
src-modules/module/qa/masken/37120_felderinfo.unl

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
37120^Benutzer/in^50^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,nvl(name,benutzer) from userinfo order by 2;^hidden^^
37121^Ausgabetabelle^0^0^0^150^80^1^integer^200^0^1^<<SQL>> select tid,name from qa_resultset order by 2;^^^
37122^Ausgabetabellen^100^0^0^150^300^1^char^30^0^18^^^<<SQL>> select '../edit/qa/qa_resultset_list.jsp' from xdummy;^
37123^Name^20^0^0^150^150^1^sql^50^0^0^^^^
37124^Komponente^30^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,name from systeminfo order by 2;^hidden^^
37125^Felder in Ausgabetabellen^110^0^0^150^300^1^char^30^0^18^^^<<SQL>> select '../edit/qa/qa_resultset_field_list.jsp' from xdummy;^

1
src-modules/module/qa/masken/37120_maske_system_bez.unl

@ -0,0 +1 @@ @@ -0,0 +1 @@
37120^260^

6
src-modules/module/qa/masken/37120_masken_felder_bez.unl

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
37120^37120^
37120^37121^
37120^37122^
37120^37123^
37120^37124^
37120^37125^

130
src-modules/module/qa/masken/37120_maskeninfo.unl

@ -0,0 +1,130 @@ @@ -0,0 +1,130 @@
37120^Datenbank-Tests planen^--Autor: D. Quathamer\
--Datum: 2.8.2019\
--freemarker template\
create temp table tmp_qa_dbtest (\
ord smallint,\
tid INTEGER , \
uniquename VARCHAR(255) , \
name VARCHAR(255) , \
project_id INTEGER , \
resultset_id INTEGER ,\
resultset_str varchar(255) , \
resultset_field_id INTEGER , \
resultset_field_str varchar(255) , \
whereclause TEXT , \
active SMALLINT , \
letzter_lauf date,\
nextedit varchar(255)\
);\
insert into tmp_qa_dbtest (ord,\
tid,\
uniquename,\
name,\
project_id,\
resultset_field_id,\
whereclause,\
active,\
nextedit) \
select 1 as ord,\
tid,\
uniquename,\
name,\
project_id,\
resultset_field_id,\
whereclause,\
active,\
('../edit/qa/qa_dbtest_edit.jsp|tid=' || D.tid)::varchar(255)\
FROM qa_dbtest D\
where 1=1\
/* and T.resultset_field_id=<<Ausgabetabelle>> */\
/* and T.name like '%<<Name>>%' */\
/* and T.systeminfo_id=<<Komponente>> */\
;\
\
update tmp_qa_dbtest set resultset_id=R.resultset_id,\
resultset_field_str=R.name\
from qa_resultset_field R\
where R.tid=tmp_qa_dbtest.resultset_field_id;\
\
update tmp_qa_dbtest set resultset_str=R.name\
from qa_resultset R\
where R.tid=tmp_qa_dbtest.resultset_id;\
\
update tmp_qa_dbtest set letzter_lauf=(select max(date(execution_start))\
from qa_mask_execution_result R\
where R.mask_execution_id=tmp_qa_dbtest.tid);\
\
\
-- update tmp_qa_dbtest set nextedit=trim(nextedit) || trim('&rs=' || \
--sp_get_keylist_str(<<Gruppe>>::varchar(200),'groupinfo_id'::varchar(200),'user_group_bez'::varchar(200),'userinfo_id'::varchar(200),null,null); ) \
/* update tmp_qa_dbtest set nextedit=nextedit || '&name=<<Name>>'; */ \
\
insert into tmp_qa_dbtest (ord,\
--tid,userinfo_id, benutzer,\
name, --maskeninfo_id,\
--maskeninfo_name,\
-- active,\
-- stylesheet_id,\
-- contenttype,\
-- output_filename,\
-- letzter_lauf,\
nextedit) \
select 10, --ord\
'Neuer Eintrag',\
nvl(('../edit/qa/qa_dbtest_edit.jsp|tid=' || max(tid)+1)::varchar(255),'../edit/qa/qa_dbtest_edit.jsp'::varchar(255))\
from qa_dbtest\
--where 0=(select count(*) from qa_mask_execution)\
;\
\
<@selectintotmp \
select="name,\
uniquename,\
resultset_str,\
resultset_field_str,\
active,\
letzter_lauf,\
nextedit,\
ord"\
source="tmp_qa_dbtest"\
target="tmp_qa_dbtest2">\
order by ord,name ,uniquename\
</@selectintotmp>\
<@informixnolog/>;\
\
drop table tmp_qa_dbtest;\
\
select \
name,\
uniquename,\
resultset_str,\
resultset_field_str,\
active,\
letzter_lauf,\
nextedit \
from tmp_qa_dbtest2\
;^XIL List\
drop_and_delete movable_columns sizable_columns horizontal_scrolling\
white_space_color=COLOR_WHITE fixed_columns=2\
min_heading_height=35\
Column CID=0 heading_text="Name" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=0 heading_text="Schlüssel" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=1 heading_text="Ausgabetabelle" center_heading\
row_selectable col_selectable heading_platform readonly\
width=150 text_size=200\
Column CID=1 heading_text="Ausgabefeld" center_heading\
row_selectable col_selectable heading_platform readonly\
width=150 text_size=200\
Column CID=1 heading_text="Aktiv" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
Column CID=1 heading_text="Letzter Lauf" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
Column CID=1 heading_text="Bearbeiten" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
@@@^^^Verwaltung von Datenbank Tests^drop table tmp_qa_dbtest2;^^1^440^360^0^1^^

1
src-modules/module/qa/masken/37120_sachgeb_maske_bez.unl

@ -0,0 +1 @@ @@ -0,0 +1 @@
261^37120^
Loading…
Cancel
Save