Skip to content

Commit 78fa2f8

Browse files
Made BatchInfo static
1 parent d15356a commit 78fa2f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/com/applitools/example/AcmeBankTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class AcmeBankTests {
2424
// and then it performs cross-browser testing against multiple unique browsers in Applitools Ultrafast Grid.
2525
// It runs the test from a main function, not through a test framework.
2626

27+
// Test constants
28+
private final static BatchInfo BATCH = new BatchInfo("Example: Selenium Java Basic with the Ultrafast Grid");
29+
2730
// Test objects
2831
private VisualGridRunner runner;
2932
private Eyes eyes;
@@ -51,7 +54,7 @@ public void setUpBrowserWithEyes() {
5154
// Create a new batch for tests.
5255
// A batch is the collection of visual tests.
5356
// Batches are displayed in the dashboard, so use meaningful names.
54-
config.setBatch(new BatchInfo("Example: Selenium Java Basic with the Ultrafast Grid"));
57+
config.setBatch(BATCH);
5558

5659
// Add 3 desktop browsers with different viewports for cross-browser testing in the Ultrafast Grid.
5760
// Other browsers are also available, like Edge and IE.

0 commit comments

Comments
 (0)