DbFit 无法连接并在设置页面中找到夹具

DbFit can't connect and find fixture in SetUp page

我在笔记本电脑上安装了 DbFit 并将其连接到本地 Oracle 数据库。 我做了初始设置:

!path lib\*.jar

!|dbfit.OracleTest|

!|Connect|localhost:1522|system|Test123!|ORCLE|

!|Query| select 'test' as x from dual|
|x|
|test|

这工作正常(在出现很多错误并使用 Whosebug 之后)。

现在为了更简洁的外观,因为每个页面都需要它,所以我将这部分移到了设置页面,它将自动包含在我创建的每个页面中:

!path lib\*.jar

!|dbfit.OracleTest|

!|Connect|localhost:1522|system|Test123!|ORCLE|

然后当我尝试 运行 时,我收到以下消息:

  1. 找不到夹具:dbfit.OracleTest。 (这是为了 !|dbfit.OracleTest|)
  2. 找不到夹具:连接。 (这是为了 !|Connect|localhost:1522|system|Test123!|ORCLE|)
  3. 找不到夹具:查询。 (这用于查询 select 'test' as x from dual)

有人知道吗?我发现的唯一 simulair 问题是在这里: Why cannot DbFit be imported in SuiteSetUp?

但这并没有给我任何解决方案。

感谢您查看此问题并给予答复!

我不是 100% 确定,但我认为问题在于 !path 行应该在父页面中而不是在设置中。