Culminacion de arreglos en los behat de web entry

This commit is contained in:
Wendy Nestor
2014-04-24 15:45:35 -04:00
parent e090e3aea7
commit ca1bc0adb5
2 changed files with 398 additions and 176 deletions

View File

@@ -1,157 +1,357 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Web Entry Main Tests
Requirements:
a workspace with the process 28733629952e66a362c4f63066393844 ("Sample Project #5 (Web Entry)") already loaded
there are zero web entry in the process
Default user "admin" with password "admin"
Requirements:
a workspace with the process 28733629952e66a362c4f63066393844 ("Sample Project #5 (Web Entry)") already loaded
there are zero web entry in the process
Background:
Given that I have a valid access_token
Background:
Given that I have a valid access_token
#ASSIGNEE USER OF AN ACTIVITY
#ASSIGNEE USER OF AN ACTIVITY
Scenario Outline: List assignees of an activity
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
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 "array"
And the json data is an empty array
Scenario Outline: List assignees of an activity
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
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 "array"
And the json data is an empty array
Examples:
| tas_uid | tas_title |
| 44199549652e66ba533bb06088252754 | Task 1 |
| 56118778152e66babcc2103002009439 | Task 2 |
| 18096002352e66bc1643af8048493068 | Task 3 |
Examples:
| tas_uid | tas_title |
| 44199549652e66ba533bb06088252754 | Task 1 |
| 56118778152e66babcc2103002009439 | Task 2 |
| 18096002352e66bc1643af8048493068 | Task 3 |
Scenario Outline: Assign a user or group to an activity
Given POST this data:
"""
{
"aas_uid": "<aas_uid>",
"aas_type": "user"
}
"""
And I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
Scenario Outline: Assign a user or group to an activity
Given POST this data:
"""
{
"aas_uid": "<aas_uid>",
"aas_type": "user"
}
"""
And I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
Examples:
| tas_uid | tas_title | aas_uid |
| 44199549652e66ba533bb06088252754 | Task 1 | 00000000000000000000000000000001 |
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
Examples:
#WEB ENTRY
| tas_uid | tas_title | aas_uid |
| 44199549652e66ba533bb06088252754 | Task 1 | 00000000000000000000000000000001 |
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
Scenario: Get list Web Entries of a Project when there are exactly zero web entries
And I request "project/28733629952e66a362c4f63066393844/web-entries"
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 "array"
And the json data is an empty array
#WEB ENTRY
Scenario: Get list Web Entries of a Project when there are exactly zero web entries
And I request "project/28733629952e66a362c4f63066393844/web-entries"
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 "array"
And the response has 0 records
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"method": "WS",
"input_document_access": 1,
"usr_username": "admin",
"usr_password": "admin"
}
"""
And I request "project/28733629952e66a362c4f63066393844/web-entry"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
And the response has a "url" property
And the "url" property type is "string"
And store "url" in session array as variable "url_<url_number>"
Examples:
| tas_uid | tas_title | dyn_uid | dyn_title | url_number |
| 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | 1 |
| 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 | DynaForm Demo2 | 2 |
Scenario Outline: Test webentry URL
Given I request "url" with the key "url" stored in session array as variable "url_<url_number>" and url is "absolute"
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"usr_uid": "00000000000000000000000000000001",
"we_title": "<we_title>",
"we_description": "<we_description>",
"we_method": "WS",
"we_input_document_access": <we_input_document_access>
}
"""
And I request "project/28733629952e66a362c4f63066393844/web-entry"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
And the response has a "we_data" property
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:
| url_number |
| 1 |
| 2 |
Scenario Outline: Create a new Web Entry using the method: Single HTML
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"method": "HTML",
"input_document_access": 1
}
"""
And I request "project/28733629952e66a362c4f63066393844/web-entry"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
And the response has a "html" property
And the "html" property type is "string"
Examples:
| tas_uid | tas_title | dyn_uid | dyn_title |
| 18096002352e66bc1643af8048493068 | Task 3 | 37977455352e66b892babe6071295002 | DynaForm Demo3 |
| Description | we_number | tas_uid | we_title | dyn_uid | we_description | we_input_document_access |
| Web entry PHP task 1, with values normal | 1 | 44199549652e66ba533bb06088252754 | Web Entry PHP 1 | 60308801852e66b7181ae21045247174 | Webservice PHP Description 1 | 1 |
| Web entry PHP task 2, with character special | 2 | 56118778152e66babcc2103002009439 | Web Entry PHP 2 @#$%&* | 99869771852e66b7dc4b858088901665 | Webservice PHP Description 2 | 1 |
| Web entry PHP task 3, with we_input_document_access in 0 | 3 | 18096002352e66bc1643af8048493068 | Web Entry PHP 3 | 37977455352e66b892babe6071295002 | Webservice PHP Description 3 | 0 |
Scenario Outline: Get list Web Entries of a Project
And I request "project/28733629952e66a362c4f63066393844/web-entries"
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 "array"
And the "tas_uid" property in row <i> equals "<tas_uid>"
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>"
Scenario: Get list Web Entries of a Project after created in this scritp web entries PHP
And I request "project/28733629952e66a362c4f63066393844/web-entries"
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 "array"
And the response has 3 records
Examples:
| i | tas_uid | tas_title | dyn_uid | dyn_title |
| 0 | 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 |
| 1 | 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 |
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"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "tas_uid" is set to "<tas_uid>"
And that "tas_title" is set to "<tas_title>"
And that "dyn_uid" is set to "<dyn_uid>"
And that "dyn_title" is set to "<dyn_title>"
Scenario Outline: Get a single Web Entry PHP 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>"
And that "we_input_document_access" is set to "<we_input_document_access>"
Examples:
Examples:
| tas_uid | tas_title | dyn_uid | dyn_title |
| 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 |DynaForm Demo1 |
| 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 |DynaForm Demo2 |
| we_number | tas_uid | we_title | dyn_uid | we_description | we_input_document_access |
| 1 | 44199549652e66ba533bb06088252754 | Web Entry PHP 1 | 60308801852e66b7181ae21045247174 | Webservice PHP Description 1 | 1 |
| 2 | 56118778152e66babcc2103002009439 | Web Entry PHP 2 @#$%&* | 99869771852e66b7dc4b858088901665 | Webservice PHP Description 2 | 1 |
| 3 | 18096002352e66bc1643af8048493068 | Web Entry PHP 3 | 37977455352e66b892babe6071295002 | Webservice PHP Description 3 | 0 |
Scenario Outline: Update Web Entry PHP
Given PUT this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"usr_uid": "<usr_uid>",
"we_title": "<we_title>",
"we_description": "<we_description>",
"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 the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| we_number | tas_uid | we_title | dyn_uid | we_description | usr_uid | we_method |
| 1 | 44199549652e66ba533bb06088252754 | Update Web Entry PHP 1 | 60308801852e66b7181ae21045247174 | Update Webservice PHP Description 1 | 00000000000000000000000000000001 | WS |
| 2 | 56118778152e66babcc2103002009439 | Update Web Entry PHP 2 @#$%&* | 99869771852e66b7dc4b858088901665 | Update Webservice PHP Description 2 | 00000000000000000000000000000001 | WS |
Scenario Outline: Get a single Web Entry PHP 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>"
And that "we_input_document_access" is set to "<we_input_document_access>"
Examples:
| we_number | tas_uid | we_title | dyn_uid | we_description | usr_uid | we_method |
| 1 | 44199549652e66ba533bb06088252754 | Update Web Entry PHP 1 | 60308801852e66b7181ae21045247174 | Update Webservice PHP Description 1 | 00000000000000000000000000000001 | WS |
| 2 | 56118778152e66babcc2103002009439 | Update Web Entry PHP 2 @#$%&* | 99869771852e66b7dc4b858088901665 | Update Webservice PHP Description 2 | 00000000000000000000000000000001 | WS |
| 3 | 18096002352e66bc1643af8048493068 | Web Entry PHP 3 | 37977455352e66b892babe6071295002 | Webservice PHP Description 3 | 00000000000000000000000000000001 | WS |
Scenario Outline: Update Web Entry, when we_method is change a other method of the register 3
Given PUT this data:
"""
{
"tas_uid": "18096002352e66bc1643af8048493068",
"dyn_uid": "37977455352e66b892babe6071295002",
"usr_uid": "00000000000000000000000000000001",
"we_title": "Web Entry PHP 3 change method",
"we_description": "Webservice PHP Description 3",
"we_method": "HTML",
"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 the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| we_number | tas_uid | we_title | dyn_uid | we_description | usr_uid | we_method |
| 3 | 18096002352e66bc1643af8048493068 | Web Entry PHP 3 | 37977455352e66b892babe6071295002 | Webservice PHP Description 3 | 00000000000000000000000000000001 | WS |
Scenario Outline: Create a new Web Entry using the method: Single HTML
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"we_title": "<we_title>",
"we_description": "<we_description>",
"we_method": "HTML",
"we_input_document_access": <we_input_document_access>
}
"""
And I request "project/28733629952e66a362c4f63066393844/web-entry"
And the content type is "application/json"
Then the response status code should be 201
And the response charset is "UTF-8"
And the type is "object"
And the response has a "we_data" property
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:
| Description | we_number | tas_uid | we_title | dyn_uid | we_description | we_input_document_access |
| Web entry HTML task 3, with values normal | 4 | 18096002352e66bc1643af8048493068 | Web Entry HTML 1 | 37977455352e66b892babe6071295002 | Webservice HTML description 1 | 1 |
| Web entry HTML task 1, with we_input_document_access in 0 | 5 | 44199549652e66ba533bb06088252754 | Web Entry HTML 2 | 60308801852e66b7181ae21045247174 | Webservice HTML Description 2 | 1 |
| Web entry HTML task 2, with character special | 6 | 56118778152e66babcc2103002009439 | Web Entry HTML 3 @#$%&* | 99869771852e66b7dc4b858088901665 | Webservice HTML Description 3 | 1 |
Scenario: Get list Web Entries of a Project after created in this scritp web entries HTML
And I request "project/28733629952e66a362c4f63066393844/web-entries"
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 "array"
And the response has 6 records
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>"
And that "we_input_document_access" is set to "<we_input_document_access>"
Examples:
| we_number | tas_uid | we_title | dyn_uid | we_description | we_input_document_access |
| 4 | 18096002352e66bc1643af8048493068 | Web Entry HTML 1 | 37977455352e66b892babe6071295002 | Webservice HTML description 1 | 1 |
| 5 | 44199549652e66ba533bb06088252754 | Web Entry HTML 2 | 60308801852e66b7181ae21045247174 | Webservice HTML Description 2 | 1 |
| 6 | 56118778152e66babcc2103002009439 | Web Entry HTML 3 @#$%&* | 99869771852e66b7dc4b858088901665 | Webservice HTML Description 3 | 1 |
Scenario Outline: Update Web Entry HTML
Given PUT this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"usr_uid": "<usr_uid>",
"we_title": "<we_title>",
"we_description": "<we_description>",
"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 the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| we_number | tas_uid | we_title | dyn_uid | we_description | usr_uid | we_method |
| 4 | 18096002352e66bc1643af8048493068 | Update Web Entry HTML 1 | 37977455352e66b892babe6071295002 | Update Webservice HTML Description 1 | 00000000000000000000000000000001 | HTML |
| 5 | 44199549652e66ba533bb06088252754 | Update Web Entry HTML 2 @#$%&* | 60308801852e66b7181ae21045247174 | Update Webservice HTML Description 2 | 00000000000000000000000000000001 | HTML |
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>"
And that "we_input_document_access" is set to "<we_input_document_access>"
Examples:
| we_number | tas_uid | we_title | dyn_uid | we_description | usr_uid | we_method |
| 4 | 18096002352e66bc1643af8048493068 | Update Web Entry HTML 1 | 37977455352e66b892babe6071295002 | Update Webservice HTML Description 1 | 00000000000000000000000000000001 | HTML |
| 5 | 44199549652e66ba533bb06088252754 | Update Web Entry HTML 2 @#$%&* | 60308801852e66b7181ae21045247174 | Update Webservice HTML Description 2 | 00000000000000000000000000000001 | HTML |
| 6 | 56118778152e66babcc2103002009439 | Web Entry HTML 3 @#$%&* | 99869771852e66b7dc4b858088901665 | Webservice HTML Description 3 | 00000000000000000000000000000001 | HTML |
Scenario Outline: Delete a Web Entry of a Project
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"
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"
Examples:
| we_number |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
Scenario: Get list Web Entries of a Project
And I request "project/28733629952e66a362c4f63066393844/web-entries"
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 "array"
And the response has 0 records
#WEB ENTRY - END
#DELETE /api/1.0/{workspace}/project/{prj_uid}/activity/{act_uid}/assignee/{aas_uid}
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
And I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee/<aas_uid>"
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"
Examples:
| tas_uid | tas_title | aas_uid |
| 44199549652e66ba533bb06088252754 | Task 1 | 00000000000000000000000000000001 |
| 56118778152e66babcc2103002009439 | Task 2 | 00000000000000000000000000000001 |
| 18096002352e66bc1643af8048493068 | Task 3 | 00000000000000000000000000000001 |
#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
Given I request "project/28733629952e66a362c4f63066393844/activity/<tas_uid>/assignee"
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 "array"
And the json data is an empty array
Examples:
| tas_uid | tas_title |
| 44199549652e66ba533bb06088252754 | Task 1 |
| 56118778152e66babcc2103002009439 | Task 2 |
| 18096002352e66bc1643af8048493068 | Task 3 |

View File

@@ -2,56 +2,78 @@
Feature: Webentry Negative Tests
Background:
Background:
Given that I have a valid access_token
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services with bad parameters (negative tests)
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"method": "<method>",
"input_document_access": 1,
"usr_username": "<usr_username>",
"usr_password": "<usr_password>"
}
"""
And I request "project/<project>/web-entry"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Scenario Outline: Create a new Web Entry using the method: PHP pages with Web Services with bad parameters (negative tests)
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"usr_uid": "00000000000000000000000000000001",
"we_title": "<we_title>",
"we_description": "pruebas negativas",
"we_method": "<we_method>",
"we_input_document_access": 1
}
"""
And I request "project/<project>/web-entry"
And the content type is "application/json"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
Examples:
| test_description | project | tas_uid | tas_title | dyn_uid | dyn_title | method | usr_username | usr_password | error_code | error_message |
| Invalid method | 28733629952e66a362c4f63066393844 | 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | JS | admin | admin | 400 | method |
| Invalid usr_username | 28733629952e66a362c4f63066393844 | 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 | DynaForm Demo2 | JS | aaro | admin | 400 | method |
| Invalid usr_password | 28733629952e66a362c4f63066393844 | 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | WS | admin | sample | 400 | password |
| Field required prj_uid | | 56118778152e66babcc2103002009439 | Task 2 | 99869771852e66b7dc4b858088901665 | DynaForm Demo2 | HTML | admin | admin | 400 | prj_uid |
| Field required tas_uid | 28733629952e66a362c4f63066393844 | | Task 1 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | WS | admin | admin | 400 | tas_uid |
| Field required dyn_uid | 28733629952e66a362c4f63066393844 | 56118778152e66babcc2103002009439 | Task 2 | | DynaForm Demo2 | HTML | admin | admin | 400 | dyn_uid |
| Field required method | 28733629952e66a362c4f63066393844 | 44199549652e66ba533bb06088252754 | Task 1 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | | admin | admin | 400 | method |
| test_description | project | tas_uid | dyn_uid | we_title | we_method | error_code | error_message |
| Invalid method | 28733629952e66a362c4f63066393844 | 44199549652e66ba533bb06088252754 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | JS | 400 | method |
| Field required prj_uid | | 56118778152e66babcc2103002009439 | 99869771852e66b7dc4b858088901665 | DynaForm Demo2 | HTML | 400 | prj_uid |
| Field required tas_uid | 28733629952e66a362c4f63066393844 | | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | WS | 400 | tas_uid |
| Field required dyn_uid | 28733629952e66a362c4f63066393844 | 56118778152e66babcc2103002009439 | | DynaForm Demo2 | HTML | 400 | dyn_uid |
| Field required method | 28733629952e66a362c4f63066393844 | 44199549652e66ba533bb06088252754 | 60308801852e66b7181ae21045247174 | DynaForm Demo1 | | 400 | method |
Scenario Outline: Create a new Web Entry using the method: Single HTML
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"method": "<method>",
"input_document_access": 1
}
"""
And I request "project/<project>/web-entry"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Scenario Outline: Create a new Web Entry using the method: Single HTML
Given POST this data:
"""
{
"tas_uid": "<tas_uid>",
"dyn_uid": "<dyn_uid>",
"we_title": "<we_title>",
"we_description": "pruebas negativas",
"we_method": "<we_method>",
"we_input_document_access": 1
}
"""
And I request "project/<project>/web-entry"
Then the response status code should be <error_code>
And the response status message should have the following text "<error_message>"
Examples:
| test_description | project | tas_uid | dyn_uid | we_title | we_method | error_code | error_message |
| Invalid method | 28733629952e66a362c4f63066393844 | 18096002352e66bc1643af8048493068 | 37977455352e66b892babe6071295002 | DynaForm Demo1 | JS | 400 | method |
| Field required prj_uid | | 18096002352e66bc1643af8048493068 | 37977455352e66b892babe6071295002 | DynaForm Demo2 | HTML | 400 | prj_uid |
| Field required tas_uid | 28733629952e66a362c4f63066393844 | | 37977455352e66b892babe6071295002 | DynaForm Demo1 | WS | 400 | tas_uid |
| Field required dyn_uid | 28733629952e66a362c4f63066393844 | 18096002352e66bc1643af8048493068 | | DynaForm Demo2 | HTML | 400 | dyn_uid |
| Field required method | 28733629952e66a362c4f63066393844 | 18096002352e66bc1643af8048493068 | 37977455352e66b892babe6071295002 | DynaForm Demo1 | | 400 | method |
Scenario: Create a new Web Entry using the method: PHP pages with Web Services with bad parameters (we_input_document_access)
Given POST this data:
"""
{
"tas_uid": "18096002352e66bc1643af8048493068",
"dyn_uid": "37977455352e66b892babe6071295002",
"usr_uid": "00000000000000000000000000000001",
"we_title": "Field wrong - we_method",
"we_description": "pruebas negativas",
"we_method": "WS",
"we_input_document_access": 67
}
"""
And I request "project/28733629952e66a362c4f63066393844/web-entry"
Then the response status code should be 400
And the response status message should have the following text "we_input_document_access"
Examples:
| test_description | project | tas_uid | tas_title | dyn_uid | dyn_title | method | error_code | error_message |
| Invalid method | 28733629952e66a362c4f63066393844 | 18096002352e66bc1643af8048493068 | Task 1 | 37977455352e66b892babe6071295002 | DynaForm Demo1 | JS | 400 | method |
| Field required prj_uid | | 18096002352e66bc1643af8048493068 | Task 2 | 37977455352e66b892babe6071295002 | DynaForm Demo2 | HTML | 400 | prj_uid |
| Field required tas_uid | 28733629952e66a362c4f63066393844 | | Task 1 | 37977455352e66b892babe6071295002 | DynaForm Demo1 | WS | 400 | tas_uid |
| Field required dyn_uid | 28733629952e66a362c4f63066393844 | 18096002352e66bc1643af8048493068 | Task 2 | | DynaForm Demo2 | HTML | 400 | dyn_uid |
| Field required method | 28733629952e66a362c4f63066393844 | 18096002352e66bc1643af8048493068 | Task 1 | 37977455352e66b892babe6071295002 | DynaForm Demo1 | | 400 | method |