devel-jb-compose-ui-test-server
-| | `GET /health` | Health check | | `GET /onNodeWithTag/{tag}/performClick` | Click element by test tag | | `GET /onNodeWithTag/{tag}/performTextInput?
- License 许可
- MIT
- 最近更新
- 2026-09-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- devel-jb-compose-ui-test-server
- domain
- cybersecurity
- description
- -| | `GET /health` | Health check | | `GET /onNodeWithTag/{tag}/performClick` | Click element by test tag | | `GET /onNodeWithTag/{tag}/performTextInput?
02 资源文件 37
- 参考文档.github/dependabot.yml342 B
- 参考文档.github/workflows/build.yml646 B
- 参考文档.github/workflows/junie.yml472 B
- 参考文档.github/workflows/release.yml1.6 KB
- 其他.gitignore343 B
- 其他build.gradle.kts2.3 KB
- 参考文档CLAUDE.md2.9 KB
- 参考文档docs/index.json84 B
- 参考文档docs/PUBLICATION.md6.0 KB
- 参考文档gradle/index.json399 B
- 其他gradle/libs.versions.toml909 B
- 其他gradle/wrapper/gradle-wrapper.properties252 B
- 参考文档gradle/wrapper/index.json84 B
- 其他gradlew8.4 KB
- 脚本gradlew.bat2.7 KB
- 参考文档index.json1.5 KB
- 许可证LICENSE1.0 KB
- 参考文档README.md8.4 KB
- 其他settings.gradle.kts145 B
- 参考文档src/index.json396 B
- 参考文档src/jvmMain/index.json402 B
- 参考文档src/jvmMain/kotlin/index.json401 B
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/ApplicationLauncher.kt2.7 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/ComposeUiTestServer.kt4.5 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/ComposeUiTestServerConfig.kt1.2 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/endpoint/ClickEndpoints.kt2.0 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/endpoint/HealthEndpoint.kt611 B
- 参考文档src/jvmMain/kotlin/io/github/forketyfork/composeuittest/endpoint/index.json84 B
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/endpoint/ScreenshotEndpoint.kt1.9 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/endpoint/TextInputEndpoint.kt1.6 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/endpoint/WaitEndpoints.kt3.2 KB
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/Extensions.kt3.1 KB
- 参考文档src/jvmMain/kotlin/io/github/forketyfork/composeuittest/index.json450 B
- 其他src/jvmMain/kotlin/io/github/forketyfork/composeuittest/TestEndpoint.kt1.2 KB
- 参考文档src/jvmMain/kotlin/io/github/forketyfork/index.json447 B
- 参考文档src/jvmMain/kotlin/io/github/index.json429 B
- 参考文档src/jvmMain/kotlin/io/index.json412 B
03 SKILL.md 正文
-|
| GET /health | Health check |
| GET /onNodeWithTag/{tag}/performClick | Click element by test tag |
| GET /onNodeWithTag/{tag}/performTextInput?text=... | Enter text (URL-encode the text!) |
| GET /onNodeWithText/{text}/performClick | Click element by display text |
| GET /waitUntilExactlyOneExists/tag/{tag}?timeout=5000 | Wait for element by tag |
| GET /waitUntilExactlyOneExists/text/{text}?exact=true&timeout=5000 | Wait for element by text |
| GET /waitForIdle | Wait for UI to stabilize |
| GET /captureScreenshot?path=screenshot.png | Capture screenshot |
Workflow Pattern
Follow this sequence for reliable interactions:
# 1. Verify server is running
curl http://localhost:54345/health
# 2. Wait for UI to be ready
curl http://localhost:54345/waitForIdle
# 3. Perform action
curl "http://localhost:54345/onNodeWithTag/username/performTextInput?text=myuser"
# 4. Wait for UI to settle
curl http://localhost:54345/waitForIdle
# 5. Perform next action
curl http://localhost:54345/onNodeWithTag/login_button/performClick
# 6. Wait for result
curl "http://localhost:54345/waitUntilExactlyOneExists/tag/dashboard?timeout=10000"
# 7. Capture screenshot to verify
curl "http://localhost:54345/captureScreenshot?path=result.png"
Finding Test Tags
Search the codebase for existing test tags:
grep -r "testTag\|Modifier.testTag" --include="*.kt" .
Also check:
CLAUDE.mdfor documented test tags- Test files in
src/*Test/directories
Important Notes
- Always URL-encode special characters in text: space→
%20,@→%40,&→%26 - Use
waitForIdlebetween operations for stability - Check HTTP status codes: 200=success, 400=bad request, 500=error
- Use appropriate timeouts for waits (default 5000ms may be too short)
- Screenshots require absolute paths
Error Handling
If an endpoint returns an error:
- Check the element exists (search for its test tag in code)
- Ensure UI has finished loading (
waitForIdle) - Verify the server is still running (
/health) - Try with a longer timeout for wait operations
04 同仓库更多 Skills
devel-jb-algorithmic-art
- Embed algorithms inline in the HTML artifact (don't create separate .
services-wmi-persistence-detect
Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.
services-wmi-exec-exploit
Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.
registry-artifact-extract
Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.
processes-token-impersonate-detect
Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.
processes-thread-injection-detect
Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.