i want to select multiple methods based on the name of the methods using bean shell script in testNG.xml.This is my current testng.xml
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="methodsuite">
<test name="test1" >
<method-selectors>
<method-selector>
<script language="beanshell">
<![CDATA[
String str=System.getProperty("testToRun");
testngMethod.getMethodName().contains(str);
]]>
</script>
</method-selector>
</method-selectors>
<packages>
<package name=".*"></package>
</packages>
</test>
</suite
Here i am able to select one method at a time.is it possible to select multiple mmethods using beanshell script?Or can i make use of looping/is looping allowed in the beanshell?