我正在努力创建一个gradle任务来执行我用于Selenium测试的指定system.properties的测试任务
task firefox() << {
System.setProperty('driver', 'firefox')
tasks.clean.execute()
tasks.test.execute()
}
Run Code Online (Sandbox Code Playgroud)
这显然不起作用.我非常感谢任何帮助,最终确定我的脚本!
有一个新版本,但文档有点缺乏工作示例。
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)