Skip to content

Commit 7166587

Browse files
wenytang-msCopilot
andcommitted
chore: translate all test plans from Chinese to English
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c595a66 commit 7166587

16 files changed

+340
-340
lines changed

test-plans/java-basic-editing.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
# Test Plan: Java Basic Editing (from vscode-java-pack.wiki)
22
#
3-
# 来源: wiki Test-Plan.md "Basic" 场景 (Steps 1-5)
4-
# 验证: 打开 Eclipse 项目语言服务器就绪 → 代码片段 → Code Action 修复错误
3+
# Source: wiki Test-Plan.md "Basic" scenario (Steps 1-5)
4+
# Verify: Open Eclipse projectLanguage Server ready → Code snippet → Code Action fixes error
55
#
6-
# 前置条件:
7-
# - vscode-java 仓库已 clone 到本地
8-
# - JDK 已安装且可用
6+
# Prerequisites:
7+
# - vscode-java repository cloned locally
8+
# - JDK installed and available
99
#
10-
# 用法: autotest run test-plans/java-basic-editing.yaml
10+
# Usage: autotest run test-plans/java-basic-editing.yaml
1111

12-
name: "Java Basic Editing — 诊断、代码片段、Code Action"
12+
name: "Java Basic Editing — Diagnostics, Code Snippets, Code Action"
1313
description: |
14-
对应 wiki Test Plan 的 Basic 场景前 5 步:
15-
打开 simple-app Eclipse 项目,验证语言服务器启动,
16-
使用 class 代码片段修复 Foo.java,通过 Code Action 补全缺失方法,
17-
最终编译无错误。
14+
Corresponds to the first 5 steps of the Basic scenario in the wiki Test Plan:
15+
Open the simple-app Eclipse project, verify Language Server starts up,
16+
use class code snippet to fix Foo.java, add missing method via Code Action,
17+
ultimately no compilation errors.
1818
1919
setup:
2020
extension: "redhat.java"
2121
extensions:
2222
- "vscjava.vscode-java-pack"
23-
# 如果需要测试扩展开发版本,取消注释:
23+
# To test extension dev version, uncomment:
2424
# extensionPath: "../../vscode-java"
2525
vscodeVersion: "stable"
2626
workspace: "../../vscode-java/test/resources/projects/eclipse/simple-app"
27-
timeout: 60 # Java LS 启动较慢,需要足够等待时间
27+
timeout: 60 # Java LS starts slowly, needs sufficient wait time
2828

2929
steps:
30-
# ── Step 1: 打开项目 ──────────────────────────────────────
30+
# ── Step 1: Open project ──────────────────────────────────
3131
- id: "project-loaded"
32-
action: "等待 5 "
33-
verify: "项目文件树可见"
32+
action: "wait 5 seconds"
33+
verify: "Project file tree is visible"
3434

35-
# ── Step 2: 语言服务器就绪 + 诊断 ────────────────────────
35+
# ── Step 2: Language Server ready + diagnostics ──────────
3636
# wiki: "After the language server is initialized, check the status bar
3737
# icon is 👍, and the problems view has two errors."
3838
- id: "ls-ready"
3939
action: "waitForLanguageServer"
40-
verify: "状态栏显示 Java 语言服务器已就绪(👍 图标)"
40+
verify: "Status bar shows Java Language Server is ready (👍 icon)"
4141
verifyProblems:
4242
errors: 2
4343
timeout: 120
4444

45-
# ── Step 3: 修复 Foo.java(写入 class 代码骨架)────────────
45+
# ── Step 3: Fix Foo.java (write class skeleton) ─────────────
4646
# wiki: "Select Foo.java file, invoke `class` code snippet to generate code
4747
# and the problem view error number is reduced to 1."
48-
# 注意: Foo.java 是空文件,使用磁盘修改写入 class 骨架(snippet 在空文件中不稳定)
48+
# Note: Foo.java is an empty file, using disk modification to write class skeleton (snippet is unstable in empty files)
4949
- id: "open-foo"
50-
action: "打开文件 Foo.java"
51-
verify: "Foo.java 文件已在编辑器中打开"
50+
action: "open file Foo.java"
51+
verify: "Foo.java file is opened in the editor"
5252
timeout: 15
5353

5454
- id: "write-class-body"
@@ -59,20 +59,20 @@ steps:
5959
errors: 1
6060
timeout: 30
6161

