Ignore:
Timestamp:
2018-12-18T19:31:51+13:00 (5 years ago)
Author:
ak19
Message:

No longer passing around the FrameFixture window object between the test class and the testutil class of helper functions. The helper class (GSGUITestingUtil) keeps a reference to it, but it's still instantiated in the test class to ensure JUnit setup and teardown works normally on a per test basis (or however will turn out best when we finally get tutorial tests implemented).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/testing/trunk/src/src/gstests/tutorials/RunGLITest.java

    r32705 r32713  
    129129      window = findFrame("GUIManager").using(robot());
    130130     
     131      GSGUITestingUtil.setWindow(window); // set this first before calling any of Util's other methods
     132     
    131133      String gatherPaneLabel = Dictionary.get("GUI.Gather");
    132134      System.err.println("@@@ Expecting label: " + gatherPaneLabel);
     
    142144      // attempt to switch to enrich pane, uses static methods of GSGUITestingUtil
    143145      // through static import of that class
    144       switchToPane(window, DOWNLOAD_PANE);
     146      switchToPane(DOWNLOAD_PANE);
    145147
    146148      // For testing, want GLI to be in librarian mode by default
    147       changeUserMode(window, "librarian");
     149      changeUserMode("librarian");
    148150
    149       switchToPane(window, GATHER_PANE);
     151      switchToPane(GATHER_PANE);
    150152     
    151       loadCollection(window, "lucene-jdbm-demo");
     153      loadCollection("lucene-jdbm-demo");
    152154
    153155      // wait a couple of seconds again?
    154156      PAUSE(2);     
    155       closeCollection(window);
     157      closeCollection();
    156158     
    157       createCollection(window, "pinky", "Pinky was here", null);
    158       closeCollection(window); // collection must be closed in order to be deleted
    159       deleteCollection(window, "pinky");
     159      createCollection("pinky", "Pinky was here", null);
     160      closeCollection(); // collection must be closed in order to be deleted
     161      deleteCollection("pinky");
    160162      // wait a few of seconds again?
    161163      PAUSE(2);
    162164     
    163       exportCollection(window, "GreenstoneMETS", "lucene-jdbm-demo");
     165      exportCollection("GreenstoneMETS", "lucene-jdbm-demo");
    164166
    165167      // Reset GLI to expert mode for regular GLI use
    166       changeUserMode(window, "expert");
     168      changeUserMode("expert");
    167169     
    168170      PAUSE(5);
    169       //exitGLI(window);
     171      //exitGLI();
    170172     
    171       switchToPane(window, GATHER_PANE);
     173      switchToPane(GATHER_PANE);
    172174  }
    173175
Note: See TracChangeset for help on using the changeset viewer.