小编tan*_*Nep的帖子

重复specflow中的步骤

我有一个很长的 Specflow 场景,我需要添加 3 个用户,所有步骤都是相同的。我怎样才能重复流程中的几个步骤?

场景概要:多用户注册

Given Go to page
#Login
And Click on sign in button
When Enter email 'mail@gmail.com'
And Enter password '123456' 
And Click on Submit button
And click on Events list button
And Open Event  
And Go to new opened page       
And  Click on Register to event button
Run Code Online (Sandbox Code Playgroud)

我需要重复这些步骤

When Click on Person title '<title>'    
And Select ticket package
And Select ticket quantity '15'
And Click on submit registration button 
And Enter mail <email> to register …
Run Code Online (Sandbox Code Playgroud)

bdd cucumber specflow

2
推荐指数
1
解决办法
2973
查看次数

标签 统计

bdd ×1

cucumber ×1

specflow ×1