Cucumber / Gherkin integration

Are there any BDD testing automation implementations within Mumps/Cache Objects already in existence?

We are looking at using Cucumber for our Java regression test automation and would like to use similar feature file testing with the Cache code.


Looking to use something existing before building it.

Regards,
-Karl

  • + 2
  • 1
  • 188
  • 3
  • 1

Answers

In Caché we have %UnitTest, you can find more information about it in the documentation. It is also possible to automate testing with various of Continuous Integration tools.

Thanks Dmitry, We use and enhanced version of %UnitTest already on our unit tests and behind the scenes functional tests.

We are looking for a way to run feature files directly in Cache.  Ultimately these files will get broken down into test cases and tests, but that breakdown, running and reporting is what needs to be built if there isn't already something out there.

Ex feature file:

Feature: Login Action

Scenario: Successful Login with Valid Credentials
    Given User is on Home Page
    When User Navigate to LogIn Page
    And User enters UserName and Password
    Then Message displayed Login Successfully

Scenario: Successful LogOut
    When User LogOut from the Application
    Then Message displayed LogOut Successfully

-Karl

Hi Karl,

By 'application' in the example above, do you mean a web application hosted on a Cache server/written in COS?

Yes, it is very possible to do (and in fact we are working on transitioning our internal UI testing for IRIS and Healthshare to use a Cucumber BDD framework with Selenium Webdriver and Allure reporting - with scenarios as in the example below).

Would you like more details about the setup?

Thanks,

Olga

Feature: License Key
  As a system administrator
  In order to test the Activate License Key functionality
  I want to import valid and invalid license key files and confirm response messaging

  Background:
    Given  I set up context options

  Scenario: Activate valid license key
    Given I log in to the application and navigate to the License Key page
    When I import and activate the license key /tmp/ISC.cache.key
    Then The file contents should be displayed in the Activate Key modal right hand panel
    And  The confirmation dialog should contain the expected text
    And  No error should appear in the response note area

  Scenario Outline: Test invalid license key files <filepath>
    When I import and try to activate the license key <filepath>
    And the response note area should contain <errorText>

    Examples:
      | filepath               | errorText                                 |
      | /tmp/expired_cache.key | ERROR #8604:License key has expired.      |
      | /tmp/invalid_cache.key | ERROR #8605:License key is invalid.       |
      | /tmp/empty_cache.key   | ERROR #8603:Not a valid license key file. |
      | /tmp/cache1.key        | File does not exist                       |