Skip to content

Commit bcab6fa

Browse files
committed
refactor: 完成所有测试用例描述的中文化改造 (111/111)
1 parent 9578297 commit bcab6fa

27 files changed

Lines changed: 27 additions & 30 deletions

examples/A/test_verify_chromedriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class ChromedriverTests(BaseCase):
88
@pytest.mark.owner('caijinwei')
99
@pytest.mark.priority('P2')
10-
@pytest.mark.description('Test that mismatched ChromeDriver and Chrome versions are detected and reported')
10+
@pytest.mark.description('验证 ChromeDriver Chrome 版本不匹配时的检测和报告')
1111
def test_fail_if_versions_dont_match(self):
1212
self.open("about:blank")
1313
if self.browser != "chrome":

examples/A/test_window_switching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class TabSwitchingTests(BaseCase):
1212
@pytest.mark.owner('wangwu')
1313
@pytest.mark.priority('P2')
14-
@pytest.mark.description('Test switch to tabs')
14+
@pytest.mark.description('验证浏览器标签页切换功能')
1515
def test_switch_to_tabs(self):
1616
self.open("data:text/html,<h1>Page A</h1>")
1717
self.assert_text("Page A")

examples/A/test_xfail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class XFailTests(BaseCase):
1010
@pytest.mark.xfail
1111
@pytest.mark.owner('lisi')
1212
@pytest.mark.priority('P1')
13-
@pytest.mark.description('Test pytest xfail marker correctly marks known failing tests as expected failures')
13+
@pytest.mark.description('验证 pytest xfail 标记正确标记已知失败用例')
1414
def test_xfail(self):
1515
self.open("https://xkcd.com/376/")
1616
self.sleep(1) # Time to read the comic

examples/A/test_xkcd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class MyTestClass(BaseCase):
77
@pytest.mark.owner('zhaoliu')
88
@pytest.mark.priority('P3')
9-
@pytest.mark.description('Test XKCD comics navigation and MasterQA visual verification across multiple pages')
9+
@pytest.mark.description('验证 XKCD 漫画网站导航和 MasterQA 视觉验证')
1010
def test_xkcd(self):
1111
self.open("https://xkcd.com/353/")
1212
self.assert_title("xkcd: Python")

examples/B/test_cycle_elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class CycleTests(BaseCase):
77
@pytest.mark.owner('zhaoliu')
88
@pytest.mark.priority('P2')
9-
@pytest.mark.description('Test cycle elements with tab and press enter')
9+
@pytest.mark.description('验证通过 Tab 键和回车键循环元素操作')
1010
def test_cycle_elements_with_tab_and_press_enter(self):
1111
"""
1212
Test pressing the tab key to cycle through elements.

examples/B/test_decryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class DecryptionTests(BaseCase):
1010
@pytest.mark.owner('zhaoliu')
1111
@pytest.mark.priority('P2')
12-
@pytest.mark.description('Test SeleniumBase password decryption utility with encrypted credential string')
12+
@pytest.mark.description('验证 SeleniumBase 密码解密工具处理加密凭据字符串')
1313
def test_decrypt_password(self):
1414
self.open("https://www.saucedemo.com")
1515
self.type("#user-name", "standard_user")

examples/B/test_demo_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class DemoSiteTests(BaseCase):
77
@pytest.mark.owner('liuyang')
88
@pytest.mark.priority('P0')
9-
@pytest.mark.description('Test comprehensive SeleniumBase demo site with text input, dropdowns, buttons, sliders, iframes, checkboxes and drag-drop')
9+
@pytest.mark.description('验证 SeleniumBase 演示网站的完整功能:文本输入、下拉菜单、按钮、滑块、iframe、复选框和拖拽')
1010
def test_demo_site(self):
1111
# Open a web page in the active browser window
1212
self.open("https://seleniumbase.io/demo_page")

examples/B/test_detect_404s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class BrokenLinkTests(BaseCase):
77
@pytest.mark.owner('chenmei')
88
@pytest.mark.priority('P3')
9-
@pytest.mark.description('Test all page links to detect broken links and 404 errors')
9+
@pytest.mark.description('验证检测页面链接中的损坏链接和 404 错误')
1010
def test_link_checking(self):
1111
self.open("https://seleniumbase.io/other/broken_page.html")
1212
print("\n(This test should fail)")

examples/B/test_display_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class MyChartMakerClass(BaseCase):
77
@pytest.mark.owner('zhangsan')
88
@pytest.mark.priority('P3')
9-
@pytest.mark.description('Test SeleniumBase chart display with Chart.js rendered bar chart')
9+
@pytest.mark.description('验证 SeleniumBase 使用 Chart.js 渲染条形图显示')
1010
def test_display_chart(self):
1111
self.create_pie_chart(title="Pie Chart")
1212
self.add_data_point("Passed", 7, color="#95d96f")

examples/B/test_parse_soup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def click_menu_item(self, text):
1616

1717
@pytest.mark.owner('wangwu')
1818
@pytest.mark.priority('P2')
19-
@pytest.mark.description('Test beautiful soup parsing')
19+
@pytest.mark.description('验证 BeautifulSoup HTML 解析功能')
2020
def test_beautiful_soup_parsing(self):
2121
if self.headless:
2222
self.open_if_not_url("about:blank")

0 commit comments

Comments
 (0)