Closed nirav1516 closed 3 years ago
Build url for reference: https://percy.io/56bc5714/percytest2/builds/11532147
Hey @nirav1516! Would you be able to share the full build logs? My guess is an exception happened during the test run, exiting the process. Hard to tell without full log output, though. Adding --verbose
would be helpful too
The test is successful. I do not see any error in the test. In fact it generates expected results. Only thing which is not working is percy snapshot. If running percy with java requires special set up, the documentation should be more detailed. There is not enough documentation available I guess. The docs are very high level. Wanted to run this with verbose again and now I see 500 internal server error without any reason or showing any proper error cause
[percy:config] Found config file: .percy.yml (0ms)
[percy:config] Using config:
{
version: 2,
snapshot: {
widths: [
375,
1280
],
minHeight: 1024,
percyCSS: ''
},
discovery: {
networkIdleTimeout: 100
},
static: {
baseUrl: '/',
files: '*/.{html,htm}',
ignore: ''
},
upload: {
files: '*/.{png,jpg,jpeg}',
ignore: ''
}
} (14ms)
[percy:client] Creating a new build... (12ms)
[percy:cli:exec:start] Error: 500 Internal Server Error
at IncomingMessage.
Looks like there was a bug shipped in the API that returned a 500 error. We deployed a fix 👍🏼
Thanks for the update. I can start the server now. But the 'Receiving Build' state is still there. I am pasting verbose logs for your reference. I am doing this POC for my org to use percy as a visual testing tool. Would love to get more help to get going so we can proceed with a tool that works seemlessly.
[percy:core] --------- (15573ms)
[percy:core] Handling snapshot: (0ms)
[percy:core] -> name: Home Page (4ms)
[percy:core] -> url: https://www.google.com/ (2ms)
[percy:core] -> widths: 375px, 1280px (3ms)
[percy:core] -> minHeight: 1024px (2ms)
[percy:core] -> enableJavaScript: true (2ms)
[percy:core] -> clientInfo: percy-java-selenium/1.0.0 (2ms)
[percy:core] -> environmentInfo: selenium-java; ChromeDriver (2ms)
[percy:core:page] Initialize page (8ms)
[percy:core:page] Resize page to 375x1024 (182ms)
[percy:core:page] Navigate to: https://www.google.com/ (4ms)
[percy:core:discovery] Handling request: https://www.google.com/ (34ms)
[percy:core:discovery] -> Serving root resource (0ms)
[percy:core:discovery] Handling request: https://apis.google.com/_/scs/abc-static/_/js/k=gapi.gapi.en.7yBiF1UUXzY.O/m=gapi_iframes,googleapis_client/rt=j/sv=1/d=1/ed=1/rs=AHpOoo-pEDm0pqtBuZIKGpxOGTcQloIhJw/cb=gapi.loaded_0 (22ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/m=cdos,dpf,hsm,jsa,d,csi/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/ed=1/dg=2/br=1/rs=ACT90oHdaOZOBilmYDMHxY_LVUONc5VpAw (2ms)
[percy:core:discovery] Handling request: https://www.gstatic.com/og/_/ss/k=og.qtm.p5u7jzeUVbM.L.W.O/m=qcwid/excm=qaaw,qadd,qaid,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhpr/d=1/ed=1/ct=zgms/rs=AA2YrTtsAAexam2hGEegHExNRQNi5hr_XA (1ms)
[percy:core:discovery] Handling request: https://www.gstatic.com/og/_/js/k=og.qtm.en_US.hGrHlfYx4xg.O/rt=j/m=qabr,q_d,qcwid,qapid,qald/exm=qaaw,qadd,qaid,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhpr/d=1/ed=1/rs=AA2YrTtK23H8SOhz0cpx5qXs67scLprALA (12ms)
[percy:core:discovery] Handling request: https://ogs.google.com/widget/app/so?bc=1&origin=https%3A%2F%2Fwww.google.com&cn=app&pid=1&spid=538&hl=en (1ms)
[percy:core:discovery] Handling request: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png (1ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=cdos,csi,d,dpf,hsm,jsa/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=DhPYme,NzU6V,aa,abd,async,dvl,fEVMic,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd?xjs=s1 (1ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=DhPYme,NzU6V,aa,abd,async,cdos,csi,d,dpf,dvl,fEVMic,hsm,jsa,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=LtQuz?xjs=s2 (0ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=DhPYme,LtQuz,NzU6V,aa,abd,async,cdos,csi,d,dpf,dvl,fEVMic,hsm,jsa,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=aLUfP?xjs=s2 (2ms)
[percy:core:discovery] Processing resource: https://www.gstatic.com/og/_/ss/k=og.qtm.p5u7jzeUVbM.L.W.O/m=qcwid/excm=qaaw,qadd,qaid,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhpr/d=1/ed=1/ct=zgms/rs=AA2YrTtsAAexam2hGEegHExNRQNi5hr_XA (344ms)
[percy:core:discovery] -> Skipping remote resource (0ms)
[percy:core:discovery] Handling request: https://www.google.com/gen_204?s=webhp&t=aft&atyp=csi&ei=nYHwYMTcOtHk-gSx4aGoCA&rt=wsrt.39,aft.382&imn=1&ima=0&imad=0&aftp=-1&bl=HBvl (5ms)
[percy:core:discovery] Handling request: https://www.google.com/images/searchbox/desktop_searchbox_sprites318_hr.webp (32ms)
[percy:core:discovery] Processing resource: https://apis.google.com/_/scs/abc-static/_/js/k=gapi.gapi.en.7yBiF1UUXzY.O/m=gapi_iframes,googleapis_client/rt=j/sv=1/d=1/ed=1/rs=AHpOoo-pEDm0pqtBuZIKGpxOGTcQloIhJw/cb=gapi.loaded_0 (6ms)
[percy:core:discovery] -> Skipping remote resource (1ms)
[percy:core:discovery] Processing resource: https://www.gstatic.com/og/_/js/k=og.qtm.en_US.hGrHlfYx4xg.O/rt=j/m=qabr,q_d,qcwid,qapid,qald/exm=qaaw,qadd,qaid,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhpr/d=1/ed=1/rs=AA2YrTtK23H8SOhz0cpx5qXs67scLprALA (18ms)
[percy:core:discovery] -> Skipping remote resource (0ms)
[percy:core:discovery] Processing resource: https://ogs.google.com/widget/app/so?bc=1&origin=https%3A%2F%2Fwww.google.com&cn=app&pid=1&spid=538&hl=en (87ms)
[percy:core:discovery] -> Skipping remote resource (0ms)
[percy:core:discovery] Processing resource: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=cdos,csi,d,dpf,hsm,jsa/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=DhPYme,NzU6V,aa,abd,async,dvl,fEVMic,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd?xjs=s1 (29ms)
[percy:core:discovery] -> sha: 4c9f1838342ac88ade904f34c3957fb750345a962b1ed1da464db69bd9bc0564 (1ms)
[percy:core:discovery] -> mimetype: text/javascript (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png (1ms)
[percy:core:discovery] -> sha: 5776cd87617eacec3bc00ebcf530d1924026033eda852f706c1a675a98915826 (0ms)
[percy:core:discovery] -> mimetype: image/png (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/gen_204?s=webhp&t=aft&atyp=csi&ei=nYHwYMTcOtHk-gSx4aGoCA&rt=wsrt.39,aft.382&imn=1&ima=0&imad=0&aftp=-1&bl=HBvl (1ms)
[percy:core:discovery] -> Skipping empty response (0ms)
[percy:core:discovery] Processing resource: https://www.google.com/images/searchbox/desktop_searchbox_sprites318_hr.webp (1ms)
[percy:core:discovery] -> sha: 73d788f86be22112bb53762545989c0f1bbdb7343161130952c9ba3834ff81e3 (1ms)
[percy:core:discovery] -> mimetype: image/webp (0ms)
[percy:core:discovery] Handling request: https://www.google.com/gen_204?atyp=csi&ei=nYHwYMTcOtHk-gSx4aGoCA&s=webhp&t=all&bl=HBvl&imn=1&ima=0&imad=0&aftp=-1&adh=&conn=onchange&ime=1&imex=1&imeh=0&imea=0&imeb=0&wh=1024&scp=0&net=dl.9100,ect.4g,rtt.0&mem=ujhs.10,tjhs.13,jhsl.3760,dm.8&sto=&sys=hc.16&rt=aft.382,aftqf.384,prt.382,iml.382,xjses.563,xjsee.599,xjs.599,dcl.600,ol.601,wsrt.39,cst.0,dnst.0,rqst.39,rspt.0,rqstt.0,unt.0,cstt.0,dit.423&zx=1626374572409 (41ms)
[percy:core:discovery] Processing resource: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=DhPYme,NzU6V,aa,abd,async,cdos,csi,d,dpf,dvl,fEVMic,hsm,jsa,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=LtQuz?xjs=s2 (1ms)
[percy:core:discovery] -> sha: 0bd37d3f0d1ebee2f82ba8dbd5cbdfe12a7a9756eafdbe809a2c6e514b7b513b (1ms)
[percy:core:discovery] -> mimetype: text/javascript (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=DhPYme,LtQuz,NzU6V,aa,abd,async,cdos,csi,d,dpf,dvl,fEVMic,hsm,jsa,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=aLUfP?xjs=s2 (1ms)
[percy:core:discovery] -> sha: 0893fda8045da833ff1651199d999f8a4867b74fb74377eb040d56e63baf73ca (0ms)
[percy:core:discovery] -> mimetype: text/javascript (1ms)
[percy:core:page] Page navigated (0ms)
[percy:core:page] Resize page to 1280x1024 (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/m=cdos,dpf,hsm,jsa,d,csi/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/ed=1/dg=2/br=1/rs=ACT90oHdaOZOBilmYDMHxY_LVUONc5VpAw (23ms)
[percy:core:discovery] -> sha: cdd5328ff526e828d6743baf90c8fe1533ede2c17603012f6fb63b81b9b26b4e (3ms)
[percy:core:discovery] -> mimetype: text/javascript (0ms)
[percy:core:discovery] Handling request: https://www.google.com/complete/search?q&cp=0&client=gws-wiz&xssi=t&gs_ri=gws-wiz&hl=en-CA&authuser=0&psi=nYHwYMTcOtHk-gSx4aGoCA.1626374572450&nolsbt=1&dpr=1 (22ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=cdos,csi,d,dpf,hsm,jsa/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=DhPYme,NzU6V,aa,abd,async,dvl,fEVMic,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd?xjs=s1 (1ms)
[percy:core:discovery] -> Resource cache hit (1ms)
[percy:core:discovery] Handling request: https://www.google.com/client_204?&atyp=i&biw=375&bih=1024&ei=nYHwYMTcOtHk-gSx4aGoCA (5ms)
[percy:core:network] Wait for 100ms idle (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/gen_204?atyp=csi&ei=nYHwYMTcOtHk-gSx4aGoCA&s=webhp&t=all&bl=HBvl&imn=1&ima=0&imad=0&aftp=-1&adh=&conn=onchange&ime=1&imex=1&imeh=0&imea=0&imeb=0&wh=1024&scp=0&net=dl.9100,ect.4g,rtt.0&mem=ujhs.10,tjhs.13,jhsl.3760,dm.8&sto=&sys=hc.16&rt=aft.382,aftqf.384,prt.382,iml.382,xjses.563,xjsee.599,xjs.599,dcl.600,ol.601,wsrt.39,cst.0,dnst.0,rqst.39,rspt.0,rqstt.0,unt.0,cstt.0,dit.423&zx=1626374572409 (3ms)
[percy:core:discovery] -> Skipping empty response (1ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=DhPYme,NzU6V,aa,abd,async,cdos,csi,d,dpf,dvl,fEVMic,hsm,jsa,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=LtQuz?xjs=s2 (47ms)
[percy:core:discovery] -> Resource cache hit (1ms)
[percy:core:discovery] Handling request: https://adservice.google.com/adsid/google/ui (1ms)
[percy:core:discovery] Handling request: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=DhPYme,LtQuz,NzU6V,aa,abd,async,cdos,csi,d,dpf,dvl,fEVMic,hsm,jsa,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=aLUfP?xjs=s2 (3ms)
[percy:core:discovery] -> Resource cache hit (0ms)
[percy:core:discovery] Processing resource: https://www.google.com/client_204?&atyp=i&biw=375&bih=1024&ei=nYHwYMTcOtHk-gSx4aGoCA (10ms)
[percy:core:discovery] -> Skipping empty response (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/complete/search?q&cp=0&client=gws-wiz&xssi=t&gs_ri=gws-wiz&hl=en-CA&authuser=0&psi=nYHwYMTcOtHk-gSx4aGoCA.1626374572450&nolsbt=1&dpr=1 (1ms)
[percy:core:discovery] -> sha: 04500310afc4b968a7e80da45f460d20a93889f3b5b3ba8d51fd6a71f8880e3a (0ms)
[percy:core:discovery] -> mimetype: application/json (1ms)
[percy:core] Snapshot taken: Home Page (107ms)
[percy:client] Creating snapshot: Home Page... (1ms)
[percy:core:page] Page closing (2ms)
[percy:client] Uploading resources for 11557004... (246ms)
[percy:client] Uploading resource: https://www.google.com/complete/search?q&cp=0&client=gws-wiz&xssi=t&gs_ri=gws-wiz&hl=en-CA&authuser=0&psi=nYHwYMTcOtHk-gSx4aGoCA.1626374572450&nolsbt=1&dpr=1... (1ms)
[percy:client] Uploading resource: https://www.google.com/xjs/_/js/k=xjs.s.en_GB.KB-qhlJrOf4.O/ck=xjs.s.lLdra0MSsUY.L.W.O/am=QEQABAAAAAAAIAAAAAAQgAQQAAAAYAwAAAAAAACAIAABicGCAACAIfMSMAAAgAAAmCOg4IeDAgKAAAAAgBHYFxDw3wQAXAKbMAAAAAAAAATAJZBRakCiIIAAAAAAxLJ6EQAIASA/d=1/exm=cdos,csi,d,dpf,hsm,jsa/ed=1/dg=2/br=1/rs=ACT90oG7sgKCl50auYJqrZ-LWeEr0gDUAA/m=DhPYme,NzU6V,aa,abd,async,dvl,fEVMic,mUpTid,mu,sb_wiz,sf,sonic,spch,xz7cCd?xjs=s1... (1ms)
[percy:client] Uploading resource: /percy.1626374572650.log... (301ms)
[percy:client] Uploading resource: https://www.google.com/... (322ms)
[percy:client] Finalizing snapshot 650160154... (414ms)
Would you be able to provide the full logs for the full test run? I don't see any issues in those logs that are provided.
Hello @Robdel12 This is the entire percy logs. It abruptly ends after "Finalizing snapshot" step. When I just run snapshot command, i.e. npx percy snapshot snapshots2.yml -v, it works and it finized with below lines: Finalized snapshot xxxx Finalizing Build xxx Finalized build #n
I do not see none of these when I run it with SDK. So, there is some issue for sure. If you tell me specifically what logs(other than percy) you are looking for, I can see what I can do.
Hey @nirav1516! I'm looking for the full test logs. Everything from npx percy exec ...
to the final log from the test run output
This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.
Hi @Robdel12
We could resolve the issue by removing a "node kill" step in our framework. Here are the logs for the issue
-----------------------
INFO] -----------------< UNIFIEDFRAMEWORK:UNIFIEDFRAMEWORK >------------------
[INFO] Building UNIFIEDFRAMEWORK 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ UNIFIEDFRAMEWORK ---
com.webapp.testCases.Test_Percy
Jul 21, 2021 12:03:19 PM com.framework.fwfiles.ExecutionListener onExecutionStart
INFO: ############ START ###########
Starting ChromeDriver 91.0.4472.19 (1bf021f248676a0b2ab3ee0561d83a59e424c23e-refs/branch-heads/4472@{#288}) on port 16834
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Jul 21, 2021 12:03:22 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[percy:core] --------- (13867ms)
[percy:core] Handling snapshot: (0ms)
[percy:core] -> name: Java example (4ms)
[percy:core] -> url: https://www.google.com/ (2ms)
[percy:core] -> widths: 375px, 1280px (2ms)
[percy:core] -> minHeight: 1024px (2ms)
[percy:core] -> enableJavaScript: false (3ms)
[percy:core] -> clientInfo: percy-java-selenium/1.0.0 (2ms)
[percy:core] -> environmentInfo: selenium-java; ChromeDriver (3ms)
[percy:core:page] Initialize page (10ms)
[percy:core:page] Resize page to 375x1024 (301ms)
[percy:core:page] Navigate to: https://www.google.com/ (5ms)
[percy:core:discovery] Handling request: https://www.google.com/ (40ms)
[percy:core:discovery] -> Serving root resource (1ms)
[percy:core:discovery] Handling request: https://www.gstatic.com/og/_/ss/k=og.qtm.p5u7jzeUVbM.L.W.O/m=qcwid/excm=qaaw,qadd,qaid,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhpr/d=1/ed=1/ct=zgms/rs=AA2YrTtsAAexam2hGEegHExNRQNi5hr_XA (18ms)
[percy:core:discovery] Handling request: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png (3ms)
[percy:core:discovery] Handling request: https://ogs.google.com/widget/app/so?bc=1&origin=https%3A%2F%2Fwww.google.com&cn=app&pid=1&spid=538&hl=en (3ms)
[percy:core:discovery] Handling request: https://www.google.com/images/searchbox/desktop_searchbox_sprites318_hr.webp (29ms)
[percy:core:discovery] Processing resource: https://www.gstatic.com/og/_/ss/k=og.qtm.p5u7jzeUVbM.L.W.O/m=qcwid/excm=qaaw,qadd,qaid,qein,qhaw,qhbr,qhch,qhga,qhid,qhin,qhpr/d=1/ed=1/ct=zgms/rs=AA2YrTtsAAexam2hGEegHExNRQNi5hr_XA (2949ms)
[percy:core:discovery] -> Skipping remote resource (0ms)
[percy:core:discovery] Processing resource: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png (25ms)
[percy:core:discovery] -> sha: 5776cd87617eacec3bc00ebcf530d1924026033eda852f706c1a675a98915826 (0ms)
[percy:core:discovery] -> mimetype: image/png (2ms)
[percy:core:page] Page navigated (0ms)
[percy:core:page] Resize page to 1280x1024 (1ms)
[percy:core:discovery] Processing resource: https://www.google.com/images/searchbox/desktop_searchbox_sprites318_hr.webp (1ms)
[percy:core:discovery] -> sha: 73d788f86be22112bb53762545989c0f1bbdb7343161130952c9ba3834ff81e3 (0ms)
[percy:core:discovery] -> mimetype: image/webp (1ms)
[percy:core:network] Wait for 100ms idle (2ms)
[percy:core:discovery] Processing resource: https://ogs.google.com/widget/app/so?bc=1&origin=https%3A%2F%2Fwww.google.com&cn=app&pid=1&spid=538&hl=en (45ms)
[percy:core:discovery] -> Skipping remote resource (0ms)
[percy:core] Snapshot taken: Java example (57ms)
[percy:client] Creating snapshot: Java example... (1ms)
[percy:core:page] Page closing (4ms)
===============================================
Command line suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================
Jul 21, 2021 12:03:31 PM com.framework.fwfiles.CommandHandler runCommand
INFO: COMMAND TO EXECUTE [cmd.exe, /C, taskkill, /F, /IM, node.exe]
[percy:client] Uploading resources for 11659749... (228ms)
[percy:client] Uploading resource: /percy.1626883411848.log... (1ms)
[percy:client] Uploading resource: https://www.google.com/... (2ms)
[percy:client] Finalizing snapshot 656080421... (588ms)
D:\Backend_Git\UNIFIEDAUTOMATIONFRAMEWORK\UNIFIEDFRAMEWORK>Jul 21, 2021 12:03:34 PM com.framework.fwfiles.CommandHandler runCommand
INFO: **COMMAND OUTPUT**[SUCCESS: The process "node.exe" with PID 104320 has been terminated., SUCCESS: The process "node.exe" with PID 14624 has been terminated.]
true
RUN DURATION ====== 00:00:12
manual effort mins: 0
manual effort cost: 0.0
Jul 21, 2021 12:03:34 PM com.framework.fwfiles.CommandHandler runCommand
INFO: COMMAND TO EXECUTE [cmd.exe, /C, taskkill, /F, /IM, chromedriver.exe]
Jul 21, 2021 12:03:36 PM com.framework.fwfiles.CommandHandler runCommand
INFO: **COMMAND OUTPUT**[SUCCESS: The process "chromedriver.exe" with PID 66036 has been terminated.]
Jul 21, 2021 12:03:36 PM com.framework.fwfiles.CommandHandler runCommand
INFO: COMMAND TO EXECUTE [cmd.exe, /C, ..\Results\2021_07_21_120318\TestSuiteResults.html]
Jul 21, 2021 12:03:40 PM com.framework.fwfiles.CommandHandler runCommand
INFO: **COMMAND OUTPUT**[]
Jul 21, 2021 12:03:40 PM com.framework.fwfiles.ExecutionListener onExecutionFinish
INFO: ############ END ###########
Main thread........
-------------
Seems like percy works asynchronously. Is it possible of it to work synchronously so that once the control goes out of percy snapshot, it can be assumed to be done.
Hey @nirav1516! If there's a process in your maven build that kills all node processes, it won't work with Percy. Percy is a parent process to your test command. When you run percy exec -- mvn test
(or whatever the subcommand topercy exec
is), mvn test
is spawned by @percy/cli
. Killing Node processes means Percy will always be stopped at that point in the script. And how abrupt it is, Percy's CLI has no time to clean up the sub process & finalize the Percy build.
Trying to get percy running on my local machine. Things seem to be set as I can see in logs that percy has started and snapshot is taken. But after that, I am not able to see my snapshots on the percy portal. The builds are in "Receiving build" state. They are stuck there. I am following java-selenium turorial from here: https://docs.percy.io/docs/java-selenium
I see these: [percy] Percy has started! [percy] Snapshot taken: Home Page
But I do not see any of these:
[percy] Created build #1: https://percy.io/[your-project]
[percy] Stopping percy... [percy] Finalized build #1: https://percy.io/[your-project] [percy] Done!
Am I missing something?