我试图用intellij和空手道来编写下面的代码,但收到了一条错误消息。
下面的代码
Feature: sample karate test script
for help, see: https://github.com/intuit/karate/wiki/IDE-Support
Scenario: create a user and then get it by id
* def user =
"""
{
ethereum {
smartContractEvents(options: {desc: "date.date"}, smartContractAddress: {is: "0x00000000219ab540356cbb839cbe05303d7705fa"}, date: {since: "2019-01-01", till: null}) {
date {
date: startOfInterval(unit: day)
}
smartContractEvent {
__typename
name
}
times: count
uniqueCallers: count(uniq: callers)
}
}
}
"""
Given url 'https://graphql.bitquery.io'
And request user
When method get
Then print response
当你试图运行代码时,我收到了下面的错误消息
test.feature:6 - net.minidev.json.parser.ParseException: Unexpected token ) at position 181.
01:12:04.375 [pool-1-thread-1] INFO com.intuit.karate.Runner - <<fail>> feature 1 of 1: src/test/java/examples/users/test.feature
1条答案
按热度按时间0wi1tuuw1#
得到了答案,
正确的方法是使用查询