From f2bbec7fbce38cd151bd194b78245cfc89d25368 Mon Sep 17 00:00:00 2001 From: Prasant-Sutaria Date: Mon, 25 Aug 2025 17:16:39 +0530 Subject: [PATCH 1/3] fix related to log4j enablement --- pom.xml | 43 ++++++++++++------- .../java/com/quantum/utils/DeviceUtils.java | 15 +++++++ 2 files changed, 43 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index d37b73f..093c74b 100644 --- a/pom.xml +++ b/pom.xml @@ -194,6 +194,20 @@ + + + + org.apache.logging.log4j + log4j-bom + 2.25.1 + import + pom + + + + + + @@ -282,11 +296,11 @@ - - - - - + + + + + commons-configuration @@ -302,16 +316,14 @@ ${commons.logging.version} - - org.apache.logging.log4j - log4j-core - ${log4j.version} - + + + + org.apache.logging.log4j log4j-api - ${log4j.version} @@ -402,6 +414,7 @@ selenium-support + @@ -556,7 +569,7 @@ - + org.seleniumhq.selenium selenium-api @@ -582,7 +595,7 @@ guava ${guava.jre.version} - + org.apache.commons commons-collections4 @@ -596,13 +609,13 @@ jackson-annotations ${jackson.version} - + com.fasterxml.jackson.core jackson-core ${jackson.version} - + com.fasterxml.jackson.core jackson-databind diff --git a/src/main/java/com/quantum/utils/DeviceUtils.java b/src/main/java/com/quantum/utils/DeviceUtils.java index bb9fd11..0174017 100644 --- a/src/main/java/com/quantum/utils/DeviceUtils.java +++ b/src/main/java/com/quantum/utils/DeviceUtils.java @@ -64,6 +64,21 @@ public static boolean verifyVisualText(String text) { String result = isText(text, null); return Validator.verifyThat(message,result ,Matchers.equalTo("true")); } + + /** + * Utility method Verify Text using Perfecto's Visual testing. + * + * @param text - Text to verify. + * + * @param timeOutInSec - Timeout in seconds. + * + * @return Boolean representing whether the text is available or not. + */ + public static boolean verifyVisualText(String text, int timeOutInSec) { + String message = String.format("Text: '%s' should be present", text); + String result = isText(text, null); + return Validator.verifyThat(message,result ,Matchers.equalTo("true")); + } /** * Utility method Assert Text using Perfecto's Visual testing. From e3c61946dd7f18b336f7d0b62ef59978c17f7816 Mon Sep 17 00:00:00 2001 From: Veronika Juhanson Date: Wed, 14 Jan 2026 11:49:12 +0200 Subject: [PATCH 2/3] Fixed the capabilities setting to match w3c --- pom.xml | 2 +- .../java/com/quantum/listeners/PerfectoDriverListener.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 3131637..94be9d0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 io.perfecto quantum - 3.1.7 + 3.1.9 jar Quantum is QAF based open source project powered by Perforce diff --git a/src/main/java/com/quantum/listeners/PerfectoDriverListener.java b/src/main/java/com/quantum/listeners/PerfectoDriverListener.java index 9858fa7..9054757 100644 --- a/src/main/java/com/quantum/listeners/PerfectoDriverListener.java +++ b/src/main/java/com/quantum/listeners/PerfectoDriverListener.java @@ -257,10 +257,10 @@ private void setReportiumJobDetails(Capabilities desiredCapabilities) { } if (jobBranch != null) { - ((DesiredCapabilities) desiredCapabilities).setCapability("report.jobBranch", jobBranch); + perfectoOptions.put("report.jobBranch", jobBranch); } if (tags != null) { - ((DesiredCapabilities) desiredCapabilities).setCapability("report.tags", tags); + perfectoOptions.put("report.tags", tags); } ((DesiredCapabilities) desiredCapabilities).setCapability("perfecto:options",perfectoOptions); From caacbd648e8994136faf95848681b0f35586c176 Mon Sep 17 00:00:00 2001 From: Veronika Juhanson Date: Wed, 14 Jan 2026 11:50:37 +0200 Subject: [PATCH 3/3] Deleted Prasant from developer list, as this is displayed as current developers on maven with his perforce email --- pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pom.xml b/pom.xml index 94be9d0..dd94c68 100644 --- a/pom.xml +++ b/pom.xml @@ -14,12 +14,6 @@ - - Prasant Kumar Sutaria - psutaria@perforce.com - Perfecto Mobile by Perforce - https://www.perfecto.io - Veronika Juhanson vjuhanson@perforce.com