rajash
13 years agoContributor
SOAP UI to support reconstruct request ?
Hi,
I have a problem, if SOAPUI Supports dynamic reconstruct request, this would great
Problem Scenario:
Consider a Request with Requests tag A (M) B(M) C(O) D(O). In my test data excel sheet i have four three for all combinations of request parameters. ABCD all with values only ABC and Only ABD
When i do a for loop, loop for each row in a flat file or excel. 1st request execution is fine. But for 2nd request D parameter does not value and for 3rd request c parameter does not have value. In this instance i would expect the tool if found blank value in excel for a parameter when it fires the request it should remove the tag from the request ( reconstruct request) and then fire seeing any blank values in datasheet. Ex. Read excel any parameter is with blank value,dynamic reconstruct request with only request parameters with values.
What happens now: when 2 second row is executed. The request will look like A with value B With value C with Value and Request contains parameter D with null value. When request is fired the service will fail, because service expects either optional parameter to be completely removed or it treats null value to be data and may fail.
This saves a lot for me. I can have only one request all parameters mandatory and optional and execute all capabilities of combination a service offers with an excel having data with all mandatory and combinations of mandatory and optional data fields.
If the tool does not support this, then data source parametrization is not possible when we have to simulate request with combination of mandatory or optional. It can only work if all values of request are preset.
Now what is being done: We have Test Steps created for every combination of mandatory/Optional.
I am struggle with hell lot of request created because i have more than 100 combinations, so i have to create 100 different test suits. If i can have all the combinations of data in excel and if SOAPUI handles it a single request would have done wonders to me.
Build in functionality, like During parameterization, when any value if null do you want request parameters to be Supressed ? Check yes this solve problem.
If the tag is simple type, remove the tag. If complex type for ex:
<Address>
<AddLine1></AddLine1>
</Address> ( Address (OPTIONAL) AddLine1(OPTIONAL), if in my excel sheet AddLine1 does not have value, soapui to remove the entire complex type in request.
Regards,
Raj
I have a problem, if SOAPUI Supports dynamic reconstruct request, this would great
Problem Scenario:
Consider a Request with Requests tag A (M) B(M) C(O) D(O). In my test data excel sheet i have four three for all combinations of request parameters. ABCD all with values only ABC and Only ABD
When i do a for loop, loop for each row in a flat file or excel. 1st request execution is fine. But for 2nd request D parameter does not value and for 3rd request c parameter does not have value. In this instance i would expect the tool if found blank value in excel for a parameter when it fires the request it should remove the tag from the request ( reconstruct request) and then fire seeing any blank values in datasheet. Ex. Read excel any parameter is with blank value,dynamic reconstruct request with only request parameters with values.
What happens now: when 2 second row is executed. The request will look like A with value B With value C with Value and Request contains parameter D with null value. When request is fired the service will fail, because service expects either optional parameter to be completely removed or it treats null value to be data and may fail.
This saves a lot for me. I can have only one request all parameters mandatory and optional and execute all capabilities of combination a service offers with an excel having data with all mandatory and combinations of mandatory and optional data fields.
If the tool does not support this, then data source parametrization is not possible when we have to simulate request with combination of mandatory or optional. It can only work if all values of request are preset.
Now what is being done: We have Test Steps created for every combination of mandatory/Optional.
I am struggle with hell lot of request created because i have more than 100 combinations, so i have to create 100 different test suits. If i can have all the combinations of data in excel and if SOAPUI handles it a single request would have done wonders to me.
Build in functionality, like During parameterization, when any value if null do you want request parameters to be Supressed ? Check yes this solve problem.
If the tag is simple type, remove the tag. If complex type for ex:
<Address>
<AddLine1></AddLine1>
</Address> ( Address (OPTIONAL) AddLine1(OPTIONAL), if in my excel sheet AddLine1 does not have value, soapui to remove the entire complex type in request.
Regards,
Raj