62-
# ── Step 4: 创建缺失方法 call() ──────────────────────────
62+
# ── Step 4: Create missing method call() ─────────────────
6363
# wiki: "Select 'Create method call() in type Foo' to fix the error."
64-
# 直接通过磁盘修改添加 call() 方法(Code Action 在自动化中不稳定)
64+
# Directly add call() method via disk modification (Code Action is unstable in automation)
6565
- id: "add-call-method"
6666
action: "insertLineInFile src/app/Foo.java 4 public void call() {}\n"
6767
verifyProblems:
6868
errors: 0
6969
timeout: 30
7070

71-
# ── Step 5: 保存并验证无错误 ─────────────────────────────
71+
# ── Step 5: Save and verify no errors ────────────────────
7272
# wiki: "Save all the files... There should be no errors."
7373
- id: "save-all"
74-
action: "执行命令 File: Save All"
75-
verify: "所有文件已保存,编译无错误"
74+
action: "run command File: Save All"
75+
verify: "All files saved, no compilation errors"
7676
verifyProblems:
7777
errors: 0
7878
timeout: 30
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Test Plan: Java Basic Editing Extended (from vscode-java-pack.wiki)
22
#
3-
# 来源: wiki Test-Plan.md "Basic" 场景 (Steps 6-9)
4-
# 验证: 代码补全 → Organize Imports → Rename Symbol → New Java File
3+
# Source: wiki Test-Plan.md "Basic" scenario (Steps 6-9)
4+
# Verify: Code completion → Organize Imports → Rename Symbol → New Java File
55
#
6-
# 注意: 此 test plan 假设 Basic steps 1-5 已通过(java-basic-editing.yaml,
7-
# 即项目已编译无错误。
6+
# Note: This test plan assumes Basic steps 1-5 have passed (java-basic-editing.yaml),
7+
# i.e. the project compiles without errors.
88
#
9-
# 前置条件:
10-
# - vscode-java 仓库已 clone 到本地
11-
# - JDK 已安装且可用
9+
# Prerequisites:
10+
# - vscode-java repository cloned locally
11+
# - JDK installed and available
1212
#
13-
# 用法: autotest run test-plans/java-basic-extended.yaml
13+
# Usage: autotest run test-plans/java-basic-extended.yaml
1414

15-
name: "Java Basic Extended — 补全、Organize ImportsRename"
15+
name: "Java Basic Extended — Completion, Organize Imports, Rename"
1616
description: |
17-
对应 wiki Test Plan 的 Basic 场景 Steps 6-9:
18-
验证代码补全、Organize ImportsRename 功能。
17+
Corresponds to Steps 6-9 of the Basic scenario in the wiki Test Plan:
18+
Verify code completion, Organize Imports, and Rename functionality.
1919
2020
setup:
2121
extension: "redhat.java"
@@ -26,24 +26,24 @@ setup:
2626
timeout: 60
2727

2828
steps:
29-
# ── 等待 LS 就绪 ─────────────────────────────────────────
29+
# ── Wait for LS ready ───────────────────────────────────────
3030
- id: "ls-ready"
3131
action: "waitForLanguageServer"
32-
verify: "状态栏显示 Java 语言服务器已就绪"
32+
verify: "Status bar shows Java Language Server is ready"
3333
timeout: 120
3434

35-
# ── Step 6: 输入 File 代码验证补全 ──────────────────────
35+
# ── Step 6: Type File code and verify completion ──────────
3636
# wiki: "Typing 'File f = new File(\"demo.txt\");' into App.main,
3737
# the completion should work for File and there should be
3838
# two errors in the problem view."
3939
- id: "open-app"
40-
action: "打开文件 App.java"
41-
verify: "App.java 文件已在编辑器中打开"
40+
action: "open file App.java"
41+
verify: "App.java file is opened in the editor"
4242
timeout: 10
4343

4444
- id: "goto-main-body"
4545
action: "goToLine 6"
46-
verify: "光标在 main 方法体内"
46+
verify: "Cursor is inside the main method body"
4747

4848
- id: "goto-end"
4949
action: "goToEndOfLine"
@@ -53,7 +53,7 @@ steps:
5353
verifyEditor:
5454
contains: "File f = new File"
5555

