-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the testing logic into the common library
Tests the fix for regression in #124. Generally streamlines the process of test creation - from now on, your test should have the same name as the reference image. (cc: #63)
- Loading branch information
Showing
2 changed files
with
21 additions
and
34 deletions.
There are no files selected for viewing
45 changes: 11 additions & 34 deletions
45
test/visual/correct-lotto-placement/correct-lotto-placement.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,24 @@ | ||
*** Settings *** | ||
*** Settings *** | ||
Documentation PsychTaskFramework correct display of lottery | ||
Test Setup Add Needed Images | ||
Library SikuliLibrary | ||
Resource ../lib.robot | ||
Test template Display Correct Lottery With | ||
|
||
*** Variables *** | ||
${IMAGE_DIR} ${CURDIR}\\img | ||
|
||
*** Test Cases *** | ||
Display Correct Lottery | ||
Sleep 1s | ||
Focus Matlab Command Window | ||
Input Text ${EMPTY} testRA_25 | ||
Press Special Key ENTER | ||
Wait Until Screen Contain RA_monetary_USD10_25.png 30 | ||
Sleep 1s | ||
Press Special Key LEFT | ||
Display Medical Symbols | ||
Sleep 1s | ||
Focus Matlab Command Window | ||
Input Text ${EMPTY} testMDM_img | ||
Press Special Key ENTER | ||
Wait Until Screen Contain MDM_amb50.png 30 | ||
Sleep 1s | ||
Press Special Key LEFT | ||
Display Cash Symbols | ||
Sleep 1s | ||
Focus Matlab Command Window | ||
Input Text ${EMPTY} testRA_img | ||
Press Special Key ENTER | ||
Wait Until Screen Contain RA_moneyimg_ambig24.png 30 | ||
Sleep 1s | ||
Press Special Key LEFT | ||
Correct Win Probability And Color | ||
testRA_25 | ||
Correct Medical Image Display | ||
testMDM_img | ||
Correct Monetary Image Display | ||
testRA_img | ||
testSODM_mon_img | ||
Correct Food Image Display | ||
testHLFF_HF_0 | ||
|
||
*** Keywords *** | ||
Add Needed Images | ||
Add Image Path ${IMAGE_DIR} | ||
|
||
# This is duplicated from ../__init__.txt and should be put in a resource file | ||
# Focus Matlab Command Window | ||
# Add Image Path ${MATLAB_IMAGE_DIR} | ||
# #Type With Modifiers 0 CTRL | ||
# Wait Until Screen Contain matlab-command-window-symbol.png 30 | ||
# Click matlab-command-window-symbol.png | ||
# Sleep 1s | ||
# Press Special Key ENTER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters