cucumber

Ruby/Cucumber: Integration to Jenkins : Bitbucket

∥☆過路亽.° 提交于 2019-12-13 06:57:43
问题 NOTE: Jenkins linked to the machine, where all the automation set up is done, and cucumber test steps can be run with the command cucumber flawlessly. I have a repository in bitbucket, and I am trying to get it run on the jenkins on each change to my repository. Currently, the tests that I have written with cucumber/gherkin and ruby are for mobile automation tests with appium using appium_lib I am trying to get this run in the jenkins but, jenkins would keep displaying the error can't find

Cucumber Failing with Nokogiri

好久不见. 提交于 2019-12-13 06:44:06
问题 I just started using Cucumber and in the simplest of scenarios I throw the following error: undefined method has_key?' for #<Nokogiri::XML::Element:0x10677a400> (NoMethodError) ./features/step_definitions/web_steps.rb:36:in /^(?:|I )fill in "([^"] )" with "([^"] )"$/' features/authentication.feature:9:in `When I fill in "user_name" with "Joe User"' The Scenario is as follows... Scenario: Signup Given I go to the signup page When I fill in "user_name" with "Joe User" Is this a problem in the

Launching Ruby-Cucumber from IntelliJ (OSX)

浪尽此生 提交于 2019-12-13 06:04:44
问题 I am in a new job and am using IntelliJ with Ruby and Cucumber.. all of which are new to me. I have a working project based upon this project: https://github.com/jonathanchrisp/selenium-cucumber-ruby-kickstarter So, from the command line, I run my project like this: sudo cukesparse something cukesparse is not my project but here is a quick description from github: "A simple command line parser to pass default and custom arguments into Cucumber with the power to define these as tasks in a

Sonar build does not run Cucumber tests

守給你的承諾、 提交于 2019-12-13 05:26:08
问题 I am trying to run Sonar build on Jenkins. My project contains both Junit and Cucumber tests. I verified the log files after build, the Sonar build kicks off after normal maven build and picks only the Junit tests but not Cucumber tests. I have the following versions and plugins available in my POM file. Please let me know if any one has come across the similar issue and fixed it. Many Thanks! Junit version 4.11 Cucumber version 1.1.2 Sonar version 3.5.1 <plugin> <groupId>org.mortbay.jetty<

Gradle for Android: Why doesn't javaexec pick up my classpath?

南笙酒味 提交于 2019-12-13 05:14:45
问题 I have an Android project (on Windows) where I am trying to run cucumber-jvm as a non-instrumented "unit test". I.e. execute Cucumber features when I run gradlew test . Here are the relevant bits of my app's build.gradle : android { ... testOptions { unitTests.all { javaexec { main = "cucumber.api.cli.Main" classpath = getClasspath() args = ['--plugin', 'pretty', '--glue', 'gradle.cucumber', 'src/test/java/cucumber/assets'] } } } } dependencies { implementation fileTree(include: ['*.jar'],

How do I specify the browsers in my cucumber.yml files?

守給你的承諾、 提交于 2019-12-13 04:39:42
问题 I want to create cucumber profiles and specify the browsers I want to run the tests on in my profiles. For example my cucumber.yml looks like: default: @chrome --tags @sanity1 --require features firefox: @ff--tags @sanity1 --require features How can I do that? 回答1: You could add an environment variable for the browser type. Then in your test, use that variable to determine the browser to create. For example, you could add a BROWSER variable to your cucumber.yml profiles: default: BROWSER

BUG: launcher exited with 1 task remaining protractor cucumber

感情迁移 提交于 2019-12-13 03:56:36
问题 I reopened my question related on answer issue. So I setup the protractor and cucumber framework. I tried to launch the tests but I get the error message: E/launcher - BUG: launcher exited with 1 tasks remaining protractor protractor.conf.js output C:\obw\IVO_Workspace\mui-cpin-lb-spa\i\Cucumber>protractor protractor.conf.js (node:11656) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmp dir() instead. [11:33:00] I/hosted - Using the selenium server at http://127.0.0.1:4444

State variable-Cucumber - Ruby -Regular expressions

血红的双手。 提交于 2019-12-13 03:53:03
问题 I am a newbie to Cucumber-Ruby. After defining the scenario, I executed the test in the terminal and cucumber suggested the snippet as follows : Then ("Show All button should be enabled") do pending # Write code here that turns the phrase above into concrete actions end Then ("Show All button should be disabled") do pending # Write code here that turns the phrase above into concrete actions end I changed the code as below Then ("Show All button should be (enabled|disabled)") do |state| puts

How to prepare json file from feature file?

若如初见. 提交于 2019-12-13 03:23:13
问题 Is there any way to prepare json file from .feature file in BDD? I am trying to create json file where input source of data is .feature file Feature: Testing a REST API Scenario: Create student account using post method Given api is up and running for post method When i create json with below valuesand hit rest api | Student_id |Name | CityName | State |PostCode |Tel | | 0101 |Andrew | Leeds | | SO143FT | 345345345345 | | 0102 |Smith | NewCastle | | SO143LN | 345345345345 | Then Status is 201

Cucumber/Maven: How to make variable in pom.xml for use Cucumber options?

痴心易碎 提交于 2019-12-13 03:17:13
问题 I need get feature scenarios without running tests with maven via cmd. Cucumber has ' dryRun ' option. But don`t know how to add this option to pom.xml . I tried many variants, but it not helped. Type in cmd: mvn verify -Dfeature=Forum.feature -DdryRun=false but I got error. -DdryRun options does not works. Please take a look screenshot http://imgur.com/6p11Y6V 回答1: According to your screenshot you have the following configuration: <systemPropertyVariables> <cucumber.options> <![CDATA[--tags