56-
# 保存文件让 LS 感知变更(typeInEditor 可能不触发 didChange
56+
# Save the file so LS picks up changes (typeInEditor may not trigger didChange)
5757
- id: "save-before-organize"
5858
action: "saveFile"
5959
verifyProblems:
@@ -63,8 +63,8 @@ steps:
6363

6464
# ── Step 7: Organize Imports ────────────────────────────
6565
# wiki: "Invoke 'Source Action...' => 'Organize Imports'"
66-
# 注意: Organize Imports File 类可能弹出选择对话框(多个候选类),
67-
# 这里通过磁盘修改直接添加 import 来验证等效行为。
66+
# Note: Organize Imports may pop up a selection dialog for File class (multiple candidates),
67+
# here we add the import directly via disk modification to verify equivalent behavior.
6868
- id: "add-import"
6969
action: "insertLineInFile src/app/App.java 2 import java.io.File;"
7070
verifyEditor:
@@ -73,8 +73,8 @@ steps:
7373
# ── Step 8: Rename Symbol ───────────────────────────────
7474
# wiki: "Open Foo.java, select the definition of class Foo,
7575
# right click and run 'Rename Symbol' to rename it to FooNew."
76-
# 注意: Rename 需要通过 Command Palette 触发 F2
76+
# Note: Rename needs to be triggered via Command Palette (F2)
7777
- id: "open-foo-for-rename"
78-
action: "打开文件 Foo.java"
79-
verify: "Foo.java 文件已在编辑器中打开"
78+
action: "open file Foo.java"
79+
verify: "Foo.java file is opened in the editor"
8080
timeout: 10

test-plans/java-debugger.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Test Plan: Debugger for Java (from vscode-java-pack.wiki)
22
#
3-
# 来源: wiki Test-Plan.md "Debugger for Java" 场景
4-
# 验证: 启动调试 → 断点命中 → 单步调试 → 变量查看 → 程序输出
3+
# Source: wiki Test-Plan.md "Debugger for Java" scenario
4+
# Verify: Start debugging → Breakpoint hit → Step through → Variable inspection → Program output
55
#
6-
# 使用 simple-app 项目(有 main 方法的 App.java
6+
# Uses simple-app project (App.java with main method)
77
#
8-
# 前置条件:
9-
# - vscode-java 仓库已 clone 到本地
10-
# - JDK 已安装且可用
8+
# Prerequisites:
9+
# - vscode-java repository cloned locally
10+
# - JDK installed and available
1111
#
12-
# 用法: autotest run test-plans/java-debugger.yaml
12+
# Usage: autotest run test-plans/java-debugger.yaml
1313

14-
name: "Java Debugger — 断点调试"
14+
name: "Java Debugger — Breakpoint Debugging"
1515
description: |
16-
对应 wiki Test Plan 的 Debugger for Java 场景:
17-
打开 simple-app 项目,设置断点,启动调试,
18-
验证断点命中和程序输出。
16+
Corresponds to the Debugger for Java scenario in the wiki Test Plan:
17+
Open the simple-app project, set breakpoints, start debugging,
18+
verify breakpoint hit and program output.
1919
2020
setup:
2121
extension: "redhat.java"
@@ -26,38 +26,38 @@ setup:
2626
timeout: 60
2727

2828
steps:
29-
# ── 等待 LS 就绪 ─────────────────────────────────────────
29+
# ── Wait for LS ready ───────────────────────────────────────
3030
- id: "ls-ready"
3131
action: "waitForLanguageServer"
32-
verify: "状态栏显示 Java 语言服务器已就绪"
32+
verify: "Status bar shows Java Language Server is ready"
3333
timeout: 120
3434

35-
# ── 打开 App.java ────────────────────────────────────────
35+
# ── Open App.java ──────────────────────────────────────────
3636
- id: "open-app"
37-
action: "打开文件 App.java"
38-
verify: "App.java 文件已在编辑器中打开"
37+
action: "open file App.java"
38+
verify: "App.java file is opened in the editor"
3939
timeout: 15
4040

41-
# ── 设置断点 ─────────────────────────────────────────────
41+
# ── Set breakpoint ──────────────────────────────────────────
4242
# wiki: "verify if the breakpoint is hit"
43-
# App.java 5 行是 System.out.println("Hello Java");
43+
# App.java line 5 is System.out.println("Hello Java");
4444
- id: "set-breakpoint"
4545
action: "setBreakpoint 5"
46-
verify: "在第 5 行设置了断点"
46+
verify: "Breakpoint set on line 5"
4747

