Nested cycle (Loops)
Hi there,
I am starting my SoapUI experience and would like to know if you guys could help me with a problem I encountered:
I got a test that my Boss want automated via SoapUI and what it is supposed to do is run some API with some parameters fed via an excel file. These API have some optional parameters that we should validate and therefore I am in need of help for the following scenario:
- The excel file must be read and will most likely have two or three worksheets;
- On the first worksheet there are some MAC Addresses and on the following worksheets there will be the other optional parameters that we should validate.
For this test, lets say my method is "alerts" and "alerts" has only one optional parameter and it is "X". For "X" it would be aceptable as a parameter value to inputs: "A" and "B".
So I need to read the file, get the lenght of the second worksheet (in this case it is 2 - A and B)and run the first line against all the Mac Addresses of the first worksheet, after all the lines have being ran, it should then go to the next line of the second worksheet and run all the Mac Addresses of the first worksheet and so on untill all the lines of the second worksheet have being processed.
I know it is a bit complex but that is why I am having some issues with it. I really appreciate all the help you guys can offer.