On 16 August 2016 at 12:45, ramalingam seenivasan
<
seeniv...@gmail.com> wrote:
> Hi,
>
> We are using cucmber with java. In one project I create some feature files
> and implemented the steps also. Then I created *.jar file for that project.
> Now in another project I added the jar as a dependency. Can I use the steps
> implemented in the jar in another project feature file.
>
Steps available in the class path in the same package as the runner or
a sub-package are found and should therefore executed. Your approach
should work.
It is, however, interesting to think about why you want to re-use
steps. Steps tend to be very specific for the system you are working
with. It sounds as you are thinking about general steps that
implements the same between in more than one project. This is a
situation I haven't been exposed to myself. Every system tend to be
unique and re-use of steps are uncommon.
>
> Kindly let me know is it possible to use the steps implemented in the jar in
> another project feature file. If so let me know.
>
What happened when you tried?
/Thomas
--
Thomas Sundberg
M. Sc. in Computer Science
Mobile:
+46 70 767 33 15
Blog:
http://www.thinkcode.se/blog
Twitter: @thomassundberg
Better software through faster feedback
Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16