Forum Discussion
MartyBurns
11 years agoOccasional Contributor
I am using SOAPUI for all my testing. The web services we are working on have a mix of "gui" interfaces, and, REST APIs.
What I would like to do is organize the following test steps into a test suite:
1) a driver start step - this would be a groovy step opening the web driver instance,
2) a logon test step - this would be a groovy step that exercises the logon screen of a gui,
3) a do some stuff set of steps, -- this might be a mix of steps that do groovy and REST API
4) a logoff step, -- this would be a groovy step logging off the server
5) and a driver close step. -- this would be a groovy step closing the web driver
The challenge I have is how to create the driver in step 1 and allow the other groovy steps to use it.
Currently I have this all in a single groovy script step. However, as you can imagine each of these steps could be a re-usable part that I could use with other similar tests. Now i have to duplicate all the code each time.
Thanks for any help.
Marty
What I would like to do is organize the following test steps into a test suite:
1) a driver start step - this would be a groovy step opening the web driver instance,
2) a logon test step - this would be a groovy step that exercises the logon screen of a gui,
3) a do some stuff set of steps, -- this might be a mix of steps that do groovy and REST API
4) a logoff step, -- this would be a groovy step logging off the server
5) and a driver close step. -- this would be a groovy step closing the web driver
The challenge I have is how to create the driver in step 1 and allow the other groovy steps to use it.
Currently I have this all in a single groovy script step. However, as you can imagine each of these steps could be a re-usable part that I could use with other similar tests. Now i have to duplicate all the code each time.
Thanks for any help.
Marty