Cucumber Parameterization Error | Selenium Forum
M
Posted on 26/09/2015
When ever i am trying to do parameterization using cucumber,its giving me error[b:qi3w3hsj] "cucumber.runtime.CucumberException: Error parsing feature file com".[/b:qi3w3hsj]

my java file contains the code:

package com.learning.cucumber;

import cucumber.api.java.en.And;
import cucumber.api.java.en.But;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;

public class HolyTester {
@Given("^I am a \"([a-zA-z]{1,})\" tester$")
public void I_am_a_bad_tester(String x)
{
System.out.println("I am a "+x+" tester");
}
@When("^I go to work$")
public void I_go_to_work()
{
System.out.println("I go to work");
}
@Then("^I \"([a-zA-z]{1,})\" it$")
public void I_mess_with_it(String b)
{
System.out.println("I "+b+" with it");
}
@And("^my boss \"([a-zA-z]{1,})\" me$")
public void my_boss_fires_me(String c)
{
System.out.println("my boss "+c+" me");
}
@But("^the developer \"([a-zA-z]{1,})\" me$")
public void the_developer_likes_me(String d)
{
System.out.println("the developer "+d+" me");

}
}

and the feature file contains :

Feature:Life of IT tester

In order to get good salary
As a IT guy
I want to keep my boss happy

Scenario Outline: I am a tester
Given I am a "<x>" tester
When I go to work
Then I "<b>" it
And my boss "<c>" me
But the developer "<d>" me

Examples:
| x | | b | c | | d |

| good | | complete | salutes | | hates |

| bad | | mess | fires | | likes |

| avg | | sufficient | congrates | | respects |

I Just wanted to know where is the error.

Regards
Sumit

M
Replied on 29/09/2015

[quote:2cb5ki33]| x | | b | c | | d |

| good | | complete | salutes | | hates |

| bad | | mess | fires | | likes |

| avg | | sufficient | congrates | | respects |[/quote:2cb5ki33]

try these with 1 pipe


[code:2cb5ki33]
| x | b | c | d |

| good | complete | salutes | hates |

| bad | mess | fires | likes |

| avg | sufficient | congrates | respects |
[/code:2cb5ki33]