CDISC Builderâ„¢  2.1 - Installation Test Scripts - Ordervar
The following documentation contains test scripts and expected results for validating the CDISC Builder Oedervar 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.
 
Instructions 2
Variables List of variables are the same as those in the selected dataset.  Verify through PROC CONTENTS.
Select all button toggles.
 
Instructions 3
Keys Selected keys work from the -> and <- buttons.
The move up and down buttons change the key order.
Select all button toggles.
 
Instructions 4

Related Domain

Verify list of domains matches list in documentation.
If CDISC dataset is selected, related domain is defaulted.
 
Instructions 5
Base Code Default base program is the name of the selected dataset with the extension of .sas. 
The [...] button assigns the correct path.
 
Instructions 6
OK/Cancel OK button applies all selected parameters.
Memory of all fields are retained.
Cancel does not apply logic.
 
Instructions 7
Save Code Program is saved with proper comments
Generated program is submitted and results verified
 
Instructions 8

Instructions 1
Start the CDISC Builder application from the icon in desktop.

  1. Create the following path if it does not already exist.
    c:\temp\cdiscbld\input\ordervar
     

  2. Submit the following program:

    libname testlib 'c:\temp\cdiscbld\input\ordervar';

    data testlib.shoes;
    set sashelp.shoes;
    run;
    data testlib.company;
    set sashelp.company;
    run;
    data testlib.manage;
    set sashelp.manage;
    run;
     

  3. Click on the ORDERVAR icon from the main screen.

  4. Enter a path which does not exist into Source Data field and click on the Enter button.

  5. Verify that there is a dialog displayed with the message saying that "The field (Source Data) contains non-existing directory.".

  6. Click on the OK button to close the message box.

  7. Create a directory which has the name longer than 244 characters in c:\.

  8. Enter this path into Source Data field and click on the Enter button.

  9. Verify that the warning message is displayed:
     The library path cannot longer than 244 characters because of SAS limit.

  10. Click on the OK button to close the dialog.

  11. Click on the [...] button next to the Source Data entry.

  12. Verify that the Select dialog will open.

  13. Browse to the long-name directory has been created at step 7 and Click on the OK button.

  14. Verify that there is warning message saying that "You cannot select a path longer than 200 characters using Select dialog. Please enter the path directly to the Source Data field.".

  15. Click on the OK button to close the message dialog.

  16. Click on the [...] button.

  17. Browse to a directory which does not contains any datasets and Click on the OK button.

  18. Click on the OK in ORDERVAR screen.

  19. Verify that the warning message is displayed:
    The Data Sets list is empty.

  20. Click on the OK button to close the message.

  21. Click on Cancel and then Exit to close the application.

Instructions 2
Start the CDISC Builder application from the icon in desktop.

  1. Click on the ORDERVAR icon from the main screen.

  2. Select C:\temp\cdiscbld\input\ordervar as Source Data.
  3. Verify that all datasets in ordervar directory are listed on the dataset list.

  4. Select an empty directory as Source Data.

  5. Verify that the dataset is empty due to empty directory.

  6. Select C:\temp\cdiscbld\input\ordervar as Source Data.

  7. Select Company from dataset list.

  8. Click on the Preview button.

  9. Verify that a report will be generated and displayed on the screen.

  10. Submit the following program:

    libname testlib 'c:\temp\cdiscbld\input\ordervar';
    proc print data=testlib.company;
    run;
     

  11. Compare the result of PROC PRINT and the report to verify that they contain the same information.

  12. Click on Cancel and then Exit to close the application.

Instructions 3
Start the CDISC Builder application from the icon in desktop.

  1. Click on the ORDERVAR icon from the main screen.

  2. Select C:\temp\cdiscbld\input\ordervar as Source Data.

  3. Select company from dataset list.

  4. Do a PROC CONTENTS against dataset company:

    libname testlib 'c:\temp\cdiscbld\input\ordervar';
    proc contents data=testlib.company;
    run;
     

  5. Verify that all variables of dataset company have been listed on the variable list by compare with the result of PROC CONTENTS.

  6. Click on the Select All button below Variables list.

  7. Verify that all variables in the list have been selected.

  8. Click on the Select All button again.

  9. Verify that all variables in the list have been deselected.

  10. Click on the Cancel button and then Exit to close the application.

Instructions 4
Start the CDISC Builder application from the icon in desktop.

  1. Click on the ORDERVAR icon from the main screen.

  2. Select C:\temp\cdiscbld\input\ordervar as Source Data.

  3. Select company from dataset list.

  4. Select LEVEL3 and click on the -> button.

  5. Verify that LEVEL3 has been moved from the variable list to Key list.

  6. Select JOB1 and LEVEL5 and click on -> button.

  7. Verify that both JOB1 AND LEVEL5 have been moved from the variable list to Key list.

  8. Select LEVEL5 and click on the MOVE UP button.

  9. Verify that LEVEL5 has been moved up over JOB1 in the list.

  10. Select LEVEL3 and click on the MOVE DOWN button.

  11. Verify that LEVEL3 has been moved down to the second position in the list.

  12. Click on the Select All button below the key list.

  13. Verify that all the variables in the key list have been selected.

  14. Click Select All again. 

  15. Verify that all variables have been deselected.

  16. Select some variables from the key list and click <- button.

  17. Verify that selected variables have been moved from key list back to variable list.

  18. Click on Cancel and then Exit to close the application.

