2020import io .cdap .e2e .pages .locators .CdfPipelineRunLocators ;
2121import io .cdap .e2e .utils .*;
2222import io .cdap .plugin .locators .ReplicationLocators ;
23+ import io .cdap .plugin .utils .BigQuery ;
2324import io .cdap .plugin .utils .OracleClient ;
2425import io .cdap .plugin .utils .ValidationHelper ;
2526import org .apache .commons .lang .StringUtils ;
@@ -59,7 +60,7 @@ public static void clickOnOraclePlugin() {
5960
6061 public static void selectTable () {
6162 String table = schemaName + "." + tableName ;
62- WaitHelper .waitForElementToBeDisplayed (ReplicationLocators .selectTable (table ));
63+ WaitHelper .waitForElementToBeDisplayed (ReplicationLocators .selectTable (table ), 300 );
6364 AssertionHelper .verifyElementDisplayed (ReplicationLocators .selectTable (table ));
6465 ElementHelper .clickOnElement (ReplicationLocators .selectTable (table ));
6566 }
@@ -113,7 +114,7 @@ public static void waitTillPipelineIsRunningAndCheckForErrors() throws Interrupt
113114 int defaultTimeout = Integer .parseInt (PluginPropertyUtils .pluginProp ("pipeline-initialization" ));
114115 TimeUnit time = TimeUnit .SECONDS ;
115116 time .sleep (defaultTimeout );
116- ValidationHelper .waitForFlush ();
117+ BigQuery .waitForFlush ();
117118 // Checking if an error message is displayed.
118119 Assert .assertFalse (ElementHelper .isElementDisplayed (ReplicationLocators .error ));
119120 }
@@ -140,18 +141,18 @@ public static void insertRecordAndWait()
140141 throws InterruptedException , SQLException , ClassNotFoundException {
141142 OracleClient .insertRow (tableName , schemaName , datatypeValues );
142143 OracleClient .forceFlushCDC ();
143- ValidationHelper .waitForFlush ();
144+ BigQuery .waitForFlush ();
144145 }
145146
146147 public static void deleteRecordAndWait () throws SQLException , ClassNotFoundException , InterruptedException {
147148 OracleClient .deleteRow (tableName , schemaName , deleteCondition );
148149 OracleClient .forceFlushCDC ();
149- ValidationHelper .waitForFlush ();
150+ BigQuery .waitForFlush ();
150151 }
151152
152153 public static void updateRecordAndWait () throws SQLException , ClassNotFoundException , InterruptedException {
153154 OracleClient .updateRow (tableName , schemaName , updateCondition , updatedValue );
154155 OracleClient .forceFlushCDC ();
155- ValidationHelper .waitForFlush ();
156+ BigQuery .waitForFlush ();
156157 }
157158}
0 commit comments