简体   繁体   English

进行健身测试的问题

[英]Problems making a fitnesse test

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. 我正在尝试对fitnesse进行此测试,但实际上它仅插入第一个(| Execute | INSERT INTO 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|||

Thanks in advance ! 提前致谢 !

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, ie, 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. 当行之间空行时,至少我看到过其他一些Wiki,将其解释为新表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM