0

我正在使用由 0.9.229 thucydides-jbehave 原型制作的项目。在这里,我有一些 jbehave 故事:

Narrative:
Some text
Meta:

@registrator1 666-126
@registrator2 666-127
@reg1 666126
@reg1 666127
@ip 172.16.1.2
@zone1 666-126-666-127

Scenario: A
Given the user is logged to zonemanager as 'admin' with password 'admin'

Scenario: B
Then user creates new registrator <registrator1> with IP <ip>
Then user creates new registrator <registrator2> with IP <ip>

Scenario: C
Then user creates new bunch with 'Тестовый участок'
And user creates new zone with 'Тестовая зона','Встречное', '60'
And user selects <registrator1> for first new point 'Тестовая 666126' with latitude '55.730229', longitude '48.921177'
And user selects <registrator2> for second new point 'Тестовая 666127' with latitude '55.710411', longitude '48.896223'
And user completes the zone creation

Scenario: D
Given the user is logged to adminconsole as 'admin' with password 'password'
And the user switches to zones
Then the user adds <registrator1> into adminconsole with region 'Татарстан', code <zone1>, location <zone1>, location code <zone1>
And the user switches to services
And the user adds service for <registrator1>
And the user exits adminconsole

Scenario: E
Given the ftp server is started

Scenario: F
Given the folder structure is created for <reg1>
And the folder structure is created for <reg2>
And the first registrator has number <reg1> name <registrator1> latitude '55.730229', longitude '48.921177' height '79.099998' deltafix '10' type 'TEXT' version '4.0'
And the second registrator has number <reg2> name <registrator2> latitude '55.710411', longitude '48.896223' height '79.090098' deltafix '10' type 'TEXT' version '4.0'
When the first registered number is <number> priority zone '1' lane number '1' lane type '2'  movement direction '1' light '1' valid time '1'
And car goes <speed> km/h from latitude '55.730229', longitude '48.921177' to latitude '55.710411', longitude '48.896223'
And the second registered number is <number> priority zone '1' lane number '1' lane type '2'  movement direction '1' light '1' valid time '1'
And the ftp server has sent packet for user <reg1>
And the ftp server has sent packet for user <reg2>
Then the search result brings us 'Х563ХВ' with fuzzy equals '0'
Given the 'https://172.16.1.1:8181/WebServices/ProcessingData' service consumer is logged as 'oper602' with password 'oper602'
And the marker value is taken from temprorary file
Then the received cars are <number> with speed <speed>
And the marker value is stored to temprorary file

Examples:
|number|speed|
|Е642РВ 116 RUS|182.0|
|С899КС 121 RUS|179.0|
|Е190АМ 21 RUS|176.0|
|Е190АМ 22 RUS|177.0|
|У183ХЕ 12 RUS|181.0|
|В958РС 02 RUS|177.0|
|Е190АМ 21 RUS|177.0|

当 Example table 与 meta 共存时,步骤 F 中会发生错误。正如调试器所揭示的,传递给底层方法的值

And the first registrator has number <reg1> name <registrator1> latitude '55.730229', longitude '48.921177' height '79.099998' deltafix '10' type 'TEXT' version '4.0'

in<reg1>实际上不是 Meta 中的 @reg1 值,而是……示例的“数字”值。而不是传递的值<registrator1>实际上是从不清楚的经度值。所以,问题是我如何在同一个故事和同一个场景中正确地将 Meta 与 Example 结合起来?

4

1 回答 1

0

根据 Bence 的评论,只需将 thucydides 更新为 0.9.273 即可!

于 2014-11-15T07:22:47.063 回答