Regex issue with comma's telling me there are 6 args, instead of intended 4
Posted
by
Azher
on Stack Overflow
See other posts from Stack Overflow
or by Azher
Published on 2012-03-22T17:22:27Z
Indexed on
2012/03/22
17:29 UTC
Read the original article
Hit count: 371
I have a scenario outline table that looks like the following:
Scenario Outline: Verify Full ad details
Given I am on the xxx classified home page
And I have entered <headline> in the search field & clicked on search
When I click on full details
Then I should see <headline> <year> <mileage> <price> displaying correctly and successfully
Examples:
|headline |year |mileage |price |
|alfa romeo 166 |2005 |73,000 |6,990 |
When I run my scenario it spits out that I have 6 args. But what I thought, I should only have 4 args: headline, year, mileage and price. I am thinking that it is taking the comma's and what is before and after it as two seperate args.
Is there any way that I can make cucumber think that there are only 4 args with the example below?
I have looked at messing around with regex but I dont seem to be getting anywhere. Any help would be greatly appreciated.
© Stack Overflow or respective owner