Unable to run Zoho project using ANT Command | Selenium Forum
B
barik.arun Posted on 13/01/2021

Hi ,

I am unable to run the Zoho project with ant command. Attached is the Zip file of the Project and below is the error. 

Please help.

 

 

Buildfile: C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\build.xml

setClassPath:

init:

clean:

compile:
[echo] making directory...
[mkdir] Created dir: C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\build
[echo] classpath------: C:\jars\SaxonLiaison.jar:C:\jars\commons-beanutils-1.8.0.jar:C:\jars\derbyclient.jar:C:\jars\dom4j-1.1.jar:C:\jars\eclipselink-2.0.0.jar:C:\jars\extentreports-2.40.2.jar:C:\jars\flash-selenium.jar:C:\jars\freemarker-2.3.23.jar:C:\jars\javax.persistence-2.0.0.jar:C:\jars\jsoup-1.8.3.jar:C:\jars\log4j-1.2.14.jar:C:\jars\logging-selenium-1.2.jar:C:\jars\mail.jar:C:\jars\mysql-connector-java-5.0.7-bin.jar:C:\jars\poi-3.6-20091214.jar:C:\jars\poi-ooxml-3.6-20091214.jar:C:\jars\poi-ooxml-schemas-3.6-20091214.jar:C:\jars\saxon-8.7.jar:C:\jars\selenium-java-client-driver-sources.jar:C:\jars\selenium-java-client-driver-test-sources.jar:C:\jars\selenium-java-client-driver-tests.jar:C:\jars\selenium-java-client-driver.jar:C:\jars\selenium-server-coreless.jar:C:\jars\selenium-server-sources.jar:C:\jars\selenium-server-standalone-3.0.1.jar:C:\jars\selenium-server.jar:C:\jars\sqlite-jdbc-3.8.11.1.jar:C:\jars\testng-6.8.5.jar:C:\jars\testng-xslt-maven-plugin-test-0.0.jar:C:\jars\testng.jar:C:\jars\validation-api-1.0.0.GA.jar:C:\jars\xmlbeans-2.3.0.jar
[echo] compiling...
[javac] Compiling 8 source files to C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\build
[javac]
[javac] WARNING
[javac]
[javac] The -source switch defaults to 1.8 in JDK 1.8.
[javac] If you specify -target 1.5 you now must also specify -source 1.5.
[javac] Ant will implicitly add -source 1.5 for you. Please change your build file.
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:4: error: package com.aventstack.extentreports.reporter does not exist
[javac] import com.aventstack.extentreports.reporter.ExtentSparkReporter;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:5: error: package com.aventstack.extentreports.reporter.configuration does not exist
[javac] import com.aventstack.extentreports.reporter.configuration.Theme;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:10: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:11: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentTest;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:12: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:14: error: package com.aventstack.extentreports.reporter.configuration does not exist
[javac] import com.aventstack.extentreports.reporter.configuration.Theme;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:17: error: cannot find symbol
[javac] static ExtentReports report;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentReportsManager
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:20: error: cannot find symbol
[javac] public static ExtentReports getReports() {
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentReportsManager
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:27: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:28: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentTest;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:29: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:37: error: cannot find symbol
[javac] public ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:38: error: cannot find symbol
[javac] public ExtentReports rep = ExtentReportsManager.getReports();
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LeadTest.java:13: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LeadTest.java:14: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LeadTest.java:21: error: cannot find symbol
[javac] ExtentReports report;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class LeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:14: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:15: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:17: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:18: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentTest;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:19: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:27: error: cannot find symbol
[javac] ExtentReports report;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class LoginTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\PotentialLeadTest.java:17: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\PotentialLeadTest.java:18: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\PotentialLeadTest.java:25: error: cannot find symbol
[javac] ExtentReports report;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class PotentialLeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\sample.java:11: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.ExtentReports;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\sample.java:12: error: package com.aventstack.extentreports does not exist
[javac] import com.aventstack.extentreports.Status;
[javac] ^
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\sample.java:18: error: cannot find symbol
[javac] ExtentReports report;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class sample
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:22: error: cannot find symbol
[javac] report =new ExtentReports();
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentReportsManager
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:33: error: cannot find symbol
[javac] ExtentSparkReporter sparkReporter = new ExtentSparkReporter(reportFolderPath);
[javac] ^
[javac] symbol: class ExtentSparkReporter
[javac] location: class ExtentReportsManager
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:33: error: cannot find symbol
[javac] ExtentSparkReporter sparkReporter = new ExtentSparkReporter(reportFolderPath);
[javac] ^
[javac] symbol: class ExtentSparkReporter
[javac] location: class ExtentReportsManager
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\main\java\com\zoho\util\ExtentReportsManager.java:35: error: cannot find symbol
[javac] sparkReporter.config().setTheme(Theme.STANDARD);
[javac] ^
[javac] symbol: variable Theme
[javac] location: class ExtentReportsManager
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:84: error: cannot find symbol
[javac] test.log(Status.INFO, "Navigating---"+CONFIG.getProperty(URL) );
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:90: error: cannot find symbol
[javac] test.log(Status.INFO, "Clicking---"+xpathELe );
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:93: error: cannot find symbol
[javac] test.log(Status.INFO, "Clicking sucessful---"+xpathELe );
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:97: error: cannot find symbol
[javac] test.log(Status.INFO, "Typing in"+xpathEle+" Data---"+data) ;
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:99: error: cannot find symbol
[javac] test.log(Status.INFO, "Typing sucessfull in"+xpathEle+" Data---"+data) ;
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:185: error: cannot find symbol
[javac] test.log(Status.INFO, "Finding Row number of "+LeadName);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:188: error: cannot find symbol
[javac] test.log(Status.INFO, "total number of leads "+ leadNames.size());
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:193: error: cannot find symbol
[javac] test.log(Status.INFO, "Found Row number of "+LeadName +(rNum));
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:198: error: cannot find symbol
[javac] test.log(Status.INFO, " Row Not Found for "+LeadName);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:204: error: cannot find symbol
[javac] test.log(Status.INFO, " Clicking and waiting "+ locator_click);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:214: error: cannot find symbol
[javac] test.log(Status.INFO, " Element not found "+ locator_present);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:218: error: cannot find symbol
[javac] test.log(Status.INFO, "Getting text from "+locatorKey);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:231: error: cannot find symbol
[javac] test.log(Status.INFO, message);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:253: error: cannot find symbol
[javac] test.log(Status.INFO,"Screenshot-> "+ test.addScreenCaptureFromPath(System.getProperty("user.dir")+"//screenshots//"+screenshotFile));
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:285: error: cannot find symbol
[javac] test.log(Status.INFO, "Trying to login with " + username + ", " + password);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:300: error: cannot find symbol
[javac] test.log(Status.INFO, "Login Success");
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:305: error: cannot find symbol
[javac] test.log(Status.INFO, "Login Failed");
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:310: error: cannot find symbol
[javac] test.log(Status.INFO, "Selecting the date "+d);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\base\TestBase.java:342: error: cannot find symbol
[javac] test.log(Status.INFO, "Date Selection Successful "+d);
[javac] ^
[javac] symbol: variable Status
[javac] location: class TestBase
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LeadTest.java:32: error: cannot find symbol
[javac] test.log(Status.INFO, data.toString());
[javac] ^
[javac] symbol: variable Status
[javac] location: class LeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LeadTest.java:34: error: cannot find symbol
[javac] test.log(Status.SKIP, "The test is skipped as Runmode is N");
[javac] ^
[javac] symbol: variable Status
[javac] location: class LeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LeadTest.java:81: error: cannot find symbol
[javac] test.log(Status.FAIL, e.getMessage());
[javac] ^
[javac] symbol: variable Status
[javac] location: class LeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:36: error: cannot find symbol
[javac] test.log(Status.INFO, data.toString());
[javac] ^
[javac] symbol: variable Status
[javac] location: class LoginTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:38: error: cannot find symbol
[javac] test.log(Status.SKIP, "The test is skipped as Runmode is N");
[javac] ^
[javac] symbol: variable Status
[javac] location: class LoginTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\LoginTest.java:75: error: cannot find symbol
[javac] test.log(Status.FAIL, e.getMessage());
[javac] ^
[javac] symbol: variable Status
[javac] location: class LoginTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\PotentialLeadTest.java:35: error: cannot find symbol
[javac] test.log(Status.INFO, data.toString());
[javac] ^
[javac] symbol: variable Status
[javac] location: class PotentialLeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\PotentialLeadTest.java:37: error: cannot find symbol
[javac] test.log(Status.SKIP, "The test is skipped as Runmode is N");
[javac] ^
[javac] symbol: variable Status
[javac] location: class PotentialLeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\PotentialLeadTest.java:87: error: cannot find symbol
[javac] test.log(Status.FAIL, e.getMessage());
[javac] ^
[javac] symbol: variable Status
[javac] location: class PotentialLeadTest
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\sample.java:43: error: cannot find symbol
[javac] test.log(Status.INFO, "total number of leads "+ leadNames.size());
[javac] ^
[javac] symbol: variable Status
[javac] location: class sample
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\sample.java:48: error: cannot find symbol
[javac] test.log(Status.INFO, "Found Row number of Apple "+ rNum);
[javac] ^
[javac] symbol: variable Status
[javac] location: class sample
[javac] C:\Tools\TestingTools\Selenium2020\workspace\DataDriven_Zoho\src\test\java\com\zoho\testcase\sample.java:63: error: cannot find symbol
[javac] test.log(Status.FAIL, e.getMessage());
[javac] ^
[javac] symbol: variable Status
[javac] location: class sample
[javac] 63 errors
[javac] 4 warnings


A
Ashish Replied on 17/01/2021

Its not able to find the extent report classes

Extent report jars are not present at the path


Related Posts