your cucumber jars are missing i think
add this
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.1.8</version>
</dependency>
if error occurs again dowload these.
Cucumber-java (1.2.2) -Cucumber-junit (1.2.2) -Cucumber-picocontainer (1.2.2) -junit (4.12)
these errors are gone. But facing new issue. when running a feature file I am getting below message:
Feature: Logging into Salesforce
In order to work
As a sales person
I want to login
@login
Scenario Outline: Logging in salesforce [90m# com/qtpselenium/app/salesforce/login/login.feature:8[0m
#Given Runmode is "Y"
#Given I go to "http://qtpselenium.com/login/selectlogin.php" on "mozilla"
[36mThen [0m[36mAll tabs on menu should be present[0m
0 Scenarios
0 Steps
0m0.000s
Note: steps are not getting executed:
below is my step : And also I tried many combination of steps but same reult
Feature: Logging into Salesforce
In order to work
As a sales person
I want to login
@login
Scenario Outline: Logging in salesforce
#Given Runmode is "Y"
#Given I go to "http://qtpselenium.com/login/selectlogin.php" on "mozilla"
Then All tabs on menu should be present
#And I enter "loginusername" as "<Username>"
#And I enter "loginpassword" as "<Password>"
#And I click on "loginButton"
#Then Login should be "<Expected_Result>"
#Examples:
#|Runmode |Browser | Username | Password | Expected_Result |
#| N | Mozilla | xxxxx | zxxxx | failure |
#| n | Mozilla | loadrunner.jmeter@gmail.com | pass@1234 | success |
#| N | Chrome | xxxxx | zxxxx | failure |
#| Y | Mozilla |loadrunner.jmeter@gmail.com | pass@1234 | success |
I am not getting any error, but steps are not getting executed.
In console it is printing :
"Feature: Logging into Salesforce
In order to work
As a sales person
I want to login
@login
Scenario Outline: Logging in salesforce [90m# com/qtpselenium/app/salesforce/login/login.feature:8[0m"
Note: above words are mentioned in feature file before steps. Steps never executed
yes I did, And also I tried to run the project salesforce, the one which is there in tutorial, but same result.
I am not getting any exception. When I run feature file it runs, statment from feature file gets printed but steps not executed.
Attached test steps java and runner java file. Feature file: pasting the statment which print in eclipse console:
Feature: Logging into Salesforce
In order to work
As a sales person
I want to login
@login
Scenario Outline: Logging in salesforce [90m# com/qtpselenium/app/salesforce/login/login.feature:8[0m
#Given Runmode is "Y"
[36mGiven [0m[36mI go to "http://qtpselenium.com/login/selectlogin.php" on "mozilla"[0m
[36mThen [0m[36mAll tabs on menu should be present[0m
0 Scenarios
0 Steps
0m0.000s
pasting feature file here:
Feature: Logging into Salesforce
In order to work
As a sales person
I want to login
@login
Scenario Outline: Logging in salesforce
#Given Runmode is "Y"
Given I go to "http://qtpselenium.com/login/selectlogin.php" on "mozilla"
Then All tabs on menu should be present
#And I enter "loginusername" as "<Username>"
#And I enter "loginpassword" as "<Password>"
#And I click on "loginButton"
#Then Login should be "<Expected_Result>"
#Examples:
#|Runmode |Browser | Username | Password | Expected_Result |
#| N | Mozilla | xxxxx | zxxxx | failure |
#| n | Mozilla | loadrunner.jmeter@gmail.com | pass@1234 | success |
#| N | Chrome | xxxxx | zxxxx | failure |
#| Y | Mozilla |loadrunner.jmeter@gmail.com | pass@1234 | success |