sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38751
[Bug 1599018] Re: [1.1.1]Sometimes, images in EditorPane are missing.
I do not know whether or not the relationship, but also confirmed the following phenomenon.
Sikuli-IDE abort when I close Editor Pane tab and then run RobotFramework.
(1)open file [robot_CalcDemoEx1.sikuli]
(2)open file [UserLibForSikuliXEx1.sikuli]
(3)run [robot_CalcDemoEx1.sikuli]
(2)close Editor Pane tab [UserLibForSikuliXEx1]
(3)run [robot_CalcDemoEx1.sikuli]
[console logs:]------------------------------------
I have entered a new line to make it easier to look at the log.
+++ running this Java
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) Client VM (build 25.77-b03, mixed mode, sharing)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\SikuliX1.1.1\sikulix.jar
[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[debug] Debug: setLogFile: D:\script\DebugLog\aaa.txt
[debug] ImagePath: add: /D:/script/UserLibForSikuliXEx1.sikuli/
==============================================================================
Ex1
==============================================================================
TestCase-1 [debug] Im
age: loaded: 1467617880602.png (file:/D:/script/UserLibForSikuliXEx1.sikuli/1467
617880602.png)
[debug] Image: cached: 1467617880602.png (15 KB) (# 1 KB 15 -- 0 % of 64 MB)
[debug] Region: wait: waiting 3.0 secs for 1467617880602.png to appear in S(0)[0
,0 1280x1024]
[debug] Region: wait: 1467617880602.png appeared (M[56,633 210x26]@S(S(0)[0,0 12
80x1024]) S:1.00 C:161,646 [406 msec])
[debug] CLICK on L(161,646)@S(0)[0,0 1280x1024] (522 msec)
.[debug] Image: reused: 1467617880602.png (file:/D:/script/UserLibForSikuliXEx1.
sikuli/1467617880602.png)
[debug] Region: wait: waiting 3.0 secs for 1467617880602.png to appear in S(0)[0
,0 1280x1024]
[debug] Region: checkLastSeen: still there
[debug] Region: wait: 1467617880602.png appeared (M[56,633 210x26]@S(S(0)[0,0 12
80x1024]) S:1.00 C:161,646 [29 msec])
.[debug] highlight R[56,659 210x95]@S(0)[0,0 1280x1024] E:Y, T:3.0 for 2.0 secs
TestCase-1 | PASS |
------------------------------------------------------------------------------
Ex1 | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: D:\script\robot_CalcDemoEx1.sikuli\result\output.xml
Log: D:\script\robot_CalcDemoEx1.sikuli\result\log.html
Report: D:\script\robot_CalcDemoEx1.sikuli\result\report.html
[debug] Sikulix: cleanUp: 0
[debug] Image: purge: ImagePath: /D:/script/robot_CalcDemoEx1.sikuli/
[debug] ImagePath: new BundlePath:
/D:/script/UserLibForSikuliXEx1.sikuli/
[debug] EditorPane: Tab close clicked
[debug] Image: purge: ImagePath: /D:/script/UserLibForSikuliXEx1.sikuli/
[debug] Image: purge: ImagePath: /D:/script/UserLibForSikuliXEx1.sikuli/
[debug] ImagePath: new BundlePath:
/D:/script/robot_CalcDemoEx1.sikuli/
[debug] Jython: requested to use as default region: S(0)[0,0 1280x1024]
[debug] JythonScriptRunner: runPython: running script from IDE:
D:/script/robot_CalcDemoEx1.sikuli
[debug] Debug: setLogFile: D:\script\DebugLog\aaa.txt
==============================================================================
Ex1
==============================================================================
TestCase-1 [error] Im
age: could not be loaded: file:/D:/script/robot_CalcDemoEx1.sikuli/1467617880602
.png
[debug] Region: handleImageMissing: 1467617880602.png (capture missing )
[error] RunTimeIDE: Wait: Abort: Jython traceback - current first:
UserLibForSikuliXEx1 (10)
librarykeywordrunner (88)
librarykeywordrunner (100)
librarykeywordrunner (95)
librarykeywordrunner (76)
librarykeywordrunner (53)
steprunner (56)
steprunner (35)
runner (133)
testcase (73)
itemlist (69)
visitor (86)
testsuite (160)
model (247)
run (434)
application (80)
application (76)
run (503)
robot_CalcDemoEx1 (16)
robot_CalcDemoEx1 (22)
[error] RunTimeIDE: ImageMissing: 1467617880602.png
[code:]------------------robot_CalcDemoEx1.py------------------
Settings.DebugLogs = True
Debug.on(3)
Debug.setLogFile("D:\\script\\DebugLog\\aaa.txt")
def Do_PreparationEx1():
prepareRobot()
from threading import currentThread
currentThread().name = 'MainThread'
def Run_RobotFrameworkEx1():
datasource = "D:/script/robot_CalcDemoEx1.sikuli/Ex1.robot"
workdir = "D:/script/robot_CalcDemoEx1.sikuli/result"
robot.run(datasource, outputdir=workdir)
Do_PreparationEx1()
while True:
ans = popAsk("Rerun?")
if ans == True:
Run_RobotFrameworkEx1()
else:
break
[code:]------------------UserLibForSikuliXEx1.py------------------
# coding: utf-8
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from sikuli import *
import shutil
class UserLibForSikuliXEx1(object):
def Focus_On_Calc(self):
click("1467617880602.png")
def Get_Region_Of_Calc_Display(self):
HIGHT = 95
f = find("1467617880602.png")
r = []
r.append(f.below(HIGHT))
r.append(f.getW())
return r
def Highlight_Region(self, region, seconds):
region.highlight(int(seconds))
def Take_Screenshot_By_Region(self, region, name):
tmpfile = capture(region)
savefile = "%s\\result\\%s.png" % (getBundlePath(), name)
shutil.move(tmpfile, savefile)
return savefile
def Edit_Html_string(self, imagepath, size):
if size > 800:
size = 800
html_string = "<a href=\"%s\"><img src=\"%s\" width=\"%spx\">" % (imagepath, imagepath,
size)
return html_string
[code:]------------------Ex1.robot------------------
*** Variables ***
*** Settings **
Library D:/script/UserLibForSikuliXEx1.sikuli/UserLibForSikuliXEx1.py
*** Test Cases ***
TestCase-1
Focus On Calc
@{r}= Get Region of Calc Display
Highlight Region @{r}[0] 2
${f}= Take Screenshot By Region @{r}[0] TestCase-1
${h}= Edit Html string ${f} @{r}[1]
Log ${h} html=yes
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1599018
Title:
[1.1.1]Sometimes, images in EditorPane are missing.
Status in Sikuli:
New
Bug description:
Sometimes, images in EditorPane are missing.
Sorry, I could not identify which operation is the cause of this phenomenon.
[environment:]
OS: Windows7
Java version: 1.8.0_77
Sikulix version: SikulixIDE 1.1.1(2016-06-19_01:01nightly)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1599018/+subscriptions
References