dimser Posted March 19, 2013 Share Posted March 19, 2013 Hi I wondering if/how I can configure jenkins to execute Autoit scripts. Can I then use ants executable to execute the converted au3toexe script? Or does jenkins have a plugin for this. If you have experience please let me know about your configuration! //D Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 19, 2013 Share Posted March 19, 2013 https://wiki.jenkins-ci.org/display/JENKINS/Batch+Task+Plugin You would just have it run your scripts/compiler using a list of command lines like a batch file. Link to comment Share on other sites More sharing options...
dimser Posted March 19, 2013 Author Share Posted March 19, 2013 Tnahx! WIll try you solution to! I solved it with an ant build.xml What I do now is that I have an Ant build.xml that execute my converted autoit script as below <?xml version="1.0" encoding="UTF-8"?> <project name="Test" default="test" basedir="."> <target name="test"> <exec executable="C:UsersdserakisProjAutoitnpadE.exe"> <env key="DSIAPLY" value=":1.0"/> </exec> </target> </project> In jenkins you execute Ant by Configuring you Project and choose "Add build step" -> "invoke Ant". In the "Build file" field you should enter the location and name of you ant build file. Then click save ant the ant file will execute when a new build is triggered. This will only execute the autoit script. Problem that I had was that I had installed Jenkins as an Windows service which do not allowe my gui execution to enter the WIndows desktop. Solved this problem by uninstalling Jenkins and donwloading jenkins.war from http://jenkins-ci.org/ and run "java -jar jenkins.war" from the command line to start Jenkins. Then my GUI script will run and display on my Windows desktop when I run with the same configuration. Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 19, 2013 Share Posted March 19, 2013 Why are you running a GUI process as part of an automated build anyway? The entire point of an automated build is to be unattended. Link to comment Share on other sites More sharing options...
dimser Posted March 20, 2013 Author Share Posted March 20, 2013 Well we can only test our program with GUI tests and I wanted to confirm that the test are running properly and thats why I want to se the GUI tests. You are absolutly right, the Continuous Integration build and tests should execute unattended and that how we do it aswell. Why did you think that I was attended?? Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 21, 2013 Share Posted March 21, 2013 For starters, it's a graphical user interface which implies a user is present. I'm sure that if you rack your brains for a couple seconds you could design non-GUI tests though. Link to comment Share on other sites More sharing options...
dimser Posted March 31, 2013 Author Share Posted March 31, 2013 I don't know...we are testing an CAD program which we configure in some way and we want to test that the new GUI has not affected the other stuff that are working. But maybe you are right, we should be able to test with non-GUI testcases...Thanx for the feedback! Link to comment Share on other sites More sharing options...
Ridhi Posted April 12, 2016 Share Posted April 12, 2016 (edited) On 3/19/2013 at 4:05 PM, Richard Robertson said: https://wiki.jenkins-ci.org/display/JENKINS/Batch+Task+Plugin You would just have it run your scripts/compiler using a list of command lines like a batch file. Edited April 12, 2016 by Ridhi Link to comment Share on other sites More sharing options...
Ridhi Posted April 12, 2016 Share Posted April 12, 2016 Hi Dimser , can u plz explain in detail how u created Ant build file to connect with jenkins. In my case i want to run the autoit script from jenkins.The auto it sript is going to interact with one window application Link to comment Share on other sites More sharing options...
Ridhi Posted April 12, 2016 Share Posted April 12, 2016 Hi Dimser , can u plz explain in detail how u created Ant build file to connect with jenkins. In my case i want to run the autoit script from jenkins.The auto it sript is going to interact with one window application Link to comment Share on other sites More sharing options...
BrewManNH Posted April 12, 2016 Share Posted April 12, 2016 Dimser hasn't been here in nearly 3 years, don't expect him to answer you. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Ridhi Posted April 13, 2016 Share Posted April 13, 2016 Can anyone please help me out on this Link to comment Share on other sites More sharing options...
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