Coder Social home page Coder Social logo

selenium-java-tests's Introduction

Feel free to reach out at https://automatethebox.blogspot.com/2014/01/selenium-webdriver-selenium-2-java.html to share any new suggesstion to improve the framework and add more features.

#Selenium Webdriver Java Tests

Description

This is Selenium 2 framework created using the latest Selenium 2 features with Java, TestNG and Maven and soon we gonna add some new technologies like ReportNG and Google Guice dependency injection framework.This framework is open to use as you want and mainly for those people who want to automate the web apps using Selenium 2 but needs some help to get Started. So when you use it don't forget to leave your comments and you can also report an issue/requests/ enhancements if you like, we will definitely look into that and provide the solution

Features

  1. PageObjects with LoadableComponent design Pattern [ http://code.google.com/p/selenium/wiki/DesignPatterns ]
  2. Object oriented Architecture
  3. Rich TestNG test framework support [ http://testng.org/doc/index.html ]
  4. Maven Support - Software project management and comprehension tool [ http://maven.apache.org/ ]
  5. Support execution on latest firefox and Google Chrome and Internet Explorer browsers [windows only]

Test Application

We have used functionally rich and well known Facebook as test application, so it would be easier to understand the framework and then implement the same for your project as per your requirements.

Automated Tests

  1. Login/Logout to Facebook.
  2. Facebook user status update - text status only.

Prerequisites Software/Tools

  1. Git [ http://git-scm.com/downloads ]
  2. Maven [ http://maven.apache.org/ ]
  3. Java Development Kit 8
  4. Java Runtime Environment 8
  5. IDE [ I prefer IntelliJ IDEA for development :) ]

Getting Started

  1. Open the Git bash and clone the project using below command on the target directory: git clone https://github.com/lalit-k/selenium-java-tests.git
  2. Once the project is cloned successfully go the the project directory and set the facebook user name and password values in testng-facebook.xml as:
  3. Open the windows command prompt 'cmd'/'terminal' and navigate to the project directory 'selenium-webdriver-tests'.
  4. Run the below command to start the tests. mvn clean test

selenium-java-tests's People

Contributors

dependabot[bot] avatar lalit-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

selenium-java-tests's Issues

Not able to login to facebook...

Lalit,, it seems that it does not login to the facebook,, it just write the login and password in the input field,, and wait.. even if the error below says it is related to the navAccountLink .. it did not even click the loginbutton.

any thought ?

FAILED CONFIGURATION: @afterclass logout
Facebook Logout
org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"navAccountLink"}
Command duration or timeout: 120.10 seconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'
System info: host: 'US154954', ip: '10.180.146.215', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_38'
Session ID: e56efd1e-113e-4c25-a808-6fbb23267558
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox, rotatable=false, locationContextEnabled=true, version=28.0, cssSelectorsEnabled=true, databaseEnabled=true
, handlesAlerts=true, browserConnectionEnabled=true, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:389)

Exception is thrown and and 1 failed and skipped 3

C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests [master +4 ~3 -0 !]> mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building selenium-java-tests 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ selenium-java-tests ---
[INFO] Deleting C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ selenium-java-tests ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ selenium-java-tests ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 12 source files to C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ selenium-java-tests ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ selenium-java-tests ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 3 source files to C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ selenium-java-tests ---
[INFO] Surefire report directory: C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports


T E S T S

Running TestSuite
...
... TestNG 6.8.2beta_20130330_0839 by CΘdric Beust ([email protected])
...

[TestRunner] Running the tests in 'Login/Logout' with parallel mode:false
[RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@f84386 priority: 10
[TestClass] Creating TestClass for [ClassImpl class=com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest]
[TestClass] Adding method UpdateFacebookStatusTest.updateTextStatus()[pri:0, instance:null] on TestClass class com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest
[XmlMethodSelector] Including method com.blogspot.automatethebox.application.facebook.abstract_scripts.login()
[MethodInheritance] AbstractAuthenticationTest.login(java.lang.String, java.lang.String)[pri:0, instance:null] DEPENDS ON AbstractTest.startBrowser(java.lang.String)[pri:0, instance:null]
[XmlMethodSelector] Including method com.blogspot.automatethebox.application.facebook.abstract_scripts.logout()
[MethodInheritance] AbstractTest.stopBrowser()[pri:0, instance:null] DEPENDS ON AbstractAuthenticationTest.logout()[pri:0, instance:null]
[XmlMethodSelector] Including method com.blogspot.automatethebox.application.facebook.test_scripts.updateTextStatus()
[SuiteRunner] Created 1 TestRunners
[TestRunner] Running test Login/Logout on 1 classes, included groups:[] excluded groups:[]
===== Test class
com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest
@BeforeClass AbstractTest.startBrowser(java.lang.String)[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]
@BeforeClass AbstractAuthenticationTest.login(java.lang.String, java.lang.String)[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]
@test UpdateFacebookStatusTest.updateTextStatus()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]
@afterclass AbstractAuthenticationTest.logout()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]

@afterclass AbstractTest.stopBrowser()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]

[Invoker 1073282] Keeping method AbstractTest.startBrowser(java.lang.String)[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1] for class [
TestClass name=class com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest]
[Invoker 1073282] Keeping method AbstractAuthenticationTest.login(java.lang.String, java.lang.String)[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatus
Test@1bca5f1] for class [TestClass name=class com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest]
[Invoker 1073282] Invoking @BeforeClass AbstractTest.startBrowser(java.lang.String)[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]
Failed to invoke configuration method com.blogspot.automatethebox.application.facebook.abstract_scripts.AbstractTest.startBrowser:com/google/common/base/Optional
[Invoker 1073282] Keeping method AbstractAuthenticationTest.logout()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1] for class [TestClas
s name=class com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest]
[Invoker 1073282] Keeping method AbstractTest.stopBrowser()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1] for class [TestClass name=cl
ass com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest]
[Invoker 1073282] Invoking @afterclass AbstractTest.stopBrowser()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]
===== Invoked methods
AbstractTest.startBrowser(java.lang.String)[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1]firefox 29140465
UpdateFacebookStatusTest.updateTextStatus()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1] 29140465

