Karate 空手道-数据库测试-获取显示为nano的时间戳
我正在尝试使用Karate和springjdbc运行一些基本的数据库测试(正如在演示项目的DBUtils类中提到的) 以下是我正在做的: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
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
的实现。由您自行编写适合您的环境和数据库等的内容。请记住,这只是空手道演示的一部分