Contributions
Re: Property Transfer - Suite of test steps
The reason I asked was I started the next test with the "finchresponseJSON" parameter "${#OpenCalaisRequest#finchresponseJSON}" and did not start off with a '{' since the finchresponseJSON being passed has it. When I run the test it give me an error "interface conversion: interface {} is string, not map[string]interface {}". I could flip and place the additional finch parameters at the beginning of the new test but then would need to strip the beginning '{' from the #OpenCalaisRequest#Response instead of stripping the ending '}'.4 years agoPlace ReadyAPI QuestionsReadyAPI Questions636Views0likes0CommentsRe: Property Transfer - Suite of test steps
I was able to add a groovy step with the code and setup to pass to next REST call but I don't want to remove all the '{' in the OpenCalaisResponse I only want to remove the last '}' so I can add a comma and the additional finchRequest parameters. The response we are parsing is fairly long ~575 lines and some longer. How might adjust the script to remove that last '}' in the previous response?4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes4CommentsRe: Property Transfer - Suite of test steps
Hmm, so I tried that code on the property transfer 'text', I can see the text being transferred but doesnt appear the final '}' is getting stripped? Here is how I set it up, not sure its correct, see attached4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes7CommentsRe: Property Transfer - Suite of test steps
When I attempt to add this snipet to the property transfer for property 'text', the transferred values gives back the following: [Use bracket notion ['my prop'] if your property contains blank characters. position: 2]. Really new to property transfers so maybe applying this incorrectly?4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes0CommentsProperty Transfer - Suite of test steps
Hello, I have a series of test steps which pass the response to the next. I need to take a full enriched response and remove the last '}' so I can append additional request parameters for the next test request. Is there an easy way to do this? maybe via groovy? So I am wanting to pull in the response from OpenCalaisRequest#Response and to run the next test step, then add additional parameters. So the next test input would look something like the below, however, I need to strip or remove the final json bracket '}' in order to add the additional finchRequest parameters for it to be valid json: "${OpenCalaisRequest#Response}", "finchRequest": { "finchOutput":false, "documentSentiment": true, "instanceSentiment": true, "sentimentModel": "financial3", "entities":["*"], "salience":true, "salienceModel":"News", "languageCode":"en" } } I assume I would have to add an assertion script to OpenCalaisRequest test step to manipulate the input for the next test step which includes finchRequest parameters? Any help is appreciated.Solved3.1KViews0likes12Comments