Babu16 Posted January 9, 2018 Posted January 9, 2018 Hi All, I have developed an Autoit automation script which will return a value, but this value should be passed to other web application through Robot framework. To execute autoit script through robot framework, i'm using this command 'Run (${NEWCASE})'. I'm able to able to run autoit.exe successfully, but unable to get value to this command from autoit file, Can you please help me on this?
Developers Jos Posted January 9, 2018 Developers Posted January 9, 2018 (edited) 27 minutes ago, Babu16 said: i'm using this command 'Run (${NEWCASE})'. Is this supposed to be an AutoIt3 syntax or is the way you shell the autoit3 script? What does the Robot application expects and support? Does it support windows or Console application to be able to read the retuncode? Jos Edited January 9, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Babu16 Posted January 9, 2018 Author Posted January 9, 2018 this is the way i shell the autoit script in Robot automation framework in order to continue with execution, my application expects a value from Autoit script which is generated while executing autoit script. it supports windows Please let me know if you need more details
Developers Jos Posted January 9, 2018 Developers Posted January 9, 2018 The last question is an essential one! It could be the script needs to be compiled as Console app. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Babu16 Posted January 9, 2018 Author Posted January 9, 2018 Nope, please find the script below in Robot framework *** Settings *** Library Selenium2Library Library OperatingSystem *** Variables *** # AutoIT files ${NEWCASE} = C:\\bin\\development\\robot-scripts\\lid\\Helpers\\VP_CreateCase.exe ${UDFUNC} = C:\\bin\\development\\robot-scripts\\lid\\Helpers\\VP-UDF.exe *** Keywords *** CreateCase Run (${NEWCASE},$sText) - $sTEXT is a variable in Autoit file [Return] $sText Sleep 2s I have tried above to get the value from Autoit.exe to Robot framework but no luck.
Developers Jos Posted January 9, 2018 Developers Posted January 9, 2018 1 minute ago, Babu16 said: Nope, What do you mean with nope? have you actually tried compiling as console? Run (${NEWCASE},$sText) - $sTEXT is a variable in Autoit file [Return] $sText Sleep 2s How would a variable in the AutoIt3Script be returned into an application that shells another application? Please explain more about what this robot thing is working and how it expects the get information back from the application. Also explain how you are retuning that information in the autoit3 script. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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