cucumber-java

Rest Assured with Cucumber: How to put the request information inside the HTML report

落爺英雄遲暮 提交于 2020-08-26 10:31:08
问题 I would like to show my requests and responses details in my HTML report. A feature file example: Feature: Rest Assured under Cucumber POC Scenario: Azure Login Scenario Given Request specifications are set with base uri "https://login.microsoftonline.com/" When Azure Login Request Executed Then Verify Status Code is 200 The Runner class is: @RunWith(Cucumber.class) @CucumberOptions( features = "src/main/resources/features", glue = {""}, tags = "@tests", plugin = { "pretty", "json:target

Cucumber - How to configure QAF Gherkin Scenario Factory?

╄→гoц情女王★ 提交于 2020-07-22 14:48:08
问题 I have a Cucumber project running thanks to JUnit with the following class: @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features", glue = "com.steps", plugin = {"pretty", "json:target/cucumber-report/cucumber.json"}) public class RunCucumber { } I want to use QAF Gherkin Scenario Factory in order to put some scenario examples in external files in order to reuse them (ex : Cucumber: Scenario Outline reusing examples table or CustomDataProvider for feature file

Cucumber - How to configure QAF Gherkin Scenario Factory?

拥有回忆 提交于 2020-07-22 14:46:52
问题 I have a Cucumber project running thanks to JUnit with the following class: @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features", glue = "com.steps", plugin = {"pretty", "json:target/cucumber-report/cucumber.json"}) public class RunCucumber { } I want to use QAF Gherkin Scenario Factory in order to put some scenario examples in external files in order to reuse them (ex : Cucumber: Scenario Outline reusing examples table or CustomDataProvider for feature file

Exception in thread “main” after updating cucumber version

你离开我真会死。 提交于 2020-03-25 22:39:16
问题 i have updated my cucumber version after that it is giving following exception: WARNING: You are using deprecated Main class. Please use io.cucumber.core.api.cli.Main Exception in thread "main" cucumber.runtime.CucumberException: Failed to instantiate public cucumber.runtime.java.JavaBackend(cucumber.runtime.io.ResourceLoader,io.cucum ber.stepexpression.TypeRegistry) My runner Class: package hgtest.runner; import io.cucumber.testng.AbstractTestNGCucumberTests; import io.cucumber.testng

Exception in thread “main” after updating cucumber version

耗尽温柔 提交于 2020-03-25 22:37:30
问题 i have updated my cucumber version after that it is giving following exception: WARNING: You are using deprecated Main class. Please use io.cucumber.core.api.cli.Main Exception in thread "main" cucumber.runtime.CucumberException: Failed to instantiate public cucumber.runtime.java.JavaBackend(cucumber.runtime.io.ResourceLoader,io.cucum ber.stepexpression.TypeRegistry) My runner Class: package hgtest.runner; import io.cucumber.testng.AbstractTestNGCucumberTests; import io.cucumber.testng

how to create executable jar file with cucumber tests?

走远了吗. 提交于 2019-12-25 16:12:14
问题 My service create an executable jar by gradle. When i create and run my jar (java -jar file.jar) i recive error: no main manifest attribute, in "file.jar" because i don't have main_class. I created main method: public static void main(final String[] args) throws Throwable { String[] arguments = {"--plugin", "html:build/reports/cucumber", "src/test/resources/features", "--glue", "src/test/java/steps"}; cucumber.api.cli.Main.main(arguments); } and My program founds the features but doesn't

how to create executable jar file with cucumber tests?

好久不见. 提交于 2019-12-25 16:09:56
问题 My service create an executable jar by gradle. When i create and run my jar (java -jar file.jar) i recive error: no main manifest attribute, in "file.jar" because i don't have main_class. I created main method: public static void main(final String[] args) throws Throwable { String[] arguments = {"--plugin", "html:build/reports/cucumber", "src/test/resources/features", "--glue", "src/test/java/steps"}; cucumber.api.cli.Main.main(arguments); } and My program founds the features but doesn't

Getting exception while executing feature file. I have tried using plugin instead of format, still issue persists

寵の児 提交于 2019-12-24 18:45:00
问题 Exception in thread "main" cucumber.runtime.CucumberException: Only one formatter can use STDOUT, now both pretty and json use it. If you use more than one formatter you must specify output path with PLUGIN:PATH_OR_URL at cucumber.runtime.formatter.PluginFactory.defaultOutOrFailIfAlreadyUsed(PluginFactory.java:185) at cucumber.runtime.formatter.PluginFactory.convertOrNull(PluginFactory.java:144) at cucumber.runtime.formatter.PluginFactory.instantiate(PluginFactory.java:99) at cucumber.runtime