首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在组合元参数和示例表时解决jbehave

如何在组合元参数和示例表时解决jbehave
EN

Stack Overflow用户
提问于 2014-07-02 06:30:09
回答 1查看 361关注 0票数 0

我正在使用0.9.229 thucydides-j既要原型的项目。在这里,我有一些Here的故事:

代码语言:javascript
运行
复制
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|

当示例表与元数据共存时,步骤F中会出现错误的情况。正如调试器所显示的,传递给底层方法的值在

代码语言:javascript
运行
复制
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'

<reg1>中实际上不是Meta中的@reg1 1值,但是.示例的“数字”值。所传递的值,而不是<registrator1>,实际上是不清楚地取自的经度值。那么,问题是我如何在相同的故事和场景中正确地将Meta和示例结合起来呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-15 07:22:47

根据Bence的评论,只要把thucydides更新到0.9.273就可以了!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24524308

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档