小编gol*_*lla的帖子

如何找到 Windows 10 上 Java 的安装位置?

我最近在我的机器上安装了 Java(Java Runtime 1.8.121)。我需要设置 JAVA_HOME 并从安装它的 Java 文件夹中设置变量。

我在网上查看的所有地方都说 Java 文件夹应该位于 Program files (x86) 中,但是,却找不到它。它不在程序文件(x86)中,不在程序文件中。由于使用了软件中心,因此安装时我无法选择目的地。它简单地完成了安装。

有人可以帮我找到 Java 文件夹在哪里,以便我可以设置 JAVA_HOME 吗???!

java java-home appv windows-10

5
推荐指数
2
解决办法
3万
查看次数

黄瓜数据表错误 - io.cucumber.datatable.UndefinedDataTableTypeException:无法将数据表转换为黄瓜.api.DataTable

尝试使用黄瓜/硒/java/intelliJ 运行场景,但在其中一个步骤中收到有关 DataTable 的错误。在我开始使用测试运行器并更改了一些东西之前,dataTable 工作正常并正确转换了步骤的参数,但我无法让它工作。

这是错误:

cucumber.runtime.CucumberException: Could not convert arguments for step [^I enter the following login details:$] defined at 'Steps.MaStepdefs.iEnterTheFollowingLoginDetails(DataTable) in file:/C:/Users/Kristian.Senior/Desktop/CukesReporting/target/test-classes/'.
It appears you did not register a data table type. The details are in the stacktrace below.
    at cucumber.runner.PickleStepDefinitionMatch.registerTypeInConfiguration(PickleStepDefinitionMatch.java:59)
    at cucumber.runner.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:44)
    at cucumber.runner.TestStep.executeStep(TestStep.java:63)
    at cucumber.runner.TestStep.run(TestStep.java:49)
    at cucumber.runner.PickleStepTestStep.run(PickleStepTestStep.java:43)
    at cucumber.runner.TestCase.run(TestCase.java:45)
    at cucumber.runner.Runner.runPickle(Runner.java:40)
    at cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:146)
    at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)
    at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)
    at cucumber.api.junit.Cucumber.runChild(Cucumber.java:122)
    at cucumber.api.junit.Cucumber.runChild(Cucumber.java:64)
    at …
Run Code Online (Sandbox Code Playgroud)

java selenium cucumber cucumber-java

3
推荐指数
1
解决办法
1万
查看次数

无法解析 Cucumber 报告中的方法“格式”

在此处输入图片说明 试图运行一个向 JSON 文件报告的黄瓜场景,但由于某种原因,“格式”不起作用。它指出'无法解析方法'格式'。我正在学习教程,但不明白为什么这不起作用。任何帮助将不胜感激,谢谢

使用 selenium/java/intelliJ/testNG

selenium cucumber

1
推荐指数
1
解决办法
1088
查看次数

标签 统计

cucumber ×2

java ×2

selenium ×2

appv ×1

cucumber-java ×1

java-home ×1

windows-10 ×1