{"action":"opened","issue":{"url":"https://api.github.com/repos/cbeust/testng/issues/626","labels_url":"https://api.github.com/repos/cbeust/testng/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/cbeust/testng/issues/626/comments","events_url":"https://api.github.com/repos/cbeust/testng/issues/626/events","html_url":"https://github.com/cbeust/testng/issues/626","id":65436997,"number":626,"title":"ENTITY parent doesn't work when running tests by \"TestNG Test\"","user":{"login":"jerckov","id":10866259,"avatar_url":"https://avatars.githubusercontent.com/u/10866259?v=3","gravatar_id":"","url":"https://api.github.com/users/jerckov","html_url":"https://github.com/jerckov","followers_url":"https://api.github.com/users/jerckov/followers","following_url":"https://api.github.com/users/jerckov/following{/other_user}","gists_url":"https://api.github.com/users/jerckov/gists{/gist_id}","starred_url":"https://api.github.com/users/jerckov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerckov/subscriptions","organizations_url":"https://api.github.com/users/jerckov/orgs","repos_url":"https://api.github.com/users/jerckov/repos","events_url":"https://api.github.com/users/jerckov/events{/privacy}","received_events_url":"https://api.github.com/users/jerckov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-31T12:13:37Z","updated_at":"2015-03-31T12:13:37Z","closed_at":null,"body":"Hello,\r\n\r\nI have xml with some parameters (childXML/base.xml): \r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<parameter name=\"baseUrl\" value=\"https://someurl.com\"></parameter>\r\n<parameter name=\"pass\" value=\"sel\"></parameter>\r\n```\r\n\r\nand I want to use these parameters in some suite xml (testng.xml):\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\" \r\n[\r\n<!ENTITY parent SYSTEM \"src/main/resources/childXML/base.xml\">\r\n]>\r\n<suite name=\"suite\" verbose=\"2\">\r\n    <parmeters>&parent;</parmeters>\r\n\r\n\t<parameter name=\"ex\" value=\"123\"></parameter>\r\n\t\r\n\t<!-- TESTS -->\r\n\t<test name=\"test\">\r\n\t\t<packages>\r\n\t\t\t<package name=\"tests\" />\r\n\t\t</packages>\r\n\t</test>\r\n\t\r\n</suite>\r\n```\r\n\r\nI use Eclipse Luna with TestNG plugin. I added testng.xml to the Windows -> Preferences -> TestNG -> Template XML File. When I run tests by TestNG Suite (right click on the testng.xml - > Run as -> TestNG Suite) everything works well. Problem appears when I try to run test by TestNG Test (right click on the project or test class -> Run as -> TestNG Test). I got this error: \r\n\r\n`java.io.FileNotFoundException: C:\\eclipse\\src\\main\\resources\\childXML\\base.xml`\r\n\r\nIt seems that problem is in the relative path:\r\n\r\n```xml\r\n<!ENTITY parent SYSTEM \"src/main/resources/childXML/base.xml\">\r\n```\r\n\r\nI try with other combinations childXML/base.xml, ./childXML/base.xml, but it doesn't work. Maybe I doing something wrong, but I think it is a problem with TestNG or with the plugin.\r\n\r\nThank you in advance"}}