Welcome aboard and sorry for slightly later reply to your question.
> Currently I have a question about how to run several test suites in a loop,
> could anyone help me?
>
> Detail description:
> 1. I have several test suites, each of them contains some test cases.
> 2. Run all above mentioned test suites then passed the testing for one
> product.
> 3. Now I have more than one products, and because all of them need to
> perform same test suites, I want to put them in a even higher level of test
> suites, and trigger a "For" loop, test them one by one.
This kind of looping is best done outside the framework. You can run
multiple separate test runs and then combine results with rebot. For
example something like this could work:
for product in product1 product2 product3; do
pybot --name $product --output $product.xml --log none --report
none path/to/tests
done
rebot --name All_tests_for_X *.xml
The above code is shell script but you could do similar things on
Windows using batch files. If this kind of start-up scripts grow
larger, it is often better to switch to Python or some other
programming language. For some more information and examples see the
User Guide:
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.6.1#creating-start-up-scripts
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.6.1#post-processing-outputs
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org