Instructions 5
Start the CDISC Builder application from the icon in desktop.

  1. Click on the ORDERVAR icon from the main screen.

  2. Verify that all the related domain in the documentation is listed on the related domain list.

  3. Submit the following program.

    libname testlib 'c:\temp\cdiscbld\input\ordervar';

    data testlib.ae (label="Adverse Events");
    set sashelp.shoes;
    run;
    data testlib.dm (label="Demographics");
    set sashelp.company;
    run;
     

  4. Select c:\temp\cdiscbld\input\ordervar as Source Data.

  5. Select AE from dataset list.

  6. Verify that the related domain list has been defaulted to AE.

  7. Select DM from dataset list.

  8. Verify that the related domain list has been defaulted to DM.

  9. Select Company from the dataset list.

  10. Verify that the selected related domain has been removed due to non-cdisc dataset.

  11. Click Cancel and then Exit to close the application.

Instructions 6
Start the CDISC Builder application from the icon in desktop.

  1. Click on the ORDERVAR icon from the main screen.

  2. Select c:\temp\cdiscbld\input\ordervar as Source Data.

  3. Select Company from dataset list.

  4. Verify that the base code file has been changed to ordervar_company.sas.

  5. Select shoes from dataset list.

  6. Verify that the base code file has been changed to ordervar_shoes.sas.

  7. Click on the [...] button next to the Base Code field.

  8. Browse to C:\temp\cdiscbld\output.

  9. Enter ordervar_basecode as file name.

  10. Click on the OK button.

  11. Verify that the Base Code field displays the correct path which is C:\temp\cdiscbld\output\ordervar_basecode.sas.

  12. Select DM from dataset list and change the Base Code name to ordervar_basecode.sas.

  13. Select LEVEL1, LEVEL2 and LEVEL3 and click on the -> button.

  14. Click on the OK button.

  15. Verify that the ordervar_basecode.sas has been created in output directory.

  16. Navigate to the 'C:\temp\cdiscbld\input\ordervar' and rename the DM dataset to DM2.

  17. Submit the following program.

    libname testlib 'c:\temp\cdiscbld\input\ordervar';

    data testlib.dm (label="Demographics");
    set sashelp.company;
    run;
     

  18. Right mouse click on the ordervar_basecode.sas program and select Batch Submit.

  19. Verify that there is no error message in the log file.

  20. Compare the two dataset DM and DM2 to verify that they are the same.

  21. Click Cancel and then Exit to close the application.

Instructions 7
Start the CDISC Builder application from the icon in desktop.

  1. Click on the ORDERVAR icon from the main screen.

  2. Select 'c:\temp\cdiscbld\input\ordervar' as Source Data.

  3. Select AE from dataset list.

  4. Select Product, Sales, Returns from the variable list and click on the -> button.

  5. Click on the OK button.

  6. Verify that the program will generate a report and display it on the screen. The name of report such as:
    AE dataset
    The CONTENTS Procedure

  7. Verify that dataset AE has been sorted by selected key variables in the order of them on the list.

  8. Verify that AE has been added a new variable name domain with value AE.

  9. Verify that there is no new base code program generated since this field was not specified.

  10. Click on the Cancel button.

  11. Click on the ORDERVAR icon again.

  12. Verify that all the selected values from the previous time are retained on the screen.

  13. Click on the Cancel button.

  14. Verify that it closes the ORDERVAR dialog.

  15. Click Exit to close the application.

Instructions 8
Start the CDISC Builder application from the icon in desktop.

  1. Submit the following program.
    libname testlib 'c:\temp\cdiscbld\input\ordervar';

    data testlib.ae (label="Adverse Events");
    set sashelp.shoes;
    run;
     

  2. Click on the ORDERVAR icon from the main screen.

  3. Select "C:\temp\cdiscbld\input\ordervar" as Source Data.

  4. Select AE from dataset list.

  5. Select Product, Sales, Returns from the variable list and click on the -> button.

  6. Click on the "Save Code..." button.

  7. Select "C:\temp\cdiscbld\output" as file path.

  8. Enter ordervar_savecode as file name.

  9. Click on the OK button.

  10. Verify that the View Code will be displayed with the contents of the saved program.

  11. Verify that the ordervar_savecode.sas program has been generated at output directory.

  12. Verify that the header of the program contains the information similar as follow ( The user name and time may be different).

    /*----------------------------------------------------*
    * Program: ordervar_savecode.sas
    * Path: D:\MY PROJECTS\SAS\CDISCBUILDER
    * Description: Modifies the position order of the variables for a
    * specified dataset by key and alphabetical order.
    * By: Bui Nguyen Tuan Anh, %ordervar, 02/14/2006, 11:49:31 am
    *-----------------------------------------------------*/
     

  13. Right mouse click on the "ordervar_savecode.sas" program and select Batch Submit.

  14. Verify that there is no error message in log file.

  15. Do a PROC CONTENTS against dataset AE:

    libname testlib 'c:\temp\cdiscbld\input\ordervar';
    proc contents data=testlib.ae;
    run;
     

  16. Verify that it has been sorted by Product, Sales and Returns variables.

  17. Verify that there is a new variable named rdomain with the value AE.

  18. Click on Cancel and then Exit to close the application.

For more information, please contact MXI .

 
     Meta-Xceed Inc. © 2009