我们即将开始进入 Zapier 应用程序的测试过程,我有一个问题,但在 Zapier 文档中找不到答案:
问题与暂存和生产环境有关。我们设置了 2 个 Zapier 应用程序,每个环境一个。生产应用程序显然是最终要进行测试和公开的应用程序,但所有开发都是在第二个应用程序(即登台应用程序)中完成的。
我们的客户,甚至是我们需要邀请进入测试版的客户,都无权访问临时帐户,而且我们的大多数开发人员也无权访问生产帐户。
这些应用程序中的每一个都应该连接到不同的基本域,登台 Zapier 应用程序当然会连接到我们的登台服务器之一,而生产 Zapier 应用程序将需要使用另一个基本域,与我们的客户使用的相同。
我试图在 Zapier API 中找到一种机制,它允许我有条件地选择要使用的基域,该基础域可以告诉我这个应用程序应该使用哪个环境。
如果 2 个 Zapier 应用程序的整个想法也不是推荐的方式,我愿意接受我们应该如何做到这一点的指示。
我正在 Zapier 使用搜索。我有自己的 API,当我按项目 ID 搜索项目时,它会发送单个对象。
以下是 API 的响应
{
"exists": true,
"data": {
"creationDate": "2019-05-23T10:11:18.514Z",
"Type": "Test",
"status": 1,
"Id": "456gf934a8aefdcab2eadfd22861",
"value": "Test"
}
}
Run Code Online (Sandbox Code Playgroud)
当我用 zap 搜索这个时
结果必须是数组,got: object, ({"exists":true,"data":{"creationDate":"2019-05-23T10:11:18.514Z)
下面是代码
module.exports = {
key: 'item',
noun: 'itemexists',
display: {
label: 'Find an item',
description: 'check if item exist'
},
operation: {.
inputFields: [
{
key: 'itemid',
type: 'string',
label: 'itemid',
helpText: 'Eg. e3f1a92f72c901ffc942'
}
],
perform: (z, bundle) => {
const url = 'http://IP:8081/v1/itemexists/';
const options = …Run Code Online (Sandbox Code Playgroud) 我知道一种方法是使用“https://dzone.com/articles/automate-zap-security-tests-with-selenium-webdrive-1”
但是是否有直接命令可以通过 OWASP ZAP 扫描我们的 selenium 应用程序执行情况?
我认为这应该是一个完整的项目。很少有网站可以公开访问或无需登录。
我想用分支逻辑创建一个zap.我想这样做,因为网关/ REST API使用支持只添加一个Web钩子.当假设触发器返回带有'event_type'='alpha'的事件时,我需要一个可以执行Action'A'的Zap,当同一个触发器返回带有'event_type'='beta'的事件时,将执行Action'B'
例:
if trigger_A.output.event_type = 'alpha'
then 'Send mail' to 'abc@xyz.com'
else if trigger_A.output.event_type = 'beta'
then 'Send message' to 'Slack'
else
post in 'Facebook' trigger_A.output.message
Run Code Online (Sandbox Code Playgroud)
这可能只用一个Zap吗?
请注意,我无法向我的REST API添加多个webhook,因此我不能拥有多个触发器,并且我可以使用最多1个Zap.
任何来自论坛的帮助将不胜感激.
我在大多数但不是所有的时间都会出现超时错误,zapier test无论我是否添加--debug,这是我的代码:
require('should');
const zapier = require('zapier-platform-core');
// Use this to make test calls into your app:
const App = require('../index');
const appTester = zapier.createAppTester(App);
describe('Zapier - ON24 CLI Auth App', () => {
it('should have Access Tokens pass the authentication from ON24 APIs', (done) => {
const bundle = {
authData:{
accessTokenKey: 'abc',
accessTokenSecret: 'def',
client_id: '123'
}
};
appTester(App.authentication.test, bundle)
.then((response) => {
response.status.should.eql(200);
done();
})
.catch(done);
});
});
Run Code Online (Sandbox Code Playgroud)
错误:
错误:超出2000ms的超时.对于异步测试和挂钩,确保调用"done()"; 如果返回Promise,请确保它已解决 …