Merged in wnestor/processmaker (pull request #129)
Conclusion del Feature Event, Case Scheduler y Step
This commit is contained in:
@@ -33,18 +33,18 @@ Feature: Output Documents Negative Tests
|
||||
Examples:
|
||||
|
||||
| test_description | sch_del_user_name | sch_del_user_pass | tas_uid | sch_name | sch_option | sch_start_date | sch_end_date | sch_start_time | sch_week_days | sch_start_day | sch_start_day_opt_1 | sch_months | sch_start_day_opt_2 | sch_repeat_every | error_code | error_message |
|
||||
| Invalid sch_option | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ | 20 | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | | 400 | sch_option |
|
||||
| Invalid sch_option | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ 21 | 20 | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | | 400 | sch_option |
|
||||
| Invalid sch_del_user_name | sample | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly monday 345%$# | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 1 | | | | | | 400 | User |
|
||||
| Invalid sch_del_user_pass | admin | sample | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly 345%$# | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 2\|3\|5\|6\|7 | | | | | | 400 | password |
|
||||
| Invalid sch_del_user_pass | admin | sample | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly 345%$# 22 | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 2\|3\|5\|6\|7 | | | | | | 400 | password |
|
||||
| Invalid tas_uid | admin | admin | 00000000000005be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 1 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 15 | 3\|4 | | | 400 | task |
|
||||
| Invalid sch_start_time | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 2 | 3 | 2014-03-21 | 2014-04-18 | 39:00:99 | | 1 | 15 | 1\|2\|5\|6\|7\|8\|9\|10\|11\|12 | | | 400 | sch_start_time |
|
||||
| Invalid sch_start_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 3 | 3 | 2014-20-35 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 1\|7 | | 400 | sch_start_date |
|
||||
| Invalid sch_week_days | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 4 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | 8\|9\|10 | 2 | | 3\|4\|5 | 2\|6 | | 400 | sch_week_days |
|
||||
| Invalid sch_week_days | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 4 | 2 | 2014-03-21 | 2014-04-18 | 18:00 | 8\|9\|10 | | | | | | 400 | sch_week_days |
|
||||
| Invalid sch_start_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 5 | 3 | 2014-33-76 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 3\|5 | | 400 | sch_start_date |
|
||||
| Invalid sch_start_day_opt_1 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 6 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 87 | 3\|4\|5 | 2\|4 | | 400 | sch_start_day_opt_1 |
|
||||
| Invalid sch_start_day_opt_2 | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 7 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 3\|4\|5 | 9\|10 | | 400 | sch_start_day_opt_2 |
|
||||
| Invalid sch_months | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 8 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 2 | | 13\|54\|65 | 5\|3 | | 400 | sch_months |
|
||||
| Invalid sch_end_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-One Time only 678%$@ 9 | 3 | 2014-03-21 | 2015-54-87 | 20:00 | | 1 | | 3\|4 | | | 400 | sch_end_date |
|
||||
| Invalid sch_end_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ 23 | 1 | 2014-01-30 | 2015-54-87 | 12:00 | | | | | | | 400 | sch_end_date |
|
||||
| Invalid sch_repeat_every | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Every 987&%@ 10 | 5 | | | | | | | | | 43:30 | 400 | sch_repeat_every |
|
||||
| Field requered sch_option | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ 11 | | 2014-01-30 | 2014-02-20 | 12:00 | | | | | | | 400 | sch_option |
|
||||
| Field requered sch_name | admin | admin | 46941969352af5be2ab3f39001216717 | | 2 | 2014-02-20 | 2014-03-20 | 08:00 | 1 | | | | | | 400 | sch_name |
|
||||
@@ -56,5 +56,4 @@ Feature: Output Documents Negative Tests
|
||||
| Field requered sch_week_days | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Weekly monday 345%$# 17 | 2 | 2014-02-20 | 2014-03-20 | 08:00 | | | | | | | 400 | sch_week_days |
|
||||
| Field requered sch_start_day | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 18 | 3 | 2014-33-76 | 2014-04-18 | 18:00 | | | | 3\|4\|5 | 3\|5 | | 400 | sch_start_day |
|
||||
| Field requered sch_months | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 19 | 3 | 2014-03-21 | 2014-04-18 | 18:00 | | 1 | 16 | | 2\|4 | | 400 | sch_months |
|
||||
| Field requered sch_end_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Monthly 567&^% 20 | 3 | 2014-03-21 | | 18:00 | | 2 | | 3\|4\|5 | 9\|10 | | 400 | sch_end_date |
|
||||
|
||||
| Field requered sch_end_date | admin | admin | 46941969352af5be2ab3f39001216717 | Case Scheduler-Daily 123@#$ 24 | 1 | 2014-01-30 | | 12:00 | | | | | | | 400 | sch_end_date |
|
||||
96
features/backend/events/basic_sequence_event.feature
Normal file
96
features/backend/events/basic_sequence_event.feature
Normal file
@@ -0,0 +1,96 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Events Resources
|
||||
|
||||
@1: TEST FOR GET EVENTS /----------------------------------------------------------------------
|
||||
Scenario: List all the events (result 0 events)
|
||||
Given that I have a valid access_token
|
||||
And I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 0 record
|
||||
|
||||
|
||||
@2: TEST FOR POST EVENT /----------------------------------------------------------------------
|
||||
Scenario: Create a new event
|
||||
Given that I have a valid access_token
|
||||
And POST this data:
|
||||
"""
|
||||
{
|
||||
"evn_description": "DE BEHAT",
|
||||
"evn_status": "ACTIVE",
|
||||
"evn_action": "SEND_MESSAGE",
|
||||
"evn_related_to": "SINGLE",
|
||||
"tas_uid": "97192372152a5c78f04a794095806311",
|
||||
"evn_tas_uid_from": "97192372152a5c78f04a794095806311",
|
||||
"evn_tas_estimated_duration": 1,
|
||||
"evn_time_unit": "DAYS",
|
||||
"evn_when": 1,
|
||||
"evn_when_occurs": "AFTER_TIME",
|
||||
"tri_uid": "75916963152cc6ab085a704081670580"
|
||||
}
|
||||
"""
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 201
|
||||
And store "evn_uid" in session array
|
||||
|
||||
@3: TEST FOR GET EVENTS /----------------------------------------------------------------------
|
||||
Scenario: List all the events (result 1 event)
|
||||
Given that I have a valid access_token
|
||||
And I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 1 record
|
||||
|
||||
@4: TEST FOR PUT EVENT /-----------------------------------------------------------------------
|
||||
Scenario: Update a event
|
||||
Given that I have a valid access_token
|
||||
And PUT this data:
|
||||
"""
|
||||
{
|
||||
"evn_description": "change description",
|
||||
"evn_status": "ACTIVE",
|
||||
"evn_action": "SEND_MESSAGE",
|
||||
"evn_related_to": "SINGLE",
|
||||
"tas_uid": "97192372152a5c78f04a794095806311",
|
||||
"evn_tas_uid_from": "97192372152a5c78f04a794095806311",
|
||||
"evn_tas_estimated_duration": 1,
|
||||
"evn_time_unit": "DAYS",
|
||||
"evn_when": 1,
|
||||
"evn_when_occurs": "AFTER_TIME",
|
||||
"tri_uid": "75916963152cc6ab085a704081670580"
|
||||
}
|
||||
"""
|
||||
And that I want to update a resource with the key "evn_uid" stored in session array
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
|
||||
@5: TEST FOR GET EVENT /-----------------------------------------------------------------------
|
||||
Scenario: Get a event (with change in "evn_description")
|
||||
Given that I have a valid access_token
|
||||
And that I want to get a resource with the key "evn_uid" stored in session array
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
And that "evn_description" is set to "change description"
|
||||
|
||||
|
||||
@6: TEST FOR DELETE EVENT /-----------------------------------------------------------------------
|
||||
Scenario: Delete a event
|
||||
Given that I have a valid access_token
|
||||
And that I want to delete a resource with the key "evn_uid" stored in session array
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
@7: TEST FOR GET EVENTS /----------------------------------------------------------------------
|
||||
Scenario: List all the events (result 0 events)
|
||||
Given that I have a valid access_token
|
||||
And I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 0 record
|
||||
179
features/backend/events/main_tests_event.feature
Normal file
179
features/backend/events/main_tests_event.feature
Normal file
@@ -0,0 +1,179 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Events Resources Main Tests
|
||||
Requirements:
|
||||
a workspace with the process 251815090529619a99a2bf4013294414 ("Test(Triggers, Activity") already loaded
|
||||
there are zero Events in the process
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
|
||||
Scenario: Get List all the events in the process when there are exactly zero events
|
||||
Given I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 0 record
|
||||
|
||||
Scenario Outline: Create 18 new Event of the project
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"evn_action": "<evn_action>",
|
||||
"evn_description": "<evn_description>",
|
||||
"evn_status": "<evn_status>",
|
||||
"evn_related_to": "<evn_related_to>",
|
||||
"tas_uid": "<tas_uid>",
|
||||
"evn_tas_uid_from": "<evn_tas_uid_from>",
|
||||
"evn_tas_estimated_duration": <evn_tas_estimated_duration>,
|
||||
"evn_time_unit": "<evn_time_unit>",
|
||||
"evn_when": <evn_when>,
|
||||
"evn_when_occurs": "<evn_when_occurs>",
|
||||
"tri_uid": "<tri_uid>"
|
||||
}
|
||||
"""
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 201
|
||||
And the content type is "application/json"
|
||||
And the response charset is "UTF-8"
|
||||
And store "evn_uid" in session array as variable "evn_uid_<evn_uid_number>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | evn_uid_number | evn_action | evn_description | evn_status | evn_related_to | tas_uid | evn_tas_uid_from | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid |
|
||||
| Create Event Message with single task, duration=days and Execution AFTER_TIME | 1 | SEND_MESSAGE | Event Message, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Message with single task, duration=hours and Execution AFTER_TIME | 2 | SEND_MESSAGE | Event Message, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Message with single task, duration=days and Execution TASK_STARTED | 3 | SEND_MESSAGE | Event Message, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Message with multiple task, duration=days and Execution AFTER_TIME | 4 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Message with multiple task, duration=hours and Execution AFTER_TIME | 5 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Message with multiple task, duration=days and Execution TASK_STARTED | 6 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Conditional with single task, duration=days and Execution AFTER_TIME | 7 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Conditional with single task, duration=hours and Execution AFTER_TIME | 8 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Conditional with single task, duration=days and Execution TASK_STARTED | 9 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Conditional with multiple task, duration=days and Execution AFTER_TIME | 10 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 4 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Conditional with multiple task, duration=hours and Execution AFTER_TIME | 11 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Conditional with multiple task, duration=days and Execution TASK_STARTED | 12 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Timer with single task, duration=days and Execution AFTER_TIME | 13 | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Timer with single task, duration=hours and Execution AFTER_TIME | 14 | EXECUTE_TRIGGER | Event Timer, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Timer with single task, duration=days and Execution TASK_STARTED | 15 | EXECUTE_TRIGGER | Event Timer, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Timer with multiple task, duration=days and Execution AFTER_TIME | 16 | EXECUTE_TRIGGER | Event Timer, Multiple 4 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Timer with multiple task, duration=hours and Execution AFTER_TIME | 17 | EXECUTE_TRIGGER | Event Timer, Multiple 5 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| Create Event Timer with multiple task, duration=days and Execution TASK_STARTED | 18 | EXECUTE_TRIGGER | Event Timer, Multiple 6 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
|
||||
|
||||
Scenario: Get List all the events in the process when there are exactly zero events
|
||||
Given I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 18 record
|
||||
|
||||
|
||||
Scenario: Get List all the events in the events Messages when there are exactly six events
|
||||
Given I request "project/251815090529619a99a2bf4013294414/events?filter=message"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 6 records
|
||||
|
||||
Scenario: Get List all the events in the events Messages when there are exactly six events
|
||||
Given I request "project/251815090529619a99a2bf4013294414/events?filter=conditional"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 6 records
|
||||
|
||||
Scenario: Get List all the events in the events Messages when there are exactly six events
|
||||
Given I request "project/251815090529619a99a2bf4013294414/events?filter=multiple"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 6 records
|
||||
|
||||
|
||||
Scenario Outline: Update the Events and the check if the values had changed
|
||||
Given PUT this data:
|
||||
"""
|
||||
{
|
||||
"evn_action": "<evn_action>",
|
||||
"evn_description": "<evn_description>",
|
||||
"evn_status": "<evn_status>",
|
||||
"evn_related_to": "<evn_related_to>",
|
||||
"tas_uid": "<tas_uid>",
|
||||
"evn_tas_uid_from": "<evn_tas_uid_from>",
|
||||
"evn_tas_estimated_duration": <evn_tas_estimated_duration>,
|
||||
"evn_time_unit": "<evn_time_unit>",
|
||||
"evn_when": <evn_when>,
|
||||
"evn_when_occurs": "<evn_when_occurs>",
|
||||
"tri_uid": "<tri_uid>"
|
||||
}
|
||||
"""
|
||||
And that I want to update a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>"
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | evn_uid_number | evn_action | evn_description | evn_status | evn_related_to | tas_uid | evn_tas_uid_from | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid |
|
||||
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 1 | 1 | SEND_MESSAGE | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 2 | 7 | EXECUTE_CONDITIONAL_TRIGGER | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 3 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| Update evn_description, evn_status, evn_related_to, evn_tas_uid_from, evn_tas_estimated_duration, evn_when, evn_when_occurs 3 | 13 | EXECUTE_TRIGGER | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
|
||||
|
||||
Scenario Outline: Get a Single Events and check some properties
|
||||
Given that I want to get a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>"
|
||||
And I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "array"
|
||||
And that "evn_description" is set to "<evn_description>"
|
||||
And that "evn_status" is set to "<evn_status>"
|
||||
And that "evn_related_to" is set to "<evn_related_to>"
|
||||
And that "evn_tas_uid_from" is set to "<evn_tas_uid_from>"
|
||||
And that "evn_tas_estimated_duration" is set to "<evn_tas_estimated_duration>"
|
||||
And that "evn_time_unit" is set to "<evn_time_unit>"
|
||||
And that "evn_when" is set to "<evn_when>"
|
||||
And that "evn_when_occurs" is set to "<evn_when_occurs>"
|
||||
|
||||
Examples:
|
||||
|
||||
| evn_uid_number | evn_description | evn_status | evn_related_to | evn_tas_uid_from | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs |
|
||||
| 1 | Update Event Message, Single 1 | INACTIVE | MULTIPLE | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED |
|
||||
| 7 | Update Event Conditional, Single 1 | INACTIVE | MULTIPLE | 63843886052a5cc066e4c04056414372 | 3 | DAYS | 2 | TASK_STARTED |
|
||||
| 13 | Update Event Timer, Single 1 | INACTIVE | MULTIPLE | 63843886052a5cc066e4c04056414372 | 2 | DAYS | 2 | TASK_STARTED |
|
||||
|
||||
|
||||
|
||||
Scenario Outline: Delete all Events created previously in this script
|
||||
Given that I want to delete a resource with the key "evn_uid" stored in session array as variable "evn_uid_<evn_uid_number>"
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the type is "object"
|
||||
|
||||
Examples:
|
||||
|
||||
| evn_uid_number |
|
||||
| 1 |
|
||||
| 2 |
|
||||
| 3 |
|
||||
| 4 |
|
||||
| 5 |
|
||||
| 6 |
|
||||
| 7 |
|
||||
| 8 |
|
||||
| 9 |
|
||||
| 10 |
|
||||
| 11 |
|
||||
| 12 |
|
||||
| 13 |
|
||||
| 14 |
|
||||
| 15 |
|
||||
| 16 |
|
||||
| 17 |
|
||||
| 18 |
|
||||
|
||||
|
||||
Scenario: Get List all the events in the process when there are exactly zero events
|
||||
Given I request "project/251815090529619a99a2bf4013294414/events"
|
||||
Then the response status code should be 200
|
||||
And the response charset is "UTF-8"
|
||||
And the response has 0 record
|
||||
53
features/backend/events/negative_tests_event.feature
Normal file
53
features/backend/events/negative_tests_event.feature
Normal file
@@ -0,0 +1,53 @@
|
||||
@ProcessMakerMichelangelo @RestAPI
|
||||
Feature: Events Resources Negative Tests
|
||||
|
||||
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Create a new event for a project with bad parameters (negative tests)
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"evn_action": "<evn_action>",
|
||||
"evn_description": "<evn_description>",
|
||||
"evn_status": "<evn_status>",
|
||||
"evn_related_to": "<evn_related_to>",
|
||||
"tas_uid": "<tas_uid>",
|
||||
"evn_tas_uid_from": "<evn_tas_uid_from>",
|
||||
"evn_tas_estimated_duration": <evn_tas_estimated_duration>,
|
||||
"evn_time_unit": "<evn_time_unit>",
|
||||
"evn_when": <evn_when>,
|
||||
"evn_when_occurs": "<evn_when_occurs>",
|
||||
"tri_uid": "<tri_uid>"
|
||||
}
|
||||
"""
|
||||
And I request "project/251815090529619a99a2bf4013294414/event"
|
||||
Then the response status code should be 201
|
||||
And the content type is "application/json"
|
||||
And the response charset is "UTF-8"
|
||||
And store "evn_uid" in session array as variable "evn_uid_<evn_uid_number>"
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | evn_uid_number | evn_action | evn_description | evn_status | evn_related_to | tas_uid | evn_tas_uid_from | evn_tas_estimated_duration | evn_time_unit | evn_when | evn_when_occurs | tri_uid |
|
||||
| | 1 | SEND_MESSAGE | Event Message, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 2 | SEND_MESSAGE | Event Message, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 3 | SEND_MESSAGE | Event Message, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| | 4 | SEND_MESSAGE | Event Message, Multiple 4 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 5 | SEND_MESSAGE | Event Message, Multiple 5 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 6 | SEND_MESSAGE | Event Message, Multiple 6 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| | 7 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 8 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 9 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| | 10 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 4 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 11 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 5 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 12 | EXECUTE_CONDITIONAL_TRIGGER | Event Conditional, Multiple 6 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| | 13 | EXECUTE_TRIGGER | Event Timer, Single 1 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 14 | EXECUTE_TRIGGER | Event Timer, Single 2 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 15 | EXECUTE_TRIGGER | Event Timer, Single 3 | ACTIVE | SINGLE | 97192372152a5c78f04a794095806311 | | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
| | 16 | EXECUTE_TRIGGER | Event Timer, Multiple 4 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 17 | EXECUTE_TRIGGER | Event Timer, Multiple 5 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 2 | HOURS | 1 | AFTER_TIME | 75916963152cc6ab085a704081670580 |
|
||||
| | 18 | EXECUTE_TRIGGER | Event Timer, Multiple 6 | ACTIVE | MULTIPLE | 97192372152a5c78f04a794095806311 | 63843886052a5cc066e4c04056414372 | 1 | DAYS | 1 | TASK_STARTED | 75916963152cc6ab085a704081670580 |
|
||||
|
||||
@@ -87,15 +87,15 @@ Feature: Project Properties - Step Resources Main Tests
|
||||
And the type is "array"
|
||||
And the response has <records> records
|
||||
And the "step_uid_obj" property in row 0 equals "<step_uid_obj>"
|
||||
And the "aas_type" property in row 0 equals "<step_type_obj>"
|
||||
And the "step_type_obj" property in row 0 equals "<step_type_obj>"
|
||||
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | activity | records | step_type_obj | step_uid_obj |
|
||||
| 3 steps in task 1 - verify that the first record is the first position | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | 3 | OUTPUT_DOCUMENT | 32743823452cd63105006e1076595203 |
|
||||
| 2 steps in task 2 - verify that the first record is the first position | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 2 | DYNAFORM | 50332332752cd9b9a7cc989003652905 |
|
||||
| 3 steps in task 1 - verify that the first record is the first position | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | 3 | DYNAFORM | 50332332752cd9b9a7cc989003652905 |
|
||||
| 2 steps in task 2 - verify that the first record is the first position | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | 2 | DYNAFORM | 63293140052cd61b29e21a9056770986 |
|
||||
|
||||
|
||||
#STEP TRIGGERS
|
||||
|
||||
@@ -5,7 +5,7 @@ Feature: Steps Resources Negative Tests
|
||||
Background:
|
||||
Given that I have a valid access_token
|
||||
|
||||
Scenario Outline: Assign a 5 Steps to an Activity
|
||||
Scenario Outline: Assign a Steps to an Activity with bad parameters (negative tests)
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
@@ -13,7 +13,7 @@ Feature: Steps Resources Negative Tests
|
||||
"step_uid_obj": "<step_uid_obj>",
|
||||
"step_condition": "<step_condition>",
|
||||
"step_position": "<step_position>",
|
||||
"step_mode": "step_mode"
|
||||
"step_mode": "<step_mode>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/activity/<activity>/step"
|
||||
@@ -22,12 +22,33 @@ Feature: Steps Resources Negative Tests
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | activity | step_type_obj | step_uid_obj | step_condition | step_position | step_mode | error_code | error_message |
|
||||
| Invalid step_type_obj - Dynaform | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | DYNA123@#$% | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | step_type_obj |
|
||||
| Invalid step_type_obj - Input Document | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | INP_DOCUM123@#$ | 83199959452cd62589576c1018679557 | | 2 | EDIT | 400 | step_type_obj |
|
||||
| Invalid step_type_obj - Ôutput Document | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | OUTT_DMEN123@#$ | 32743823452cd63105006e1076595203 | | 3 | EDIT | 400 | step_type_obj |
|
||||
| Invalid step_position | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | DYNAFORM | 63293140052cd61b29e21a9056770986 | @@YEAR==2013 | 2,34/76 | EDIT | 400 | step_position |
|
||||
| Invalid step_mode | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | DYNAFORM | 63293140052cd61b29e21a9056770986 | | 5 | sample12 | 400 | step_mode |
|
||||
| Field requered project | | 10163687452cd6234e0dd25086954968 | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | prj_uid |
|
||||
| Field requered activity | 16062437052cd6141881e06088349078 | | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | act_uid |
|
||||
| Field requered step_uid_obj | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | DYNAFORM | | | 1 | EDIT | 400 | step_uid_obj |
|
||||
| test_description | project | activity | step_type_obj | step_uid_obj | step_condition | step_position | step_mode | error_code | error_message |
|
||||
| Invalid step_type_obj - Dynaform | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | DYNA123@#$% | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | step_type_obj |
|
||||
| Invalid step_type_obj - Input Document | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | INP_DOCUM123@#$ | 83199959452cd62589576c1018679557 | | 2 | EDIT | 400 | step_type_obj |
|
||||
| Invalid step_type_obj - Output Document | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | OUTT_DMEN123@#$ | 32743823452cd63105006e1076595203 | | 3 | EDIT | 400 | step_type_obj |
|
||||
| Invalid step_position | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | DYNAFORM | 63293140052cd61b29e21a9056770986 | @@YEAR==2013 | 2,34/76 | EDIT | 400 | step_position |
|
||||
| Invalid step_mode | 16062437052cd6141881e06088349078 | 89706843252cd9decdcf9b3047762708 | DYNAFORM | 63293140052cd61b29e21a9056770986 | | 5 | sample12 | 400 | step_mode |
|
||||
| Field requered project | | 10163687452cd6234e0dd25086954968 | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | prj_uid |
|
||||
| Field requered activity | 16062437052cd6141881e06088349078 | | DYNAFORM | 50332332752cd9b9a7cc989003652905 | | 1 | EDIT | 400 | act_uid |
|
||||
| Field requered step_uid_obj | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | DYNAFORM | | | 1 | EDIT | 400 | step_uid_obj |
|
||||
|
||||
|
||||
Scenario Outline: Assign a triggers to a Step with bad parameters (negative tests)
|
||||
Given POST this data:
|
||||
"""
|
||||
{
|
||||
"tri_uid": "<tri_uid>",
|
||||
"st_type": "<st_type>",
|
||||
"st_condition": "<st_condition>",
|
||||
"st_position": "<st_position>"
|
||||
}
|
||||
"""
|
||||
And I request "project/<project>/activity/<activity>/step/step_uid/trigger"
|
||||
And the response status message should have the following text "<error_message>"
|
||||
|
||||
Examples:
|
||||
|
||||
| test_description | project | activity | step_number | tri_uid_number | tri_uid | st_type | st_condition | st_position | error_code | error_message |
|
||||
| Invalid st_type | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | 1 | 2 | 56359776552cd6378b38e47080912028 | sample | | 2 | 400 | st_type |
|
||||
| Invalid st_position | 16062437052cd6141881e06088349078 | 10163687452cd6234e0dd25086954968 | 1 | 3 | 57401970252cd6393531551040242546 | BEFORE | | 0,33.44 | 400 | st_position |
|
||||
|
||||
Reference in New Issue
Block a user