Daniel Quathamer
3 years ago
6 changed files with 274 additions and 2 deletions
@ -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;^ |
@ -0,0 +1 @@ |
|||||||
|
37120^260^ |
@ -0,0 +1,6 @@ |
|||||||
|
37120^37120^ |
||||||
|
37120^37121^ |
||||||
|
37120^37122^ |
||||||
|
37120^37123^ |
||||||
|
37120^37124^ |
||||||
|
37120^37125^ |
@ -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^^ |
Loading…
Reference in new issue