CustomDataProvider for feature file (QAF)

后端 未结 1 1267
一整个雨季
一整个雨季 2021-01-20 03:15

I\'m using QAF and it\'s amazing tool, but i have one problem. Are there any ways to parameterize cucumber feature steps with custom data provider as it\'s done in BDD files

相关标签:
1条回答
  • 2021-01-20 04:00

    If you found in-built data-providers does not satisfy your need then you can provide custom data provider. In case of gherkin you can provide it with Examples:

    Examples: {"dataProvider":"dp-with-testngmethod-contex", "dataProviderClass":"com.qmetry.qaf.automation.impl.CustomDataProvider"}
    

    Any of the meta-data for data-provider can be used with Examples. Moreover with latest BDD2 syntax you can also provide it as below:

    @dataProvider:dp-with-testngmethod-contex
    @dataProviderClass:com.qmetry.qaf.automation.impl.CustomDataProvider
    @regression 
    Scenario: my scenario
    ...
    
    0 讨论(0)
提交回复
热议问题