Scenario metadata provides information to help manage a scenario.The meta-data are collected as part of the BDD parsing.

Meta-data

Scenario metadata provides information to help categorize and manage scenarios. The meta-data are collected as part of the BDD parsing and made available for different uses, e.g. grouping scenario, setting data-provider. It can be used for scenario selection by providing meta-data filter.

There are predefined meta-key available to use which are listed in here. In addition to predefined meta-key, you can have your custom meta-key to categorize scenarios as per AUT. You can choose whatever names are most appropriate for the information they are trying to convey.

	@description:Data driven test that uses csv file to provide data
	@group1 @group2
	@author: Chirag Jayswal

Meta-value can string, number, boolean or list.

	@TestID:12345
	@enabled:true
	@channel:['web','mobile']

Meta data can be provided with following elements:

  • Feature
  • Scenario
  • Scenario Outline
  • Examples

Meta data provided to feature will be inherited by each scenario or scenario outline.

Tags: bdd scenario