Does QAF support all gherkin keywords?

164 views
Skip to first unread message

Nandesh Kalyankar

unread,
Dec 29, 2017, 1:25:40 PM12/29/17
to qaf users
Hi Chirag, 
 could you please help me know if QAF support all keywords that cucumber includes? I've installed QAF gherkin editor & it does work as expected. It simply doesn't execute a scenario when background is included. please see below

scenario

@login
Feature: Test User's ability to login to application

Description: The purpose of feature file is to test login.

Background: Login to App
Given Login to myApp
  Scenario: Log in & apply a select all filter
    And Click on column & apply Select All filter
    Then Logout from App

Here is an .xml 


<suite name=" Test Suite" verbose="0" parallel="tests" thread-count="2">
<test name="scenarios" enabled="true">
  <parameter name="driver.name" value="chromeDriver"></parameter>
<groups>
<run>
<include name="@login" />
</run>
</groups>
<classes>
<class
name="com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory" />
</classes>
</test>
</suite>

Thanks in advance. 

cjayswal

unread,
Dec 30, 2017, 4:40:22 AM12/30/17
to qaf users
Do you mean that if you remove background it works fine? If not, make sure that you have provided correct location for scenario files default "scenarios" and can be set using "scenario.file.loc" property

Nandesh Kalyankar

unread,
Dec 30, 2017, 9:56:45 AM12/30/17
to qaf users
Yes, If I remove background from feature file, the scenario execute with out any issue. 

Nandesh Kalyankar

unread,
Dec 31, 2017, 1:06:09 AM12/31/17
to qaf users
Chirag, from the below scenario, after I remove Description keyword, the sceario executes without any issues. Also, if the scenario name is lengthy, the QMetry report doesnt expand & show all details. After I shorten the scenario name, I've the ability to expand & check details on Qmetry report

scenario

@login
Feature: Test User's ability to login to application

Description: The purpose of feature file is to test login.

Background: 

cjayswal

unread,
Dec 31, 2017, 12:41:15 PM12/31/17
to qaf users
As far as i know gherkin doesn't support "Description". Regarding scenario description, gherkin also not supports meta-data except tags (like groups in java test). I would suggest to use QAF-BDD instead.

Nandesh Kalyankar

unread,
Jan 1, 2018, 11:52:54 AM1/1/18
to qaf users
Happy New Year Chirag, I didn't find any reference to Description keyword at cucumber wiki however, I saw an example at toolsqa.com. Check the link below: 

Nandesh Kalyankar

unread,
Jan 1, 2018, 12:53:16 PM1/1/18
to qaf users
As per cucumber documentation, anything that doesn't start with a keyword in a feature file can be termed as a name or description. Check the below link 
Reply all
Reply to author
Forward
0 new messages