add some (not working) backoffice requests
This commit is contained in:
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsRootUrl}}/CISIInformationUnit/ExecuteTransaction.jws"
|
||||
url: "{{elixFormsRootUrl}}/CISIInformationUnit/ExecuteTransaction.jws?IUXSID=TX_I4453_UNIPR_{{unixTimestamp}}_R{{randomRID}}"
|
||||
headers:
|
||||
- name: Host
|
||||
value: console-unipr.elixforms.it
|
||||
@@ -13,9 +13,9 @@ http:
|
||||
value: https://console-unipr.elixforms.it/backoffice/
|
||||
params:
|
||||
- name: IUXSID
|
||||
value: TX_I4453_UNIPR_1787737266508_R-1756946974
|
||||
value: TX_I4453_UNIPR_{{unixTimestamp}}_R{{randomRID}}
|
||||
type: query
|
||||
disabled: true
|
||||
description: Values are computed in pre-script!
|
||||
body:
|
||||
type: multipart-form
|
||||
data:
|
||||
@@ -28,13 +28,36 @@ http:
|
||||
- name: INSERT_BTN00000
|
||||
type: text
|
||||
value: Accedi
|
||||
disabled: true
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: after-response
|
||||
code: |-
|
||||
function generateTenDigitNumber() {
|
||||
// Minimum 10-digit number: 1000000000
|
||||
// Maximum 10-digit number: 9999999999
|
||||
const min = 1000000000; // 10^9
|
||||
const max = 9999999999; // 10^10 - 1
|
||||
|
||||
// Generate random integer in range [min, max]
|
||||
const randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
|
||||
return String(randomNum); // Return as string to preserve leading digits
|
||||
}
|
||||
|
||||
function getRandomInt(min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
var unixTimestamp = Date.now();
|
||||
//console.log(unixTimestamp);
|
||||
bru.setVar("unixTimestamp", unixTimestamp);
|
||||
|
||||
var r = generateTenDigitNumber(); //getRandomInt(-999999999, 9999999999);
|
||||
//console.log(r);
|
||||
bru.setVar("randomRID", r);
|
||||
|
||||
/*
|
||||
const headerSetCookie = res.getHeader('set-cookie');
|
||||
console.log(headerSetCookie);
|
||||
|
||||
Reference in New Issue
Block a user