robotframework-SikuliLibrary icon indicating copy to clipboard operation
robotframework-SikuliLibrary copied to clipboard

Drag And Drop not working

Open Horzo opened this issue 6 years ago • 5 comments

Hello,

I'm trying to run the drag & drop command, but it fails as shown below (RIDE log) :

command: pybot.bat --argumentfile c:\users\win\appdata\local\temp\RIDEnli835.d\argfile.txt --listener C:\python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:53127:False C:\Python27\Lib\site-packages\alyvix\robotproxy\alyvix_testcases\my_first_alyvix_testcase_suite.robot
=================================================================================================
My First Alyvix Testcase Suite                                                                   
=================================================================================================
sample1                                                                                  | FAIL |
AttributeError: 'NoneType' object has no attribute 'run_keyword'
-------------------------------------------------------------------------------------------------
My First Alyvix Testcase Suite                                                           | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
=================================================================================================
Output:  c:\users\win\appdata\local\temp\RIDEnli835.d\output.xml
Log:     c:\users\win\appdata\local\temp\RIDEnli835.d\log.html
Report:  c:\users\win\appdata\local\temp\RIDEnli835.d\report.html

test finished 20181003 15:53:14

Horzo avatar Oct 03 '18 13:10 Horzo

@Horzo No one can help you, just with the output you show. At least, attach the test file and if not a common Windows app, some screenshot of it.

HelioGuilherme66 avatar Oct 03 '18 21:10 HelioGuilherme66

My test case had only the Drag & Drop command with the source and the target images. I also noticed that the same error occurred when I use Mouse Move.

I ran it using both versions 1.0.1 and 1.0.2

Test File

*** Settings ***
Suite Setup       Start Sikuli Process    62626
Suite Teardown    Stop Remote Server
Library           OperatingSystem
Library           SikuliLibrary    mode=NEW
Library           Process
Library           BuiltIn

*** Test Cases ***
sample1
    SikuliLibrary.Drag And Drop    C:\sikuli-captured-img\from.png    C:\sikuli-captured-img\to.png

The log

20181004 09:35:39.473 :  INFO : 
Starting process:
java -jar C:\Python27\lib\site-packages\SikuliLibrary\lib\SikuliLibrary.jar 62626 c:\users\win\appdata\local\temp\RIDE9s8xn4.d
20181004 09:35:39.485 :  INFO : Start sikuli java process on port 62626
20181004 09:35:39.926 :  INFO : Sikuli java process is started
Starting test: My First Alyvix Testcase Suite.sample1
20181004 09:35:48.853 :  FAIL : BadStatusLine: ''
Ending test:   My First Alyvix Testcase Suite.sample1

20181004 09:35:48.899 :  INFO : Robot Framework remote server stopping

Horzo avatar Oct 04 '18 04:10 Horzo

I am facing the same issue with Drag and Drop as well as Mouse move events

sanyamgoel1988 avatar Oct 09 '18 08:10 sanyamgoel1988

@sanyamgoel1988 , do you install this lib through pypi? Could you attach robot log with trace log level here?

Thank you very much

rainmanwy avatar Oct 10 '18 03:10 rainmanwy

@sanyamgoel1988 , @Horzo , where do you get this library?

I have tried this keyword in my env(Linux OS), looks ok.

At least from the error, looks like "Remote" is not init yet. So i need get the trace.

rainmanwy avatar Oct 11 '18 02:10 rainmanwy