Open Neeraja-Reddy-1 opened 2 years ago
There is some kind of memory limit on the size of the individual json objects that get generated. Are you setting the property removeOutput to true on the reportAggregator? that may help
Rich
On Thu, Oct 28, 2021 at 1:08 AM Neeraja-Reddy-1 @.***> wrote:
Locally working correctly. But If I run on Remote selenium hub all tests gets executed but report is not generated if there many test steps (more than 20).
Throws Error while aggregating report.
INFO @wdio/cli:launcher: Run onComplete hook SyntaxError: Unexpected end of JSON input at JSON.parse () at ReportAggregator.createReport @./wdio-html-reporter/src/reportAggregator.js:89:35) at /opt/wdio1635406367463.config.js:1:2032 at Object.onComplete (/opt/wdio1635406367463.config.js:1:2274) at Promise.all.onCompleteHook.map @./cli/build/utils.js:67:19) at Array.map () at Object.runOnCompleteHook @./cli/build/utils.js:65:39) at Launcher.run @./cli/build/launcher.js:64:53) at process._tickCallback (internal/process/next_tick.js:68:7)
[image: image] https://user-images.githubusercontent.com/93314191/139213409-75099a4c-a879-48bc-aaf6-d276bb8e5720.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEMF6PTGB5R2FS2ZJ2LUJEAEJANCNFSM5G4G73VA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
it looks like in the latest version removeOutput defaults to true. can you look in the json files and see if the test blocks have data in the output propert? thanks
On Thu, Oct 28, 2021 at 2:57 PM Rich Peters @.***> wrote:
There is some kind of memory limit on the size of the individual json objects that get generated. Are you setting the property removeOutput to true on the reportAggregator? that may help
Rich
On Thu, Oct 28, 2021 at 1:08 AM Neeraja-Reddy-1 @.***> wrote:
Locally working correctly. But If I run on Remote selenium hub all tests gets executed but report is not generated if there many test steps (more than 20).
Throws Error while aggregating report.
INFO @wdio/cli:launcher: Run onComplete hook SyntaxError: Unexpected end of JSON input at JSON.parse () at ReportAggregator.createReport @./wdio-html-reporter/src/reportAggregator.js:89:35) at /opt/wdio1635406367463.config.js:1:2032 at Object.onComplete (/opt/wdio1635406367463.config.js:1:2274) at Promise.all.onCompleteHook.map @./cli/build/utils.js:67:19) at Array.map () at Object.runOnCompleteHook @./cli/build/utils.js:65:39) at Launcher.run @./cli/build/launcher.js:64:53) at process._tickCallback (internal/process/next_tick.js:68:7)
[image: image] https://user-images.githubusercontent.com/93314191/139213409-75099a4c-a879-48bc-aaf6-d276bb8e5720.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEMF6PTGB5R2FS2ZJ2LUJEAEJANCNFSM5G4G73VA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thank you the Inputs. I am facing one more problem , On afterTest taking screenshots browser.saveScreenshot(filepath). Screenshots size is of more than 700KB. Please help me how to decrease the size while saving screenshots , after each test execution.
That is very odd that your images are that large. on a test with a 1600x1200 screen most of mine are between 70 to 200K that will certainly cause you and issue if the files are that large. II would make your screen size smailler. I may have to investigate keeping the screenshots as links instead of inlining. that would make most of the issues go away
Rich .
On Mon, Nov 8, 2021 at 7:43 PM Neeraja-Reddy-1 @.***> wrote:
Thank you the Inputs. I am facing one more problem , On afterTest taking screenshots browser.saveScreenshot(filepath). Screenshots size is of more than 700KB. Please help me how to decrease the size while saving screenshots , after each test execution.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/75#issuecomment-963789030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEIPGLDC3QTUSEVOFL3ULCKBZANCNFSM5G4G73VA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I made a change to save screenshots as links to a relative file instead of encoding base64. Can you try this and see if it fixes your issue. having problem pushing to github but I will publish to npm shortly
Locally working correctly. But If I run on Remote selenium hub all tests gets executed but report is not generated if there many test steps (more than 20).
Throws Error while aggregating report.
INFO @wdio/cli:launcher: Run onComplete hook SyntaxError: Unexpected end of JSON input at JSON.parse () at ReportAggregator.createReport (/opt/node_modules/@rpii/wdio-html-reporter/src/reportAggregator.js:89:35) at /opt/wdio1635406367463.config.js:1:2032 at Object.onComplete (/opt/wdio1635406367463.config.js:1:2274) at Promise.all.onCompleteHook.map (/opt/node_modules/@wdio/cli/build/utils.js:67:19) at Array.map () at Object.runOnCompleteHook (/opt/node_modules/@wdio/cli/build/utils.js:65:39) at Launcher.run (/opt/node_modules/@wdio/cli/build/launcher.js:64:53) at process._tickCallback (internal/process/next_tick.js:68:7)
Hi I am also facing same issue, how to resolve this error
it looks like in the latest version removeOutput defaults to true. can you look in the json files and see if the test blocks have data in the output propert? thanks … On Thu, Oct 28, 2021 at 2:57 PM Rich Peters @.> wrote: There is some kind of memory limit on the size of the individual json objects that get generated. Are you setting the property removeOutput to true on the reportAggregator? that may help Rich On Thu, Oct 28, 2021 at 1:08 AM Neeraja-Reddy-1 @.> wrote: > Locally working correctly. But If I run on Remote selenium hub all tests > gets executed but report is not generated if there many test steps (more > than 20). > > Throws Error while aggregating report. > > INFO @wdio/cli:launcher: Run onComplete hook > SyntaxError: Unexpected end of JSON input > at JSON.parse () > at ReportAggregator.createReport > @./wdio-html-reporter/src/reportAggregator.js:89:35) > at /opt/wdio1635406367463.config.js:1:2032 > at Object.onComplete (/opt/wdio1635406367463.config.js:1:2274) > at Promise.all.onCompleteHook.map > @./cli/build/utils.js:67:19) > at Array.map () > at Object.runOnCompleteHook > @./cli/build/utils.js:65:39) > at Launcher.run @./cli/build/launcher.js:64:53) > at process._tickCallback (internal/process/next_tick.js:68:7) > > [image: image] > https://user-images.githubusercontent.com/93314191/139213409-75099a4c-a879-48bc-aaf6-d276bb8e5720.png > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <#75>, or unsubscribe > https://github.com/notifications/unsubscribe-auth/AEABIEMF6PTGB5R2FS2ZJ2LUJEAEJANCNFSM5G4G73VA > . > Triage notifications on the go with GitHub Mobile for iOS > https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 > or Android > https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. > >
Hi, I am also facing the same issue ,how to resolve this issue and could you please help me
Is this with the latest version which uses big json to stream the json and has no memory limitation?
Rich
On Thu, May 26, 2022 at 6:10 PM bhavya my @.***> wrote:
it looks like in the latest version removeOutput defaults to true. can you look in the json files and see if the test blocks have data in the output propert? thanks … <#m4221874526329593285> On Thu, Oct 28, 2021 at 2:57 PM Rich Peters @.> wrote: There is some kind of memory limit on the size of the individual json objects that get generated. Are you setting the property removeOutput to true on the reportAggregator? that may help Rich On Thu, Oct 28, 2021 at 1:08 AM Neeraja-Reddy-1 @.> wrote: > Locally working correctly. But If I run on Remote selenium hub all tests > gets executed but report is not generated if there many test steps (more > than 20). > > Throws Error while aggregating report. > > INFO @wdio/cli:launcher: Run onComplete hook > SyntaxError: Unexpected end of JSON input > at JSON.parse () > at ReportAggregator.createReport > @.*/wdio-html-reporter/src/reportAggregator.js:89:35)
at /opt/wdio1635406367463.config.js:1:2032 > at Object.onComplete (/opt/wdio1635406367463.config.js:1:2274) > at Promise.all.onCompleteHook.map > @./cli/build/utils.js:67:19) > at Array.map () > at Object.runOnCompleteHook > @./cli/build/utils.js:65:39) at Launcher.run @.*/cli/build/launcher.js:64:53) > at process._tickCallback (internal/process/next_tick.js:68:7) > > [image: image] > https://user-images.githubusercontent.com/93314191/139213409-75099a4c-a879-48bc-aaf6-d276bb8e5720.png
— > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <#75 https://github.com/rpii/wdio-html-reporter/issues/75>, or unsubscribe > https://github.com/notifications/unsubscribe-auth/AEABIEMF6PTGB5R2FS2ZJ2LUJEAEJANCNFSM5G4G73VA . > Triage notifications on the go with GitHub Mobile for iOS > https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android > https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi, I am also facing the same issue ,how to resolve this issue and could you please help me
— Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/75#issuecomment-1139188390, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEK2TFIJVCZZDHCEF3TVMAOGFANCNFSM5G4G73VA . You are receiving this because you commented.Message ID: @.***>
Locally working correctly. But If I run on Remote selenium hub all tests gets executed but report is not generated if there many test steps (more than 20).
Throws Error while aggregating report.
INFO @wdio/cli:launcher: Run onComplete hook SyntaxError: Unexpected end of JSON input at JSON.parse ()
at ReportAggregator.createReport (/opt/node_modules/@rpii/wdio-html-reporter/src/reportAggregator.js:89:35)
at /opt/wdio1635406367463.config.js:1:2032
at Object.onComplete (/opt/wdio1635406367463.config.js:1:2274)
at Promise.all.onCompleteHook.map (/opt/node_modules/@wdio/cli/build/utils.js:67:19)
at Array.map ()
at Object.runOnCompleteHook (/opt/node_modules/@wdio/cli/build/utils.js:65:39)
at Launcher.run (/opt/node_modules/@wdio/cli/build/launcher.js:64:53)
at process._tickCallback (internal/process/next_tick.js:68:7)