-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProgressBar_Enhancement #1613
ProgressBar_Enhancement #1613
Conversation
ahmednasr95
commented
May 14, 2024
- Fixed the repetitive logging during failed assertion
- Added a new logger to the log4j2.properties to be able to print the progress bar on the console
- Added the progress bar to indicate the time elapsed since start of assertion
* Added a new logger to the log4j2.properties to be able to print the progress bar on the console * Added the progress bar to indicate the time elapsed since start of assertion
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1613 +/- ##
=============================================
- Coverage 54.31% 24.32% -30.00%
+ Complexity 1377 633 -744
=============================================
Files 111 112 +1
Lines 9982 10012 +30
Branches 969 971 +2
=============================================
- Hits 5422 2435 -2987
- Misses 3947 7152 +3205
+ Partials 613 425 -188 ☔ View full report in Codecov by Sentry. |
@MohabMohie @MahmoudElSharkawy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for an excellent implementation, and kindly find my comments inline.
regarding the virtual threads, kindly tag @MustafaAgamy via Slack and he'll be happy to help.
@@ -97,7 +97,7 @@ public static String convertBase64(String text) { | |||
*/ | |||
public static int compareTwoObjects(Object expectedValue, Object actualValue, Object comparisonType, | |||
Boolean validationType) { | |||
ReportManager.logDiscrete("Expected \"" + expectedValue + "\", and actual \"" + actualValue + "\""); | |||
//ReportManager.logDiscrete("Expected \"" + expectedValue + "\", and actual \"" + actualValue + "\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of commenting this line, kindly log it using DEBUG level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/main/java/com/shaft/validation/internal/ValidationsHelper2.java
Outdated
Show resolved
Hide resolved
src/main/java/com/shaft/tools/io/internal/ReportManagerHelper.java
Outdated
Show resolved
Hide resolved
…e condition. * Returned the google search test cases to their initial state * Added a virtual thread class that can be used to create virtual threads which assist in performing small tasks
Signed-off-by: Ahmed Nasr <[email protected]>
…n the `ValidationsExecutor` class. * Moved the stop thread method to after the switch statement mentioned above.
…rogress_Bar_Enhancement
…m the log4j.properties file but to no avail * This commit can be used to help in debugging the issue from multiple points of view.
…r logger is abstracted from the log4j2.properties file. * The virtual thread setup and tear-down are returned to the ValidationsHelper2 because: 1. The progress bar is needed only when a fluent wait is running. 2. The progress bar logger configured just before the progress bar starts doesn't log into the external log file. 3. Since the virtual thread tear-down is called after the switch statement, all information logged before that point is not logged into the log file which is undesirable behavior. The aforementioned issue occurs only when the element being validated passes the validation after some time.
Signed-off-by: Mohab Mohie <[email protected]>