小编Mat*_*sek的帖子

定义gradle任务,以使用特定系统属性运行任务

我正在努力创建一个gradle任务来执行我用于Selenium测试的指定system.properties的测试任务

task firefox() << {
    System.setProperty('driver', 'firefox')
    tasks.clean.execute()
    tasks.test.execute()
}
Run Code Online (Sandbox Code Playgroud)

这显然不起作用.我非常感谢任何帮助,最终确定我的脚本!

selenium gradle

4
推荐指数
1
解决办法
3161
查看次数

工作 gremlin javascript 示例

有一个新版本,但文档有点缺乏工作示例。

Github 票证:https : //github.com/jbmusso/gremlin-javascript/issues/109

我一直在努力让一个例子起作用。任何帮助表示赞赏:

gremlin-server: 3.3.2 with config gremlin-server-modern.yaml
npm gremlin lib: 3.3.2

import gremlin from 'gremlin';
import DriverRemoteConnection from 'gremlin/lib/driver/driver-remote-connection';
import { Graph } from 'gremlin/lib/structure/graph';
const graph = new Graph()
const g = graph.traversal().withRemote(new DriverRemoteConnection('ws://localhost:8182/gremlin', { mimeType: 'application/vnd.gremlin-v3.0+json' }));

const fetchById = async (id) => {
  const result = await g.V(id).toList()
  console.log(result);
}

const addUser = async (name) => {
  const newVertex = await g.addV().property('name','marko').property('name','marko a. rodriguez').next()
  console.log(newVertex)
}

addUser()
fetchById(0)
Run Code Online (Sandbox Code Playgroud)

电流输出:

[]
{ value: …
Run Code Online (Sandbox Code Playgroud)

javascript gremlin gremlin-server

1
推荐指数
1
解决办法
4290
查看次数

标签 统计

gradle ×1

gremlin ×1

gremlin-server ×1

javascript ×1

selenium ×1