sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38378
Re: [Question #294598]: screenshot is not embedded into the log file of RobotFramework
Question #294598 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/294598
Status: Needs information => Open
masuo gave more information on the question:
According to the following user guide , Take Screenshot takes a screenshot in JPEG format and embeds it into the log file.
http://robotframework.org/robotframework/latest/libraries/Screenshot.html#Take%20Screenshot
I want to know why the result is different from the description .
It is the first time I use Robot Framework, also It is the first time I saw the reports and logs.
[my code:]
runScript("""
robot
*** Variables ***
*** Settings ***
Library ./inline/MyLibrary
Library Dialogs
Library Screenshot
#Test Setup
#Test teardown
*** Test Cases ***
加算テスト:1 + 2
電卓(calc)を表示する
calculate addition 1 2
スクリーンショットを撮る # <----- I use here
電卓(calc)を閉じる
テスト結果の判定を入力する
結果判定:
[Documentation] ここの記述がコメントに出力されるはず
状態をOKに設定する
テスト結果を判定する
*** Keywords ***
電卓(calc)を表示する
open calc
電卓(calc)を閉じる
close calc
スクリーンショットを撮る
Take Screenshot # <----- I use here
テスト結果の判定を入力する
Execute Manual Step 合格なら[PASS]不合格なら[FAIL]をクリックしてください
状態をOKに設定する
Set Suite Variable ${status} OK
状態をNGに設定する
Set Suite Variable ${status} NG
テスト結果を判定する
Should Be Equal ${status} OK
""")
class MyLibrary(object):
def open_calc(self):
self.calc = App.open("calc")
wait("1464443509291.png",10)
def close_calc(self):
self.calc.close()
def calculate_addition(self, a, b):
type(a)
sleep(2)
click(Pattern("1464443542037.png").targetOffset(0,47))
type(b)
sleep(2)
click("1464443598287.png")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.