intellij-idea - 如何解决“无法解析 com.intuit.karate:karate-gatling:1.2.0”?
问题描述
我已经有一个空手道 e2e 用于我的 api 测试,我正在尝试使用 gatling 进行性能测试。我已经安装了scala(我正在使用intellij ide)我有java jdk 15并且我的环境变量为java和gatling正确设置我已经添加了对scala类的框架支持我在我的pom中添加了以下依赖项我仍然得到“无法解决com.intuit.karate:karate-gatling:1.2.0"?
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>4.5.3</version>
</plugin>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>3.1.1</version>
<dependencies>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-apache</artifactId>
<version>${karate.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-junit4</artifactId>
<version>${karate.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
解决方案
不,那不是你的做法。花一些时间阅读文档:https ://github.com/intuit/karate/tree/master/karate-gatling
或者首先让演示示例工作,然后根据您的需要对其进行自定义:https ://github.com/intuit/karate/tree/master/examples/gatling
而且 1.1.0 是最新的,不是 1.2.0
推荐阅读
- browser-cache - 在 POST 请求中提交表单后,点击返回按钮时页面未更新
- python - 如何使用 python 从远程 Windows 服务器获取文件?
- mysql - Truncate Text using sql (all text after a DIV tag)
- android - 本机应用程序崩溃 - 获取内存地址问题 - com.android.runtime/lib64/libart.so & #00 0x00000000afef03c4
- c++ - 在 64 位架构上读取/写入 32 位数据类型
- affdex-sdk - 旧的 affdex-sdk 是否仍可免费用于学术目的?
- python - 无法使用 PyQt5 获取 html
- sql - 将带有空格的字符串连接到 varchar(255) 列中
- google-cloud-platform - 使用 terraform 将 IAM 政策分配给 Google 云中的现有 Cloud Build 服务帐户失败
- python-3.x - 我想弄清楚如何在 python 3 中添加图像,这段代码也不起作用,我也在 mac 上这样做