Hi,
I'm testing this kind of configuration to submit run.sas program :
%initSASUnit(
i_root = &_user_path.\tests\sasunit\application
,io_target = sasval
,i_overwrite = 1
,i_project = SASUnit Examples
,i_sasunit = &_user_path.\tests\sasunit\saspgm\sasunit
,i_sasautos = source
,i_autoexec = sasut\autoexec_sasut.sas
,i_testdata = sasval\data\test
,i_refdata = sasval\data\ref
,i_crossref = 0
,i_language = en
);
%runSASUnit(i_source = &_user_path.\tests\sasunit\application\sasut_valid_tests.sas);
%reportSASUnit(
i_language =en
,o_output =sasval\rep
,o_html =1
,o_junit =1
,o_pgmdoc =1
,o_pgmdoc_sasunit =1
);
I've 2 questions :
1- I noticed that I have to change the SAS working directory to avoid the error "Invalid object specified to bridge protocol engine" :
data null;
rc=dlgcdir("&_user_path.\tests\sasunit");
put rc=;
run;
Why do I need to add this specific code ?
2-I don't how to delete these errors (PS : I wrote \xxxxxxxx\ to hide my server IP adress) :
MPRINT(REPORTSASUNIT._REPORTSCNHTML): proc print data=work._scenario_report noobs label;
MPRINT(REPORTSASUNIT._REPORTSCNHTML): var idColumn / style(column)=rowheader;
MPRINT(REPORTSASUNIT._REPORTSCNHTML): var descriptionColumn programColumn last_runColumn;
MPRINT(REPORTSASUNIT._REPORTSCNHTML): var durationColumn / style(column)=[just=right];
MPRINT(REPORTSASUNIT._REPORTSCNHTML): var resultColumn / style(column)=[background=white];
MPRINT(REPORTSASUNIT._REPORTSCNHTML): run;
ERROR: Path "ok.png" does not exist.
ERROR: Physical file does not exist, \xxxxxxxx\user_workspace\sasunit\ok.png.
ERROR: Unable to load image ok.png.
ERROR: Unable to load image ok.png; default image will be used instead.
MPRINT(REPORTSASUNIT.REPORTCASHTML): proc report data=work._current_scn nowd missing style(lines)=blindData ;
MPRINT(REPORTSASUNIT._REPORTCASHTML): columns idColumn descriptionColumn programColumn last_runColumn durationColumn resultColumn;
MPRINT(REPORTSASUNIT._REPORTCASHTML): define idColumn / display style(Column)=rowheader;
MPRINT(REPORTSASUNIT._REPORTCASHTML): define durationColumn / display style(Column)=[just=right];
MPRINT(REPORTSASUNIT._REPORTCASHTML): define resultColumn / display style(Column)=[background=white];
MPRINT(REPORTSASUNIT._REPORTCASHTML): compute before _page;
MPRINT(REPORTSASUNIT._REPORTCASHTML): line @1 "Test Cases";
MPRINT(REPORTSASUNIT._REPORTCASHTML): endcomp;
MPRINT(REPORTSASUNIT._REPORTCASHTML): run;
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
ERROR: Path "ok.png" does not exist.
Thanks in advance,
Best regards,
Benoît
Anonymous
Hi Benoît
Just take a look at my answer to ticket 224.
If you ar running SASUnit interactively there is no need and no use in running runSASUnit.sas and reportSASUnit.sas
Regards
Klaus
Hi again... currently testing the tool at a client... I have same issue both with "Error.png" in the same macro.. any hint... I would like to have a full report.... Planned for showcare to the team.. Thanks
This code run fine - using a empty SAS session...running it with the SAS UNIT Framework it will generate an print error.
33
34
35
36 proc print data=error noobs label;
37 var idColumn / style(column)=rowheader;
38 var descriptionColumn
39 programColumn
40 last_runColumn;
41 var durationColumn / style(column)=[just=right];
2 The SAS System Thursday, October 6, 2022 03:28:00 PM
42 var resultColumn / style(column)=[background=white];
43 run;
1 The SAS System Thursday, October 6, 2022 03:46:00 PM
ERROR: Path "error.png" does not exist.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.01 seconds
cpu time 0.02 seconds