cucumber-jvm

how use tests written in Selenium and Cucumber-JVM with JMeter?

筅森魡賤 提交于 2019-12-08 04:00:20
问题 I have set of functional tests written in Selenium and Cucumber-JVM, I use maven to run them by Cucumber tags. Now I need to use some of those tests with JMeter to check performance. How can I do it? 回答1: I believe that you can just Compile your tests into .jar file(s) Copy the .jar file(s) into JMeter classpath tests files - under /lib/junit folder of your JMeter installation dependency files - under /lib folder Add JUnit Request Sampler and choose required test from "Classname" and "Test

How to run the cucumber test parallelly_Junit/TestNg [duplicate]

人盡茶涼 提交于 2019-12-08 03:59:39
问题 This question already has answers here : How to execute cucumber feature file parallel (4 answers) Closed 2 years ago . Iam using cucumber test with testng , iam planning to run the test parallely.I have previous experience by using testng framework and executed parallely , how can i achieve the same without using mavensurfire plugin (pom.xml) Configuration which i have, Cucumber JVM,TestNGCucumberRunner.java file to trigger the feature file 回答1: Here is an example of what you ask, but using

Cucumber not serializing date string from datatable in feature file to a LocalDate field inside my pojo

房东的猫 提交于 2019-12-08 03:36:21
问题 Im trying to figure out how to parse date fields from my cucumber feature files in my step definitions. class Person{ String name LocalDate dob } scenario: do something with people Given list of people: |name|dob| | john| 20-09-2001| @Given("^list of people:") public void doSomething(List<Person> people) { } Please note i have no access to the Person class, Im sure i have to either write my own converter or register a converter written by someone from some library, after searching around the

How to run the cucumber test parallelly_Junit/TestNg [duplicate]

筅森魡賤 提交于 2019-12-08 03:08:29
This question already has answers here : How to execute cucumber feature file parallel (4 answers) Closed 2 years ago . Iam using cucumber test with testng , iam planning to run the test parallely.I have previous experience by using testng framework and executed parallely , how can i achieve the same without using mavensurfire plugin (pom.xml) Configuration which i have, Cucumber JVM,TestNGCucumberRunner.java file to trigger the feature file Here is an example of what you ask, but using jUnit. With testNG is the same, but you have tu change the dependency in the pom.xml. Here is a link in

Maven/Junit Parallel Execution - Cucumber-JVM v4.0.0

痴心易碎 提交于 2019-12-07 18:48:25
问题 I'm struggling to get the new parallel execution feature of Cucumber-JVM v4.0.0 working with JUnit/Maven. As specified here, if you configure <parallel> and <threadCount> accordingly in your POM, and use dependency injection to share state (I'm using Pico Continer) then your Cucumber features should execute in parallel. However, it is still only executing one feature at a time when i run Maven. I've included my complete POM below - Can anybody help? <project xmlns="http://maven.apache.org/POM

run cucumber tests parallel using cucumber-jvm 4

末鹿安然 提交于 2019-12-07 17:10:55
问题 Java v8.x - spring v5.x cucumber v4.2.0 i tried temyers/cucumber-jvm-parallel-plugin and it works fine, but when i get to their gitihub page they announced to stop using this plugin b/c cucumber already have start supporting parallel test running support from cucumber-jvm 4.0.0. I have existing tests with using following maven dependencies. cucumber-java v4.2.0 cucumber-junit v4.2.0 cucumber-spring v4.2.0 i have two questions making me confuse. In order to use cucumber-jvm do i have to change

picocontainer for singleton DI

自古美人都是妖i 提交于 2019-12-06 22:25:11
I'm trying to use picocontainer for DI but still getting my shared object instantiated several times instead of being automatically managed as a singleton. Here's an example to illustrate. Classes ASteps and BSteps receive a SharedObject instance through their constructors. I expected it to be managed as a singleton by picocontainer: instantiated only once, as per the Cucumber docs. Instead, I see it gets instantiated once for ASteps and once for BSteps: Running my.domain.CucumberRunTest INFO [main] (CucumberHooks.java:15) - Executing before() INFO [main] (SharedObject.java:11) - SharedObject

how use tests written in Selenium and Cucumber-JVM with JMeter?

随声附和 提交于 2019-12-06 16:14:57
I have set of functional tests written in Selenium and Cucumber-JVM, I use maven to run them by Cucumber tags. Now I need to use some of those tests with JMeter to check performance. How can I do it? I believe that you can just Compile your tests into .jar file(s) Copy the .jar file(s) into JMeter classpath tests files - under /lib/junit folder of your JMeter installation dependency files - under /lib folder Add JUnit Request Sampler and choose required test from "Classname" and "Test Method" dropdowns Configure JMeter as per your load scenario and run the test See How to Use JUnit With JMeter

Parallel execution of features files : maven-failsafe-plugin vs cucumber-jvm-parallel-plugin

那年仲夏 提交于 2019-12-06 15:27:21
问题 Currently I'm using maven-failsafe-plugin to run multiple feature files in parallel with Selenium Grid + nodes ( all running in docker containers ) I'm basic questions as below when to use cucumber-jvm-parallel-plugin ? what benefits / disadvantages of cucumber-jvm-parallel-plugin over maven-failsafe-plugin parallel execution ? Thanks in advance. 回答1: Below is the answer "A common approach for running Cucumber features in parallel is to create a suite of Cucumber runners, one for each suite

cucumber tags based on maven profile

前提是你 提交于 2019-12-06 14:27:28
I am trying to run specific Gherkin scenarios based on the variable @tags(if it is possible). For example, if my profile is "dev" I want to run scenario 1 and if profile is "qa" I want to run scenario 2. I can get the profile value in my java class. I can also pass the tags in the command line and run it as mentioned here . But that is not something I am looking for. For example: @QA Scenario:I do x and check y Given I do abc Then the response is 200 @DEV Scenario:I do y and check x Given I do cde Then the response is 500 I am getting the profile value in java class as System.getProperty(