-
Notifications
You must be signed in to change notification settings - Fork 20
implement wait expect. #195
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
base: main
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
b60aede to
16a87c8
Compare
PR Type
Enhancement
Description
Add wait_expect feature for intelligent polling instead of fixed sleep
Implement configurable interval and timeout parameters for wait_expect
Add parsing logic for @wait_expect flag with validation
Implement executeWithWaitExpect method for repeated execution until match
Add comprehensive getting started documentation with examples
Diagram Walkthrough
File Walkthrough
SqlCommand.java
Add wait_expect configuration fieldssrc/main/java/io/mo/cases/SqlCommand.java
waitExpectboolean field to enable wait_expect modewaitExpectIntervalfield for check interval in secondswaitExpectTimeoutfield for timeout duration in secondsExecutor.java
Implement wait_expect execution logic with pollingsrc/main/java/io/mo/db/Executor.java
runmethod to callexecuteWithWaitExpectwhen wait_expect isenabled
genRSmethod with timeout-based sleepexecuteWithWaitExpectmethod with polling logicor timeout
ScriptParser.java
Add wait_expect flag parsing and validationsrc/main/java/io/mo/util/ScriptParser.java
@wait_expectflag in comment linesparseWaitExpectFlagmethod to parse flag format-- @wait_expect(interval, timeout)timeout
COMMON.java
Add wait_expect flag constantsrc/main/java/io/mo/constant/COMMON.java
WAIT_EXPECT_FLAGconstant with value "-- @wait_expect"WAIT_EXPECT_GETTING_STARTED.md
Add comprehensive wait_expect documentationWAIT_EXPECT_GETTING_STARTED.md
index building
recommendations