Neha
Neha

Reputation: 316

Cucumber and Test Management Tool

I am creating a new Automation project for which I need to come up with the Tech Stack. I am planning to opt for BDD using Cucumber and Gherkin. I wanted to know which Test management Tool I should use in this case. I was reading few communities where people have an opinion that we do not need a Test manager tool with Cucumber but my question is there could be a scenario where we have a whole lot of test cases out of which not all of them are automated.

In that case we would require a Test Repository to keep all the test cases with some flag marked as Automated.

I read this but this did not answer my question: https://sqa.stackexchange.com/questions/2095/what-test-management-tool-to-manage-cucumber-tests?noredirect=1&lq=1

Upvotes: 0

Views: 1568

Answers (2)

Prashanth Sams
Prashanth Sams

Reputation: 21129

TestRail is a widely used test management tool nowadays, where you can add your cucumber dsl and later attach it with your automation scenarios. You can integrate it easily with the below ruby gem, if you are a Ruby user.


Ruby


testrail-cucumber

Install gem file

gem 'testrail-cucumber'

Import the library in your env file

require 'testrail-cucumber'

Sync Case ID in your BDD scenario

Prefix TestRail Case ID on start of your cucumber scenario; say, C860

  @your_tag
  Scenario: C860 Verify the home page
    Given I navigate to "home" page
    Then I verify the home page

Config TestRail details

  • Create a testrail config file, testrail_config.yml in the project parent folder
  • Fill up the testrail details on right hand side of the fields (url, user, password, and run_id); run_id is the dynamically generated id from your testrail account (say, run_id: 111)
testrail:
  url: https://your_url.testrail.io/
  user: [email protected]
  password: your_password
  run_id: your_run_id

Update the results through Hooks on end of each test

After do |scenario|
  TestrailCucumber::UpdateTestRails.new(scenario).upload_result
end

Upvotes: 0

sayhan
sayhan

Reputation: 1184

I was using TestRail for managing my team's manual test processes and also for my automation projects. You can tag your automations test with @automation tag and you can map them in TestRail as automation test cases. Hope is that works for you.

You can tag, parse and map your cucumber cases with TestRail's test case id via TestRail's api.

Here is the documentation of TestRail : http://docs.gurock.com/testrail-api2/start

Edit : Here is a link for your question's answer :Can I use MTM to execute my testcases that are wriiten in Selenium Java using Eclipse IDE

Upvotes: 1

Related Questions