diff --git a/integration/watchonly-satspay-tipjar.jmx b/integration/watchonly-satspay-tipjar.jmx
index e32992152..7e4d1a6c2 100644
--- a/integration/watchonly-satspay-tipjar.jmx
+++ b/integration/watchonly-satspay-tipjar.jmx
@@ -102,427 +102,17 @@
-
+
false
true
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- Upgrade-Insecure-Requests
- 1
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
- true
-
-
-
- false
- {"name":"a1"}
- =
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /api/v1/account
- POST
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/
-
-
- Accept-Language
- en-US,en;q=0.${paidChargeCount}
-
-
- Origin
- ${scheme}://${host}:${port}
-
-
- Content-Type
- application/json
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- true
-
-
- var resp = JSON.parse(prev.getResponseDataAsString())
-
-vars.put("userId", resp.user || "no-user-id");
-vars.put("walletId", resp.id || "no-wallet-id");
-vars.put("inkey", resp.inkey || 'no-inkey');
-vars.put("adminkey", resp.adminkey || 'no-adminkey');
-
- javascript
-
-
-
-
-
-
-
- false
- usr
- ${userId}
- =
- true
-
-
- false
- wal
- ${walletId}
- =
- true
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /wallet
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- Upgrade-Insecure-Requests
- 1
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /api/v1/currencies
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/wallet?usr=${userId}&wal=${walletId}
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- undefined
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
- ["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNH","CNY","COP","CRC","CUC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRT","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VES","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMW","ZWL"]
-
-
- Assertion.response_data
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /api/v1/wallet
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/wallet?usr=${userId}&wal=${walletId}
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- ${inkey}
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- true
-
-
- var resp = JSON.parse(prev.getResponseDataAsString())
-
-if (resp.balance !== 0) {
- AssertionResult.setFailureMessage("Balance is not zero, but: "+ resp.balance);
- AssertionResult.setFailure(true)
-}
-
- javascript
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /api/v1/payments
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/wallet?usr=${userId}&wal=${walletId}
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- ${inkey}
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- []
-
-
- Assertion.response_data
- false
- 8
-
-
-
+
+ fragments/init-account.jmx
+
+
-
+
false
true
@@ -1675,228 +1265,238 @@ vars.put("chargeId", resp.id || 'no-charge-id');
-
- true
- ${paidChargeCount}
-
+
+ false
+ true
+
-
- 1
-
- 1
- chargeCounter
-
- false
-
-
-
- 10
-
- 1
- amountGenerator
-
- true
- true
-
-
-
- true
-
-
-
- false
- {"onchain":false,"onchainwallet":null,"lnbits":true,"description":"lightning charge [${chargeCounter}]","time":1220,"amount":${amountGenerator},"lnbitswallet":"${walletId}","webhook":"http://localhost:8081","completelink":"https://twitter.com","completelinktext":"Have Fun"}
- =
-
-
-
- ${host}
- ${port}
- ${scheme}
- utf-8
- /satspay/api/v1/charge
- POST
- true
- false
- true
- false
-
-
-
-
+
+ true
+ ${paidChargeCount}
+
-
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- ${adminkey}
-
-
- Origin
- ${scheme}://${host}:${port}
-
-
- Content-Type
- application/json;charset=utf-8
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
+
+ 1
+
+ 1
+ chargeCounter
+
+ false
+
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+
+ 10
+
+ 1
+ amountGenerator
+
+ true
+ true
+
+
+
+ false
+ true
+
+
+
+ true
+
+
+
+ false
+ {"onchain":false,"onchainwallet":null,"lnbits":true,"description":"lightning charge [${chargeCounter}]","time":1220,"amount":${amountGenerator},"lnbitswallet":"${walletId}","webhook":"http://localhost:8081","completelink":"https://twitter.com","completelinktext":"Have Fun"}
+ =
+
+
+
+ ${host}
+ ${port}
+ ${scheme}
+ utf-8
+ /satspay/api/v1/charge
+ POST
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ ${adminkey}
+
+
+ Origin
+ ${scheme}://${host}:${port}
+
+
+ Content-Type
+ application/json;charset=utf-8
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
vars.put("lightningChargeId", resp.id || 'no-lightning-charge-id');
vars.put("paymentRequest", resp.payment_request || 'no-lpayment-request');
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /satspay/${lightningChargeId}
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+
+
+
-
- Upgrade-Insecure-Requests
- 1
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /satspay/${lightningChargeId}
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ Upgrade-Insecure-Requests
+ 1
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+
+
+
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /satspay/api/v1/charge/balance/${lightningChargeId}
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- undefined
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /satspay/api/v1/charge/balance/${lightningChargeId}
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ undefined
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
if (resp.balance !== 0) {
AssertionResult.setFailureMessage("Expected balance to be zero, got " + resp.amount);
@@ -1907,151 +1507,151 @@ if (resp.paid) {
AssertionResult.setFailureMessage("Expected charge to not be paid");
AssertionResult.setFailure(true)
}
-
-
-
-
- 1
- 0
- ${thinkTime}
-
-
-
- 1000
- 100
-
-
-
-
- true
-
-
-
- false
- {"out":true,"bolt11":"${paymentRequest}"}
- =
+
+
+
+
+ 1
+ 0
+ ${thinkTime}
+
+
+
+ 1000
+ 100
+
+
+
+
+ true
+
+
+
+ false
+ {"out":true,"bolt11":"${paymentRequest}"}
+ =
+
+
-
-
- ${host}
- ${port}
- ${scheme}
- utf-8
- /api/v1/payments
- POST
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
+ ${host}
+ ${port}
+ ${scheme}
+ utf-8
+ /api/v1/payments
+ POST
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ ${adminWalletKey}
+
+
+ Origin
+ ${scheme}://${host}:${port}
+
+
+ Content-Type
+ application/json;charset=utf-8
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 201
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+
+
+
-
- X-Api-Key
- ${adminWalletKey}
-
-
- Origin
- ${scheme}://${host}:${port}
-
-
- Content-Type
- application/json;charset=utf-8
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 201
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /satspay/api/v1/charge/balance/${lightningChargeId}
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- undefined
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /satspay/api/v1/charge/balance/${lightningChargeId}
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ undefined
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
var amount = +vars.get('amountGenerator')
if (resp.balance !== amount) {
@@ -2063,69 +1663,69 @@ if (!resp.paid) {
AssertionResult.setFailureMessage("Expected charge to be paid");
AssertionResult.setFailure(true)
}
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /satspay/api/v1/charge/${lightningChargeId}
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
+
+
+
+
+
+
-
- X-Api-Key
- ${adminkey}
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- javascript
-
-
- true
- var payment = JSON.parse(prev.getResponseDataAsString())
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /satspay/api/v1/charge/${lightningChargeId}
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ ${adminkey}
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ javascript
+
+
+ true
+ var payment = JSON.parse(prev.getResponseDataAsString())
if (!payment.paid || !payment.lnbitswallet || !payment.webhook){
AssertionResult.setFailureMessage("Charge not correctly updated after paiment: "+ payment.id);
@@ -2161,8 +1761,10 @@ if (vars.get("paymentRequest") !== body.payment_request) {
-
-
+
+
+
+
@@ -2781,106 +2383,116 @@ if (resp.name !== "Nakamoto") {
-
- true
- ${userTipCount}
-
+
+ false
+ true
+
-
- 1
-
- 1
- tipCounter
-
- true
- true
-
-
-
- true
-
-
-
- false
- {"tipjar":"${tipjarId}","name":"Hal","sats":21,"message":"Let's go ...${tipCounter}!"}
- =
-
-
-
- ${host}
- ${port}
- ${scheme}
- utf-8
- /tipjar/api/v1/tips
- POST
- true
- false
- true
- false
-
-
-
-
+
+ true
+ ${userTipCount}
+
-
-
-
- Accept-Language
- en-US,en;q=0.${paidChargeCount}
-
-
- Origin
- ${scheme}://${host}:${port}
-
-
- Content-Type
- application/json;charset=utf-8
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
+
+ 1
+
+ 1
+ tipCounter
+
+ true
+ true
+
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+
+ false
+ true
+
+
+
+ true
+
+
+
+ false
+ {"tipjar":"${tipjarId}","name":"Hal","sats":21,"message":"Let's go ...${tipCounter}!"}
+ =
+
+
+
+ ${host}
+ ${port}
+ ${scheme}
+ utf-8
+ /tipjar/api/v1/tips
+ POST
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.${paidChargeCount}
+
+
+ Origin
+ ${scheme}://${host}:${port}
+
+
+ Content-Type
+ application/json;charset=utf-8
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
if (!resp.redirect_url || !resp.redirect_url.startsWith("/satspay/")) {
AssertionResult.setFailureMessage("Expected redirect url to start with '/satspay/', but was: " + resp.redirect_url);
AssertionResult.setFailure(true)
}
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
vars.put("tipChargeUrl", resp.redirect_url || 'no-tip-charge-url');
@@ -2888,132 +2500,132 @@ if (resp.redirect_url) {
var tipChargeId = resp.redirect_url.split("/")[2]
vars.put("tipChargeId", tipChargeId || 'no-tip-charge-id');
}
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- ${tipChargeUrl}
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/tipjar/2
+
+
+
+
+
+
-
- Accept-Language
- en-US,en;q=0.${paidChargeCount}
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ ${tipChargeUrl}
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Referer
+ ${scheme}://${host}:${port}/tipjar/2
+
+
+ Accept-Language
+ en-US,en;q=0.${paidChargeCount}
+
+
+ Upgrade-Insecure-Requests
+ 1
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
+
+
+ Accept
+ text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+
+
+
-
- Upgrade-Insecure-Requests
- 1
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
-
-
- Accept
- text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /satspay/api/v1/charge/${tipChargeId}
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/satspay/${chargeId}
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- ${inkey}
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /satspay/api/v1/charge/${tipChargeId}
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Referer
+ ${scheme}://${host}:${port}/satspay/${chargeId}
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ ${inkey}
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
var tipCounter = +vars.get("tipCounter")
var name = "Hal"
@@ -3029,80 +2641,80 @@ if (resp.description !== description) {
AssertionResult.setFailure(true)
}
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
vars.put("tipPaymentRequest", resp.payment_request || 'no-tip-payment-request');
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /tipjar/api/v1/tips
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.${paidChargeCount}
+
+
+
+
+
+
-
- X-Api-Key
- ${inkey}
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- javascript
-
-
- true
- var resp = JSON.parse(prev.getResponseDataAsString())
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /tipjar/api/v1/tips
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.${paidChargeCount}
+
+
+ X-Api-Key
+ ${inkey}
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/${paidChargeCount}.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ javascript
+
+
+ true
+ var resp = JSON.parse(prev.getResponseDataAsString())
var tipCounter = +vars.get("tipCounter")
@@ -3117,154 +2729,154 @@ if (resp.length !== tipCounter) {
AssertionResult.setFailure(true)
}
}
-
-
-
-
- 1
- 0
- ${thinkTime}
-
-
-
- 1000
- 100
-
-
-
-
- true
-
-
-
- false
- {"out":true,"bolt11":"${tipPaymentRequest}"}
- =
+
+
+
+
+ 1
+ 0
+ ${thinkTime}
+
+
+
+ 1000
+ 100
+
+
+
+
+ true
+
+
+
+ false
+ {"out":true,"bolt11":"${tipPaymentRequest}"}
+ =
+
+
-
-
- ${host}
- ${port}
- ${scheme}
- utf-8
- /api/v1/payments
- POST
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Accept-Language
- en-US,en;q=0.5
+ ${host}
+ ${port}
+ ${scheme}
+ utf-8
+ /api/v1/payments
+ POST
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ ${adminWalletKey}
+
+
+ Origin
+ ${scheme}://${host}:${port}
+
+
+ Content-Type
+ application/json;charset=utf-8
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 201
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+
+
+
-
- X-Api-Key
- ${adminWalletKey}
-
-
- Origin
- ${scheme}://${host}:${port}
-
-
- Content-Type
- application/json;charset=utf-8
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 201
-
-
- Assertion.response_code
- false
- 8
-
-
-
-
-
-
-
- ${host}
- ${port}
- ${scheme}
- UTF-8
- /api/v1/wallet
- GET
- true
- false
- true
- false
-
-
-
-
-
-
-
-
- Referer
- ${scheme}://${host}:${port}/wallet?usr=${userId}&wal=${walletId}
-
-
- Accept-Language
- en-US,en;q=0.5
-
-
- X-Api-Key
- ${inkey}
-
-
- Accept-Encoding
- gzip, deflate
-
-
- User-Agent
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
-
-
- Accept
- application/json, text/plain, */*
-
-
-
-
-
-
- 200
-
-
- Assertion.response_code
- false
- 8
-
-
-
- true
-
-
- var resp = JSON.parse(prev.getResponseDataAsString())
+ ${host}
+ ${port}
+ ${scheme}
+ UTF-8
+ /api/v1/wallet
+ GET
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+ Referer
+ ${scheme}://${host}:${port}/wallet?usr=${userId}&wal=${walletId}
+
+
+ Accept-Language
+ en-US,en;q=0.5
+
+
+ X-Api-Key
+ ${inkey}
+
+
+ Accept-Encoding
+ gzip, deflate
+
+
+ User-Agent
+ Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
+
+
+ Accept
+ application/json, text/plain, */*
+
+
+
+
+
+
+ 200
+
+
+ Assertion.response_code
+ false
+ 8
+
+
+
+ true
+
+
+ var resp = JSON.parse(prev.getResponseDataAsString())
var tipCounter = +vars.get('tipCounter')
var userBalance = +vars.get("userBalance")
@@ -3278,13 +2890,13 @@ if (resp.balance !== userBalance) {
}
vars.put("userBalance", userBalance)
- javascript
-
-
+ javascript
+
+
+
+
-
-
false