scenarios

cucumber (in Java): How can I run scenarios with both tags only

笑着哭i 提交于 2019-12-06 04:37:29
I have some feature files with multiple tags for each scenario. But I would like to run those who has both @a AND @b scenarios. How can I do that? tags = {"@a, @b"}, --> this will do @a OR @b scenarios Thanks. I figured it out: tags = {"@a, @b"}, --> this will do @a OR @b scenarios tags = {"@a", "@b"}, --> this will do @a AND @b scenarios 来源: https://stackoverflow.com/questions/39968139/cucumber-in-java-how-can-i-run-scenarios-with-both-tags-only

How to get the current executing step information in Specflow

假装没事ソ 提交于 2019-12-01 02:10:46
问题 We are trying to take screenshots for each step. Everything works fine. But we are not able to correlate the screenshots to the steps which created them. What we would like is something like FeatureContext.FeatureInfo and ScenarioContext.ScenarioInfo . But at individual step level. So that we can tag the screenshots accordingly. 回答1: EDIT Classes have been added which expose: ScenarioStepContext.StepInfo.Text and ScenarioStepContext.StepInfo.StepDefinitionType Which should give you what you

scenario for validation rules in yii

元气小坏坏 提交于 2019-11-30 21:20:42
I was wandering is there any chance to use scenario for rules, in my model I have public function rules() { return array( array('delivery, firstNameBilling, lastNameBilling, addressBilling, cityBilling, countryBilling, postBilling, telephoneBilling, mailBilling, firstNameDelivery, lastNameDelivery, addressDelivery, cityDelivery, countryDelivery, postDelivery, telephoneDelivery, mailDelivery', 'required'), array('active', 'numerical', 'integerOnly'=>true), ); } and in my view I have something like this <tr> <td> <p><?php echo $form->label($model,'telephoneBilling'); ?><span>: </span><span class

scenario for validation rules in yii

╄→尐↘猪︶ㄣ 提交于 2019-11-30 05:30:08
问题 I was wandering is there any chance to use scenario for rules, in my model I have public function rules() { return array( array('delivery, firstNameBilling, lastNameBilling, addressBilling, cityBilling, countryBilling, postBilling, telephoneBilling, mailBilling, firstNameDelivery, lastNameDelivery, addressDelivery, cityDelivery, countryDelivery, postDelivery, telephoneDelivery, mailDelivery', 'required'), array('active', 'numerical', 'integerOnly'=>true), ); } and in my view I have something