There is a problem in testng (v.6.8.8) if you nest test suites. Parameters are overriden. This project is a little demo project to show you this problem.
git clone https://github.com/chillinPanda/testng-parameter-error.git
cd testng-parameter-error
mvn test
I opened a new issue in the testng project for this problem: testng-team/testng#581
ParameterErrorDemoWiki.test:12 check if we got the right parameter from expected [www.wikipedia.org] but found [www.google.com]
<suite name="Demo" parallel="tests">
<suite-files>
<suite-file path="src/test/testng_xmls/testng_wiki.xml">
<parameter name="url" value="www.wikipedia.org" />
</suite-file>
<suite-file path="src/test/testng_xmls/testng_google.xml">
<parameter name="url" value="www.google.com" />
</suite-file>
</suite-files>
</suite>