How to test a service having scope without session

There are scenarios where we need to configure service scope as without session mentioned as follows:-

  1. If we need to perform load testing for a service
  2. If there is no major security concerns
  3. If we need to call service as a Rest/Soap API by using python or java

How do we test such a service?

4 Likes

REQUEST FORMATS TO CALL A SERVICE HAVING SCOPE WITHOUT SESSION

Endpoint URL :- https://< domain or ip >/router/engine/v1/gatewayProcessor

Headers :-

Header Keys & their values are also shared below:
1 Content-Type: application/json
2 requestid: Random Number with 10 digits
3 orgid: your created orgid
4 appid: your registered appId
5 servicename: configured service name
6 clientsecret: generated client secret
7 loginid: loginid
8 version: service version

Request body :-
The request contains your required parameter in json format
{
“key1”:“value”,
“key2”: “value”
“key3”: “value”,
“key4”: “value”
}

Note :-

  • You can test service via POSTMAN, or any Rest client
  • Make sure there is connectivity between where you perform testing and API gateway URL
  • You can also check the vLog for your hit
  • Try to disable the audit logs while performing load testing
4 Likes