SASUnit Examples  Version 1.5.0
_render_assertreportact.sas
Go to the documentation of this file.
1 
23 %macro _render_assertReportAct (i_sourceColumn=
24  ,i_expectedColumn=tst_exp
25  ,o_html=0
26  ,o_targetColumn=
27  );
28  IF &i_sourceColumn. EQ '^_' OR &i_sourceColumn. EQ '' THEN DO;
29  %** While actual report does not exist, render the column in error state ***;
30  &i_sourceColumn. = "&g_nls_reportDetail_048";
31  %_render_dataColumn (i_sourceColumn=&i_sourceColumn.
32  ,i_columnType=datacolumnerror
33  ,o_targetColumn=&o_targetColumn.
34  );
35  END;
36  ELSE DO;
37  href = catt ("_", put (scn_id, z3.),'_',put (cas_id, z3.),'_',put (tst_id, z3.));
38  href_act = catt (href,'_man_act');
39  %if (&o_html.) %then %do;
40  href_rep = catt (href,'_man_rep.html');
41  %end;
42  IF &i_expectedColumn. NE '^_' AND &i_expectedColumn. NE ' ' THEN DO;
43  %*** Link to reporting html, if both results exist ***;
44  i_linkColumn = href_rep;
45  i_linkTitle = "&g_nls_reportDetail_020.";
46  END;
47  ELSE DO;
48  %*** Link to expected document, if only one results exists ***;
49  %*** Document type is contained in tst_exp ***;
50  i_linkColumn = catt (href_act, &i_sourceColumn.);
51  i_linkTitle = "&g_nls_reportDetail_023.";
52  END;
53  IF tst_res=2 THEN hlp = trim (&i_sourceColumn.) !! " - &g_nls_reportDetail_022!";
54  ELSE hlp = &i_sourceColumn.;
55  %_render_dataColumn (i_sourceColumn=hlp
56  ,i_linkTitle=i_linkTitle
57  ,i_linkColumn=i_linkColumn
58  ,o_targetColumn=&o_targetColumn.
59  );
60  END;
61 %mend _render_assertReportAct;