DJ143 Posted May 4, 2021 Posted May 4, 2021 I have a autoit exe file which is used in upload/browse file functionality. This has been integrated with selenium framework and I am invoking the autoit exe using Java process and runtime. Now the issue is when I run the scripts and invoke the autoit exe in local it works perfectly. But when I use selenium grid or jenkins to run the scripts in another windows server it is not working. Can anyone please suggest any solution for this?
DJ143 Posted May 25, 2021 Author Posted May 25, 2021 have a requirement of running an exe file(autoit exe) for uploading a file. This is working fine in local machine but not when run in jenkins(windows server) or in another remote using Selenium server(hub). Process p = Runtime.getRuntime().exec("full path of Autoit.exe"); Could someone help on how to deal with this using Java?
TheXman Posted May 25, 2021 Posted May 25, 2021 (edited) Why create a new topic that is exactly the same as your previous topic? Edited May 25, 2021 by TheXman Removed link to duplicate topic since someone merged it with this topic. JockoDundee 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
JockoDundee Posted May 25, 2021 Posted May 25, 2021 53 minutes ago, TheXman said: Why create a new topic that is exactly the same as your previous topic? Oh, maybe because this time he intends to include the source for script that isn’t working, or even what the error is, as well as the steps taken so far to debug the situation in the last three weeks. Though I could be wrong TheXman 1 Code hard, but don’t hard code...
DJ143 Posted May 26, 2021 Author Posted May 26, 2021 (edited) hahaha.. thats a brilliant catch.. do we have any solution for this? Edited May 26, 2021 by DJ143
JockoDundee Posted May 26, 2021 Posted May 26, 2021 16 minutes ago, DJ143 said: do we have any solution for this? Not yet, but I think we got a big clue when you said “it is not working”. In my experience, that usually means “something is not right”. And, IMHO, often can be fixed if someone just “takes a good look at it”. Have you tried that? Code hard, but don’t hard code...
daluu Posted September 27, 2021 Posted September 27, 2021 Please refer to https://autumnator.wordpress.com/2011/12/22/autoit-sikuli-and-other-tools-with-selenium-grid/, as it should explain your exact issue, with suggestions on how to workaround it. A bit more work and tricky with Selenium Grid and more straightforward if you're just having issue executing from jenkins on a remote server, except for the latter, you'll have to put in logic to handle how to execute from jenkins case vs executing locally when developer testing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now