在 nodejs 或 expressjs 项目中使用 gatling?

问题描述 投票:0回答:2

我想将

gatling
用于基于
expressjs
的 api。我检查了我们可以在项目中使用的
gatlingjs npm package
。当我按照
https://www.npmjs.com/package/gatlingjs/v/0.0.7
中的教程指定运行./node_modules/gatlingjs/dist/index.js 时,我在命令行中遇到错误 -
The input line is too long

但是我可以从我单独下载的独立 gatling 应用程序

gatling-charts-highcharts-bundle-3.2.0
运行 gatling.bat。我检查了 gatlingjs 的 github,最后一次更新是 2 年前。
gatlingjs
项目有没有可能中止?在网站 https://gatling.io/open-source/ 中提到我们可以在
maven and sbt
中使用最新的 gatling 作为依赖项,但没有提到
npm
的包。我的问题是我应该为我的 expressjs api 使用 npm 包 gatlingjs(gatlingjs 项目在 github 上的最后更新 2 年前)还是有其他使用 gatling 的方法。

express load-testing gatling
2个回答
1
投票

我在我的项目中使用 gatling-charts-highcharts-bundle-3.2.0 而不是使用 gatlingjs npm 包作为 gatling js npm 包更新 2 年前最好使用 gatling-charts-highcharts-bundle-3.2.0 作为这是最新的。


0
投票

恐怕您提到的模块

gatling-charts-highcharts-bundle
npmjs.com上不存在。相反,我可以在这里找到同名的 Maven 存储库: https://mvnrepository.com/artifact/io.gatling.highcharts/gatling-charts-highcharts-bundle/3.6.0

你能告诉我 npm 模块目的地吗?

Screenshot from npmjs.com

© www.soinside.com 2019 - 2024. All rights reserved.