Skip to content

Commit

Permalink
#40 Reinsert Restarting the driver
Browse files Browse the repository at this point in the history
-> Restarting the webdriver (firefox) in CreateSubcollectionsTest and
the data driven tests should prevent Firefox/Jenkins crashing
- Reinsert Restarting the firefox drive before each data driven test
- Restarting the firefox drive before CreateSubcollectionsTest
  • Loading branch information
helkv committed Mar 12, 2019
1 parent e44517c commit d64f293
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ public CreateDefaultStatementPrivate(String type, String statementName, String i

@BeforeClass
public void resetDriver() {
//FIXME: Restarting the bowser leads to a crash on Jenkins
// Restart the browser to prevent Firefox from crashing (see Ticket #40 'Firefox memory leak')
// restartDriver();
restartDriver();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/test/scripts/statements/CreateDefaultStatementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ public CreateDefaultStatementTest(String type, String statementName, String isPr

@BeforeClass
public void resetDriver() {
//FIXME: Restarting the bowser leads to a crash in Jenkins
// Restart the browser to prevent Firefox from crashing (see Ticket #40 'Firefox memory leak')
// restartDriver();
restartDriver();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/test/scripts/statements/CreateNewStatementPrivate.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ public CreateNewStatementPrivate(String type, String statementName, String isPre

@BeforeClass
public void resetDriver() {
//FIXME: Restarting the bowser leads to a crash on Jenkins
// Restart the browser to prevent Firefox from crashing (see Ticket #40 'Firefox memory leak')
// restartDriver();
restartDriver();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/test/scripts/statements/CreateNewStatementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ public CreateNewStatementTest(String type, String statementName, String isPredef

@BeforeClass
public void resetDriver() {
//FIXME: Restarting the bowser leads to a crash on Jenkins
// Restart the browser to prevent Firefox from crashing (see Ticket #40 'Firefox memory leak')
// restartDriver();
restartDriver();
}

@Test(priority = 1)
Expand Down
7 changes: 7 additions & 0 deletions src/test/scripts/subcollections/CreateSubcollectionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import spot.pages.CollectionEntryPage;
Expand Down Expand Up @@ -36,6 +37,12 @@ public class CreateSubcollectionsTest extends BaseSelenium {

private List<String> subcollectionHierachyNames = new ArrayList<>();

@BeforeClass
public void resetDriver() {
// Restart the browser to prevent Firefox from crashing (see Ticket #40 'Firefox memory leak')
restartDriver();
}

/**
* IMJ-21, IMJ-226
*/
Expand Down

0 comments on commit d64f293

Please sign in to comment.