From 3025b7515e2da182bf0648986d372453ba417234 Mon Sep 17 00:00:00 2001 From: Nisha Bagdwal Date: Fri, 28 Jun 2024 15:47:33 -0400 Subject: [PATCH] HPCC-31857 : Description Functionality Testing - Modified Loggers --- .../test-ui/tests/framework/pages/BaseTableTest.java | 8 ++++---- .../tests/framework/pages/ECLWorkUnitsTest.java | 10 +++------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/esp/src/test-ui/tests/framework/pages/BaseTableTest.java b/esp/src/test-ui/tests/framework/pages/BaseTableTest.java index a25137f4db5..4f25244ea2f 100644 --- a/esp/src/test-ui/tests/framework/pages/BaseTableTest.java +++ b/esp/src/test-ui/tests/framework/pages/BaseTableTest.java @@ -68,7 +68,7 @@ protected void testPage() { try { Common.logDebug("Tests started for: " + getPageName() + " page."); - //testForAllText(); + testForAllText(); jsonObjects = getAllObjectsFromJson(); if (jsonObjects != null) { @@ -76,7 +76,7 @@ protected void testPage() { int numOfItemsJSON = jsonObjects.size(); clickDropdown(numOfItemsJSON); - //testContentAndSortingOrder(); + testContentAndSortingOrder(); } testLinksInTable(); @@ -90,8 +90,8 @@ protected void testPage() { private void testDetailsPage(String name, int i) { - //testForAllTextInDetailsPage(name); - //testDetailsContentPage(name); + testForAllTextInDetailsPage(name); + testDetailsContentPage(name); // if(i == 0){ // testDetailSpecificFunctionality(name); diff --git a/esp/src/test-ui/tests/framework/pages/ECLWorkUnitsTest.java b/esp/src/test-ui/tests/framework/pages/ECLWorkUnitsTest.java index 7ba631a7656..6fa3be535c5 100644 --- a/esp/src/test-ui/tests/framework/pages/ECLWorkUnitsTest.java +++ b/esp/src/test-ui/tests/framework/pages/ECLWorkUnitsTest.java @@ -142,12 +142,10 @@ private void testIfTheDescriptionUpdated(String wuName, String newDescription) { String updatedDescription = element.getAttribute(getAttributeValueForDetailsPage()).trim(); - Common.logDetail("Updated Description After refresh: "+ updatedDescription); - if (newDescription.equals(updatedDescription)) { - Common.logDetail("Success: "+ getPageName() +" Details page. Description Update Successfully for WUID: " + wuName); + Common.logDetail("Success: "+ getPageName() +" Details page. Description Updated Successfully on click of save button: Description After refresh showing on UI: "+ updatedDescription+", Updated description was: "+newDescription+" for WUID: " + wuName); }else{ - Common.logError("Failure: "+ getPageName() +" Details page. Description Did Not Update for WUID on click of save button: " + wuName); + Common.logError("Failure: "+ getPageName() +" Details page. Description Did Not Update on click of save button : Description After refresh showing on UI: "+ updatedDescription+", Updated description should be: "+newDescription+" for WUID: " + wuName); } } @@ -159,8 +157,6 @@ private String updateDescriptionAndSave(String newDescription) { String oldDescription = element.getAttribute(getAttributeValueForDetailsPage()); - Common.logDetail("Old Description: "+ oldDescription); - element.sendKeys(Keys.CONTROL + "a"); // Select all text element.sendKeys(Keys.DELETE); // Delete all selected text @@ -173,7 +169,7 @@ private String updateDescriptionAndSave(String newDescription) { Common.sleepWithTime(4); // need to modify this to wait dynamically element = Common.waitForElement(By.id("description")); - Common.logDetail("Updated Description After Save: " + element.getAttribute(getAttributeValueForDetailsPage())); + Common.logDetail("Old Description: "+ oldDescription +", Updated Description After Save: " + element.getAttribute(getAttributeValueForDetailsPage())); return oldDescription; }