Jump to content

Recommended Posts

Posted

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
Posted (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 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.
  :)

Posted

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

Posted

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
Posted
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.
  :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...