Forum Discussion
HimanshuTayal
Community Hero
Hi yu,
Yes you can achieve this
Step 1. Get the count of Arrays in your response within {}, store this count in some variable
${TestCaseStep#ResponseAsXml#count(//*:ContectID)}
Step 2. Pass that count to your index within $..ContactID["Count which you get from step 1"].
Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)
Thanks and Regards,
Himanshu Tayal
Olga_T
6 years agoSmartBear Alumni (Retired)
Hi all,
HimanshuTayal, many thanks for looking into this!
yu, does the solution provided above help you? Did you have a chance to try it?
If it answers your question, could you please click the Accept as Solution button below the reply that provides the answer? This way, other users will find it easier when searching for an answer to a similar issue in the future.
Thank you in advance.