Ich bin sehr neu zu SOUPUI, ich bin in der Lage, die Antwort für restapi zu lesen und in der Lage zu speichern, strickte ich an dieser Stelle möchte ich einen Wert aus der Antwort speichern . Bitte helfen Sie.Wie bekomme ich einen bestimmten Wert von Json Antwort mit SOUPUI
Meine Fragen:
- Wie kann ich eine zufällige employeeId aus der folgenden Antwort speichern (eine der employeeId Auswahl des Zufall).?
- Wie bekomme ich bestimmte employeeId mit dem Namen des Angestellten (Wie ich will "employeeId" bekommen, wenn "firstName" Name ist "Daitha")?
- Wie kann ich die employeeId mit Array lesen (Wie erste, zweite ..employeeId)?
Es folgt die Probe Antwort:
{
"response": {
"stat": "SUCCESS",
"result": {
"employees": [{
"employeeId": "7d58129a-5ca3-4acd-a601-11478ba47988",
"firstName": "Daitha",
"lastName": "shankar",
"loginName": "[email protected]",
"mobileNumber": "xxxxxxxxxxxx",
"emailId": "[email protected]",
"rowStatus": "A",
"assetCount": 3087,
"canUseapp": "Y",
"supportUserInd": "N"
}, {
"employeeId": "e2dec6de-8882-4c5b-a875-41fffe8e977f",
"firstName": "john",
"lastName": "deo",
"loginName": "[email protected]",
"emailId": "[email protected]",
"rowStatus": "A",
"assetCount": 0,
"canUseapp": "Y",
"supportUserInd": "N"
}, {
"employeeId": "9a9e7ff6-edb7-402a-bed2-27e9036a716f",
"tenantBadgeId": "EMP11659824",
"firstName": "suman",
"lastName": "m",
"loginName": "[email protected]",
"mobileNumber": "xxxxxx",
"emailId": "[email protected]",
"rowStatus": "A",
"designation": "software QA engineer",
"assetCount": 0,
"canUseapp": "Y",
"supportUserInd": "N"
}, {
"employeeId": "9ecf7fc8-c06d-4e3c-a3a3-d2c50509c16b",
"firstName": "vinay",
"lastName": "B",
"loginName": "[email protected]",
"emailId": "[email protected]",
"rowStatus": "A",
"assetCount": 0,
"canUseapp": "Y",
"supportUserInd": "N"
}]
}
}
}
Vielen Dank im Voraus
Schlage mir irgendein grooviges Skript vor ... welches Problem lösen kann. –