My requirement is that i am keeping my step Definition code in other Java Project and my runner class is in other java project.. I am not able to call step definition provided in other java project.. Please help how can i achieve the same
Asked
Active
Viewed 239 times
-3
-
1Your question is rather unclear, but it seems your problem is with the location of your source files? If this is the case, please describe the directory structure of your java projects, and how you are currently trying to use them. – Zoey Hewll Dec 28 '17 at 13:45
-
What IDE are you using? If eclipse then look at this - https://stackoverflow.com/questions/11792812/calling-a-class-in-another-project-eclipse – Grasshopper Dec 28 '17 at 14:03
-
I don't know how did you organize the two projects when running. If you merged two project source code together before running via some buid tool like: Ant or by manual. It should not happen this issue. Or you add the step definition project as a libray to the runner project, It should not happen such issue too. – yong Dec 29 '17 at 02:15
1 Answers
0
This issue got solved when i added Runner Class Java Project to Build Path of Step definition Project Build Path.. Then i was able to provide glue code path directly using package name from other java project.. Thanks for all comments Provided.

Ashikali
- 11
- 5