• selenium +IntelliJ+firefox/chrome 环境全套搭配


    1第一步:下载IntelliJ idea 代码编辑器

    2第二步:下载浏览器Chrome

    3第三步:下载JDK

    4第四步:配置环境变量(1JAVA_HOME 2 path)

    5第五步:下载Maven

    6第六步:配置环境变量(1MAVEN_HOME 2path)

    7第七步:下载与浏览器版本匹配的ChromeDriver

    8第八步: 在 Idea里面设置 JDK , Maven

    9 第九步:创建工程 project

    10 第十步:pom.xml文件中写依赖(1 需要什么包去maven仓库下载依赖,拿整个dependancy 2在工程中terminal中执行 mvn clean install命令,并去maven块刷新工程和包)

    11.drive

    【笔记】chromedriver下载与安装方法_谷歌驱动_逸峰轻云的博客-CSDN博客

    cucumebr:

    Cucumber&selenium学习--工程搭建_cucumber和selenium 依赖-CSDN博客

    自动化测试实战:Cucumber+Selenium测试场景应用 - 知乎

    idea kubernetes插件 配置 idea cucumber插件_mob6454cc780924的技术博客_51CTO博客

    Junit:

    idea插件完成junit代码生成,和springboot代码示例_junitgenerator_weisian151的博客-CSDN博客

    注意事项:

    1 Runner文件写在test目录下

    2 maven文件下conf文件夹下的settings.xml 加阿里云镜像

    alimaven

    aliyun maven

    http://maven.aliyun.com/nexus/content/groups/public/

    central

    3 配置maven本地仓库

    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.0modelVersion>
    4. <groupId>org.examplegroupId>
    5. <artifactId>JSCTestingartifactId>
    6. <version>1.0-SNAPSHOTversion>
    7. <packaging>jarpackaging>
    8. <name>JSCTestingname>
    9. <url>http://maven.apache.orgurl>
    10. <properties>
    11. <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
    12. <logging.verson>1.2logging.verson>
    13. <selenium.version>4.13.0selenium.version>
    14. properties>
    15. <dependencies>
    16. <dependency>
    17. <groupId>junitgroupId>
    18. <artifactId>junitartifactId>
    19. <version>3.8.1version>
    20. <scope>testscope>
    21. dependency>
    22. <dependency>
    23. <groupId>org.apache.maven.pluginsgroupId>
    24. <artifactId>maven-resources-pluginartifactId>
    25. <version>2.4.3version>
    26. dependency>
    27. <dependency>
    28. <groupId>commons-logginggroupId>
    29. <artifactId>commons-loggingartifactId>
    30. <version>${logging.verson}version>
    31. dependency>
    32. <dependency>
    33. <groupId>org.seleniumhq.seleniumgroupId>
    34. <artifactId>selenium-javaartifactId>
    35. <version>${selenium.version}version>
    36. dependency>
    37. <dependency>
    38. <groupId>org.seleniumhq.seleniumgroupId>
    39. <artifactId>selenium-apiartifactId>
    40. <version>${selenium.version}version>
    41. dependency>
    42. <dependency>
    43. <groupId>org.seleniumhq.seleniumgroupId>
    44. <artifactId>selenium-chrome-driverartifactId>
    45. <version>4.13.0version>
    46. dependency>
    47. <dependency>
    48. <groupId>org.seleniumhq.seleniumgroupId>
    49. <artifactId>selenium-firefox-driverartifactId>
    50. <version>4.13.0version>
    51. dependency>
    52. <dependency>
    53. <groupId>org.apache.httpcomponentsgroupId>
    54. <artifactId>httpclientartifactId>
    55. <version>4.5.2version>
    56. dependency>
    57. <dependency>
    58. <groupId>com.aventstackgroupId>
    59. <artifactId>extentreportsartifactId>
    60. <version>3.0.6version>
    61. dependency>
    62. <dependency>
    63. <groupId>org.dom4jgroupId>
    64. <artifactId>dom4jartifactId>
    65. <version>2.0.0version>
    66. dependency>
    67. <dependency>
    68. <groupId>log4jgroupId>
    69. <artifactId>log4jartifactId>
    70. <version>1.2.17version>
    71. dependency>
    72. <dependency>
    73. <groupId>commons-emailgroupId>
    74. <artifactId>commons-emailartifactId>
    75. <version>1.1version>
    76. dependency>
    77. <dependency>
    78. <groupId>org.uncommonsgroupId>
    79. <artifactId>reportngartifactId>
    80. <version>1.1.4version>
    81. dependency>
    82. <dependency>
    83. <groupId>net.masterthoughtgroupId>
    84. <artifactId>cucumber-reportingartifactId>
    85. <version>5.6.1version>
    86. dependency>
    87. <dependency>
    88. <groupId>com.google.code.gsongroupId>
    89. <artifactId>gsonartifactId>
    90. <version>2.8.6version>
    91. dependency>
    92. <dependency>
    93. <groupId>junitgroupId>
    94. <artifactId>junitartifactId>
    95. <version>4.12version>
    96. dependency>
    97. <dependency>
    98. <groupId>io.cucumbergroupId>
    99. <artifactId>cucumber-junitartifactId>
    100. <version>7.14.0version>
    101. dependency>
    102. <dependency>
    103. <groupId>io.cucumbergroupId>
    104. <artifactId>cucumber-javaartifactId>
    105. <version>7.14.0version>
    106. dependency>
    107. <dependency>
    108. <groupId>io.cucumbergroupId>
    109. <artifactId>cucumber-gherkinartifactId>
    110. <version>7.14.0version>
    111. dependency>
    112. dependencies>
    113. project>

  • 相关阅读:
    【运维 监控】Grafana + Prometheus,监控Linux
    10最佳iPhone数据恢复软件评论
    JSX基础语法
    实验1:使用Matlab工具箱进行相机标定实验
    DevOps全面综述:从概念到实践
    中国多媒体与网络教学学报杂志社中国多媒体与网络教学学报编辑部2022年第9期目录
    PHP 字符串常用函数
    卷积神经网络 图像处理,卷积神经网络基本原理
    2023年【陕西省安全员C证】考试内容及陕西省安全员C证最新解析
    小白学Java
  • 原文地址:https://blog.csdn.net/qq_36379597/article/details/133534755