info: name: Login - Gestione Schede type: http seq: 1 http: method: GET url: "{{elixFormsConsoleUrl}}/rwe2/schema_console.jsp" headers: - name: Cookie value: ISIPSESSION=dd755718a116664c31b89d25d251c6b2; AJSRV=BTN_USER_1787732684670_7497683962865219861; JSESSIONID=e480913d3ccdc8d517c2e8662d9a disabled: true - name: Host value: console-unipr.elixforms.it disabled: true - name: Referer value: https://consol-unipr.elixforms.it/backoffice/ params: - name: IUXSID value: TX_I4453_UNIPR_1787737266508_R-1756946974 type: query disabled: true auth: inherit runtime: scripts: - type: before-request code: |- /* const noAjsrvCookieFoundError = "No AJSRV cookie found!"; var ajsrvCookie = bru.getVar("elixFormsAjsrvCookie"); if (ajsrvCookie == null || ajsrvCookie === "") { console.error(noAjsrvCookieFoundError, ajsrvCookie); throw new Error(noAjsrvCookieFoundError); } */ - type: after-response code: |- /* const ajsrvCookie = bru.cookies.get("AJSRV"); const jsessionidCookie = bru.cookies.get("JSESSIONID"); const isipSessionCookie = bru.cookies.get("ISIPSESSION"); console.log("Cookies: ", bru.cookies); bru.setVar("elixFormsAjsrvCookie", "AJSRV=" + ajsrvCookie); bru.setVar("elixFormsJsessionidCookie", "JSESSIONID=" + jsessionidCookie); bru.setVar("elixFormsIsipsessionCookie", "ISIPSESSION=" + isipSessionCookie); */ - type: tests code: |- test("AJSRV cookie found", function () { const ajsrvCookie = bru.cookies.get("AJSRV"); expect(ajsrvCookie).to.not.be.null; expect(ajsrvCookie).to.not.be.empty; }); test("JSESSIONID cookie found", function () { const jsessionidCookie = bru.cookies.get("JSESSIONID"); expect(jsessionidCookie).to.not.be.null; expect(jsessionidCookie).to.not.be.empty; }); 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: https://console-unipr.elixforms.it/CISIInformationUnit/ExecuteTransaction.jws method: POST headers: - name: Host value: console-unipr.elixforms.it - name: Referer value: https://console-unipr.elixforms.it/backoffice/ params: - name: IUXSID value: TX_I4453_UNIPR_1787737266508_R-1756946974 type: query disabled: true body: type: multipart-form data: - name: username type: text value: Automation_User - name: password type: text value: n_HH9shL#VPeiiT^%;:t5/,jY - name: INSERT_BTN00000 type: text value: Accedi response: status: 200 statusText: OK headers: - name: date value: Wed, 26 Aug 2026 10:34:54 GMT - name: server value: '""' - name: content-security-policy value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;" - name: x-powered-by value: JSP/2.2 - name: content-type value: text/html;charset=UTF-8 - name: set-cookie value: JSESSIONID=da31f0432559043377f947047c89; Path=/; HttpOnly - name: vary value: Accept-Encoding - name: strict-transport-security value: max-age=31536000; includeSubDomains - name: x-frame-options value: SAMEORIGIN - name: x-xss-protection value: "1" - name: x-content-type-options value: nosniff - name: referrer-policy value: unsafe-url - name: keep-alive value: timeout=10, max=500 - name: connection value: Keep-Alive - name: transfer-encoding value: chunked body: type: html data: |+
