Full qualified path needs to be given in testng.xml | Selenium Forum
M
Posted on 28/11/2015
In framework which was made in module 20 under testng.xml I need to give the path ./src/test/resources/Suite_A.xml to run suite A.
I have created a source package as per video but when I run testng.xml without giving the complete path I get an error, but in video it runs. Please tell me how I can run by just giving ".SuiteA.xml" in testng.xml file?

M
Replied on 29/11/2015

keep testng.aml and suiteA.xml in the same folder.


M
Replied on 30/11/2015

Both are in the same folder i.e. src/resources package as displayed in video still it is not working.


M
Replied on 30/11/2015

send a screen shot.


M
Replied on 30/11/2015

Please see attached screen shot[attachment=0:28169dbd]eclipse print.jpg[/attachment:28169dbd]

Responsive image

M
Replied on 30/11/2015

give the path as this

<suite-files>
<suite-file path="./Suite_A.xml" />
<suite-file path="./Suite_B.xml" />
</suite-files>


M
Replied on 30/11/2015

Originally I had given the path as this only
<suite-files>
<suite-file path="./Suite_A.xml" />
<suite-file path="./Suite_B.xml" />
</suite-files>

but it was not working. I want to give like above only but it is not working.can u suggest how can I do this?


M
Replied on 30/11/2015

See when I run like
<suite-files>
<suite-file path="./Suite_A.xml" />
<suite-file path="./Suite_B.xml" />
</suite-files>

I get error as in screenshot

Responsive image

M
Replied on 01/12/2015

sorry about earlier [quote:2i3k05t9]./[/quote:2i3k05t9] means start with the src folder


use this it should work.

<suite-files>
<suite-file path="Suite_A.xml" />
<suite-file path="Suite_B.xml" />
<!-- suite-file path="./Suite_C.xml" / -->

</suite-files>