码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 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>

  • 相关阅读:
    8. shell正则表达式
    用c++写一个高精度计算的乘法运算
    小程序Springboot基层慢性病信息管理系统毕业设计-附源码221550
    《代码之丑》学习总结
    LeetCode-86. 分隔链表-Java-medium
    使用c#的 async/await编写 长时间运行的基于代码的工作流的 持久任务框架
    python3-python中的多任务处理利器-协程的使用(一),asyncio模块的使用
    TCP和UDP、TCP三次握手、TCP为什么要进行三次握手不是两次、TCP四次挥手、TCP和UDP的区别、TCP抓包分析、TCP什么时候三次挥手
    对补码的简单理解
    一文搞懂 NULL 和 nullptr 的区别【CC++面试必备】
  • 原文地址:https://blog.csdn.net/qq_36379597/article/details/133534755
  • 最新文章
  • 沪漂五周年了:我越来越迷茫了
    Agentic Skill Routing 实战:别再把所有 Skill 塞进 AI Agent 上下文
    MySQL-Seconds_behind_master的精度误差
    [MAF预定义ChatClient中间件-03]CachingChatClient——利用缓存省钱省时间
    AI的至暗历史:从万众期待到被政府撤资,AI的两次死亡徘徊
    Agent OS :五种驯服不确定性的范式
    PortSwigger SQL注入LAB11
    数据库即时编译JIT
    [Begin]AI Learn Data Day 0
    深度学习进阶(二十七)现代 LLM 的核心架构设计其二:SwiGLU
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号