I am getting following error message when practicing module 21 using Excel 2016:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
at readingxls.Xls_Reader.<init>(Xls_Reader.java:40)
at readingxls.Testing_xlsx.main(Testing_xlsx.java:9)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
Can you please suggests ???????
You need to add the XML beans dependency to your class path.
https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans/2.6.0
[quote="qtpselenium.supp0rt@gmail.com":30yd8qiv]You need to add the XML beans dependency to your class path.
https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans/2.6.0[/quote:30yd8qiv]
thanks!!!!!!!!!!!!
i am practicing module 21 . Trying to run with ANT. When i use command ant compile, i am getting following error:Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\mchow>
C:\Users\mchow>cd C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test
C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test>ant compile
Buildfile: C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build.xml
setClassPath:
init:
clean:
[delete] Deleting directory C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build
compile:
[echo] making directory...
[mkdir] Created dir: C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build
[echo] classpath------: C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\SaxonLiaison.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\commons-beanutils-1.8.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\derbyclient.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\dom4j-1.1.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\eclipselink-2.0.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\flash-selenium.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\javax.persistence-2.0.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\log4j-1.2.14.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\logging-selenium-1.2.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\mail.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\mysql-connector-java-5.0.7-bin.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\poi-3.6-20091214.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\poi-ooxml-3.6-20091214.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\poi-ooxml-schemas-3.6-20091214.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\saxon-8.7.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver-sources.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver-test-sources.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver-tests.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-server-coreless.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-server-sources.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-server.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\testng-xslt-maven-plugin-test-0.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\testng.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\validation-api-1.0.0.GA.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\xmlbeans-2.3.0.jar
[echo] compiling...
[javac] Compiling 9 source files to C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\AppKeyword.java:6: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:13: error: package org.junit does not exist
[javac] import org.junit.Assert;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:23: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:24: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.LogStatus;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\AppKeyword.java:11: error: cannot find symbol
[javac] public AppKeyword(ExtentTest test) throws IOException {
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class AppKeyword
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:32: error: cannot find symbol
[javac] ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:35: error: cannot find symbol
[javac] public GenericKeywords(ExtentTest test) throws IOException {
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:6: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:7: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.LogStatus;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:13: error: cannot find symbol
[javac] ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class Keywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:15: error: cannot find symbol
[javac] public Keywords(ExtentTest test) {
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class Keywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:10: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.DisplayOrder;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:11: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentReports;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:14: error: cannot find symbol
[javac] private static ExtentReports extent;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:16: error: cannot find symbol
[javac] public static ExtentReports getInstance() {
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:15: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentReports;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:16: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:17: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.LogStatus;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:28: error: cannot find symbol
[javac] ExtentReports rep= ExtentManager.getInstance();//call getinstance function by class name
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:29: error: cannot find symbol
[javac] ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:48: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "opening browser");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:59: error: cannot find symbol
[javac] driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
[javac] ^
[javac] symbol: method timeouts()
[javac] location: interface Options
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:60: error: cannot find symbol
[javac] driver.manage().window().maximize();
[javac] ^
[javac] symbol: method window()
[javac] location: interface Options
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:69: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "navigating"+prop.getProperty(url));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:74: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "clicking"+prop.getProperty(locator));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:82: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "typing in "+prop.getProperty(locator));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:93: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "closing browser");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:110: error: cannot find symbol
[javac] test.log(LogStatus.FAIL, "unable to find "+prop.getProperty(locator));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:111: error: cannot find symbol
[javac] Assert.fail("failur to find locator"+locator);// if element not found fail the test cases
[javac] ^
[javac] symbol: variable Assert
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:135: error: cannot find symbol
[javac] test.log(LogStatus.FAIL, "failure test cases ");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:50: error: cannot find symbol
[javac] test.log(LogStatus.INFO, tcid+" "+keyword+" "+object+" "+data);
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Keywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:20: error: cannot find symbol
[javac] extent = new ExtentReports(Constants.REPORT_PATH+fileName, true, DisplayOrder.NEWEST_FIRST);
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:20: error: cannot find symbol
[javac] extent = new ExtentReports(Constants.REPORT_PATH+fileName, true, DisplayOrder.NEWEST_FIRST);
[javac] ^
[javac] symbol: variable DisplayOrder
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:38: error: cannot find symbol
[javac] test.log(LogStatus.INFO, table.toString());//comple data will come to report
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:41: error: cannot find symbol
[javac] test.log(LogStatus.SKIP, "skipping the test since runmode is no");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:44: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "starting Gmail test");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:55: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "executing keywords");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:58: error: cannot find symbol
[javac] test.log(LogStatus.PASS, " Gmail test pass");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] 38 errors
BUILD FAILED
C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build.xml:79: Compile failed; see the compiler error output for details.
Total time: 3 seconds
C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test>ant compile
Buildfile: C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build.xml
setClassPath:
init:
clean:
[delete] Deleting directory C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build
compile:
[echo] making directory...
[mkdir] Created dir: C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build
[echo] classpath------: C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\SaxonLiaison.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\commons-beanutils-1.8.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\derbyclient.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\dom4j-1.1.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\eclipselink-2.0.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\flash-selenium.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\javax.persistence-2.0.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\log4j-1.2.14.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\logging-selenium-1.2.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\mail.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\mysql-connector-java-5.0.7-bin.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\poi-3.6-20091214.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\poi-ooxml-3.6-20091214.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\poi-ooxml-schemas-3.6-20091214.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\saxon-8.7.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver-sources.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver-test-sources.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver-tests.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-java-client-driver.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-server-coreless.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-server-sources.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\selenium-server.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\testng-xslt-maven-plugin-test-0.0.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\testng.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\validation-api-1.0.0.GA.jar:C:\Users\mchow\Downloads\Selenium_Pack_Nov\Selenium_Pack_Nov\jars\xmlbeans-2.3.0.jar
[echo] compiling...
[javac] Compiling 9 source files to C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\AppKeyword.java:6: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:13: error: package org.junit does not exist
[javac] import org.junit.Assert;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:23: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:24: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.LogStatus;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\AppKeyword.java:11: error: cannot find symbol
[javac] public AppKeyword(ExtentTest test) throws IOException {
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class AppKeyword
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:32: error: cannot find symbol
[javac] ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:35: error: cannot find symbol
[javac] public GenericKeywords(ExtentTest test) throws IOException {
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:6: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:7: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.LogStatus;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:13: error: cannot find symbol
[javac] ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class Keywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:15: error: cannot find symbol
[javac] public Keywords(ExtentTest test) {
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class Keywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:10: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.DisplayOrder;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:11: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentReports;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:14: error: cannot find symbol
[javac] private static ExtentReports extent;
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:16: error: cannot find symbol
[javac] public static ExtentReports getInstance() {
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:15: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentReports;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:16: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.ExtentTest;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:17: error: package com.relevantcodes.extentreports does not exist
[javac] import com.relevantcodes.extentreports.LogStatus;
[javac] ^
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:28: error: cannot find symbol
[javac] ExtentReports rep= ExtentManager.getInstance();//call getinstance function by class name
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:29: error: cannot find symbol
[javac] ExtentTest test;
[javac] ^
[javac] symbol: class ExtentTest
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:48: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "opening browser");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:59: error: cannot find symbol
[javac] driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
[javac] ^
[javac] symbol: method timeouts()
[javac] location: interface Options
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:60: error: cannot find symbol
[javac] driver.manage().window().maximize();
[javac] ^
[javac] symbol: method window()
[javac] location: interface Options
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:69: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "navigating"+prop.getProperty(url));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:74: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "clicking"+prop.getProperty(locator));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:82: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "typing in "+prop.getProperty(locator));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:93: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "closing browser");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:110: error: cannot find symbol
[javac] test.log(LogStatus.FAIL, "unable to find "+prop.getProperty(locator));
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:111: error: cannot find symbol
[javac] Assert.fail("failur to find locator"+locator);// if element not found fail the test cases
[javac] ^
[javac] symbol: variable Assert
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\GenericKeywords.java:135: error: cannot find symbol
[javac] test.log(LogStatus.FAIL, "failure test cases ");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class GenericKeywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\core\hybrid\Keywords.java:50: error: cannot find symbol
[javac] test.log(LogStatus.INFO, tcid+" "+keyword+" "+object+" "+data);
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Keywords
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:20: error: cannot find symbol
[javac] extent = new ExtentReports(Constants.REPORT_PATH+fileName, true, DisplayOrder.NEWEST_FIRST);
[javac] ^
[javac] symbol: class ExtentReports
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\main\java\com\selenium\utility\ExtentManager.java:20: error: cannot find symbol
[javac] extent = new ExtentReports(Constants.REPORT_PATH+fileName, true, DisplayOrder.NEWEST_FIRST);
[javac] ^
[javac] symbol: variable DisplayOrder
[javac] location: class ExtentManager
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:38: error: cannot find symbol
[javac] test.log(LogStatus.INFO, table.toString());//comple data will come to report
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:41: error: cannot find symbol
[javac] test.log(LogStatus.SKIP, "skipping the test since runmode is no");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:44: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "starting Gmail test");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:55: error: cannot find symbol
[javac] test.log(LogStatus.INFO, "executing keywords");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\src\test\java\com\selenium\testcases\Gmaillogin.java:58: error: cannot find symbol
[javac] test.log(LogStatus.PASS, " Gmail test pass");
[javac] ^
[javac] symbol: variable LogStatus
[javac] location: class Gmaillogin
[javac] 38 errors
BUILD FAILED
C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test\build.xml:79: Compile failed; see the compiler error output for details.
Total time: 3 seconds
C:\Users\mchow\eclipse-workspace\core_hybrid_framework_test>
please help!!!!!!!!!!!!!!!
It's basically a problem with Jar files. The versions mentioned on POM and actual jar file versions should match. And Additionally, you cannot use .m2 directory for this.
All the jar files need to be in one place only.