Core_Framework_TestNG from code .Run -skips/fails | Selenium Forum
M
Posted on 05/03/2016
Sir i import the Core_Framework_TestNG[code downloaded from website]...
Run skips /fails sir.

Sir pls suggest...

M
Replied on 06/03/2016

open properties>>java build path>>libraries>> add external jars.


M
Replied on 06/03/2016

Sir , after adding external libraries , i still get skips/ fails....
pls refer snapshot

Responsive image

M
Replied on 06/03/2016

missing libraries pls refer attachment.

Responsive image

M
Replied on 06/03/2016

Sir,

some libraries are missing. Have set variable_path to users/.m2
Could try downloading by using pom.xml.
Sir, am unable to locate pom.xml in this particular project.


M
Replied on 07/03/2016

i got all errors fixed....
All libraries are in place now.

Still, 19 tests are skipped pass-5


M
Replied on 07/03/2016

do you see the cross marks. delete those jar files.


add poi api jar files via add external jars.


M
Replied on 07/03/2016

Fixed the errors sir...

Now ...i have Suite
suiteA:RunMode-Y
TestCases sheet :RunMode-Y
TestCase_A sheet :RunMode-Y

& Assert statement in TestCase_A is :

String expected_title="XYZ";
String actual_title="XYZ"; // selenium from the app

try{
Assert.assertEquals(expected_title, actual_title);

}catch(Throwable t){
// code to report the error in testng
ErrorUtil.addVerificationFailure(t);
// report the error in xls files
fail=true;
return;

}

============================================================================
[b:2ifcqfhm]Doubt [/b:2ifcqfhm][b:2ifcqfhm]: TestCaseA- execution skips. Why is that so sir ?
Testcase_A should be passing sir .What's reason its skipping ??[/b:2ifcqfhm]


M
Replied on 07/03/2016

[quote="chaitra108@gmail.com":jtl1v42y]Fixed the errors sir...

Now ...i have Suite
suiteA:RunMode-Y
TestCases sheet :RunMode-Y
TestCase_A sheet :RunMode-Y

& Assert statement in TestCase_A is :

String expected_title="XYZ";
String actual_title="XYZ"; // selenium from the app

try{
Assert.assertEquals(expected_title, actual_title);

}catch(Throwable t){
// code to report the error in testng
ErrorUtil.addVerificationFailure(t);
// report the error in xls files
fail=true;
return;

}

============================================================================
[b:jtl1v42y]Doubt [/b:jtl1v42y][b:jtl1v42y]: TestCaseA- execution skips. Why is that so sir ?
Testcase_A should be passing sir .What's reason its skipping ??[/b:jtl1v42y][/quote:jtl1v42y]


see if "expected_title" and "actual_tile" match?


M
Replied on 07/03/2016

They match . So, assert equals returns true & no exception is generated...
The test should pass right...?


M
Replied on 08/03/2016

yes, try to debug in eclipse to find out why the test is skipping.