MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Test App With Manual Intervention


Create the LaunchAppTest class without using mocks. The test assumes the file
input2.txt exists in your current working folder. If it does not exist, create it. The test
presses the Input file button programmatically and verifies that the label matches
'input2.txt'. You must manually select the file.


classdef LaunchAppTest < matlab.uitest.TestCase
properties
TestFile = 'input2.txt';
end


Write Test That Uses App Testing and Mocking Frameworks
Free download pdf