← Back to team overview

sikuli-driver team mailing list archive

[Question #383018]: Connection refused error.

 

New question #383018 on Sikuli:
https://answers.launchpad.net/sikuli/+question/383018

Hi ,

I have installed robotframework(3.0) and sikulilibrary in a linux server. I, when i run a robot script it throws following error


bash# jybot nex_passivea.txt
==============================================================================
Nex Passive :: Sikuli Library Demo                                            
==============================================================================
launch NEX application                                                | FAIL |
Connection to remote server broken: [Errno 111] Connection refused
------------------------------------------------------------------------------
Nex Passive :: Sikuli Library Demo                                    | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  /tmp/robot_scripts/output.xml
Log:     /tmp/robot_scripts/log.html
Report:  /tmp/robot_scripts/report.html


the same setup Robotframework(3.0) and SikuliLibrary is working in another Linux server.

Here is my script:

*** Settings ***
Documentation     Sikuli Library Demo
Test Setup        Add Needed Image Path
Library		SikuliLibrary 


*** Variables ***

*** Test Cases ***
launch NEX application
    launch VNC
    Start citrix client
    launch application
    Exit NEX


*** Keywords ***
Add Needed Image Path
    Add Image Path	/tmp/robot_scripts/img/	

launch VNC
    Wait Until Screen Contain	login.png	60
    Input Text	login.png	ep1
    click	login_ok.png
    Wait Until Screen Contain	ep1_verify.png	30
    Input Text  login.png       spd20st2
    Sleep	2s
    Click	login_ok.png
    Wait Until Screen Contain	cex_citrix_farm.png	60


Start citrix client
    ${passed}=	Run keyword and return status	screen should contain	opload.png
    Sleep 	5s
    Run keyword if	${passed}	double click 		opload.png	
    Sleep 	5s

launch application
    Input Text	username.png	nex2au1	
    Sleep	2s
    click in	password.png	password1.png
    Input Text	pass.png	AFhl2016!	
    Sleep	2s
    Click	ok
    Wait Until Screen Contain	nex_header.png	180

Exit NEX
    :FOR    ${index}    IN RANGE    700  
    \	Click       nex_header.png
    \	Sleep       120s
    Sleep	3s
    Click	nex_header.png
    Click	network.png
    Sleep	2s
    Click	nex_exit.png
    
    

Documentation: 	

here is the output from log.html file


Start / End / Elapsed: 	20160906 09:59:36.941 / 20160906 09:59:37.248 / 00:00:00.307
09:59:36.944 	TRACE 	Arguments: [ 'login.png' | '60' ] 	
09:59:37.245 	FAIL 	Connection to remote server broken: [Errno 111] Connection refused 	
09:59:37.247 	DEBUG 	Traceback (most recent call last): File "/usr/jython/Lib/site-packages/SikuliLibrary/sikuli.py", line 167, in run_keyword return self.remote.run_keyword(name, arguments, kwargs) File "/usr/jython/Lib/site-packages/robotframework-3.0-py2.7.egg/robot/libraries/Remote.py", line 90, in run_keyword result = RemoteResult(self._client.run_keyword(name, args, kwargs)) File "/usr/jython/Lib/site-packages/robotframework-3.0-py2.7.egg/robot/libraries/Remote.py", line 227, in run_keyword raise RuntimeError(message) 	
09:59:36.924 	TRACE 	Arguments: [ ]


Regards,
Raghu

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.