[JVM] Cucumber on Eclipse fails to identify Step definition file

635 views
Skip to first unread message

guru kiran

unread,
Jan 10, 2013, 2:29:28 AM1/10/13
to cu...@googlegroups.com
Hi,
     I am using cucumber with ant. I have got the required jars in the lib and on the classpath.[Note i am not using maven as this is an existing framework with ant]

I have added the following in the run configuration on eclipse:
${selected_resource_loc}
--glue com.madeTst src/resources
--format pretty
--monochrome

I have created a feature file and also a step definition but alas when i run the feature it indicates the steps i need to put in the step definition file. 
Can you please let me know how to make sure that eclipse understand where the step definition file is on?
Plus, is there a specific directory structure that i need to have? The one i have is:

src.resources.checkout.features
src.resources.com.madTst.Ckout.java

Appreciate any help.

Guru

Guru Kiran

unread,
May 19, 2013, 12:46:32 PM5/19/13
to cu...@googlegroups.com
Yep, thanks for the response :)

----------------------------------------------------------------------------------------------------
Thanks and Regards,
Guru Kiran Bv,
London.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ability is what you're capable of doing..... 
Motivation determines what you do.....
 Attitude determines how well you do it....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


On Fri, May 17, 2013 at 11:04 PM, Sebastian Dietrich <sebidi...@gmail.com> wrote:
Have you found a solution? I'm stuck with the same problem. My run configuration is even simpler:

--monochrome
--glue
com.mycompany.myproject.mypackage
${project_loc:myproject}

finds the feature definition file, but not the implemented steps.

Features are found in test/resources, implemented steps are in test/java - both compile to bin/classes, both are in the same package structure

Any help would be appreciated...
Sebastian

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/PjkPZ5Rjdis/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jorge Rego

unread,
Oct 29, 2013, 7:03:12 AM10/29/13
to cu...@googlegroups.com
I have the same problem running Cucumber 1.1.1. Using the build file it drops me a message to define the steps, when I do that, ant never find the file.

The only good thing is when I copy the features files from test.resources to test.java and i run RunCukesTest.java as a Junit Test everything is fine and it runs opening Selenium WebDriver.

Any idea? Thank you!
Reply all
Reply to author
Forward
0 new messages