AbstractTest.stopBrowser()[pri:0, instance:com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest@1bca5f1] 29140465

Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\Facebook UI Selenium WebDriver Tests\Login_Logout.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\Facebook UI Selenium WebDriver Tests\Login_Logout.xml
FAILED CONFIGURATION: @BeforeClass startBrowser("firefox")
Start the Browser
java.lang.NoClassDefFoundError: com/google/common/base/Optional
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.loadCustomExtension(NewProfileExtensionConnection.java:156)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.addWebDriverExtensionIfNeeded(NewProfileExtensionConnection.java:148)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:192)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:96)
at com.blogspot.automatethebox.tools.selenium.WebDriverService.startDriver(WebDriverService.java:31)
at com.blogspot.automatethebox.application.facebook.abstract_scripts.AbstractTest.startBrowser(AbstractTest.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:217)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Optional
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 38 more

SKIPPED CONFIGURATION: @BeforeClass login
Facebook Login
SKIPPED CONFIGURATION: @afterclass logout
Facebook Logout
SKIPPED: updateTextStatus
Update Facebook user text status

Login/Logout
Tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 2

[TestNG] Time taken by org.testng.reporters.XMLReporter@1754ad2: 32 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@186db54: 41 ms
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\toc.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\Login_Logout.properties
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\index.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\main.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\groups.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods-alphabetical.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods-alphabetical.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods-alphabetical.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods-alphabetical.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods-alphabetical.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\classes.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\reporter-output.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\methods-not-run.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\Facebook UI Selenium WebDriver Tests\testng.xml.html
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\old\index.html
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@a32b: 341 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@8965fb: 76 ms
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\junitreports\TEST-com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest.xml
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@13582d: 25 ms
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\testng-failed.xml
Creating C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports\Facebook UI Selenium WebDriver Tests\testng-failed.xml
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 34 ms
Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 1.598 sec <<< FAILURE! - in TestSuite
startBrowser(com.blogspot.automatethebox.application.facebook.test_scripts.UpdateFacebookStatusTest) Time elapsed: 0.958 sec <<< FAILURE!
java.lang.NoClassDefFoundError: com/google/common/base/Optional
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.loadCustomExtension(NewProfileExtensionConnection.java:156)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.addWebDriverExtensionIfNeeded(NewProfileExtensionConnection.java:148)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:192)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:96)
at com.blogspot.automatethebox.tools.selenium.WebDriverService.startDriver(WebDriverService.java:31)
at com.blogspot.automatethebox.application.facebook.abstract_scripts.AbstractTest.startBrowser(AbstractTest.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:217)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Optional
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.loadCustomExtension(NewProfileExtensionConnection.java:156)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.addWebDriverExtensionIfNeeded(NewProfileExtensionConnection.java:148)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:80)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:192)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:96)
at com.blogspot.automatethebox.tools.selenium.WebDriverService.startDriver(WebDriverService.java:31)
at com.blogspot.automatethebox.application.facebook.abstract_scripts.AbstractTest.startBrowser(AbstractTest.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:217)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Results :

Failed tests:
UpdateFacebookStatusTest>AbstractTest.startBrowser:20 ╗ NoClassDefFound com/go...

Tests run: 4, Failures: 1, Errors: 0, Skipped: 3

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.257s
[INFO] Finished at: Wed Apr 16 18:18:35 EDT 2014
[INFO] Final Memory: 13M/32M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project selenium-java-tests: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\Users\jaehokim00\Documents\GitHub\selenium-java-tests [master +4 ~3 -0 !]>

Compilation Failure

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/syedahmed/QA/TIGERTEAM/PROJECT-SELENIUM-BROWSERSTACK/selenium-java-tests/src/main/java/com/blogspot/automatethebox/application/facebook/modules/UpdateStatusPanelImpl.java:[6,44] package org.openqa.selenium.browserlaunchers does not exist
[ERROR] /Users/syedahmed/QA/TIGERTEAM/PROJECT-SELENIUM-BROWSERSTACK/selenium-java-tests/src/main/java/com/blogspot/automatethebox/application/facebook/modules/UpdateStatusPanelImpl.java:[37,13] cannot find symbol
  symbol:   variable Sleeper
  location: class com.blogspot.automatethebox.application.facebook.modules.UpdateStatusPanelImpl
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.102 s
[INFO] Finished at: 2020-02-19T03:47:50-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project selenium-java-tests: Compilation failure: Compilation failure:
[ERROR] /Users/syedahmed/QA/TIGERTEAM/PROJECT-SELENIUM-BROWSERSTACK/selenium-java-tests/src/main/java/com/blogspot/automatethebox/application/facebook/modules/UpdateStatusPanelImpl.java:[6,44] package org.openqa.selenium.browserlaunchers does not exist
[ERROR] /Users/syedahmed/QA/TIGERTEAM/PROJECT-SELENIUM-BROWSERSTACK/selenium-java-tests/src/main/java/com/blogspot/automatethebox/application/facebook/modules/UpdateStatusPanelImpl.java:[37,13] cannot find symbol
[ERROR]   symbol:   variable Sleeper
[ERROR]   location: class com.blogspot.automatethebox.application.facebook.modules.UpdateStatusPanelImpl
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.