[1.1.4] RobotFramework: scripts not embedding screenshot into log --- needs robot 3.0.4 --- fixed 2018-09-19
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Critical
|
RaiMan |
Bug Description
Hello,
I have been using Sikuli 1.1.4 (2019-09-12_07-01) with the robotframework-
However, running the same script, I have been able to have the screenshot correctly embedded with both RF (normal installation) as well as running the RF JAR distributable - same distributable I am running with the Sikuli IDE - from the commandline.
Here is the what I am using to run via the command line: java -jar C:\Users\
This is my simple RF script I am running from Sikuli:
runScript("""
robot
*** Settings ***
Library Screenshot
*** Test Cases ***
Try to take a screenshot
Take Screenshot mypic 80%
""")
REPRO:
1. Load Sikuli 1.1.4 (2019-09-12_07-01) onto a Win10 64bit machine
2. Download robotframework-
3. Open Sikuli and write a script as described above
4. Run the script
RESULT:
All expected logs/reports/images are created, but the jpg is not embedded in the log.html file.
EXPECTED:
img is embedded in the log file
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
milestone: | 1.1.4 → 2.0.0 |
I ended up finding a solution to this - there is still an issue with Sikuli out of the box, but here is my workaround:
- I installed robotframework via pip (which installed RF 3.0.4) Lib\site- packages\ robot -> C:\Users\ [user]\ AppData\ Roaming\ Sikulix\ Lib\robot
- I copied the robot folder from my Python folder (where pip installed RF) and replaced the robot folder in Sikuli's AppData folder (C:\Python27\
- At this point, the image still was not embedding itself.
- I then removed the RF JAR file from the Extensions folder
Now, I am seeing my image embed itself in the log file when I run my RF script via Sikuli IDE.