Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Karate 空手道-数据库测试-获取显示为nano的时间戳_Karate - Fatal编程技术网

Karate 空手道-数据库测试-获取显示为nano的时间戳

Karate 空手道-数据库测试-获取显示为nano的时间戳,karate,Karate,我正在尝试使用Karate和springjdbc运行一些基本的数据库测试(正如在演示项目的DBUtils类中提到的) 以下是我正在做的: Background: # Read url/username/pwd and provide it to the class * def config = read('env_file.json') * def DbUtils = Java.type('DbConnection') * def db = new DbUtil

我正在尝试使用Karate和springjdbc运行一些基本的数据库测试(正如在演示项目的DBUtils类中提到的)

以下是我正在做的:

 Background:
    # Read url/username/pwd and provide it to the class
    * def config = read('env_file.json')
    * def DbUtils = Java.type('DbConnection')
    * def db = new DbUtils(config)

 Scenario: Validate the modd_ts is present in lob table

    * def createdTs = db.readRows('SELECT crtd_ts FROM tableA ')
    * print createdTs
以下是它的回报:

com.intuit.karate - [print] [{"crtd_ts":{"nanos":0}},{"crtd_ts":{"nanos":0}}

不确定为什么它应该返回时间戳为“nanos”:0,对我来说似乎是一个bug。请确认,我将在github中打开一个。

这不是空手道的问题,它是
DbUtils
的实现。由您自行编写适合您的环境和数据库等的内容。请记住,这只是空手道演示的一部分