KeyofSea123
12 years agoContributor
REST POST service
I have built automatted test suites for many Soap services. I have also built automatted test suites for several REST GET services.
In the Soap calls, I have
1) a DataSource,
2) a Groovy script of the full Soap/XML call,
3) a Groovy script that reads the DataSource and removes elements that are not needed for that particular Soap call,
4) a Soap step for the main call,
5) a Groovy script that creates a .txt log,
6) a Groovy script that validates the requested data with the response data and validate the response data with our Oracle database,
7) a DataSource Loop.
I need to be able to "build" the REST POST content in the same way that I do for the XML. I know that it's not exactly the same - I won't need a step with all of the elements like I do for Soap. I need to write a Groovy script that will create the REST POST call. I know how to write the script but I have no idea how to then get that data in the REST step.
I've Googled and searched the forum but I haven't been able to find any help.
Thanks,
Trish
In the Soap calls, I have
1) a DataSource,
2) a Groovy script of the full Soap/XML call,
3) a Groovy script that reads the DataSource and removes elements that are not needed for that particular Soap call,
4) a Soap step for the main call,
5) a Groovy script that creates a .txt log,
6) a Groovy script that validates the requested data with the response data and validate the response data with our Oracle database,
7) a DataSource Loop.
I need to be able to "build" the REST POST content in the same way that I do for the XML. I know that it's not exactly the same - I won't need a step with all of the elements like I do for Soap. I need to write a Groovy script that will create the REST POST call. I know how to write the script but I have no idea how to then get that data in the REST step.
I've Googled and searched the forum but I haven't been able to find any help.
Thanks,
Trish