Fix interface detection for little change in interface

parent b9c50a62
......@@ -83,7 +83,7 @@
<span class="kw">assert</span>(exists(<img src="SinusOscillatorBoxSelected.png" />))
<span class="skw">click</span>(Pattern(<img src="Visualisatio.png" />).targetOffset(-<span class="dig">62</span>,<span class="dig">0</span>))
<span class="skw">click</span>(Pattern(<img src="Basic.png" />).targetOffset(-<span class="dig">50</span>,-<span class="dig">1</span>))
<span class="skw">dragDrop</span>(<img src="Signaldisplay.png" />, Pattern(<img src="designerSinusGenPlaced.png" />).targetOffset(-<span class="dig">197</span>,-<span class="dig">16</span>))
<span class="skw">dragDrop</span>(<img src="Signaldisplay.png" />, Pattern(<img src="designerSinusGenPlaced.png" />).similar(<span class="dig">0.60</span>).targetOffset(-<span class="dig">197</span>,-<span class="dig">16</span>))
<span class="kw">assert</span>(exists(<img src="SignalDisplayBoxSelected.png" />))
<span class="skw">dragDrop</span>(<img src="outputSignalConnector.png" />, <img src="imputSingnalConnector.png" />)
<span class="skw">click</span>(Pattern(<img src="playButton.png" />).similar(<span class="dig">0.95</span>))
......
......@@ -11,7 +11,7 @@ def test_createSimpleScenarioAndRun(self):
assert(exists("SinusOscillatorBoxSelected.png"))
click(Pattern("Visualisatio.png").targetOffset(-62,0))
click(Pattern("Basic.png").targetOffset(-50,-1))
dragDrop("Signaldisplay.png", Pattern("designerSinusGenPlaced.png").targetOffset(-197,-16))
dragDrop("Signaldisplay.png", Pattern("designerSinusGenPlaced.png").similar(0.60).targetOffset(-197,-16))
assert(exists("SignalDisplayBoxSelected.png"))
dragDrop("outputSignalConnector.png", "imputSingnalConnector.png")
click(Pattern("playButton.png").similar(0.95))
......
......@@ -17,10 +17,10 @@ ADD_TEST(comparator_${TEST_NAME} "diff" "--strip-trailing-cr" "${TEST_NAME}.csv"
## add some properties that help to debug
IF(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log")
ELSE(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
ENDIF(WIN32)
SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "${TEST_NAME}.csv"})
SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES DEPENDS run_${TEST_NAME}})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES DEPENDS clean_${TEST_NAME}})
SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "${TEST_NAME}.csv")
SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES DEPENDS run_${TEST_NAME})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES DEPENDS clean_${TEST_NAME})
......@@ -27,9 +27,9 @@ ADD_TEST(run_${TEST_NAME} "$ENV{OV_BINARY_PATH}/openvibe-designer.${EXT}" ${OS_F
## add some properties that help to debug
IF(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log")
ELSE(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
ENDIF(WIN32)
#SET_TESTS_PROPERTIES(comparator_${SUBTEST1_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "${SUBTEST1_NAME}.csv")
......@@ -51,9 +51,9 @@ ENDIF(WIN32)
## add some properties that help to debug
#IF(WIN32)
# SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log"})
# SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log")
#ELSE(WIN32)
# SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log"})
# SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
#ENDIF(WIN32)
#SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "${TEST_NAME}.csv")
......@@ -73,9 +73,9 @@ ADD_TEST(comparator_${TEST_NAME} "$ENV{OV_BINARY_PATH}/test_thresholdDataCompari
## add some properties that help to debug
IF(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log")
ELSE(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
ENDIF(WIN32)
SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "${TEST_NAME}.csv")
......
......@@ -19,9 +19,9 @@ ADD_TEST(exist_${TEST_NAME} "ls" "${TEST_NAME}.txt")
## add some properties that help to debug
IF(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log")
ELSE(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
ENDIF(WIN32)
SET_TESTS_PROPERTIES(exist_${TEST_NAME} PROPERTIES DEPENDS run_${TEST_NAME}})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES DEPENDS clean_${TEST_NAME}})
......@@ -35,9 +35,9 @@ ADD_TEST(exist_${TEST_NAME} "ls" "${TEST_NAME}.txt")
## add some properties that help to debug
IF(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{APPDATA}/openvibe/log/openvibe-designer.log")
ELSE(WIN32)
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log"})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
ENDIF(WIN32)
SET_TESTS_PROPERTIES(exist_${TEST_NAME} PROPERTIES DEPENDS run_${TEST_NAME}})
SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES DEPENDS clean_${TEST_NAME}})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment