kiven26 / robotframework-autoitlibrary

Automatically exported from code.google.com/p/robotframework-autoitlibrary
Apache License 2.0
0 stars 0 forks source link

Unable to integrate autoit library in robotframework-2.5.7.jar file #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have added the AutoItLibrary folder which contains init,counter and Logger 
PY files inside robotframework -> lib folder
2. I have written the below test case and saved it as text file.
   *** Settings ***
Documentation   Start the Windows Calculator application and set the default 
settings that the rest of the tests expect. 
Library AutoItLibrary   server_host=http://localhost:4444

*** Test Cases ***
CalculatorTest
    Get Auto It Version
3. Running the above test case by using the below java command.

java -classpath 
/opt/rtview/testautomation/application/robotlib/robotframework-2.5.7.jar; 
org.robotframework.RobotFramework --variable BROWSER:*firefox --variable 
SELENIUM_SERVER_HOST:localhost --variable SELENIUM_SERVER_PORT:4444 --outputdir 
/opt/rtview/testautomation/application/robot 
opt/rtview/testautomation/application/robot/testexecution/calculator

Getting the following error:
No keyword with name 'Get Auto It Version' found.

This is the same way we have integrated the selenium library and it is working 
fine. Could you please help me in integrating the autoit library with 
Robotframe work. Please correct me if I am going in a wrong direction as I am 
new to this frame work.

Original issue reported on code.google.com by sridevi....@gmail.com on 7 Feb 2013 at 8:12

GoogleCodeExporter commented 8 years ago
AutoIt requires 'C' Python.  robotframework-2.5.7.jar requires Java and/or 
Jython.  AutoIt will not work with Jython.

Original comment by c.martin...@gmail.com on 7 Feb 2013 at 8:15

GoogleCodeExporter commented 8 years ago
Is there any other way on how to run the autoit library by using robotframe 
work.

Original comment by sridevi....@gmail.com on 7 Feb 2013 at 8:33

GoogleCodeExporter commented 8 years ago
You could try wrapping it as a remote library, or wrap your jython stuff as a 
remote library.  Basically you need two different Pythons running at the same 
time for the same set of test cases.  I do this often, but always make the C 
Python be the main Python running RIDE and Robot Framework.  Then I put my Java 
stuff in a remote library, accessed from pybot running in C Python via XML-RPC.

Original comment by c.martin...@gmail.com on 7 Feb 2013 at 8:37

GoogleCodeExporter commented 8 years ago
Thanks for the reply. Could you please provide the steps in detail. We already 
have 2 servers, one for running the java application,selenium grid server and 
one for selenium client. As per our current design, all out selenium test cases 
runs remotely. 

This is the command we are running from java server. We will pass the selenium 
client server ip address for 'SELENIUM_SERVER_HOST'.

java -classpath 
/opt/rtview/testautomation/application/robotlib/robotframework-2.5.7.jar; 
org.robotframework.RobotFramework --variable BROWSER:*firefox --variable 
SELENIUM_SERVER_HOST:localhost --variable SELENIUM_SERVER_PORT:4444 --outputdir 
/opt/rtview/testautomation/application/robot 
opt/rtview/testautomation/application/robot/testexecution/calculator

Could you please help us to integrate the Auto it with this current design.

Appreciate your help.
Thanks in advance!

Original comment by sridevi....@gmail.com on 4 Mar 2013 at 5:28

GoogleCodeExporter commented 8 years ago
Sorry I don't have time to learn your architecture and solve your problem.  I 
would suggest you read this section of the RF Users' Guide: 
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.ht
ml?r=2.7.7#remote-library-interface 

Original comment by c.martin...@gmail.com on 4 Mar 2013 at 5:39