ContributionsMost RecentMost LikesSolutionsRe: How do I extract the new resource created via a REST POST for use in a subsequent request? Yeh I did a property transfer with it. Thanks Re: How do I extract the new resource created via a REST POST for use in a subsequent request? Awesome sauce. That worked. Thanks All I had to do in addition was alter the [2] to a [5] to get the correct part of the URI and return accountNumber; to pass the result of the script back out. Re: How do I extract the new resource created via a REST POST for use in a subsequent request? Thanks, I'll give it a whirl. Re: How do I extract the new resource created via a REST POST for use in a subsequent request? Yeh, I think this is the way to go because I cant see a way using the software to do it. But do you know the script I would need? Thanks Re: How do I extract the new resource created via a REST POST for use in a subsequent request? Im not that good with groovy but I could work out how to do it. But actually I think that what you're describing is already possible using 'Get Data' within the software. ie I can already grab the whole raw response. The problem is that I want a specific part of the raw response. Eg. currently Im getting: HTTP/1.1 201 Created Cache-Control: no-cache Pragma: no-cache Content-Length: 0 Expires: -1 HERE IS THE URI...at the end of which is the new resource I want to grab. 1234. I just want to put 1234 into a parameter. Re: change rest service for request Yes, you can change these at both project level, and at the individual request level so that you can make a variety of slightly different requests from one base request. How do I extract the new resource created via a REST POST for use in a subsequent request? The API I'm testing is RESTful so I can create a resource such as an account number by sending a POST to AndysAPI/newaccount The code there generates an account number for me based on the details I've provided, but being RESTful does nothing but send back a success message in the raw response and the newly created URI ie AndysAPI/newaccount/1234. That great but there's no message body. Therefore I can't update this resource by referencing it in a subsequent test using a GET DATA. Any ideas how to get round this? I want to be able to extract 1234 from the raw response and use it in a subsequent request to update the account. At the moment I can only put the entire raw response in the next request because I can't specify the part I want. SolvedRe: Is it possible to delay the start of a test case? Let me explain a little more. Both are long running tests so when the first one starts it grabs the data sink file and starts writing to it. Well before this test case ends, the second test case needs access to the file that is being written to. So for example the data sink may have 40 rows written to it so far, there are another 60 to go, but the second test case needs access now to that file to read out row number 1 for a different request but it can't access it because it's still being written to. This is how I understand data sinks work. But surely this cant be a problem never encountered before? Is it possible to delay the start of a test case? I have a specific problem that I'm trying to get round in SoapUI NG. I have two tests. One contains a request (the response from which goes into a data sink), the second uses that data sink file as a data source. Trouble is, both tests need access to the same file at the same time. (It's a long running test and there is a significant amount of overlap). I don't think this is possible unless someone can tell me otherwise? So to get round this I'm going to have to manipulate the data and split it up into a number of smaller files, but I need to be able to delay the start of test case number 2 in order that I don't run into the same problem of two tests wanting access to the same file at the same time. So I don't need a delay at the start of the test case, as by that time, my understanding is that the file has already been 'grabbed' and becomes inaccessible. I need to be able to stop it being 'grabbed' by the test case until it's actually needed. Hence this theory. Help appreciated. Re: Reg: LOADUi with data Driven testing Yeh sorry I didn't mean to mislead. It is of course possible in LoadUI, I was just highlighting really that in the vast majority of sensible use cases, SoapUI NG is perfectly adequate for data driven testing. My point being that if you are load testing a service then is the data that important? (If you have a specific test case for this then fine) but generally, when load testing a service you are creating load and so the data isn't important, if the data is important then my assumption was that you are in a real world scenario in which case SoapUI using data driven functionality is more than capable. (But I stand to be corrected on the above, just my view).