Janine_Billings
16 years agoOccasional Contributor
Re: SOAPUI Test case flow
Hi
I'm looking for some best practices when creating SOAUI test suites.
In the following data drive scenario whereby you can have multiple flavours of the same request in a test case and would like to branch to a given test case depeneding upon the data input. In the following example
data: product, promotion, type
purchaseProduct - without promotion
purchaseProduct - with promotion
purchaseProduct - with type defined ... and so on
So using the pro features you could have each of the flavours of the purchaseProduct service in the dataSourceLoop and then groovy branches and exits as follows
DataSource
Groovy Branch
purchaseProduct1
Groovy Exit
purchaseProduct2
Groovy Exit
PurchaseProdcut3
Groovy Exit
Other request1
And so on
DataSourceLoop
In a test case there maybe multiple flavours of the same requests, which then means multiple branches and exit groovy scripts, which soon build up a number of steps for a simple branch. My question, is there a more efficient way of scripting such a data driven suite. I have been working on a purely dynamic suite which will build the requests based on the data input, but we really do need to be able to make use of the pro feature also
Thanks
Christopher
I'm looking for some best practices when creating SOAUI test suites.
In the following data drive scenario whereby you can have multiple flavours of the same request in a test case and would like to branch to a given test case depeneding upon the data input. In the following example
data: product, promotion, type
purchaseProduct - without promotion
purchaseProduct - with promotion
purchaseProduct - with type defined ... and so on
So using the pro features you could have each of the flavours of the purchaseProduct service in the dataSourceLoop and then groovy branches and exits as follows
DataSource
Groovy Branch
purchaseProduct1
Groovy Exit
purchaseProduct2
Groovy Exit
PurchaseProdcut3
Groovy Exit
Other request1
And so on
DataSourceLoop
In a test case there maybe multiple flavours of the same requests, which then means multiple branches and exit groovy scripts, which soon build up a number of steps for a simple branch. My question, is there a more efficient way of scripting such a data driven suite. I have been working on a purely dynamic suite which will build the requests based on the data input, but we really do need to be able to make use of the pro feature also
Thanks
Christopher