cucumber:while execute first脚本显示“warning:no features found at classpath:/runner”

hmtdttj4  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(255)

cucumber:在cucumber中执行我的第一个脚本时,我得到“警告:在classpath:/runner中找不到特性”。请参考随附快照中的jar文件详细信息。我的第一个测试用例是:功能:验证应用程序登录场景:验证用户凭据给定打开chrome浏览器并检查应用程序时输入用户名和密码,然后验证登录成功和验证主页标题

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>cucumberwithselenium</groupId>
  5. <artifactId>cucumberwithselenium</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>cucumberwithselenium</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
  15. <dependency>
  16. <groupId>io.cucumber</groupId>
  17. <artifactId>cucumber-java</artifactId>
  18. <version>5.0.0</version>
  19. </dependency>
  20. <!-- https://mvnrepository.com/artifact/info.cukes/cucumber-jvm -->
  21. <dependency>
  22. <groupId>info.cukes</groupId>
  23. <artifactId>cucumber-jvm</artifactId>
  24. <version>1.2.6</version>
  25. <type>pom</type>
  26. </dependency>
  27. <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
  28. <dependency>
  29. <groupId>io.cucumber</groupId>
  30. <artifactId>cucumber-junit</artifactId>
  31. <version>5.0.0</version>
  32. <scope>test</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>info.cukes</groupId>
  36. <artifactId>cucumber-jvm-deps</artifactId>
  37. <version>1.0.5</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>net.masterthought</groupId>
  41. <artifactId>cucumber-reporting</artifactId>
  42. <version>1.0.0</version>
  43. </dependency>
  44. <!-- https://mvnrepository.com/artifact/io.cucumber/gherkin -->
  45. <dependency>
  46. <groupId>io.cucumber</groupId>
  47. <artifactId>gherkin</artifactId>
  48. <version>9.2.0</version>
  49. </dependency>
  50. <!-- https://mvnrepository.com/artifact/junit/junit -->
  51. <dependency>
  52. <groupId>junit</groupId>
  53. <artifactId>junit</artifactId>
  54. <version>4.12</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.seleniumhq.selenium</groupId>
  59. <artifactId>selenium-java</artifactId>
  60. <version>3.12.0</version>
  61. </dependency>
  62. <!-- https://mvnrepository.com/artifact/info.cukes/cucumber-picocontainer -->
  63. <dependency>
  64. <groupId>info.cukes</groupId>
  65. <artifactId>cucumber-picocontainer</artifactId>
  66. <version>1.2.5</version>
  67. <scope>test</scope>
  68. </dependency>
  69. </dependencies>
  70. </project>

cucumber 错误捕捉

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题