-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26ee49d
commit fce5f87
Showing
12 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
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
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
23 changes: 23 additions & 0 deletions
23
test/sikuli/tests/unit/import-export/12_animated_cube.sikuli/12_animated_cube.py
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
load("scs_bt_configurator.jar") | ||
import scs_bt_configurator | ||
p = scs_bt_configurator.start_it_up(getBundlePath(), "Default_Scene_with_Cube.blend") | ||
try: | ||
wait(Pattern("startup_screen.png").exact(), 5); type(Key.ESC); hover(Pattern("startup_screen.png").exact()); type(Key.ESC) | ||
keyDown(Key.SHIFT); type(Key.RIGHT); keyUp(Key.SHIFT); | ||
find(Pattern("startup_screen_last_frame.png").exact()) | ||
click(Pattern("export_scene_button.png").similar(0.90)) | ||
wait(1.5) | ||
hover(Location(300, 400)) # move cursor to 3D view | ||
type(2 * Key.ESC) # hide warnings | ||
type("2") # switch to 2nd collection | ||
type(Key.F3 + "SCS Import" + Key.ENTER) # do import | ||
hover(Pattern("new_folder_button.png").exact()); mouseMove(50, 0); paste(scs_bt_configurator.get_path_property("SCSBasePath")) | ||
wait(0.1); click(Pattern("scene_with_cube_file.png").similar(0.95)); type(Key.ENTER) | ||
find(Pattern("after_import_screen.png").exact()) | ||
keyDown(Key.SHIFT); type(Key.RIGHT); keyUp(Key.SHIFT); | ||
find(Pattern("after_import_screen_last_frame.png").exact()) | ||
except: | ||
scs_bt_configurator.save_screenshot(getBundlePath(), Screen()) | ||
raise | ||
finally: | ||
scs_bt_configurator.close_blender(p) |
Binary file added
BIN
+108 KB
test/sikuli/tests/unit/import-export/12_animated_cube.sikuli/Default_Scene_with_Cube.blend
Binary file not shown.
Binary file added
BIN
+107 KB
test/sikuli/tests/unit/import-export/12_animated_cube.sikuli/Default_Scene_with_Cube.blend1
Binary file not shown.
Binary file added
BIN
+107 KB
...sikuli/tests/unit/import-export/12_animated_cube.sikuli/after_import_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+114 KB
...s/unit/import-export/12_animated_cube.sikuli/after_import_screen_last_frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.75 KB
...sikuli/tests/unit/import-export/12_animated_cube.sikuli/export_scene_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+582 Bytes
test/sikuli/tests/unit/import-export/12_animated_cube.sikuli/new_folder_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.8 KB
...ikuli/tests/unit/import-export/12_animated_cube.sikuli/scene_with_cube_file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+102 KB
test/sikuli/tests/unit/import-export/12_animated_cube.sikuli/startup_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+112 KB
.../tests/unit/import-export/12_animated_cube.sikuli/startup_screen_last_frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.