From d7ea91f04fe80e4e57371d200e1bbe8689f25fdc Mon Sep 17 00:00:00 2001 From: automatealchemist Date: Sat, 15 Feb 2025 22:34:56 +0530 Subject: [PATCH 1/2] Assertion example and test runner link in chinese language added. --- .../webdriver/getting_started/using_selenium.zh-cn.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md b/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md index 45455718372d..573de97b5011 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md @@ -78,7 +78,8 @@ description: > {{% /tab %}} {{% tab header="Kotlin" %}} - +- [Kotest](https://kotest.io/) - 个灵活且全面的测试框架,专为 Kotlin 设计。 +- [JUnit5](https://junit.org/junit5/) -标准的 Java 测试框架,完全兼容 Kotlin。 {{% /tab %}} {{< /tabpane >}} @@ -135,7 +136,7 @@ In your project's `package.json`, add requirement to `dependencies`: {{< gh-codeblock path="examples/javascript/test/getting_started/runningTests.spec.js#L14-L15" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/javascript/test/getting_started/runningTests.spec.js#L14-L15" >}} {{< /tab >}} {{< /tabpane >}} From a8757e56a27b962baf464d4469f43f091528efeb Mon Sep 17 00:00:00 2001 From: automatealchemist Date: Fri, 21 Feb 2025 09:23:35 +0530 Subject: [PATCH 2/2] Fixed incorrect assertion link and added some translation in Chinese Kotlin example --- .../getting_started/using_selenium.zh-cn.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md b/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md index 573de97b5011..b53b33af6835 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.zh-cn.md @@ -49,32 +49,32 @@ description: > {{< tabpane text=true >}} {{% tab header="Java" %}} -- [JUnit](https://junit.org/junit5/) - A widely-used testing framework for Java-based Selenium tests. -- [TestNG](https://testng.org/) - Offers extra features like parallel test execution and parameterized tests. +- [JUnit](https://junit.org/junit5/) - 个广泛使用的用于基于 Java 的 Selenium 测试的测试框架。 +- [TestNG](https://testng.org/) - 提供诸如并行测试执行和参数化测试等额外功能。 {{% /tab %}} {{% tab header="Python" %}} -- [pytest](https://pytest.org/) - A preferred choice for many, thanks to its simplicity and powerful plugins. -- [unittest](https://docs.python.org/3/library/unittest.html) - Python's standard library testing framework. +- [pytest](https://pytest.org/) - 由于其简单性和强大的插件,它成为许多人的首选。 +- [unittest](https://docs.python.org/3/library/unittest.html) - Python 的标准测试库 {{% /tab %}} {{% tab header="CSharp" %}} -- [NUnit](https://nunit.org/) - A popular unit-testing framework for .NET. -- [MS Test](https://docs.microsoft.com/en-us/visualstudio/test/getting-started-with-unit-testing?view=vs-2019) - Microsoft's own unit testing framework. +- [NUnit](https://nunit.org/) - .NET的流行单元测试框架 +- [MS Test](https://docs.microsoft.com/en-us/visualstudio/test/getting-started-with-unit-testing?view=vs-2019) - 微软自己的单元测试框架 {{% /tab %}} {{% tab header="Ruby" %}} -- [RSpec](https://rspec.info/) - The most widely used testing library for running Selenium tests in Ruby. -- [Minitest](https://github.com/seattlerb/minitest) - A lightweight testing framework that comes with Ruby standard library. +- [RSpec](https://rspec.info/) - Ruby中运行Selenium测试最广泛使用的测试库 +- [Minitest](https://github.com/seattlerb/minitest) - 一个随Ruby标准库附带的轻量级测试框架 {{% /tab %}} {{% tab header="JavaScript" %}} -- [Jest](https://jestjs.io/) - Primarily known as a testing framework for React, it can also be used for Selenium tests. -- [Mocha](https://mochajs.org/) - The most common JS library for running Selenium tests. +- [Jest](https://jestjs.io/) - 主要作为React的测试框架而闻名,但也可以用于Selenium测试 +- [Mocha](https://mochajs.org/) -最常用的运行Selenium测试的JavaScript库。 {{% /tab %}} {{% tab header="Kotlin" %}} @@ -136,7 +136,7 @@ In your project's `package.json`, add requirement to `dependencies`: {{< gh-codeblock path="examples/javascript/test/getting_started/runningTests.spec.js#L14-L15" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path="examples/javascript/test/getting_started/runningTests.spec.js#L14-L15" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L20-21" >}} {{< /tab >}} {{< /tabpane >}}