SeleniumHQ / selenium-ide

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

multiple Selenium ide tests running one after another #1668

Open manikantayarramsetti1 opened 1 year ago

manikantayarramsetti1 commented 1 year ago

💬 I m running multiple Selenium ide tests. If one test gets failed it is runnig next test how to run next test.

SampleTest

run test1 run test2 run test3 run test4

If i run SampleTest if the first test gets failed to is not moving next run test2. How to run all the tests.

toddtarsi commented 1 year ago

@manikantayarramsetti1 - Ok, lets have this out here. Does the v3 option for 'persist session' resolve this for you in the webextension version of the IDE? I am not sure what that boolean did exactly, but I can look at that functionality perhaps. I am coming around to this as a normal use of the tool.

toddtarsi commented 1 year ago

@manikantayarramsetti1 - I am going to need some clarity on what you're exactly expecting.

Sample test 1 fails -> dont close browser -> Run sample test 2
Sample test 1 succeeds -> do close browser -> Run sample test 2
manikantayarramsetti1 commented 1 year ago

@toddtarsi Sample test 1 fails -> dont close browser -> Run sample test 2 Sample test 1 succeeds -> dont close browser -> Run sample test 2

whether it fails or succeeds i want to run all the tests

manikantayarramsetti1 commented 1 year ago

@manikantayarramsetti1 - I am going to need some clarity on what you're exactly expecting.

Sample test 1 fails -> dont close browser -> Run sample test 2
Sample test 1 succeeds -> do close browser -> Run sample test 2

https://github.com/SeleniumHQ/selenium-ide/issues/1670

toddtarsi commented 1 year ago

@manikantayarramsetti1 - Sorry, I'd been working on some other features. This is a tricky ask. I think we really need a try block for this type of situation (attempt to do something, and handle failure). I guess I could imagine having steps like this in a test:

try
run "test 1"
close
open "/abc"
run "test 2"
catch
run "test 2"
end

Problem is that I need to wire up those conditionals (try / catch) and it isn't easy