问题标签 [fuzz-testing]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
77 浏览

testing - 为什么 radamsa 不生成请求数量的 testacase?

我正在尝试在 Ubuntu 20.04 LTS 上使用 radamsa 进行一些模糊测试。

手册页说:

-n, --count n
根据样本生成多少个输出。给出 -1 或 inf 会导致数据永远生成。默认值为 1。

无论如何,如果我运行一个简单的示例,我将获得以下输出:

如您所见,没有 100 个测试用例。这是为什么?我该如何解决?

0 投票
0 回答
60 浏览

automated-tests - 如何在 Cypress 中使用 gremlins.js 时有效地编写自定义 gremlin?

我正在使用 Gremlins.JS 和 Cypress 来模糊应用程序。为了创建自定义 gremlin,我正在尝试使用此代码块

并像这样使用它:

但是我收到以下错误:

为了document.getElementById("search_query_top").value = "Johnny Bravo"

任何帮助表示赞赏。