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

POST a JSTL Collection to a servlet and populate a String[] that needs double quotes
Finding specific numbers in an array?
Why does my frame show nothing?
#RepositoryEventHandler events not invoked for Neo4j repositories
Is there a way to set a id of a view programatically with a string
Object serialization and random access in java
Plus operator for Fraction calculator
Unknown log trace in Hazelcast
Real name of “all frames in one image” images?
How to stop an activity from a non-activity-class?
How to obtain Felix Framework's properties in the config.properties file?
Detach Writer from System.out without closing
onActivityResult shows null for intent-data [duplicate]
Is multiplying by 0.0000001 the same as dividing by 10000000?
Bat File Cannot Find Symbol Warnings
SimpleDateFormat adding 7 hours?

Categories

HOME
pdf
mockito
path-finding
appx
read-eval-print-loop
malloc
amazon-ecs
wamp
paradox
add
slick-slider
google-apps-marketplace
orchardcms
visual-studio-2005
fatal-error
normalizr
samoa
textfield
scriptcs
errorlevel
functional-testing
format-specifiers
rundeck
android-widget
h2db
qhull
kannel
user-interaction
bootstrap-material-design
madlib
fabric8
bosh
yadcf
catch-all
lxd
mapbox-gl
mmenu
sequential
overriding
mixture-model
leading-zero
cookiecutter-django
particles.js
fedex
nand2tetris
keydown
node-sass
angular2-meteor
btrace
menuitem
upstart
clean-architecture
dandelion
winscp-net
worker-thread
crypt
migradoc
messenger
nested-sets
elements
url-masking
testng-dataprovider
pervasive-sql
wireshark-dissector
riak-cs
ibaction
arcanist
nsight
graph-api-explorer
notify
npapi
gwidgets
id3v2
concurrent-collections
jplaton
rabl
type-equivalence
sublist
hgsubversion
whoosh
xdomainrequest
pyinotify
datareader
html-input
nhibernate.search
zend-tool
exchange-server-2003
boost-smart-ptr
simpletest
temporal-database

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