Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting cannot resolve for UniversalVideoListener.class #63

Open
sumeetpanjabi opened this issue May 11, 2019 · 4 comments
Open

Getting cannot resolve for UniversalVideoListener.class #63

sumeetpanjabi opened this issue May 11, 2019 · 4 comments

Comments

@sumeetpanjabi
Copy link

sumeetpanjabi commented May 11, 2019

I'm using video-recorder-testng with the latest version
In my test class I'm getting cannot resolve for UniversalVideoListener.class as seen in your testng example and import com.automation.remarks.testng.VideoListener; unused import for this. Please help @SergeyPirogov

@sumeetpanjabi
Copy link
Author

sumeetpanjabi commented May 11, 2019

I changed it to VideListener.class, but it gives an error if I provide video.properties

/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java -ea -javaagent:/Users/sumeetpanjabi/.m2/repository/org/aspectj/aspectjweaver/1.9.2/aspectjweaver-1.9.2.jar -Didea.test.cyclic.buffer.size=1048576 "-javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=57711:/Applications/IntelliJ IDEA CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/lib/tools.jar:/Users/sumeetpanjabi/Documents/AutomationFramework/allure-testng-example/target/test-classes:/Users/sumeetpanjabi/.m2/repository/org/testng/testng/6.14.3/testng-6.14.3.jar:/Users/sumeetpanjabi/.m2/repository/com/beust/jcommander/1.72/jcommander-1.72.jar:/Users/sumeetpanjabi/.m2/repository/org/apache-extras/beanshell/bsh/2.0b6/bsh-2.0b6.jar:/Users/sumeetpanjabi/.m2/repository/io/qameta/allure/allure-testng/2.10.0/allure-testng-2.10.0.jar:/Users/sumeetpanjabi/.m2/repository/io/qameta/allure/allure-java-commons/2.10.0/allure-java-commons-2.10.0.jar:/Users/sumeetpanjabi/.m2/repository/io/qameta/allure/allure-model/2.10.0/allure-model-2.10.0.jar:/Users/sumeetpanjabi/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.8/jackson-databind-2.9.8.jar:/Users/sumeetpanjabi/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar:/Users/sumeetpanjabi/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.8/jackson-core-2.9.8.jar:/Users/sumeetpanjabi/.m2/repository/org/apache/tika/tika-core/1.20/tika-core-1.20.jar:/Users/sumeetpanjabi/.m2/repository/org/jooq/joor-java-8/0.9.10/joor-java-8-0.9.10.jar:/Users/sumeetpanjabi/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar:/Users/sumeetpanjabi/.m2/repository/org/slf4j/slf4j-simple/1.7.21/slf4j-simple-1.7.21.jar:/Users/sumeetpanjabi/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar:/Users/sumeetpanjabi/.m2/repository/com/github/stephenc/monte/monte-screen-recorder/0.7.7.0/monte-screen-recorder-0.7.7.0.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-java/3.141.59/selenium-java-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-api/3.141.59/selenium-api-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/3.141.59/selenium-chrome-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/3.141.59/selenium-edge-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver/3.141.59/selenium-firefox-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-ie-driver/3.141.59/selenium-ie-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-opera-driver/3.141.59/selenium-opera-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/3.141.59/selenium-remote-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-safari-driver/3.141.59/selenium-safari-driver-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/org/seleniumhq/selenium/selenium-support/3.141.59/selenium-support-3.141.59.jar:/Users/sumeetpanjabi/.m2/repository/net/bytebuddy/byte-buddy/1.8.15/byte-buddy-1.8.15.jar:/Users/sumeetpanjabi/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar:/Users/sumeetpanjabi/.m2/repository/com/google/guava/guava/25.0-jre/guava-25.0-jre.jar:/Users/sumeetpanjabi/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/sumeetpanjabi/.m2/repository/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar:/Users/sumeetpanjabi/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar:/Users/sumeetpanjabi/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/Users/sumeetpanjabi/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar:/Users/sumeetpanjabi/.m2/repository/com/squareup/okhttp3/okhttp/3.11.0/okhttp-3.11.0.jar:/Users/sumeetpanjabi/.m2/repository/com/squareup/okio/okio/1.14.0/okio-1.14.0.jar:/Users/sumeetpanjabi/.m2/repository/com/automation-remarks/video-recorder-testng/2.0/video-recorder-testng-2.0.jar:/Users/sumeetpanjabi/.m2/repository/com/automation-remarks/video-recorder-core/2.0/video-recorder-core-2.0.jar:/Users/sumeetpanjabi/.m2/repository/org/aeonbits/owner/owner-java8/1.0.10/owner-java8-1.0.10.jar:/Users/sumeetpanjabi/.m2/repository/org/aeonbits/owner/owner/1.0.10/owner-1.0.10.jar:/Users/sumeetpanjabi/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/Users/sumeetpanjabi/.m2/repository/org/zeroturnaround/zt-exec/1.10/zt-exec-1.10.jar:/Users/sumeetpanjabi/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/Users/sumeetpanjabi/.m2/repository/org/awaitility/awaitility/3.1.6/awaitility-3.1.6.jar:/Users/sumeetpanjabi/.m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar:/Users/sumeetpanjabi/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/sumeetpanjabi/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar:/Users/sumeetpanjabi/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/sumeetpanjabi/.m2/repository/org/apache/httpcomponents/httpclient/4.5.7/httpclient-4.5.7.jar:/Users/sumeetpanjabi/.m2/repository/org/apache/httpcomponents/httpcore/4.4.11/httpcore-4.4.11.jar:/Users/sumeetpanjabi/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/sumeetpanjabi/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/Users/sumeetpanjabi/.m2/repository/org/json/json/20180813/json-20180813.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/testng/lib/jcommander.jar" org.testng.RemoteTestNGStarter -usedefaultlisteners false -socket57710 @w@/private/var/folders/l9/nsf27pc55px9nry1m4ywv0bh0000gp/T/idea_working_dirs_testng.tmp -temp /private/var/folders/l9/nsf27pc55px9nry1m4ywv0bh0000gp/T/idea_testng.tmp
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 20407
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
May 11, 2019 12:22:04 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
java.lang.UnsupportedOperationException: Cannot convert 'true               // default true' to java.lang.Boolean
	at org.aeonbits.owner.Util.unsupported(Util.java:139)
	at org.aeonbits.owner.Converters.unsupportedConversion(Converters.java:292)
	at org.aeonbits.owner.Converters.access$400(Converters.java:36)
	at org.aeonbits.owner.Converters$5.tryConvert(Converters.java:152)
	at org.aeonbits.owner.Converters.doConvert(Converters.java:284)
	at org.aeonbits.owner.Converters.convert(Converters.java:279)
	at org.aeonbits.owner.PropertiesInvocationHandler.resolveProperty(PropertiesInvocationHandler.java:90)
	at org.aeonbits.owner.PropertiesInvocationHandler.invoke(PropertiesInvocationHandler.java:67)
	at com.sun.proxy.$Proxy20.videoEnabled(Unknown Source)
	at com.automation.remarks.video.RecordingUtils.videoEnabled(RecordingUtils.java:43)
	at com.automation.remarks.testng.VideoListener.videoDisabled(VideoListener.java:50)
	at com.automation.remarks.testng.VideoListener.onTestFailure(VideoListener.java:41)
	at org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:67)
	at org.testng.internal.Invoker.runTestListeners(Invoker.java:1389)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1042)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.privateRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:505)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
	at org.testng.TestNG.runSuites(TestNG.java:1049)
	at org.testng.TestNG.run(TestNG.java:1017)
	at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)
Caused by: java.lang.IllegalArgumentException: true               // default true
	at com.sun.beans.editors.BooleanEditor.setAsText(BooleanEditor.java:59)
	at org.aeonbits.owner.Converters$5.tryConvert(Converters.java:149)
	... 27 more

Process finished with exit code 255

If I don't provide the properties, it records the video.

Any help here @SergeyPirogov

@SergeyPirogov
Copy link
Owner

Probably you placed wrong property. Based on error it should be boolean

@githubCast
Copy link

I think this copied from tutorial, where properties are commented with default values, e.g. : "video.enabled=false // default true"

@C888888888
Copy link

Hi,

I'm facing the issue described in the first comment (I'm getting cannot resolve for UniversalVideoListener.class as seen in your testng example and import) after downloading the latest version.
Didn't understand what was the solution for this.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants