percy / example-percy-java-selenium

Example app demonstrating Percy's Java Selenium integration.
https://docs.percy.io/v1/docs/java-selenium-testing-tutorial
Other
5 stars 26 forks source link

Percy throws "not started" message though it is started #51

Closed geekyPiyush closed 3 years ago

geekyPiyush commented 3 years ago

I have cloned the repository https://github.com/percy/example-percy-java-selenium and trying to do a POC around Percy with Java and Selenium

To execute the percy I have installed @percy/agent and starting percy via this module. However, when executing the command

_"./nodemodules/.bin/percy exec -- mvn test"

My percy is getting started and then maven tests execute. But while taking snapshots where command "percy.snapshot()" is mentioned, it throws message as "Percy is not running, disabling snapshots"

Snapshot of execution below

image

Robdel12 commented 3 years ago

Hey @geekyPiyush! I'm not quite sure I follow what's going on here. Percy agent has been deprecated/removed from the latest example app. Can you reclone and try again?

geekyPiyush commented 3 years ago

@Robdel12 I somehow figured out the solution. I was using the percy maven lib version 1.0.0 which seems to be the latest one. However when I reverted to an old version 0.1.3 it resolved the issue and started taking snapshots.

Robdel12 commented 3 years ago

Gotcha! That makes sense -- that's an old version of the SDK. @percy/cli will work with both versions of the Java SDK. You'll want to upgrade to the latest -- 0.x & @percy/agent aren't supported anymore. https://docs.percy.io/docs/java-selenium#upgrading