Running uitests in parallel
I have a large app with many test cases that I would like to be able run in parallel. However the uitest framework functions (type, press etc. ) all fail when run in parallel due to MATLAB:uiautomation:Driver:NoDisplay. Is there a way to set up the parpool to allow this?
I provide an example of this with a simple file selector app that uses uigetfile to select a file. If the file exists then the first line is written to a label in the app, otherwise an error message is written. The testing utilizes the uitest framework function "press" in both tests and it failes due to the error above when run in parallel. When run without parallel processes both tests pass without errors.
(I borrowed the original code base from the example provided in the answer linked below and modified it for this question)
https://www.mathworks.com/matlabcentral/answers/1989568-create-a-test-case-with-uitest-class-using-uigetfile-and-uiputfileI have a large app with many test cases that I would like to be able run in parallel. However the uitest framework functions (type, press etc. ) all fail when run in parallel due to MATLAB:uiautomation:Driver:NoDisplay. Is there a way to set up the parpool to allow this?
I provide an example of this with a simple file selector app that uses uigetfile to select a file. If the file exists then the first line is written to a label in the app, otherwise an error message is written. The testing utilizes the uitest framework function "press" in both tests and it failes due to the error above when run in parallel. When run without parallel processes both tests pass without errors.
(I borrowed the original code base from the example provided in the answer linked below and modified it for this question)
https://www.mathworks.com/matlabcentral/answers/1989568-create-a-test-case-with-uitest-class-using-uigetfile-and-uiputfile I have a large app with many test cases that I would like to be able run in parallel. However the uitest framework functions (type, press etc. ) all fail when run in parallel due to MATLAB:uiautomation:Driver:NoDisplay. Is there a way to set up the parpool to allow this?
I provide an example of this with a simple file selector app that uses uigetfile to select a file. If the file exists then the first line is written to a label in the app, otherwise an error message is written. The testing utilizes the uitest framework function "press" in both tests and it failes due to the error above when run in parallel. When run without parallel processes both tests pass without errors.
(I borrowed the original code base from the example provided in the answer linked below and modified it for this question)
https://www.mathworks.com/matlabcentral/answers/1989568-create-a-test-case-with-uitest-class-using-uigetfile-and-uiputfile parallel computing, uitest, unittest MATLAB Answers — New Questions









