Step Implementation not getting mapped

1,038 views
Skip to first unread message

Jayanth C A

unread,
May 6, 2015, 12:19:51 AM5/6/15
to getg...@googlegroups.com
Hi,
I am facing this issue while running the spec files. It says Step Implementation not found, even though all steps are defined.
I deleted the out folder and tried to run as you had suggested in one of the previous posts. But it is still not working.

Also gauge_bin folder is not getting created. Should I change anything for this?

Thanks
Jayanth
Message has been deleted

apoorvam

unread,
May 6, 2015, 12:36:39 AM5/6/15
to getg...@googlegroups.com
Hello,

Make sure that java directory inside project i.e. src/test/java is marked as Sources root. 
Right click on the java directory -> Mark Directory as -> Sources root. 

This tells IntelliJ the path where source files are present. Once you do this and try to run, gauge_bin will be created. 

apoorvam

unread,
May 6, 2015, 12:42:59 AM5/6/15
to getg...@googlegroups.com
When you create a fresh Gauge project in IntelliJ, it should mark the source directory.

Did you create project from IntelliJ ? Or imported an existing Gauge project? 
If this happens often and is a valid issue, let us know.

Jayanth C A

unread,
May 6, 2015, 1:00:01 AM5/6/15
to getg...@googlegroups.com
I did that. Still gauge_bin is not getting created. 
And yes, I am importing an existing project and not creating in Intellij.

Also, I have done this setup on various systems till now, importing the existing project. And It has worked well till now. 
This is the first time I am facing this issue.

Could this be a problem with some project configuration?

Thanks
Jayanth

Prateek Baheti

unread,
May 6, 2015, 1:12:09 AM5/6/15
to Jayanth C A, getg...@googlegroups.com
What is the command run on the IntelliJ console ?

Make sure IntelliJ is compiling the project . Run Ctrl/cmd + F9 to compile. 

If you are running via IntelliJ gauge_bin will not be created. Make sure your module has output path and test output path set under module properties.

Have this set the gauga_custom_buildpath in the end/default/Java.properties file ? 
--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/4a025240-f68a-416a-a201-9cc0c38472db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jayanth C A

unread,
May 6, 2015, 1:19:33 AM5/6/15
to getg...@googlegroups.com, jaim...@gmail.com
/usr/local/bin/gauge --simple-console /Users/jayca/testing/SeleniumTesting/specs/LAE-Create.spec  -- this is the command being run.

And the custom_build_path was not set, I set it manually now. 
Still getting this error.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+unsubscribe@googlegroups.com.

apoorvam

unread,
May 6, 2015, 1:28:26 AM5/6/15
to getg...@googlegroups.com, jaim...@gmail.com
Delete out directory. Run the specs from command-line. If this works, then its issue related to configuration in IntelliJ Project. 

To make it work in IntelliJ, try the following :

* Remove out directory
* Set output directory path in Settings.
* Clear cache. File -> Invalidate cache and Restart.  
* Compile the project in IntelliJ. Make sure "out" directory is created.

Jayanth C A

unread,
May 6, 2015, 1:48:14 AM5/6/15
to getg...@googlegroups.com, jaim...@gmail.com
From Command Line, If i go into the directory of the specs and execute the individual specs, it is working. 
But if I execute using the absolute path, it is giving the same error.

apoorvam

unread,
May 6, 2015, 2:09:35 AM5/6/15
to getg...@googlegroups.com, jaim...@gmail.com
Hi Jayanth,

Could you please try the following steps? The reason it may not work with absolute path is either project root is not set or your setup may have nested Gauge projects. 

On command-line :

If you are not inside the project and it doesn't work with absolute path, try the --dir flag with gauge. Use this to set the working directory for execution. Does the following command work? If not can you paste the error you see?
gauge --dir="PATH_TO_PROJECT" specs

On IntelliJ:

The way to do the same thing in IntelliJ would be:
Set this flag in IntelliJ in Run Configuration -> Set the Working directory.

Can you please try these and let us see what kind of errors you get and we'll help you work through those. 

Thanks
Apoorva

apoorvam

unread,
May 8, 2015, 7:31:11 AM5/8/15
to getg...@googlegroups.com, apoo...@thoughtworks.com, jaim...@gmail.com
Hi Jayanth, 

Can you please try the following to fix this issue? One of these could be the reason for steps not getting mapped. 

* PROJECT_ROOT/src/test/java should be marked as sources root.
Check the location of all the dependencies for your project and see if these are in your PROJECT_ROOT/libs directory? Gauge requires all your project's dependency to be present under the libs directory.
* Check if there are any orphan gauge or gauge-java processes, and kill them all. 
* Check if path to 'out' directory is set in your Settings.
* Remove gauge_bin, out directories. Invalidate cache and restart.

Please let us know if any of these helps you fix the problem. We'll help you if its not fixed.

--Apoorva
Reply all
Reply to author
Forward
0 new messages