55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
info:
|
|
name: elixPro - Copy module to Edit
|
|
type: http
|
|
seq: 13
|
|
|
|
http:
|
|
method: POST
|
|
url: "{{elixProStudioUrl}}/eP/elixpro-studio/api/elixpro/procedimento/proc-toedit"
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"procedureTag": "module_tag_XXX"
|
|
}
|
|
auth: inherit
|
|
|
|
runtime:
|
|
scripts:
|
|
- type: tests
|
|
code: |-
|
|
test("ISIPSESSION cookie found", function () {
|
|
const isipsessionCookie = bru.cookies.get("ISIPSESSION");
|
|
expect(isipsessionCookie).to.not.be.null;
|
|
expect(isipsessionCookie).to.not.be.empty;
|
|
});
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|
|
forwardAuthorizationHeader: false
|
|
|
|
examples:
|
|
- name: example
|
|
request:
|
|
url: "{{elixProStudioUrl}}/eP/elixpro-studio/api/elixpro/procedimento/proc-toedit"
|
|
method: POST
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"procedureTag": "module_tag_XXX"
|
|
}
|
|
response:
|
|
status: 200
|
|
statusText: OK
|
|
body:
|
|
type: text
|
|
data: |-
|
|
{
|
|
"ok": true,
|
|
"procedureTag": "module_tag_XXX"
|
|
}
|