The value of 'filename' is invalid. It must satisfy the function: exist.

조회 수: 41 (최근 30일)
Bharathi
Bharathi 2023년 3월 6일
답변: Swaraj 2023년 4월 5일
The value of 'filename' is invalid. It must satisfy the function: exist. getting this error while executing test case
  댓글 수: 3
Bharathi
Bharathi 2023년 3월 6일
Its a simulink test suit and its file name is "SL_B007_27_DmeSensorSelection"
chrisw23
chrisw23 2023년 3월 7일
..try this
myFilePath = "...SL_B007_27_DmeSensorSelection.xxx";
fInfo = System.IO.FileInfo(myFilePath);
if fInfo.Exists
...
end

댓글을 달려면 로그인하십시오.

답변 (1개)

Swaraj
Swaraj 2023년 4월 5일
The error is coming because some test is trying to use a file which does not exist.
You can go through the exist function documentation for more details and check if all files that your test is using are present at the specified paths.
Also, you can check if all the files under use have names as per the standards.

카테고리

Help CenterFile Exchange에서 Results, Reporting, and Test File Management에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by