Logo: Relish

  1. Sign in

Project: Living-documentation-demo

Genealogy - APS Definitions/Find-By-TLP-Name

   A Robot should be able to interact with Find-By-TLP-Name service of APS Definitions namespace using XYZ API
Scenarios
  • @negative
Provide incorrect Service name (i.e. "find-by-tlp-names" instead of "find-by-tlp-name")
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-names"
And
with "tlp-name" parameter "QC1 TLP"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchService"
And
Robot should see msg "No service exists with name: find-by-tlp-names"
  • @negative
Provide incomplete request where required parameter tlp-name= is missing
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "RequiredParameter"
And
Robot should see msg "Missing required parameter [Top Level Product name.]"
  • @negative
Provide incomplete request where value for required parameter tlp-name= is missing, blank
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
with "tlp-name" parameter ""
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "RequiredParameter"
And
Robot should see msg "Missing required parameter [Top Level Product name.]"
  • @negative
Provide incorrect parameter name(i.e. "tlp-names" instead of "tlp-name")
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
with "tlp-names" parameter "QC1 TLP"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "RequiredParameter"
And
Robot should see msg "Missing required parameter [Top Level Product name.]"
  • @negative
Find non existing TLP
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
with "tlp-name" parameter "A1A2A3 TLP"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchTLPName"
And
Robot should see msg "No such Top Level Product defined with name 'A1A2A3 TLP'"
  • @negative
Find APS using "*" - wild character
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
with "tlp-name" parameter "QC1 *"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchTLPName"
And
Robot should see msg "No such Top Level Product defined with name 'QC1 *'"
  • @negative
Find APS and use incorrect HTTP Method POST
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
with "tlp-name" parameter "QC1 TLP"
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "GetRequired"
And
Robot should see msg "Unsupported HTTP method (expected GET) : GET"
  • @positive
  • @acceptance
Find existing TLP
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-tlp-name"
And
with "tlp-name" parameter "QC1 TLP"
And
uses HTTP method "GET"
Then
Robot should see response status "success"
And
returned node "list.aps-definition" should contain following attributes:
name
check it out
And
returned node "list.aps-definition" should contain following attributes:
tlp-name
QC1 TLP
And
returned node "list.aps-definition.part-definitions.part-definition" should contain following attributes:
family
QC PRODUCT FAMILY 1
And
returned node "list.aps-definition.part-definitions.part-definition" should contain following attributes:
part-number
QC1
And
returned node "list.aps-definition.part-definitions.part-definition" should contain following attributes:
version
V1
And
returned node "list.aps-definition.part-definitions.part-definition" should contain following attributes:
revision
R1
And
returned node "list.aps-definition.part-definitions.part-definition" should contain following attributes:
count
1
And
returned node "list.aps-definition.part-definitions.part-definition" should contain following attributes:
lot-based
false
And
returned node "list.aps-definition.part-definitions.part-definition.children.part-definition" should contain following attributes:
family
QC PRODUCT FAMILY 1
And
returned node "list.aps-definition.part-definitions.part-definition.children.part-definition" should contain following attributes:
part-number
QC1-C1
And
returned node "list.aps-definition.part-definitions.part-definition.children.part-definition" should contain following attributes:
version
V1
And
returned node "list.aps-definition.part-definitions.part-definition.children.part-definition" should contain following attributes:
revision
R1
And
returned node "list.aps-definition.part-definitions.part-definition.children.part-definition" should contain following attributes:
count
1
And
returned node "list.aps-definition.part-definitions.part-definition.children.part-definition" should contain following attributes:
lot-based
false

Last published almost 7 years ago by dabravolski.