JSON Project
Now that my Groovy script is working, I am working to add the script to other projects. Most of my projects are XML so they are straight forward. I am one project which is JSON and I am not sure how to create testStep for it.
In this JSON, the working API has the following attributes:
1. Method: PUT
2. Endpoint: https://10.14.151.51:8443
3. Resource: /rem/sentinel/api/hssdata/subscriberdata/sip:+13313140097@ims.mnc130.mcc302.3gppnetwork.org
4. Parameters: ?selectionKey=Metaswitch::::&rhinoInstanceId=Local
Screenshot is attached. Tel-Number is the only input parameter to put in the Resource and the JSON body. So, my plan is to create a Groovy to read a file of Tel-number and then execute the testStep one by one.
Can I create a Groovy for JSON? I tried and somehow I cannot using property for Tel-Number in the Resource field.
Any help is appreciated.