DBFit-无法为Connect [4]调用构造函数 [英] DBFit - Could not invoke constructor for Connect[4]
问题描述
我的脚本:
!contents -R2 -g -p -f -h
!path lib/*.jar
|import |
|dbfit.SqlServerTest|
!|dbfit.SqlServerTest|
!|Connect|SUKHI-PC\SQLEXPRESS|SUKHI-PC\XXX|XXX|XXX|
掩盖了一些细节,但错误消息是:
Masked a few details but the error message is:
无法为Connect [4]调用构造函数.
Could not invoke constructor for Connect[4].
不明白.根据我在网上阅读的内容,可能是我的路径不正确,但是不知道它在寻找什么,因为Connect是命令而不是固定装置.任何帮助将不胜感激.
Don't understand. From what I've read online it may be that my Path is not correct but no idea what it's looking for as Connect is a command not fixture. Any help would be appreciated.
推荐答案
我知道它的旧帖子,但出于将来参考的目的;当我尝试使用苗条服务器连接到dbfit测试中的sql服务器而不调用DatabaseEnvironment构造函数时,fitnesse引发了无法为Connect [4]调用构造函数"错误.您可以通过计划dbfit测试来克服此错误,如下所示.
I know its an old post, but for future reference purposes; "Could not invoke constructor for Connect[4]" error is thrown by fitnesse when I was trying to connect to a sql server in a dbfit test using slim server without calling DatabaseEnvironment constructor. you can overcome this error by planning your dbfit test something like below..
!define TEST_SYSTEM {fit}
|Import |
|dbfit.fixture|
|dbfit.SqlServerTest|
!|DatabaseEnvironment|sqlserver |
|Connect |11.11.11.11:8888|username|password|databasename|
这篇关于DBFit-无法为Connect [4]调用构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!