Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7530199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:50:45+00:00 2026-05-30T04:50:45+00:00

I can manually test my API via rails s and point my HTTP client

  • 0

I can manually test my API via rails s and point my HTTP client to http://127.0.0.1:3000/api.

Now, I want to automatically test my API via features. So I successfully set up a guard server which starts cucumber and rspec.

Does cucumber start my application and provide my API entry point under any port? So that I can use a HTTP client inside my step definitions and point it to http://127.0.0.1:8989/api for example?

I know that I can specify a :cucumber_port => 4321 in the Guardfile but my API is not available under this port.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:50:47+00:00Added an answer on May 30, 2026 at 4:50 am

    No, Cucumber doesn’t start your application with server.

    To test it you can do the following:

    1. Use rack_test. It provides you with methods like #get, #post, etc. It’s preferred. For example:
    get('api/test')
    response.code.should == '200'
    
    1. Start you server with Capybara. It’ll be much longer however. You can do this by adding the following code to env.rb:
    require 'capybara/rails'
    Capybara::Server.new(Capybara.app).boot
    

    Now you can access your API at http://127.0.0.1:9887/api

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed that you can manually recycle an application pool via IIS and that
I know that i can enter/add new properties via code manually into partial classes
Very simple Winforms application I want to deploy manually. Can all the referenced assemblies
I'd like to test an abstract class. Sure, I can manually write a mock
I'm using the Adwords API so that a client can auto-pause the ads associated
I am using WCF Web API Preview 6 with its inbuilt Test Client to
I can connect manually by doing: M-x sql-postgres and type the User, Database, Host,
I have a databound list view and can set all the column widths manually
Can somebody point me to a resource that explains how to go about having
I want to return the same text that is returned when I manually type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.