CDISC Builderâ„¢  2.1 - Installation Test Scripts - Addseq
The following documentation contains test scripts and expected results for validating the CDISC Builder Addseq 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 an 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

    Related Domain

  • Verify list of domains match list in documentation.
  • If CDISC dataset is selected, related domain is defaulted.

  •  
    Instructions 3
    Identification Variable
  • List of variables matches what is in the selected dataset.  Verify via PROC CONTENTS.
  • Default to the first "SEQ" variable it finds.  

  •  
    Instructions 4
    Unique Subject ID
  • List of variables matches what is in the selected dataset.  Verify via PROC CONTENTS.
  • Default to the first "Subject" variable it finds.  

  •  
    Instructions 5
    Base Code
  • Default base program is the name of the selected dataset with the extension of .sas. 

  •  
    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
    Find Sequence
  • A report is generated with correct index of all variables with sequence.  Verify by program with sort and (FIRST.) logic.

  •  
    Instructions 9

    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\addseq
       

    2. Submit the following program:

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

      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 ADDSEQ button.

    4. Enter an invalid path ( path which does not exist ) in Source Data field.

    5. Press on Enter button.  Verify that there is a dialog box displayed with the message saying that "Source Data does not exist.".

    6. Click OK to close the message dialog box.

    7. Create the directory with the following name in c:\

      test for long name path test for long name path test for long name path test for long name path test for long name path test for long name path test for long name path test for long name path test for long name path
       

    8. Copy all datasets from addseq directory into this directory.

    9. Enter this path which is longer then 200 characters into Source Data field and Press on Enter button.

    10. Verify that there is a dialog box displayed with the message saying that "Source Data does not exist.".

    11. Rename the directory so the path will shorter then 200 characters.

    12. Enter this path into Source Data field and Press on Enter button.

    13. Verify that there is no error message.

    14. Verify that all the dataset in this directory are listed on the Data Sets list.

    15. Click on the [...] button next to the Source Data.

    16. Verify that the Select dialog will be displayed.

    17. Select a certain directory which has no dataset and click OK.

    18. Verify that there is a dialog box displayed with the message saying that "There is no dataset in this path.".

    19. Click OK to close the message box.

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

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

    1. Click on the ADDSEQ button from the main screen.

    2. Click on the [...] button and select a directory which does not contain any datasets.

    3. Verify that there is a dialog box displayed with the message saying that "There is no dataset in this path.".

    4. Verify that the Data Sets list is empty.

    5. Select c:\temp\cdiscbld\input\addseq as Source Data.

    6. Verify that the three datasets shoes, company and manage are listed on the Data Sets list.

    7. Select dataset company from the list and click on the Preview button.

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

    9. Do a PROC PRINT against dataset company and compare the result with the report to verify that the information is the same.

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

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

    1. Submit the following program.

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

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

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

    2. Click on the ADDSEQ button from the main screen.

    3. Click on the Related Domain list.

    4. Verify that all the domains from the documentation are on this list.

    5. Select AE from the Data Sets list.

    6. Verify that the related domain will be defaulted to AE.

    7. Select DM from the Data Sets list.

    8. Verify that the related domain will be defaulted to DM.

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

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

    1. Submit the following program.

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

      data testlib.shoes;
      attrib Region length=$25;
      attrib Product length=$14;
      attrib Subsidiary length=$12;
      attrib seqnum length=8;

      set sashelp.shoes;
      run;
       

    2. Click on the ADDSEQ button from the main screen.

    3. Select SHOES from the dataset list.

    4. Verify that the value of the Identification Variable list will be defaulted to seqnum.

    5. Do a PROC CONTENTS against dataset shoes.

    6. Verify that all variables in dataset shoes are listed on the Identification Variable list.

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

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

    1. Submit the following program.

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

      data testlib.shoes;
      attrib region length=$25;
      attrib testvar label="Subject ID";
      set sashelp.shoes;
      testvar='';
      run;

      data testlib.manage;
      attrib project length=$60;
      attrib usubjid label="Patient ID";
      set sashelp.manage;
      usubjid='';
      run;
       

    2. Click on the ADDSEQ button from the main screen.

    3. Select SHOES from the dataset list.

    4. Verify that the value of Unique Subject ID list will be defaulted to testvar.

    5. Select MANAGER from the dataset list.

    6. Verify that the value of Unique Subject ID list will be defaulted to usubjid.

    7. Do a PROC CONTENTS against dataset manage.

    8. Verify that all variables in dataset manage are listed on the Unique Subject ID list.

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

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

    1. Click on the ADDSEQ button from the main screen.

    2. Select SHOES from the dataset list.

    3. Verify that Base Code field will be defaulted to shoes.sas.

    4. Select MANAGE from the dataset list.

    5. Verify that Base Code field will be defaulted to manage.sas.

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

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

    1. Make a backup version named ae2 of ae dataset .

    2. Click on the ADDSEQ button from the main screen.

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

    4. Select AE from dataset list.

    5. Select Sales as Identification Variable.

    6. Select Product as Unique Subject ID.

    7. Select C:\temp\cdiscbld\output\ae.sas as Base Code.

    8. Click on the OK button.

    9. Compare the two dataset ae and ae2.

    10. Verify that there are two new variables named domain and aeseq have been added into ae.

    11. Verify that all the values of domain is AE which are the same as selected in the screen.

    12. Verify that the sequence number is generated based on each group of product and sales as selected in the screen.

    13. Verify that there is a base code program named ae.sas created in C:\temp\cdiscbld\output as select from the screen.

    14. Click on the Cancel button to close the ADDSEQ screen.

    15. Open the ADDSEQ screen again from the main screen.

    16. Verify that all the values from the previous time still retain in the screen.

    17. Delete the ae dataset from addseq directory.

    18. Make a version of ae from ae2.

    19. Click on the Cancel button from the screen.

    20. Do a proc compare to verify that dataset ae is the same as ae2.

    21. Click on the Exit button to close the application.

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

    1. Click on the ADDSEQ button from the main screen.

    2. Select company from dataset list.

    3. Select DEPTHEAD as Identification Variable.

    4. Select LEVEL2 as Unique Subject ID.

    5. Click on the Save Code button.

    6. Select C:\temp\cdiscbld\output as file path.

    7. Enter addseq_company as file name and click OK.

    8. Verify that the View Code screen will be displayed with the contents of the addseq_company.sas.

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

      /*----------------------------------------------------*
      * Program: addseq_company.sas
      * Path: C:\temp\cdiscbld\output
      * Description: Add a sequence number for multiple observations
      * per subject.
      * By: Bui Nguyen Tuan Anh, %addseq, 02/14/2006, 11:55:38 am
      *-----------------------------------------------------*/
       

    10. Verify that all the parameters in the addseq_company.sas are the same as selected from the screen.

    11. Click on Back to close the View Code screen.

    12. Make a backup version named company2 from company dataset.

    13. Go to the output directory.

    14. Right mouse click on the addseq_company.sas program and select Batch Submit.

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

    16. Verify that it created a report named addsequence.html in the output directory.

    17. Verify that dataset company has been added two new variables aeseq and domain.

    18. Verify that all values of domain are AE as selected from the screen.

    19. Verify that the sequence number is generated based on each group of LEVEL2 and DEPTHEAD as selected in the screen.

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

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

    1. Submit the following program.

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

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

    2. Click on the ADDSEQ button from the main screen.

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

    4. Select company from dataset list.

    5. Select AE from Related Domain list.

    6. Select JOB1 as Identification Variable.

    7. Select LEVEL2 as Unique Subject ID.

    8. Check the "Sorted by Unique ID and ID Variable".

    9. Click OK.

    10. Verify that there is a report displayed with the contents of company dataset.

    11. Do a PROC PRINT against dataset company and compare the output result with the report to make sure they are the same.

    12. Rename dataset company to company2.

    13. Submit the program in step 1 to re-create dataset company.

    14. Submit the program in the View Code screen.

    15. Compare the two dataset to verify that they are the same.

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

    For more information, please contact MXI .

     
         Meta-Xceed Inc. © 2009