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

Should user input cause checked exceptions?
Using TCP and UDP for java game
What is the use of this parameter In java
stop MediaPlayer after changing the screen
how to take updated input argument every time java
How to read a string of characters from a text file until a certain character, print them in the console, then continue?
Why is my program running slower on a server than locally?
JavaFX Creates Daemon Threads called “Timer-XX”
Java PriorityQueue: Is it better to poll() and then add() or peek() and then remove()
Frame inside custom view
Changing the border color in polygon
Calling java from Octave
Getting exception with Spring NamespaceHandler for Spring Tx
Querying database using Scala console in Java Play
catch a click event on a button in dialog
Using StringTokenizer to separate scalar variables from array variables?

Categories

HOME
ms-access
gerrit
keras
zeromq
urbancode
vmware
tesseract
react-router
youtube-dl
spring-jdbc
amortized-analysis
microservices
gps
sql-server-2016
user-input
modx-revolution
zend-framework3
task
decimal
worldwind
invantive-sql
sms-gateway
jqwidget
wkwebview
url-scheme
social-media
jaxb2
libssl
objectanimator
tinymce-4
galsim
repo
ghost4j
mapdb
html5-fullscreen
serverside-rendering
objectlistview
graphenedb
mapzen
quadratic-programming
janrain
modelmapper
slickedit
worker-thread
diagnostics
pg-dump
ifs
memory-alignment
redundancy
background-service
abcpdf9
heidisql
libpng
vmware-tools
radtreelist
azure-virtual-network
phishing
fody
login-control
php-internals
php-parse-error
ios8-today-widget
srand
reactive-banana
retina
arcanist
javafx-webengine
qcodo
socketexception
client-side-templating
rdl
xojo
sgen
aapt
message-driven-bean
multiprocessor
cdc
buster.js
html4
eventual-consistency
ember-app-kit
lcs
e4x
cascalog
asyncfileupload
punbb
bigcouch
window-management
pydot
ecl
winbugs14
locate
lang
gamequery
xsdobjectgen
forums
boost-smart-ptr
genealogy
ugc
.net-1.0
signal-handling

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App