User interface tests
Some of the user interface tests expect that Netbeans/tmcbeans is allowed to move the mouse cursor on the screen. For example to test the buttons in the UI that are created in the exercise. MacOS does not allow this because of the security concerns. This is why tmcbeans has to be given the permission manually.
The permission can be added as follows:
- Open the
System Preferences. You can open it from example by searching from Spotlight (magnifying glass on the upper right corner) by keyword System Preferences and by opening the
- Press the
Security & Privacyfrom the opened menu.
- From there navigate to
Privacytab and from there to
- Press from the lower left corner "Click the lock to make changes.". In the username field there should be the name of your computer. Write if it's not there. Give your password in the password field and click Unlock.
Now your tmcbeans should be able to move your mouse cursor during the execution of tests. Note that you may not be allowed to move your cursor or open windows during the tests. Tests should be allowed to run without interference in order for them to work correctly.