How to set the custom properties on project level if the property is coming multiple time inResponse
Hi All , I need a suggestion how to set the custom properties on project level if the required property value will come multiple times in loop . Take an example , I have to set the custom properties for below property value : (a) Id (b) StreamingUrl but both property is coming multiple times in response so if I will apply the loop , I will be able to get it for all but then how to do set since I need to grab these values from one API and need to pass in different API to get the response . Please help , it's high priority to me since I am aware how to set if it will come one time but not sure how to do if it will come in loop . Please find the response json : ( I have given here the short data but it will repeat the same 20 times ) { "Shuffled": true, "TotalTracks": 20, "Tracks": [ { "Provider": "QQ", "TrackOptions": "212782314", "Album": { "Cover": "http://y.gtimg.cn/music/photo_new/T002R120x120M000002JdNyK4A9iuS_1.jpg", "ID": 3866362, "Title": "Fall" }, "Artist": { "ID": 243334, "Name": "I Am Dive" }, "ID": 212782314, "FavoriteURL": "Tidal/updatefav/212782314", "Length": 1202841, "StreamingUrl": "Tidal/streamingurl/212782314?recentdata=%7B%22album_id%22%3A3866362%2C%22album_mid%22%3A%22Fall%22%2C%22album_name%22%3A%22Fall%22%2C%22album_pic%22%3A%22http%3A%2F%2Fy.gtimg.cn%2Fmusic%2Fphoto_new%2FT002R120x120M000002JdNyK4A9iuS_1.jpg%22%2C%22album_title%22%3A%22Fall%22%2C%22singer_id%22%3A243334%2C%22singer_name%22%3A%22I+Am+Dive%22%2C%22song_id%22%3A212782314%2C%22song_mid%22%3A%22002GJTjz2lts7l%22%2C%22song_name%22%3A%22Lines%22%2C%22song_play_url%22%3A%22http%3A%2F%2Fisure6.stream.qqmusic.qq.com%2FC200004YCdgj3Jyf75.m4a%3Fguid%3D2000001669%26vkey%3DA120EEC7DF54154D994949A91259599CBAFC0A77BDF8113110FD892AB21F4D2178AD010CD466F2C94C4B1F511BA162AD6009A682CD07E5BB%26uin%3D%26fromtag%3D231%22%2C%22song_size%22%3A1202841%7D&contentProvider=QQ", "Title": "Lines" }, { "Provider": "QQ", "TrackOptions": "201700645", "Album": { "Cover": "http://y.gtimg.cn/music/photo_new/T002R120x120M000003JUUkf3IROdv_1.jpg", "ID": 1987801, "Title": "Elephant House" }, "Artist": { "ID": 1451930, "Name": "Elephant House" }, "ID": 201700645, "FavoriteURL": "Tidal/updatefav/201700645", "Length": 3138484, "StreamingUrl": "Tidal/streamingurl/201700645?recentdata=%7B%22album_id%22%3A1987801%2C%22album_mid%22%3A%22Elephant+House%22%2C%22album_name%22%3A%22Elephant+House%22%2C%22album_pic%22%3A%22http%3A%2F%2Fy.gtimg.cn%2Fmusic%2Fphoto_new%2FT002R120x120M000003JUUkf3IROdv_1.jpg%22%2C%22album_title%22%3A%22Elephant+House%22%2C%22singer_id%22%3A1451930%2C%22singer_name%22%3A%22Elephant+House%22%2C%22song_id%22%3A201700645%2C%22song_mid%22%3A%220020zFNr1CPwZ9%22%2C%22song_name%22%3A%22Camel+Mom%22%2C%22song_play_url%22%3A%22http%3A%2F%2Fisure6.stream.qqmusic.qq.com%2FC2000038gl8Z3FPq24.m4a%3Fguid%3D2000001669%26vkey%3DA7664B53C33E70B86BA26BD01FCD65F60D06730B53DBCFBF70699E8209154491549E713F7DB185EFBC52526368B7543954B07D715C23E2AC%26uin%3D%26fromtag%3D231%22%2C%22song_size%22%3A3138484%7D&contentProvider=QQ", "Title": "Camel Mom" },Solved1.5KViews0likes2CommentsProperty transfer from an html response
I have a test step of type http request and want now to extract from the resulting response an html value. Therefore I have created another test step of type "Property Transfer" which contains an XPATH query that I have tested with another tool, so the XPath is ok. Furthermore I have validated the html response which also seems to be valid xml (although the document starts with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> which is an unclosed tag) So, my question is: Is it possible to do a a property transfer from an html response using xpath?768Views0likes1CommentPrefix a property transfer in header
I am using a property transfer to take an oAuth access_token from a response and transfer it to my next GET REST request. The header Name is "Authorization" and the value needs to be in the format "Bearer xxxxxx" ( wherexxxxxx is the transferred access_token) How to I add the Bearer prefix into my GET request? Do I need to add something in the property transfer target? Or is this done via test step properties?Solved9.9KViews0likes10CommentsXML declaration in request disappears after property transfer
I am using application/xml requests in http test steps. At the beginnig of each request a xml declariation is needed <?xml version="1.0" encoding="ISO-8859-15"?>. It works fine as long as I run the request stand alone. But when run a property transfer before, the xml declaration will be removed an the test step fails. What can I do? By the way - I found a similar question here. But the link to the answer does not work!Solved4KViews0likes12CommentsProperty source is not a request
Hi Team, I am having an issue with the property transfer in the rest API. I am not able to declare namespace in Request and Response. When ever I am Clicking on ns: - it is displaying an error as 'Property source is not a request'. In the Request - I have configured the media type to text/xml Below is the request : <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetRateOptionAvailability> <AMAKey>${#TestSuite#AMAKey}</AMAKey> <CruiseCode>${#Project#CruiseCode}</CruiseCode> <CurrencyCode>${#TestCases#CurrencyCode}</CurrencyCode> <IATANumber>${#TestSuite#IATANumber}</IATANumber> <SailID>${#Project#SailID}</SailID> <PassengerCityCode>${#TestCase#PassengerCityCode}</PassengerCityCode> </GetRateOptionAvailability> </soap:Body> </soap:Envelope> Please refer screenshot for more information.1.6KViews0likes1CommentHow to make transfer data to post query string in json format
I try to make data transfer from first post request (response from it in json) to second (request in second method in multiform/data type, but query param contain Json array). I need to past value like "4e2c056931d398831128ad2c6a45ec91" in second post request as querystring param mediaIds: [{"mediaId":"54a985e73f0f9360039750aac89d0133","type":0}]where "type":0 just static parameter. How can I do it?Can I do it via target request? Or I must use "Property expansion"? or maybe it is impossible without Groovy? P.S. I haven't any problem with parse response from first request, but I don't know how to transform it in json array that I need =(1.2KViews0likes0CommentsParse Json Response Property Transfer Value
How can i prase the programID from the below response as a property transfer to the next request. { "Name": "Referral Program", "ProgramIdBackwardCompatible": true, "_links": { "self": {"href": "/platform/1"}, "programs": { "href": "/program/1", "title": "ABCD1" }, When i do the property transfer it looks like this "/platform/1" and i need "1"782Views0likes0Comments