Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e28bc3

Browse files
committed
Move ScreenCapturingTests images
1 parent 6f29e4f commit 6e28bc3

File tree

10 files changed

+17
-10
lines changed

10 files changed

+17
-10
lines changed

src/main/java/javafxlibrary/testapps/controllers/ImageDemoController.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public class ImageDemoController implements Initializable {
3232

3333
private @FXML TextField search;
3434
private @FXML VBox rowWrapper;
35-
private List<File> files;
35+
//private List<File> files;
3636
private List<File> imageFiles;
3737
private List<ImageFile> images;
3838

3939
@Override
4040
public void initialize(URL location, ResourceBundle resources) {
41-
File folder = new File("src/main/resources/ScreenCapturing/comparison");
42-
files = Arrays.asList(folder.listFiles());
43-
imageFiles = new ArrayList<>(files);
41+
//File folder = new File("src/main/resources/ScreenCapturing/comparison");
42+
//files = Arrays.asList(folder.listFiles());
43+
imageFiles = new ArrayList<>(/*files*/);
4444
imageFiles.add(new File("src/main/resources/fxml/javafxlibrary/ui/uiresources/ejlogo.png"));
4545
images = new ArrayList<>();
4646
Collections.shuffle(imageFiles);

src/test/robotframework/acceptance/ScreenCapturingTest.robot

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
*** Settings ***
2-
Documentation Tests to test javafxlibrary.keywords.ScreenCapturing related keywords
3-
Resource ../resource.robot
4-
Suite Setup Setup all tests
5-
Suite Teardown Teardown all tests
6-
Force Tags set-screencapturing
2+
Documentation Tests to test javafxlibrary.keywords.ScreenCapturing related keywords
3+
Library String
4+
Resource ../resource.robot
5+
Suite Setup Setup all tests
6+
Suite Teardown Teardown all tests
7+
Force Tags set-screencapturing
78
89
*** Variables ***
910
${TEST_APPLICATION} javafxlibrary.testapps.TestScreenCapturing
10-
${COMPARISON} src/main/resources/screencapturing/comparison/
11+
${COMPARISON} ${EMPTY}
1112
1213
*** Test Cases ***
1314
Capture Node
@@ -100,6 +101,12 @@ Setup all tests
100101
Set Timeout 0
101102
Launch Javafx Application ${TEST_APPLICATION}
102103
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
104+
Set comparison path
103105
104106
Teardown all tests
105107
Close Javafx Application
108+
109+
Set comparison path
110+
${dir_path} Fetch From Left ${CURDIR} acceptance
111+
${comparison_path} Catenate SEPARATOR= ${dir_path} resources/screencapturingtest/
112+
Set Suite Variable ${COMPARISON} ${comparison_path}

0 commit comments

Comments
 (0)