Forum Discussion

Critical_Softwa's avatar
Critical_Softwa
Occasional Contributor
13 years ago

[RES] Get dynamic generated request with groovy

Hi,

I have a soap request generated using data generators.
I want to create a groovy script that retrives the request sent to the server, with all the dynamic tags associated to the data generator filled.
How canI do this?

Using testCase.getTestStepByName("test-01").getProperty("request").value I have the tag name insted of the generated value.

Example:
with the above code i have <CategoriaVeiculo>${DataSource#CatVeiculo}</CategoriaVeiculo>
and I want to get <CategoriaVeiculo>123</CategoriaVeiculo>. This is the generated value sent to the server.

Thanks a lot