进行体能测试时遇到问题
我正在尝试在fitnesse上进行此测试,但实际上它只插入第一个(|执行|插入restdb.labels (id, label_name) VALUES (1, "label_test1")|) 显然其他的被忽略了......我已经使用 eclipse 调试了它并且我正在检查 HEIDSQL 上的所有内容。
!2 Add Credit to account
!3 Insert the entities
|Execute|INSERT INTO restdb.labels (id, label_name) VALUES (1, "label_test1")|
|Execute|INSERT INTO restdb.labels (id, label_name) VALUES (2, "label_test2")|
|Execute|INSERT INTO service_labels (id_service, id_label) VALUES (1,1)|
|Execute|INSERT INTO service_labels (id_service, id_label) VALUES (1,2)|
|Execute|INSERT INTO service_labels (id_service, id_label) VALUES (2,2)|
!|DatabaseEnvironment|
|Commit|
!4 Add the credits
!|smartrics.rest.fitnesse.fixture.RestFixture|http://${REST_HOST}:${REST_PORT}${REST_ENDPOINT}|
|setHeader|!- Content-Type : application/json
X-BT-Ribbit-SP-AppId : -!${DEFAULT_APP}!-
X-BT-Ribbit-SP-UserId : -!${DEFAULT_GUID}|
|setBody||
|DELETE|/users/test/1|200|||
提前致谢 !
I´m trying to do this test on fitnesse, but actually it inserts only the first one (|Execute|INSERT INTO restdb.labels (id, label_name) VALUES (1, "label_test1")|)
Apparently the other are ignored... I´ve debugged it using eclipse and I´m checking everything on HEIDSQL.
!2 Add Credit to account
!3 Insert the entities
|Execute|INSERT INTO restdb.labels (id, label_name) VALUES (1, "label_test1")|
|Execute|INSERT INTO restdb.labels (id, label_name) VALUES (2, "label_test2")|
|Execute|INSERT INTO service_labels (id_service, id_label) VALUES (1,1)|
|Execute|INSERT INTO service_labels (id_service, id_label) VALUES (1,2)|
|Execute|INSERT INTO service_labels (id_service, id_label) VALUES (2,2)|
!|DatabaseEnvironment|
|Commit|
!4 Add the credits
!|smartrics.rest.fitnesse.fixture.RestFixture|http://${REST_HOST}:${REST_PORT}${REST_ENDPOINT}|
|setHeader|!- Content-Type : application/json
X-BT-Ribbit-SP-AppId : -!${DEFAULT_APP}!-
X-BT-Ribbit-SP-UserId : -!${DEFAULT_GUID}|
|setBody||
|DELETE|/users/test/1|200|||
Thanks in advance !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有人说什么,但我会发布我找到的解决方案!
我在每个命令之间添加了一条黑线......
Nobody said anything but I´ll post the solution I´ve found anyway !!
I´ve added a black line between each command...
根据固定装置,您可能需要将命令保留在一个表中,即行之间没有空行。当行之间有空行时,至少我见过的一些其他维基将其解释为新表。
Depending on the fixture you might need to keep the commands in one table, i.e., without empty lines between rows. At least some other wikis I've seen interpret it as a new table when you have an empty line between rows.