cucumber-jvm

I am unable to post an Add Place API when using POST http method

喜欢而已 提交于 2020-06-17 09:10:48
问题 io.restassured.path.json.exception.JsonPathException: Failed to parse the JSON document It is throwing error in the code written for these Feature file steps: Given Add new location with "<name>" "<language>" "<address>" parameters Then user calls "AddPlaceAPI" with http "POST" method Then API successful response with "status" as "OK" The stepDefinition code for these steps @Given("Add new location with {string} {string} {string} parameters") public void Add_new_location_with_three_parameters

I am unable to post an Add Place API when using POST http method

送分小仙女□ 提交于 2020-06-17 09:10:07
问题 io.restassured.path.json.exception.JsonPathException: Failed to parse the JSON document It is throwing error in the code written for these Feature file steps: Given Add new location with "<name>" "<language>" "<address>" parameters Then user calls "AddPlaceAPI" with http "POST" method Then API successful response with "status" as "OK" The stepDefinition code for these steps @Given("Add new location with {string} {string} {string} parameters") public void Add_new_location_with_three_parameters

How do I make sure my cronjob job does NOT retry on failure?

拈花ヽ惹草 提交于 2020-05-17 06:39:26
问题 I have a Kubernetes Cronjob that runs on GKE and runs Cucumber JVM tests. In case a Step fails due to assertion failure, some resource being unavailable, etc., Cucumber rightly throws an exception which leads the Cronjob job to fail and the Kubernetes pod's status changes to ERROR . This leads to creation of a new pod that tries to run the same Cucumber tests again, which fails again and retries again. I don't want any of these retries to happen. If a Cronjob job fails, I want it to remain in

How do I specify a separate maven goal for running (Cucumber) acceptance tests?

偶尔善良 提交于 2020-03-17 10:34:41
问题 I have the following project structure: MyProject --src --test --acceptance --step_definitions --features --unit I would like to be able to run my cucumber tests (in test/acceptance) separately in Maven from the unit tests declared in test/unit, so that they can be run in different CI build plans etc. I am using cucumber-junit so the 'runners' for each acceptance test are written with JUnit. Is this possible? 回答1: Is this possible? Yes, it is possible. I believe you should separate your unit

How do I specify a separate maven goal for running (Cucumber) acceptance tests?

試著忘記壹切 提交于 2020-03-17 10:34:14
问题 I have the following project structure: MyProject --src --test --acceptance --step_definitions --features --unit I would like to be able to run my cucumber tests (in test/acceptance) separately in Maven from the unit tests declared in test/unit, so that they can be run in different CI build plans etc. I am using cucumber-junit so the 'runners' for each acceptance test are written with JUnit. Is this possible? 回答1: Is this possible? Yes, it is possible. I believe you should separate your unit