Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library RequestsLibrary |
| 4 | Library OperatingSystem |
| 5 | Library json |
| 6 | |
| 7 | *** Variables *** |
| 8 | ${login} admin |
| 9 | ${passw} password |
| 10 | |
| 11 | *** Test Cases *** |
| 12 | Get Clamp properties |
| 13 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/cldsInfo |
| 14 | Dictionary Should Contain Key ${resp.json()} userName |
| 15 | Dictionary Should Contain Key ${resp.json()} permissionReadCl |
| 16 | |
| 17 | Get Clamp Info |
| 18 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/cldsInfo |
| 19 | Dictionary Should Contain Key ${resp.json()} userName |
| 20 | Dictionary Should Contain Key ${resp.json()} cldsVersion |
| 21 | |
| 22 | Get model bpmn by name |
| 23 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/bpmn/ClHolmes1 |
| 24 | Should Contain Match ${resp} *StartEvent_* |
| 25 | Should Contain Match ${resp} *VesCollector_* |
| 26 | Should Contain Match ${resp} *Holmes_* |
| 27 | Should Contain Match ${resp} *Policy_* |
| 28 | Should Contain Match ${resp} *EndEvent_* |
| 29 | |
| 30 | Get model names |
| 31 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names |
| 32 | Should Contain Match ${resp} *ClHolmes1* |
| 33 | Should Contain Match ${resp} *ClHolmes2* |
| 34 | Should Contain Match ${resp} *ClTCA1* |
| 35 | Should Contain Match ${resp} *ClTCA2* |
| 36 | Should Not Contain Match ${resp} *ClHolmes99* |
| 37 | Should Not Contain Match ${resp} *ClTCA99* |