%METRIC.LOADB2BRESULTS load back-to-back testing comparison results that the SIL and
% PIL testing metrics use.
% 
% METRIC.LOADB2BRESULTS(METRICRESULT)
%    load back-to-back testing comparison results for passed metric result object.
%
%    For Simulink Test test cases or iterations that directly store the 
%    back-to-back testing comparison results, the function loads the results into
%    Simulink Test Manager.
%    For test cases or iterations where two test results are available for comparison, 
%    the function loads the comparison results into Simulation Data Inspector
%    to explore the results in detail.
%
%    Example
% 
%    E = metric.Engine()
%    scope = {which('cc_DriverSwRequest'), 'cc_DriverSwRequest'};
%    execute(E, "slcomp.sil.B2BTestStatus", ArtifactScope=scope);
%    res = getMetrics(E, "slcomp.sil.B2BTestStatus", ArtifactScope=scope);
% 
%    testCaseArtifact = res(1).Artifacts(1);
%    openArtifact(E, res(1).Artifacts(1).UUID);
%
%    metric.loadB2BResults(res(1));
%
%    See Also metric.Engine, metric.Result, Simulink.sdi.compareRuns, Simulink.sdi.view
%
% Copyright 2023 The MathWorks, Inc.