Hi,
we are currently using Katalon with katalon runtime engine, running tests through CLI with Jenkins.
We use virtual machine with windows for running these tests.
Our CRM system is in MS Dynamics 365 and windows auth (NTLM) is used as log-in. So in case eligible windows user opens the page, he is logged automatically, otherwise, Windows auth windows appears.
I tried several ways of implementing login methods so far, but I have troubles inserting the credentials when I try to run them automatically in Jenkins.
I tried AutoIT script, executed with Runtime.getRuntime().exec(), I tried using clipboard (Toolkit.getDefaultToolkit().getSystemClipboard()) and ctrl+c and ctrl+v and I tried the dumbest one, pressing every key of credentials with Robot class
All these ways work OK when I try them locally, even when I log on this virtual machine where we run Jenkins and I run them with Katalon or through CLI, it’s all OK. But from Jenkins, the first two methods fails totally, and the dumb method fails because language of the keyboard on the server is not english probably.
Failed tests doesn’t show any particular error, script works, but it’s unable to insert credentials so it ends with timeout.
I guess that my possibilities now are to try to change keyboard on the machine (but that is not a way I want to go, since the solution is ugly and a bit dumb) or to try to find out if the tests are running under some windows user and add this user to active directory, so the credentials would be taken from the win user. But in a corporate this is a bit lenghty and difficult way.
Does anybody experienced something similar, or have an idea where could be the problem? Thanks.
Ladislav