The following documentation contains test scripts
and expected results for validating the CDISC Builder
Fmtsum
tool. Do the following to verify proper
installation:
- Start CDISC Builder application by double
clicking on the desktop icon.
-
Perform each test by performing the steps specified
by the instructions.
- Evaluate the results of each step by comparing
them with results described in the Documentation
column.
| Script
|
Description
|
Documentation
|
| Source
Data |
Type
invalid path.
Navigate
to location with no SAS datasets.
Path
name that is longer than 200 characters.
Use
[...] path navigation.
|
Instructions
1
|
| Data
Sets |
List
of datasets match what is in the selected path.
Verify
preview button with a separate PROC PRINT.
Verify
select all button toggle.
Verify
CDISC button selection of all CDISC type datasets.
|
Instructions
2
|
| Format
Path |
Format
path greater than 200.
Verify
Format invalid path.
Verify
path with out format catalog.
Verify
[...] button containing formats.
|
Instructions
3
|
| Back
Code |
Verify
invalid path.
Verify
full path and name longer than 200 characters.
Default
name is "fmtsum_" concatenate with name of
selected data with file extension of .sas.
Verify
the [...] button navigation and path assignment.
|
Instructions 4
|
|
Output
|
Verify
default output file is fmtsum.html in current
default directory.
Verify
name that is long over 200 characters. Proper
warning message is presented.
Verify
the [...] returns the correct path
|
Instructions 5
|
| OK/Cancel |
OK
button applies all selected parameters.
Memory
of all fields is retained.
Cancel
does not apply logic.
|
Instructions 6 |
| Save
Code |
Program
is saved with proper comments
Generated
program is submitted and results verified
|
Instructions 7 |
Notes:
-
Create
the following path if it does not already exist.
"c:\temp\cdiscbld\input\fmtsum".
"c:\temp\cdiscbld\output\fmtsum".
-
Submit
the following program:
libname testlib 'c:\temp\cdiscbld\input\fmtsum'
data testlib.ae;
set sashelp.shoes;
run;
data testlib.dm;
set sashelp.company;
run;
data testlib.cm;
set sashelp.manage;
run;
data testlib.ae1;
set sashelp.manage;
run;
Instructions
1
Start the CDISC Builder application from the icon in
desktop.
-
Click
FMTSUM to open FMTSUM screen.
-
Clear
the value in "Source Data" field. Click on
the Enter button.
-
Verify
there is a warning message displayed
-
Type
an invalid path such as
"C:\temp\cdiscbld\invalid" in "Source
Data" field. Click on the Enter button.
-
Verify
there is a warning message displayed
-
Choose
a source data path by clicking on [...] button.
Navigate to a path that does not have any datasets.
-
Verify
the list of datasets is empty.
-
Create a
folder with the name is longer than 200 characters, such
as:
-
Click on
[...] button next to Source Data text input.
-
Navigate to
that folder and click 'OK' button.
-
Verify that
there is a warning message:
-
Click OK
button to close this message.
-
Click on
[...] button next to Source Data text input.
-
Navigate to
folder that contains some datasets, such as: "input\fmtsum"
folder.
-
Verify that
some datasets will be displayed in Data Sets list box.
Instructions
2
Start the CDISC Builder application from the icon in
desktop.
-
Navigate
to "C:\temp\cdiscbld\input\fmtsum". Verify
there are 4 datasets : "AE", "CM",
"DM" and "AE1" in this folder.
-
Click
FMTSUM to open FMTSUM screen.
-
Type
"C:\temp\cdiscbld\input\fmtsum" in the
"Source Data" field. Click on the Enter
button.
-
Verify
there are 4 datasets listed above in list of
datasets:
-
Choose
"AE" dataset. Click Preview button.
Verify there is a report displayed to show the content of
this dataset.
-
Submit
the following program:
libname
testlib "C:\temp\cdiscbld\input\fmtsum";
proc
print data=testlib.ae;
run;
-
Verify that
the result of clicking on Preview button is similar with
the result of proc print command.
-
Click Select
All button. Verify all datasets are selected.
-
Click Select
All button again. Verify all datasets are
deselected.
-
Click CDISC
button. Verify all CDISC datasets are selected.
-
Click CDISC
button again. Verify all CDISC datasets are
deselected.
Instructions
3
Start the CDISC Builder application from the icon
in desktop.
-
Navigate
to "C:\temp\cdiscbld\input\fmtsum".
Delete format catalog if it exists.
-
Click
FMTSUM to open FMTSUM screen.
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Source
Data" field. Click on the Enter button.
-
Create a
folder with the name is longer than 200 characters, such
as:
-
Click on
[...] button next to "Format Path" text input.
-
Navigate to
that folder and click 'OK' button.
-
Verify that
there is a warning message:
-
Click OK
button to close this message.
-
Type
"C:\temp\cdiscbld\input\invalid" in
"Format Path" field.
-
Click OK
button. Verify there is a warning message
displayed.
-
Click
OK button to close this message.
-
Type
"C:\temp\cdiscbld\input\fmtsum"
in "Format Path" field.
-
Click
OK button. Verify there is a warning message
displayed.
-
Click
OK button to close this message.
-
Submit
the following program:
libname inlib 'C:\temp\cdiscbld\input\fmtsum';
proc format library=inlib;
value $cfmt
"TOKYO" = "TOKYO Format"
"LONDON" = "LONDON Format"
;
run;
-
Click
on [...] button near the "Format Path" field.
-
Navigate
to "C:\temp\cdiscbld\input\fmtsum".
-
Click
OK button. Verify there is no warning message.
Instructions
4
Start the CDISC Builder application from the icon
in desktop.
-
Click
FMTSUM to open FMTSUM screen.
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Source
Data" field. Click on the Enter button.
-
Submit
the following program:
libname inlib 'C:\temp\cdiscbld\input\fmtsum';
proc format library=inlib;
value $cfmt
"TOKYO" = "TOKYO Format"
"LONDON" = "LONDON Format"
;
run;
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Format
Path" field.
-
Type
"C:\temp\cdiscbld\input\invalid" in "Back
Code" field.
-
Click
OK button. Verify there is a warning message
displayed.
-
Click
OK button to close this message.
-
Create a
folder with the name is longer than 200 characters, such
as:
-
Click on
[...] button next to "Back Code" text input.
-
Navigate to
that folder and type "backcode.sas" in
"File Name". Click Save button.
-
Verify that
there is a warning message:
-
Click OK
button to close this message.
-
Clear value
in "Back Code" field.
-
Choose
"CM" dataset. Verify "fmtsum_cm.sas"
is displayed in "Back Code" field.
-
Click
on [...] button near the "Back Code" field.
-
Navigate
to "C:\temp\cdiscbld\input\fmtsum". Type
"backcode.sas" in "File Name".
Click Save button.
-
Verify
"C:\temp\cdiscbld\input\fmtsum\backcode.sas" is
displayed in "Back Code" field.
Instructions
5
Start the CDISC Builder application from the icon
in desktop.
-
Click
FMTSUM to open FMTSUM screen.
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Source
Data" field. Click on the Enter button.
-
Submit
the following program:
libname inlib 'C:\temp\cdiscbld\input\fmtsum';
proc format library=inlib;
value $cfmt
"TOKYO" = "TOKYO Format"
"LONDON" = "LONDON Format"
;
run;
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Format
Path" field.
-
Type
"C:\temp\cdiscbld\input\fmtsum\backcode.sas" in
"Back Code" field.
-
Clear
value in "Output" field.
-
Click
Cancel button.
-
Click
FMTSUM icon again.
-
Verify
"Output" field contains "fmtsum.html"
with the current path.
-
Create a
folder with the name is longer than 200 characters, such
as:
-
Click on
[...] button next to "Output" text input.
-
Navigate to
that folder and type "fmtsum.html" in
"File Name". Click Save button.
-
Verify that
there is a warning message:
-
Click OK
button to close this message.
-
Click on
[...] button next to "Output" field.
-
Navigate to
"C:\temp\cdiscbld\input\fmtsum" and type
"fmtsum.html" in "File Name". Click
Save button.
-
Verify
"C:\temp\cdiscbld\input\fmtsum\fmtsum.html" is
displayed in "Output" field.
Instructions
6
Start the CDISC Builder application from the icon
in desktop.
-
Click
FMTSUM to open FMTSUM screen.
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Source
Data" field. Click on the Enter button. Choose
"DM" from list of datasets.
-
Submit
the following program:
libname inlib 'C:\temp\cdiscbld\input\fmtsum';
proc format library=inlib;
value $cfmt
"TOKYO" = "TOKYO Format"
"LONDON" = "LONDON Format"
;
run;
data inlib.dm;
set inlib.dm;
format level2 $cfmt.;
run;
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Format
Path" field.
-
Type
"C:\temp\cdiscbld\output\fmtsum\backcode.sas" in
"Back Code" field.
-
Type
"C:\temp\cdiscbld\output\fmtsum\fmtsum.html" in
"Output" field.
-
Click
OK button.
-
Verify
a report is displayed to show the format of this
dataset.
-
Navigate
to "C:\temp\cdiscbld\output\fmtsum".
Verify "fmtsum.html" is created.
-
Delete
this html file.
-
Click
Back to back to main screen.
-
Click
FMTSUM to open FMTSUM again.
-
Verify
all valued inserted from step 2 to 6 are displayed in
screen.
-
Click
Cancel button.
-
Verify
there is no report displayed.
-
Navigate
to "C:\temp\cdiscbld\output\fmtsum".
Verify "fmtsum.html" is not created.
Instructions
7
Start the CDISC Builder application from the icon
in desktop.
-
Click
FMTSUM to open FMTSUM screen.
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Source
Data" field. Click on the Enter button. Choose
"DM" from list of datasets.
-
Submit
the following program:
libname inlib 'C:\temp\cdiscbld\input\fmtsum';
proc format library=inlib;
value $cfmt
"TOKYO" = "TOKYO Format"
"LONDON" = "LONDON Format"
;
run;
data inlib.dm;
set inlib.dm;
format level2 $cfmt.;
run;
-
Type
a path such as
"C:\temp\cdiscbld\input\fmtsum" in "Format
Path" field.
-
Type
"C:\temp\cdiscbld\output\fmtsum\backcode.sas" in
"Back Code" field.
-
Type
"C:\temp\cdiscbld\output\fmtsum\fmtsum.html" in
"Output" field.
-
Click
Save Code button.
-
Verify
Save Code screen is displayed.
-
Type
"C:\temp\cdiscbld\output\fmtsum" in
"Path" field.
-
Type
"s_dm" in "File Name".
-
Click
OK button. Verify View Code screen is displayed to
show the content of save code file.
-
Click
Back to close "View Code" screen.
-
Navigate
to "C:\temp\cdiscbld\output\fmtsum".
Verify "s_cm.sas" is created.
-
Delete
fmtsum.html if it exists.
-
Right
mouse click on "s_dm.sas" and select "Batch
Submit".
-
Verify
"fmtsum.html" is created.
For more information, please contact MXI
.
|