However, the call to ConnectToSystem causes a WebDAV Login dialog to appear asking to insert username and password. I would like to automate also the authentication process because the application I am developing needs to be run in an unattended fashion.
Question: How can I programmatically pass username and password to the Veristand API?
since the WebDAV login isn't accessible programmatically, the best workaround is to set the username/password combination to be
This is the default that the WebDAV login tries first before prompting the user to login with other user credentials. If you use the default login, WebDAV will log in and deploy automatically.
If for some reason you can't do that, an alternative way is to create as much functionality as possible in a single VeriStand project. Because you're only deploying one project, you will only have to log in once. This will allow the project to run for a longer amount of time on its own without user input.