Class UiTestScenario.Builder
java.lang.Object
com.render.testkit.UiTestScenario.Builder
- Enclosing class:
UiTestScenario
Builds a bounded sequence; actions run between completed frames, rather than during catch-up client ticks.
-
Method Summary
Modifier and TypeMethodDescriptionadvanceFrames(int frames, double secondsPerFrame) Advances the RenderLib animation clock once per completed logical frame.animationTime(double seconds) Sets RenderLib's animation clock; Minecraft ticks and arbitrary mod timers remain real-time.assertPixel(String label, double x, double y, com.render.api.RenderColor color, int tolerance) Compares one actual framebuffer pixel, including alpha, with a per-channel 0..255 tolerance.assertThat(String label, Predicate<UiTestContext> assertion) Evaluates a named, immediate and side-effect-free state assertion on the client thread.build()checkpoint(String label) click(double x, double y, int button) clickComponent(String id) Clicks the current border-box center of a uniquely identified managed component.drag(double fromX, double fromY, double toX, double toY, int frames) Holds the left button and dispatches one interpolated drag position per rendered frame.key(int keyCode, int modifiers) Dispatches a key press and release using GLFW key codes and modifier flags.mouseMove(double x, double y) scroll(double x, double y, double horizontal, double vertical) startVideo(String label) Starts a bounded MP4 recording.startVideo(String label, int fps) Overrides the request's recording rate for this video.timeoutSeconds(int value) Bounds one scenario, including asynchronous screenshots and video encoding, to 1..600 seconds.Sends Unicode code points through Screen.charTyped; it does not directly assign an input's value.waitFrames(int frames) Waits completed render frames without advancing the controlled animation clock.
-
Method Details
-
coordinates
-
timeoutSeconds
Bounds one scenario, including asynchronous screenshots and video encoding, to 1..600 seconds. -
mouseMove
-
click
-
clickComponent
Clicks the current border-box center of a uniquely identified managed component. -
drag
Holds the left button and dispatches one interpolated drag position per rendered frame. -
scroll
-
key
Dispatches a key press and release using GLFW key codes and modifier flags. -
type
Sends Unicode code points through Screen.charTyped; it does not directly assign an input's value. -
waitFrames
Waits completed render frames without advancing the controlled animation clock. -
animationTime
Sets RenderLib's animation clock; Minecraft ticks and arbitrary mod timers remain real-time. -
advanceFrames
Advances the RenderLib animation clock once per completed logical frame. -
assertThat
Evaluates a named, immediate and side-effect-free state assertion on the client thread. -
assertPixel
public UiTestScenario.Builder assertPixel(String label, double x, double y, com.render.api.RenderColor color, int tolerance) Compares one actual framebuffer pixel, including alpha, with a per-channel 0..255 tolerance. -
checkpoint
-
startVideo
Starts a bounded MP4 recording. PNG frames remain available if encoding fails. -
startVideo
Overrides the request's recording rate for this video. -
stopVideo
-
build
-