48-
# ── 启动调试 ─────────────────────────────────────────────
48+
# ── Start debugging ────────────────────────────────────────
4949
- id: "start-debug"
5050
action: "startDebugSession"
51-
verify: "调试会话已启动,调试工具栏可见"
51+
verify: "Debug session started, debug toolbar is visible"
5252
timeout: 30
5353

54-
# ── 验证调试控制台输出 ────────────────────────────────────
54+
# ── Verify debug console output ──────────────────────────────
5555
# wiki: "program output is as expected"
5656
- id: "wait-for-output"
57-
action: "等待 5 "
58-
verify: "程序运行并输出结果"
57+
action: "wait 5 seconds"
58+
verify: "Program runs and produces output"
5959

60-
# ── 停止调试 ─────────────────────────────────────────────
60+
# ── Stop debugging ─────────────────────────────────────────
6161
- id: "stop-debug"
6262
action: "stopDebugSession"
63-
verify: "调试会话已停止"
63+
verify: "Debug session stopped"
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Test Plan: Java Dependency Viewer (from vscode-java-pack.wiki)
22
#
3-
# 来源: wiki Test-Plan.md "Java Dependency Viewer" 场景
4-
# 验证: 依赖视图展示 Sources / JDK Libraries / Maven Dependencies
3+
# Source: wiki Test-Plan.md "Java Dependency Viewer" scenario
4+
# Verify: Dependency view shows Sources / JDK Libraries / Maven Dependencies
55
#
6-
# 前置条件:
7-
# - vscode-java 仓库已 clone 到本地
8-
# - JDK 已安装且可用
9-
# - Maven 已安装
6+
# Prerequisites:
7+
# - vscode-java repository cloned locally
8+
# - JDK installed and available
9+
# - Maven installed
1010
#
11-
# 用法: autotest run test-plans/java-dependency-viewer.yaml
11+
# Usage: autotest run test-plans/java-dependency-viewer.yaml
1212

13-
name: "Java Dependency Viewer — 依赖视图"
13+
name: "Java Dependency Viewer — Dependency View"
1414
description: |
15-
对应 wiki Test Plan 的 Java Dependency Viewer 场景:
16-
打开 Maven 项目,验证依赖视图可以展示 SourcesJDK LibrariesMaven Dependencies
15+
Corresponds to the Java Dependency Viewer scenario in the wiki Test Plan:
16+
Open a Maven project, verify the dependency view can show Sources, JDK Libraries, and Maven Dependencies.
1717
1818
setup:
1919
extension: "redhat.java"
@@ -24,24 +24,24 @@ setup:
2424
timeout: 90
2525

2626
steps:
27-
# ── 等待 LS 就绪 ─────────────────────────────────────────
27+
# ── Wait for LS ready ───────────────────────────────────────
2828
- id: "ls-ready"
2929
action: "waitForLanguageServer"
30-
verify: "状态栏显示 Java 语言服务器已就绪"
30+
verify: "Status bar shows Java Language Server is ready"
3131
timeout: 120
3232

33-
# ── 打开依赖视图 ─────────────────────────────────────────
33+
# ── Open dependency view ───────────────────────────────────
3434
# wiki: "The dependency explorer can show: Sources, JDK libraries, Maven Dependencies"
3535
- id: "open-dep-explorer"
3636
action: "openDependencyExplorer"
37-
verify: "Java 依赖视图已打开"
37+
verify: "Java dependency view is opened"
3838

39-
# ── 验证 Sources 节点可见 ────────────────────────────────
39+
# ── Verify Sources node is visible ─────────────────────────
4040
- id: "verify-sources"
41-
action: "等待 3 "
42-
verify: "Sources 节点可见"
41+
action: "wait 3 seconds"
42+
verify: "Sources node is visible"
4343

44-
# ── 展开 Sources 查看内容 ────────────────────────────────
44+
# ── Expand Sources to view contents ────────────────────────
4545
- id: "expand-sources"
46-
action: "展开 salut 节点"
47-
verify: "salut 项目节点已展开,可以看到子节点"
46+
action: "expand salut tree item"
47+
verify: "salut project node is expanded, child nodes are visible"

0 commit comments

Comments
 (0)