java


How to generate steps of cucumber features in STS (Eclipse)?


I have seen it, and i have tried to follow its steps to generate the steps of feature file. Here is my dependencies in pom.xml:
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java8</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
</dependencies>
And i have defined the runner class as below:
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
#RunWith(Cucumber.class)
#CucumberOptions(plugin = {"pretty", "html:target/cucumber"})
public class RunCukesTest {
}
and the feature file is located in src/features in the project:
The problem is, when i right click on the feature file-> Run as-> Cucumber
Nothing happens.
I expect that, the cucumber runner runs, and gives me the steps
So, what is wrong?
Feature is:
Feature: Title of your feature
I want to submit data into registeration form
Scenario: Register into the forum
Given I want to register into the main forum
When I enter name
And I enter passwrod
And I repeat the password
And I enter username
And I enter email
Then I click the submit
I didn't need that RunCukesTest at all.The point was to install the Cucumber-jvm plugin on STS, and it generates the steps very easily. This question was also very useful.

Related Links

FTP Files from a Server that has Input parameter on Login
Custom Maven plugin hosting and prefix resolution
How to fix a java.util.ConcurrentModificationException
Java Web Error: Error : running Tomcat 7.0 : Cannot find configuration of jsp built-in servlet in
Make a call through com.sun.proxy instance
Add button dynamically in current view
Null Pointer Exception?
Java - Reading in value from text
deploying project to tomcat ROOT
swing jpopupmenu and jpanel is displaying a shadow
Gene in a Genome - Program
The request sent by the client was syntactically incorrect using #DateTimeFormat
frequency of integers from user input
Implementing a TRIE with a nested hash map?
How do I add user values into a 2D array
Detect a url is accessible using HTTP requests

Categories

HOME
netsuite
amazon-ec2
ngrx
pycharm
reserved
iot
react-router
octobercms
amortized-analysis
binary-tree
umd
constraint-programming
directx
pheatmap
adfs
amazon-cloudformation
applepay
gitpitch
dacpac
vault
tomcat6
nano-server
numeral.js
export-to-csv
dbext
immutable.js
nas
xlsxwriter
realex-payments-api
android-widget
xpages-ssjs
cas
url-scheme
tooltipster
spring-mybatis
elasticsearch-ruby
assistant
librato
functor
android-nestedscrollview
hexo
overlap
space-complexity
neuroscience
libraries
ssjs
splice
angularjs-factory
unoconv
sql-server-agent
jvm-languages
botbuilder
nxlog
estimote
no-www
vao
convertapi
sas-jmp
long-polling
scrollable
youcompleteme
pnotify
celery-task
ionicons
alphabet
crypt
android-cursor
nbconvert
account-kit
messenger
paypal-express
two-factor-authentication
jfugue
iad
wso2cloud
pundit
responsive-images
ios9.1
id3v2
java-metro-framework
websocket4net
rdl
openexr
sgen
starcluster
wp-query
reactfx
braille
django-nonrel
sabredav
e4x
javaspaces
regsvr32
custom-backend
whoosh
qt-jambi
external-accessory
psi
f#-powerpack
asp.net-mvc-areas
fixed-width
web-architecture
photoshop-cs4

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App