SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.74k stars 740 forks source link

Selenium-Side-Runner Not Saving Test Results in File. #1663

Open elnot117 opened 1 year ago

elnot117 commented 1 year ago

My issue that although my tests run and the "results" are saved to my specified folder. They all end up being empty with no contents.

Using this command line to have a headless result and then save the test results to a file:

selenium-side-runner -c "goog:chromeOptions.args=[--headless,--nogpu] browserName=chrome" "C:\Users\Solis_a\Selenium Projects\DummyTest.side" --output-directory="C:\Users\Solis_a\Selenium Projects\Results"

👉 Please follow one of these issue templates 👈

Note: to keep the backlog clean and actionable, issues may be immediately closed if they do not follow one of the above issue templates.

toddtarsi commented 1 year ago

@elnot117 - Oh right! It definitely makes sense to have some format defaults if output directory is supplied. Thanks for the tip! Other people have used the 'jest options' flag to specify their output format options and stuff. You can try that to workaround for now.

elnot117 commented 1 year ago

Hi, thanks for replying. Would you mind showing example of what that command line looks like or where I could find the information?

toddtarsi commented 1 year ago

@elnot117 - We discuss it a bit here, although this is w/r/t using a non-standard jest reporter format. I bet for builtin reporters the jest options are significantly simpler:

https://github.com/SeleniumHQ/selenium-ide/issues/1536#issuecomment-1312421875

toddtarsi commented 1 year ago

Also @elnot117 - I'm going to leave this issue open, as if output options are selected, we should probably just preserve whatever the most standard jest output format is, like json or something.

elnot117 commented 1 year ago

@elnot117 - We discuss it a bit here, although this is w/r/t using a non-standard jest reporter format. I bet for builtin reporters the jest options are significantly simpler:

#1536 (comment)

Thank you for sharing!

manikantayarramsetti1 commented 1 year ago

can anyone help me out https://github.com/SeleniumHQ/selenium-ide/issues/1668