CDISC Builderâ„¢  2.1 - Installation Test Scripts - Matchvar
The following documentation contains test scripts and expected results for validating the CDISC Builder Matchvar 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
Tolerance Score Verify invalid character values
Verify values less than 1 or greather than 5.
Verify default to 3
 
Instructions 3

Report Title

Verify name that is long over 200 character.  Proper warning message is presented.
Verify title "Match Variable Names and Labels for Data: " followed by datasets with comma separated.
 
Instructions 4

Output 

Default the value to be "matchvar_" followed by names of selected datasets and then extension of HTML.
Verify assignment of path with [...].
 
Instructions 5
OK/Cancel OK button applies all selected parameters.
Memory of all fields are 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

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
    c:\temp\cdiscbld\output

  2. Submit the following program:

    libname testlib 'c:\temp\cdiscbld\input';
    libname outtest 'c:\temp\cdiscbld\output';

    options nofmterr;
    data testlib.shoes;
    set testlib.ae;
    run;
    data testlib.company;
    set testlib.co;
    run;
    data testlib.manage;
    set testlib.dm;
    run;
    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 'MATCHVAR' icon to open the matchvar screen.

  4. Clear all text in Source Data and click on 'OK' button.

  5. Verify that there is a warning message:

    The field (Source Data Path) contains a missing value.
     

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

  7. Type 'C:\invalidfolder' in Source Data and click on 'OK' button.

  8. Verify that there is a warning message:

    The Source Data does not exist.
     

  9. Click on [...] button next to Source Data text input.

  10. Navigate to the folder that does not contain any dataset, such as :output folder.

  11. Click on 'OK' button.

  12. Verify that there is a warning message and then close the message:

    Select at least one dataset to be matched.
     

  13. Create a folder with the name is longer than 200 characters, such as:


     

  14. Click on [...] button next to Source Data text input.

  15. Navigate to that folder and click 'OK' button.

  16. Verify that there is a warning message:

    You cannot select a path longer than 200 characters using Select dialog. Please enter the path directly to the Source Data field.
     

  17. Click on [...] button next to Source Data text input.

  18. Navigate to the folder that contains some datasets, such as: input folder.

  19. Verify that these datasets will be displayed in Data Sets list box.

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

  1. Click on the 'MATCHVAR' icon to open the matchvar screen.

  2. Click on [...] button next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Verify that DM, AE, CO... will be displayed in Data Sets list box.

  5. Choose AE in Data Sets list and click on 'Preview' button.

  6. Verify that the message is displayed:
     The following dataset contains user - defined format(s): AE.

  7. Close the message.

  8. Verify that there is a report shows all values in AE dataset.

  9. Do the same work with SHOES dataset.

  10. Verify that the report shows all values in SHOES dataset

  11. Submit the following program:

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

  12. Verify that the result of clicking on Preview button is similar with the result of proc print command.

  13. Click on 'Select All' button and verify that all datasets are selected.

  14. Click on 'Select All' button again and verify that all datasets are deselected.

  15. Click on 'Select All' button again and then click on 'Preview' button.

  16. Verify that there is a report that shows content of all datasets.

  17. Click on 'CDISC' button and verify that CO, AE and DM datasets are selected.

  18. Click on the "Cancel" button to close Matchvar screen.

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

  1. Click on the 'MATCHVAR' icon to open the matchvar screen.

  2. Click on [...] button next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Choose AE in Data Sets list.

  5. Type 'test' in Tolerance Score and then click on other buttons or the screen.

  6. Verify that there is a warning message:

    The Tolerance Score must be numeric.
     

  7. Type '9' in Tolerance Score and then click on other buttons or the screen.

  8. Verify that there is a warning message:

    The tolerance score must be between 1 and 5 where 1 is a tigh fit and 5 is loose.
     

  9. Click on the "OK" button to close the message.

  10. Clear the Tolerance Score if it is not empty.

  11. Click on 'Cancel' button to close Matchvar screen.

  12. Verify that the following message is displayed:

     The field (Tolerance Score) contains a missing value.
     

  13. Click on the "OK" button to close the message and verify that the Matchvar screen is closed.

  14. Click on the 'MATCHVAR' icon to reopen the Matchvar screen.

  15. Verify that the default value of Tolerance Score is 3.

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

  1. Click on the 'MATCHVAR' icon to open the matchvar screen.

  2. Click on [...] next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Verify that DM, AE, CO... will be displayed in Data Sets list box.

  5. Choose AE in Data Sets list.

  6. Type some text contains the special characters like comma and quotes in Report Title entry, such as: "this' is test, this is' test".

  7. Click on 'OK' button.

  8. Verify that there is no error and the report is displayed.

  9. Clear Report Title if it is not empty.

  10. Choose AE in Data Sets list.

  11. Verify that the value of Report Title is:

    'Match Variable Names and Labels for Data: AE'.
     

  12. Clear Report Title if it is not empty.

  13. Type a long title with more than 200 characters in Report Title, such as:


     

  14. Click on 'OK' button.

  15. Verify that the report title is truncated and there is a warning message will be displayed.

    The title is too long. It can be truncated.

  16. Click on the "OK" button.

  17. Verify that the report is open as HTML and the Report Title will be truncated.

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

  1. Click on the 'MATCHVAR' icon to open the matchvar screen.

  2. Click on [...] next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Verify that DM, AE, CO... will be displayed in Data Sets list box.

  5. Choose AE in Data Sets list.

  6. Verify that the value of Output is 'matchvar_AE.html'.

  7. Choose DM in Data Sets list.

  8. Verify that the value of Output is 'matchvar_DM.html'.

  9. Click on [...] next to Output text field.

  10. Choose the path of file and type 'matchvar_result.html' in file name.

  11. Click on 'Save' button and verify that the value of Output is the path that your choice with the filename are 'match_result.html'.

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

  1. Click on the 'MATCHVAR' icon to open the matchvar screen.

  2. Click on [...] next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Choose 'Company' in Data Sets list.

  5. Type 'This is report title' in Report Title.

  6. Click on 'OK' button.

  7. Verify that there is a report will be displayed with title is 'This is report title' and footnote contains date and username created such as:
    Generated on: 02/16/2009, 10:00:45am
    by: Administrator

  8. Close report and click on 'Cancel' button.

  9. Verify that the matchvar screen will be closed and will not create report.

  10. Click on the 'MATCHVAR' icon to open the matchvar screen.

  11. Verify that the value of Report Title is 'This is report title'.

  12. Type 'This is Second Report Title' in Report Title.

  13. Click on 'Cancel' button.

  14. Click on the 'MATCHVAR' icon to open the matchvar screen again.

  15. Verify that the value of Report Title is 'This is report title'.

  16. Close this screen.

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

  1. Click on the 'MATCHVAR' icon to open the matchvar screen.

  2. Click on [...] next to Source Data text input.

  3. Navigate to 'C:\temp\cdiscbld\input' folder.

  4. Choose 'Company' in Data Sets list.

  5. Type 'This is report title' in Report Title.

  6. Click on 'Save Code' button.

  7. Type 'C:\temp\cdiscbld\output' in Path text field.

  8. Verify that the file name is 'matchvar'.

  9. Click on 'OK' button.

  10. Verify that the View Code screen will be displayed.

  11. Verify that all information in view code is correct.

  12. Verify that the matchvar.sas will be created in 'C:\temp\cdiscbld\output'.

  13. Navigate to 'C:\temp\cdiscbld\output'.

  14. Right click on 'matchvar.sas' and select 'Batch Submit'.

  15. Verify that there is a 'matchvar.html' will be created in 'C:\temp\cdiscbld\output'.

For more information, please contact MXI .

 
     Meta-Xceed Inc. © 2009