Cucumber feature , Java, Eclipse - cucumber-java

I am new to automation , I am trying to run Cucumber feature and gives me the following error

Related

Teamcity - How to display Cucumber reports in teamcity?

Hi I have my automation test running in Team city and I have cucumber reports generated in target folder.
I have passed target folder as my artifact. I can see my reports are getting generated in my target folder. But how can I see the cucumber reports integrated in Teamcity. I have seen that there is an option for Regression Tests Tab in team city but not sure how to configure. Since I am pretty new to team city is there a way I can get my cucumber reports displayed.
Any suggestions?
Most likely, you will want to use a plugin. There is a cucumber plugin for teamcity listed here:
Third-party plugins
TeamCity - prints Cucumber results in a format for interpretation by a TeamCity build agent.
teamcity_formatter - Compatible with Cucumber 2.
cucumber_teamcity - Tested with Cucumber 1.3.18 and TeamCity 8.x.
The links give some insight on the plugin setup. You can also install these plugins through the Teamcity GUI by navigating to Administration > Plugins > Upload Plugin Zip.

Specflow : Test scenario is not getting displayed in test explorer

When i add test scenario in feature file it is not getting displayed after build. in VS 2015.
I had the same issue . And when I upgraded my specflow to 3.0.213 , feature.cs and tests were not generated. Then I used this MSBUild example with latest specflow to generate feature.cs and tests in test explorer. It uses MSTest as test runner.

Configuration of Allure report for selenium with C#, specflow tests

I'm using Selenium with C#, specflow and NUnit 3 to create my automated tests. Now I am looking for reporting tool like Allure. Can anyone guide me, how to configure Allure report please?
Thanks,
Check https://www.nuget.org/packages/Specflow.Allure/
Make sure you're using NUnit 3 version which supports TextFixtureSetUp/TextFixtureTearDown (like 3.2), because SpecFlow uses old NUnit and this attributes became deprecated in newer NUnit versions.
Specflow.Allure currently supports SpecFlow 2.1 and will support 2.2 as soon as my PR will be approved.

Intern integration with Visual Studio 2013

ENVIRONMENT
We are currently using 2 Chutzpah packages (this and this) in Visual Studio 2013 Update 4 to enable us to execute individual Jasmine unit tests (with Chutzpah context menu "Open in Browser") against an angular application we are developing.
We currently have to use Chrome developer tools to set breakpoints and debug the unit tests.
The current Jenkins build is running Moq Unit Tests against the C# application code and cross-browser Selenium tests with SauceLabs.
The next step for the JS tests is to execute them as part of our Jenkins build along with the other tests.
To achieve this the best tool currently is Intern.
OUR REQUIREMENTS
Execute JS Tests and calculate coverage as part of the Jenkins Build
on SauceLabs.
Execute and step through (debug) JS Unit Tests
Regarding 1, I can see from the Intern example that we will probably have to (and can) rewrite our tests for Intern to get them to execute on Jenkins and SauceLabs.
Regarding 2, the point of this post:
MY QUESTIONS
Can tests written in the manner of the Intern example be debugged in chrome with developer tools?
Is there a need for a Chutzpah-like tool to integrate Visual Studio
with Intern? (Is this the analogous tool?)

Is it possible to use Specflow with Resharper?

I have just added a specflow feature however the generated code is for NUnit. I would prefer to use Resharper to run the tests.
I installed specflow from NuGet. I did not install any runner projects.
Here is a sample of the generated .feature.cs
//
------------------------------------------------------------------------------ // <auto-generated> // This code was generated by SpecFlow (http://www.specflow.org/). // SpecFlow Version:1.9.0.77 // SpecFlow Generator Version:1.9.0.0 // Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //
------------------------------------------------------------------------------
#region Designer generated code
#pragma warning disable namespace Test.FeatureHanding {
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.9.0.77")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("Set Filter")
By default, all SpecFlow tests are in NUnit! SpecFlow simply generates the tests from the plain text for you.
You simply have to click on the icon to the left of the test method declaration in the generated YourFeature.feature.cs file, or you Resharpers test explorer to find it.
I think there is a terminology misunderstanding here.
NUnit is a testing framework (others are xUnit, mbUnit, MSTest). NUnit comes with a test runner which can run unit tests written with the NUnit framework.
Resharper has a test runner which can run tests from many testing frameworks (all of the above frameworks I believe). There are other test runners available. Visual studio (2012+ I believe) come with a test runner which can run MSTest tests without a plugin. NCrunch can run tests from any of the frameworks, and xUnit and mbUnit probably have runners provided which can run tests written in those frameworks.
Once you have built your feature files then Resharper should find the tests that SpecFlow has generated.

Resources