%% Remove Test Input Data
% Remove an Excel test input sheet

% Copyright 2020 The MathWorks, Inc.

%% Load Example Model, Create New Test File, and Get Suites and Cases
open_system('sltestExcelExample');
tf = sltest.testmanager.TestFile('input_test_file.mldatx');
ts = getTestSuites(tf);
tc = getTestCases(ts);

%% Add the Model as the System Under Test
setProperty(tc,'Model','sltestExcelExample');

%% Add Excel Data to Inputs Section
excelfile = 'sltestExampleInputs.xlsx';
input = addInput(tc,excelfile);

%% Map the First Input Signal By Block Name
map(input(1),0);

%% Remove the Second Input
remove(input(2));