Se modifico con los nuevos cambios aplicados al behat basic de web entry
This commit is contained in:
@@ -6,8 +6,7 @@ Feature: Web Entry
|
|||||||
Background:
|
Background:
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
|
|
||||||
#GET /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee?filter=john&start=0&limit=50
|
#GET /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee?filter=john&start=0&limit=50
|
||||||
# List assignees of an activity
|
|
||||||
Scenario Outline: List assignees of an activity
|
Scenario Outline: List assignees of an activity
|
||||||
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
|
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
@@ -22,8 +21,8 @@ Feature: Web Entry
|
|||||||
| 56118778152e66babcc2103002009439 | Task 2 |
|
| 56118778152e66babcc2103002009439 | Task 2 |
|
||||||
| 18096002352e66bc1643af8048493068 | Task 3 |
|
| 18096002352e66bc1643af8048493068 | Task 3 |
|
||||||
|
|
||||||
#POST /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee
|
|
||||||
# Assign a user or group to an activity
|
#POST /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee
|
||||||
Scenario Outline: Assign a user or group to an activity
|
Scenario Outline: Assign a user or group to an activity
|
||||||
Given POST this data:
|
Given POST this data:
|
||||||
"""
|
"""
|
||||||
@@ -44,31 +43,31 @@ Feature: Web Entry
|
|||||||
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
|
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
|
||||||
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
|
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
|
||||||
|
|
||||||
#WEB ENTRY
|
|
||||||
|
|
||||||
#GET /api/1.0/{workspace}/project/{prj_uid}/web-entries
|
#WEB ENTRY
|
||||||
# Get list Web Entries of a Project
|
#GET /api/1.0/{workspace}/project/{prj_uid}/web-entries
|
||||||
Scenario: Get list Web Entries of a Project
|
Scenario: Get list Web Entries of a Project
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entries"
|
And I request "project/28733629952e66a362c4f63066393844/web-entries"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the json data is an empty array
|
And the response has 0 records
|
||||||
|
|
||||||
|
|
||||||
#POST /api/1.0/{workspace}/project/{prj_uid}/web-entry
|
#POST /api/1.0/{workspace}/project/{prj_uid}/web-entry
|
||||||
# Create a new Web Entry for a project
|
|
||||||
# Create a new Web Entry using the method: PHP pages with Web Services
|
|
||||||
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services
|
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services
|
||||||
Given POST this data:
|
Given POST this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"tas_uid": "<tas_uid>",
|
"tas_uid": "<tas_uid>",
|
||||||
"dyn_uid": "<dyn_uid>",
|
"dyn_uid": "<dyn_uid>",
|
||||||
"method": "WS",
|
"usr_uid": "00000000000000000000000000000001",
|
||||||
"input_document_access": 1,
|
"we_title": "<we_title>",
|
||||||
"usr_username": "admin",
|
"we_description": "<we_description>",
|
||||||
"usr_password": "admin"
|
"we_method": "WS",
|
||||||
|
"we_input_document_access": 1
|
||||||
|
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
||||||
@@ -76,25 +75,31 @@ Feature: Web Entry
|
|||||||
Then the response status code should be 201
|
Then the response status code should be 201
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And the response has a "url" property
|
And the response has a "we_data" property
|
||||||
And the "url" property type is "string"
|
And the "we_data" property type is "string"
|
||||||
|
And store "we_data" in session array as variable "we_data_<we_number>"
|
||||||
|
And store "we_uid" in session array as variable "we_uid_<we_number>"
|
||||||
|
And I request "we_data" with the key "we_data" stored in session array as variable "we_data_<we_number>" and url is "absolute"
|
||||||
|
And the content type is "text/html"
|
||||||
|
Then the response status code should be 200
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| tas_uid | tas_title | dyn_uid | dyn_title |
|
| we_number | tas_uid | we_title | dyn_uid | we_description |
|
||||||
| 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 |
|
| 1 | 44199549652e66ba533bb06088252754 | Webservice PHP Title 1 | 60308801852e66b7181ae21045247174 | Webservice PHP Description |
|
||||||
| 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 |
|
| 2 | 56118778152e66babcc2103002009439 | Webservice PHP Title 2 | 99869771852e66b7dc4b858088901665 | Webservice PHP Description |
|
||||||
|
|
||||||
#POST /api/1.0/{workspace}/project/{prj_uid}/web-entry
|
|
||||||
# Create a new Web Entry for a project
|
#POST /api/1.0/{workspace}/project/{prj_uid}/web-entry
|
||||||
# Create a new Web Entry using the method: Single HTML
|
|
||||||
Scenario Outline: Create a new Web Entry using the method: Single HTML
|
Scenario Outline: Create a new Web Entry using the method: Single HTML
|
||||||
Given POST this data:
|
Given POST this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"tas_uid": "<tas_uid>",
|
"tas_uid": "<tas_uid>",
|
||||||
"dyn_uid": "<dyn_uid>",
|
"dyn_uid": "<dyn_uid>",
|
||||||
"method": "HTML",
|
"we_title": "<we_title>",
|
||||||
"input_document_access": 1
|
"we_description": "<we_description>",
|
||||||
|
"we_method": "HTML",
|
||||||
|
"we_input_document_access": 1
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
||||||
@@ -102,106 +107,119 @@ Feature: Web Entry
|
|||||||
Then the response status code should be 201
|
Then the response status code should be 201
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And the response has a "html" property
|
And the response has a "we_data" property
|
||||||
And the "html" property type is "string"
|
And the "we_data" property type is "string"
|
||||||
|
And store "we_data" in session array as variable "we_data_<we_number>"
|
||||||
|
And store "we_uid" in session array as variable "we_uid_<we_number>"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| tas_uid | tas_title | dyn_uid | dyn_title |
|
| we_number | tas_uid | we_title | dyn_uid | we_description |
|
||||||
| 18096002352e66bc1643af8048493068 | Task 3 | 37977455352e66b892babe6071295002 |DynaForm Demo3 |
|
| 3 | 18096002352e66bc1643af8048493068 | Webservice HTML Title 2 | 37977455352e66b892babe6071295002 | Webservice description |
|
||||||
|
|
||||||
#GET /api/1.0/{workspace}/project/{prj_uid}/web-entries
|
|
||||||
# Get list Web Entries of a Project
|
#GET /api/1.0/{workspace}/project/{prj_uid}/web-entries
|
||||||
Scenario Outline: Get list Web Entries of a Project
|
Scenario: Get list Web Entries of a Project
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entries"
|
And I request "project/28733629952e66a362c4f63066393844/web-entries"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the "tas_uid" property in row <i> equals "<tas_uid>"
|
And the response has 3 records
|
||||||
And the "tas_title" property in row <i> equals "<tas_title>"
|
|
||||||
And the "dyn_uid" property in row <i> equals "<dyn_uid>"
|
|
||||||
And the "dyn_title" property in row <i> equals "<dyn_title>"
|
#GET GET /api/1.0/{workspace}/project/{prj_uid}/web-entry/{tas_uid}/{dyn_uid}
|
||||||
|
Scenario Outline: Get a single Web Entry PHP of a Project
|
||||||
Examples:
|
Given that I want to get a resource with the key "we_uid" stored in session array as variable "we_uid_<we_number>"
|
||||||
| i | tas_uid | tas_title | dyn_uid | dyn_title |
|
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
||||||
| 0 | 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 |
|
|
||||||
| 1 | 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 |
|
|
||||||
|
|
||||||
#GET GET /api/1.0/{workspace}/project/{prj_uid}/web-entry/{tas_uid}/{dyn_uid}
|
|
||||||
# Get a single Web Entry of a Project
|
|
||||||
Scenario Outline: Get a single Web Entry of a Project
|
|
||||||
Given that I want to get a resource with the key "obj_uid" stored in session array
|
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entry/<tas_uid>/<dyn_uid>"
|
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
And that "tas_uid" is set to "<tas_uid>"
|
And that "we_title" is set to "<we_title>"
|
||||||
And that "tas_title" is set to "<tas_title>"
|
And that "we_description" is set to "<we_description>"
|
||||||
And that "dyn_uid" is set to "<dyn_uid>"
|
|
||||||
And that "dyn_title" is set to "<dyn_title>"
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| tas_uid | tas_title | dyn_uid | dyn_title |
|
| we_number | tas_uid | dyn_uid | we_title | we_description |
|
||||||
| 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 |
|
| 1 | 44199549652e66ba533bb06088252754 | 60308801852e66b7181ae21045247174 | Webservice PHP Title 1 | Webservice PHP Description |
|
||||||
| 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 |
|
| 2 | 56118778152e66babcc2103002009439 | 99869771852e66b7dc4b858088901665 | Webservice PHP Title 2 | Webservice PHP Description |
|
||||||
|
| 3 | 18096002352e66bc1643af8048493068 | 37977455352e66b892babe6071295002 | Webservice HTML Title 2 | Webservice description |
|
||||||
|
|
||||||
#POST /api/1.0/{workspace}/project/{prj_uid}/web-entry
|
|
||||||
# Create a new Web Entry for a project
|
#PUT /api/1.0/{workspace}/project/{prj_uid}/web-entry/{we_uid}
|
||||||
# Create a new Web Entry using the method: PHP pages with Web Services
|
Scenario Outline: Update Web Entry
|
||||||
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services
|
Given PUT this data:
|
||||||
Given POST this data:
|
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"tas_uid": "<tas_uid>",
|
"tas_uid": "<tas_uid>",
|
||||||
"dyn_uid": "<dyn_uid>",
|
"dyn_uid": "<dyn_uid>",
|
||||||
"method": "WS",
|
"usr_uid": "<usr_uid>",
|
||||||
"input_document_access": 1,
|
"we_title": "<we_title>",
|
||||||
"usr_username": "admin",
|
"we_description": "<we_description>",
|
||||||
"usr_password": "admin"
|
"we_method": "<we_method>",
|
||||||
|
"we_input_document_access": 1
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
And that I want to update a resource with the key "we_uid" stored in session array as variable "we_uid_<we_number>"
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be <status_code>
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
|
||||||
And the response status message should have the following text "<status_message>"
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| tas_uid | tas_title | dyn_uid | dyn_title | status_code | status_message |
|
|
||||||
| 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 | 400 | exist |
|
|
||||||
| 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 | 400 | exist |
|
|
||||||
|
|
||||||
#DELETE /api/1.0/{workspace}/project/{prj_uid}/web-entry/{tas_uid}/{dyn_uid}
|
| we_number | tas_uid | we_title | dyn_uid | we_description | usr_uid | we_method |
|
||||||
# Delete a Web Entry of a Project
|
| 1 | 44199549652e66ba533bb06088252754 | Update Webservice PHP Title 1 | 60308801852e66b7181ae21045247174 | Update Webservice PHP Description | 00000000000000000000000000000001 | WS |
|
||||||
|
| 2 | 56118778152e66babcc2103002009439 | Update Webservice PHP Title 2 | 99869771852e66b7dc4b858088901665 | Update Webservice PHP Description | 00000000000000000000000000000001 | WS |
|
||||||
|
|
||||||
|
|
||||||
|
#GET GET /api/1.0/{workspace}/project/{prj_uid}/web-entry/{tas_uid}/{dyn_uid}
|
||||||
|
Scenario Outline: Get a single Web Entry HTML of a Project
|
||||||
|
Given that I want to get a resource with the key "we_uid" stored in session array as variable "we_uid_<we_number>"
|
||||||
|
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
||||||
|
And the content type is "application/json"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the response charset is "UTF-8"
|
||||||
|
And the type is "object"
|
||||||
|
And that "we_title" is set to "<we_title>"
|
||||||
|
And that "we_description" is set to "<we_description>"
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
| we_number | tas_uid | dyn_uid | we_title | we_description |
|
||||||
|
| 1 | 44199549652e66ba533bb06088252754 | 60308801852e66b7181ae21045247174 | Update Webservice PHP Title 1 | Update Webservice PHP Description |
|
||||||
|
| 2 | 56118778152e66babcc2103002009439 | 99869771852e66b7dc4b858088901665 | Update Webservice PHP Title 2 | Update Webservice PHP Description |
|
||||||
|
| 3 | 18096002352e66bc1643af8048493068 | 37977455352e66b892babe6071295002 | Update Webservice HTML Title 2 | Update Webservice description |
|
||||||
|
|
||||||
|
|
||||||
|
#DELETE /api/1.0/{workspace}/project/{prj_uid}/web-entry/{tas_uid}/{dyn_uid}
|
||||||
Scenario Outline: Delete a Web Entry of a Project
|
Scenario Outline: Delete a Web Entry of a Project
|
||||||
Given that I want to delete a resource with the key "obj_uid" stored in session array
|
Given that I want to delete a resource with the key "we_uid" stored in session array as variable "we_uid_<we_number>"
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entry/<tas_uid>/<dyn_uid>"
|
And I request "project/28733629952e66a362c4f63066393844/web-entry"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| tas_uid | tas_title | dyn_uid | dyn_title |
|
| we_number |
|
||||||
| 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 |
|
| 1 |
|
||||||
| 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 |
|
| 2 |
|
||||||
|
| 3 |
|
||||||
|
|
||||||
#GET /api/1.0/{workspace}/project/{prj_uid}/web-entries
|
|
||||||
# Get list Web Entries of a Project
|
#GET /api/1.0/{workspace}/project/{prj_uid}/web-entries
|
||||||
Scenario: Get list Web Entries of a Project
|
Scenario: Get list Web Entries of a Project
|
||||||
And I request "project/28733629952e66a362c4f63066393844/web-entries"
|
And I request "project/28733629952e66a362c4f63066393844/web-entries"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the json data is an empty array
|
And the response has 0 records
|
||||||
|
|
||||||
#WEB ENTRY - END
|
|
||||||
|
|
||||||
#DELETE /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee/{aas_uid}
|
#WEB ENTRY - END
|
||||||
# Remove an assignee of an activity
|
|
||||||
|
|
||||||
|
#DELETE /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee/{aas_uid}
|
||||||
Scenario Outline: Remove an assignee of an activity
|
Scenario Outline: Remove an assignee of an activity
|
||||||
Given that I want to delete a resource with the key "obj_uid" stored in session array
|
Given that I want to delete a resource with the key "obj_uid" stored in session array
|
||||||
And I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee/<aas_uid>"
|
And I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee/<aas_uid>"
|
||||||
@@ -216,8 +234,8 @@ Feature: Web Entry
|
|||||||
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
|
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
|
||||||
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
|
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
|
||||||
|
|
||||||
#GET /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee?filter=john&start=0&limit=50
|
|
||||||
# List assignees of an activity
|
#GET /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee?filter=john&start=0&limit=50
|
||||||
Scenario Outline: List assignees of an activity
|
Scenario Outline: List assignees of an activity
|
||||||
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
|
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
@@ -230,5 +248,4 @@ Feature: Web Entry
|
|||||||
| tas_uid | tas_title |
|
| tas_uid | tas_title |
|
||||||
| 44199549652e66ba533bb06088252754 | Task 1 |
|
| 44199549652e66ba533bb06088252754 | Task 1 |
|
||||||
| 56118778152e66babcc2103002009439 | Task 2 |
|
| 56118778152e66babcc2103002009439 | Task 2 |
|
||||||
| 18096002352e66bc1643af8048493068 | Task 3 |
|
| 18096002352e66bc1643af8048493068 | Task 3 |
|
||||||
|
|
||||||
Reference in New Issue
Block a user