Skip to content

How to set boundary in RestAssured

I’m trying to create multipart POST call using RestAssured, but I don’t know how to get any boundary there. I tried this code, but it doesn’t work. Log Wanted result: So, how do I get ——WebKitFormBoundary123 in the request multipart form? UPDATE: If I use this: I will get this, w…

change the json object value

I have a json object like above and i want to change apiInvokerPublicKey’s value i did not find a method in gson so how can i change it? EDIT: I used addProperty method from gson but it changes whole “onboardingInformation” i just want to change “apiInvokerPublicKey” Answer You c…

If statement nested in for loop

I’m trying to create a program that prints “-” if the number is divisible by 2 and “*” if it is not. I get it to print the numbers, – and *, but it is not printing – and * in place of the number, if that makes sense? I can’t understand where exactly I’m go…