cucumber

Automation tests using Cucumber, SoapUI and Selenium

时光总嘲笑我的痴心妄想 提交于 2019-12-25 07:39:00
问题 I'd like to use Cucumber linked with SoapUI and Selenium in order to create an automation functional test. I only found one website about it, describing that first I have to create a SoapUI project and save it as a .xml file. Then I should include this file into the test project using Cucumber and Selenium. My first question is what configuration do I have to do for that ? (in the pom.xml file when using Maven for example or in any configuration file for Jenkins) My second and last question

Is it possible to use siteprism variables to define new variables when defining the page object?

余生长醉 提交于 2019-12-25 06:53:44
问题 I'm working on a cucumber, ruby, capybara, siteprism project and we're defining most UK variables in a siteprism page object. Is there a way for me to use the siteprism variables that I create as part of the definition for new variables? For example, if I've got a siteprim page that looks like: sections :user_container, "#user_container" do sections :address_module, "#address" do element :house_number, "#house_number" end end Can I somehow define new variables on the same pageobject

Watir+Cucumber Connection refused

巧了我就是萌 提交于 2019-12-25 06:48:15
问题 Folks, I am using watir+cucumber in my tests and for each feature I am reusing the instance of the browser, that is I create the instance of @@browser = Watir::Browser.new and then reuse this through out my tests, I am using watir-webdriver , my tests where running fine till now, I just added another scenario and I consistently get the below error message: Connection refused - connect(2) (Errno::ECONNREFUSED) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb

Cucumber (Java) via Windows command line works via batch, but not pom

不问归期 提交于 2019-12-25 06:22:31
问题 I'm running through the examples in the Cucumber For Java book on the Windows command line. I can execute it fine from a Windows batch file, but when attempting to do it from Maven, I'm getting "No sources to compile" and "No tests to run". What is needed in the pom to point to the same classes/features as in the batch? Full output: [C:\data_jeffy\code\java\cucumber\learning_cucumber\first_taste\checkout]mvn clean test [INFO] Scanning for projects... [INFO] [INFO] ----------------------------

Using cucumber with ruby and Netbeans

。_饼干妹妹 提交于 2019-12-25 05:11:06
问题 I am using Cucumber netbeans plugin Cetriolo, I have created a .feature file for Login feature scenario, and login_steps.rb for my steps definition but the problem is I cannot find a way to connect the feature with its steps any one has any idea about this plugin. 来源: https://stackoverflow.com/questions/22895878/using-cucumber-with-ruby-and-netbeans

'cucumber' is not recognized as an internal or external command

人走茶凉 提交于 2019-12-25 04:43:46
问题 I am on Netbeans 8.0.2. I downloaded Cucumber netbeans plugin from here: https://github.com/QuBiT/cucumber-netbeans-plugin/downloads I have my feature file inside my project. Now when I try to Right click on my feature file and generate class I get this error: --- START --- 'cucumber' is not recognized as an internal or external command, operable program or batch file. --- END --- What am I missing here? 回答1: Looks like you have NOT installed cucumber on your machine but have only installed

calabash-ios unexpected ECONNREFUSED error after touch

若如初见. 提交于 2019-12-25 04:22:39
问题 xcode install /Applications/Xcode.app/Contents/Developer calabash version ➜ calabash.framework git:(master) ✗ Resources/version 0.9.169 Calabash Server Version { "outcome" => "SUCCESS", "app_id" => "<removed>", "simulator_device" => "iPhone", "version" => "0.9.169", "app_name" => "iPhone-cal", "iphone_app_emulated_on_ipad" => false, "4inch" => true, "git" => { "remote_origin" => "git@github.com:calabash/calabash-ios-server.git", "branch" => "master", "revision" => "ca62f6e" }, "app_version" =

Capybara How to use within_frame for the only iframe in the page without id

守給你的承諾、 提交于 2019-12-25 02:28:19
问题 I have an in the the page that I need to test with Cucumber and Capybara, the iframe does not have a class or id attribute but it's the only iframe on the DOM. How can I use the within_frame capybara method? 回答1: use find to get the element and pass it to the within_frame method. iframe = find('iframe') within_frame(iframe) do # expect something here end 回答2: If you're using a recent version of Capybara the locator argument to within_frame is optional if there's only one iframe on the page

Cucumber - Data driven testing - multiple similar steps in same scenario

强颜欢笑 提交于 2019-12-25 01:14:06
问题 I am writing a feature which deals with adding multiple items to shopping cart like a typical e-commerce application. It is something like this - Scenario: Promotion is applied Given I select "Bacon" worth "$1" Given I select "Lettuce" worth "$2" Given I select "Diet Coke" worth "$5" Given I select "Bread" worth "$2" Then "$0.5" promotion should be applied for "Bacon" Then "$0.0" promotion should be applied for "Lettuce" Then "$0.5" promotion should be applied for "Diet Coke" Then "$1.0"

How to fetch the file from local window by cucumber rails automation?

房东的猫 提交于 2019-12-25 00:39:21
问题 I use cucumber automation for my rails application. If I run the cucumber, It can't fetch the csv file from local window. My Step-definition file: When("I upload a file") do attach_file("#{Rails.root}/rec.csv") sleep(2) click_button 'open' browser.button(xpath: '/html/body/div/form/input[4]').click sleep(2) end Error Shown: Scenario: Uploading a valid csv file # features/user.feature:23 Given I visit the file upload page # features/step_definitions/user_step.rb:89 When I upload a file #