THIS SPACE IS UNDER CONSTRUCTION

Feature

User story

As a user
I want to send a message
So that I am able to send data to another user

Use caseUC-403: Send message
Test data

The test data needs to be used to send the messages in your application.
The test data can be found in the project at:

  • src/test/resources/testdata/sendMessages.json
  • src/test/resources/attachments/mypdf.pdf
  • src/test/resources/attachments/test.png
Expected resultCheck the response of the webservice call.
Actual resultCheck the front-end of the application under test.
Test pass conditions

The following values need to be verified:

  • Document title
  • Document filename
  • Patient INSS
  • Is important
  • Is encrypted
  • Document content

The following values need to be verified for every attachment:

  • Annex title
  • Annex filename
  • Annex content

The following values need to be verified for every recipient:

  • Destination first name
  • Destination last name
  • Destination quality

Scenarios (Cucumber)

sendMessage.feature
#Remove the @ignore-tag(s) of scenarios you want to start testing.

@ignore
Feature: TS-403: Send message
  As a user
  I want to send a message
  So that I am able to send data to another user

  @ignore
  Scenario: Send a basic message
    Given user is logged in
    When user is on the send message page
    And user sends the 'send: basic' message
    Then the 'send: basic' message is sent correctly

  @ignore
  Scenario: Send a message with two recipients
    Given user is logged in
    When user is on the send message page
    And user sends the 'send: two recipients' message
    Then the 'send: two recipients' message is sent correctly

  @ignore
  Scenario: Send an encrypted message
    Given user is logged in
    When user is on the send message page
    And user sends the 'send: encrypted' message
    Then the 'send: encrypted' message is sent correctly

  @ignore
  Scenario: Send a message with an attachment
    Given user is logged in
    When user is on the send message page
    And user sends the 'send: attachment' message
    Then the 'send: attachment' message is sent correctly

  @ignore
  Scenario: Send a message with two attachments
    Given user is logged in
    When user is on the send message page
    And user sends the 'send: attachments' message
    Then the 'send: attachments' message is sent correctly

  @ignore
  Scenario: Send an encrypted message with an attachment
    Given user is logged in
    When user is on the send message page
    And user sends the 'send: encrypted with attachment' message
    Then the 'send: encrypted with attachment' message is sent correctly