MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

tc.verifyCalled(behavior.chooseFile('.'));
tc.verifyEqual(app.Label.Text,'No file selected');
end
end
end


Run the tests. The tests run to completion without manual file selection.


results = runtests('LaunchAppTest');


Running LaunchAppTest
..
Done LaunchAppTest




See Also


matlab.mock.TestCase | matlab.uitest.TestCase


More About



  • “Overview of App Testing Framework” on page 33-162

  • “Write Test for App” on page 33-167

  • “Create Mock Object” on page 33-200


See Also
Free download pdf