how to run failed test cases in selenium webDriver - junit

I am new to Selenium, learning about Selenium, recently I came across a question in Selenium that, if we are executing 20 test cases in that, if 13 passed and 7 failed, how can we run only that 7 failed test cases in Selenium? Thank you.

Related

How to show test results in the console?

In a GitHub Actions CI server I'm running ./pharo pharo.image test --fail-on-failure --junit-xml-output my-package to run a test suite. The problem is that when a test fails I just can see a console message saying that "Tests do not pass!", but no details on which ones or what happened, and I cannot reproduce locally nor look at the XML. Is there a way to show the failing tests and their stack traces?
I'm running on Pharo 8

Issue with chromedriver in RobotFramework

I started with python and Robot Framework.
I'm having this strange exception while trying to run a test case in Robot Framework.
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -1073741819
I tried changing the chromedriver versions, also checked the chrome browser it was updated to the last version.
I'm sure it's in it's place "Python27\Scripts" which is added to the environment variables as well.
Has anyone else had this issue, or know how to solve it?

How can I change a build step status in Team City?

Is it a way to override the build status in TeamCity based on the result of a test?
We have the following setup:
Deploy application
Run a test that validates that the application installed correctly.
Run test batch1
Run test batch2
Our problem is that we did not find a good way to skip running the tests from step 3 and step 4 if the test that validates the version failed.
This is because, even if the test fails, the step status is still successful. Is there a way to override the step status?

Chrome 24 UI is unchanged eventhough selenium executes the actions

My test cases were working fine with selenium+chrome 23. I upgraded to chrome browser 24 and tried running the cases. although selenium executes the cases, the changes are not reflected in UI sometimes. I am using chrome driver 26 and selenium webdriver 2.29.

Selenium Standalone fails to run tests in Google Chrome [duplicate]

This question already has answers here:
How to run Google Chrome with Selenium RC?
(5 answers)
Closed 9 years ago.
I'm using jenkins to run selenium standalone server and html test suites in a windows xp node.
I've managed to get it running and working for iexplore and firefox, but when it comes to googlechrome it fails in starting it.
This is the command I use to run the tests in googlechrome:
java -jar C:\...\selenium-server-standalone-2.28.0.jar -htmlSuite "*googlechrome C:\Program Files\Google\Chrome\Application\chrome.exe --allow-file-access-from-files –-disable-web-security" file:///C:/WebTest/Tests/ C:/WebTest/Tests/TestSuite.html C:\jenkins\workspace\sp-webTest\resultados\resultadoGC.html
And the error I get is:
12:43:08.044 INFO - Launching Google Chrome...
HTML suite exception seen:
java.lang.NullPointerException
at org.openqa.selenium.server.browserlaunchers.GoogleChromeLauncher.createCommandArray(GoogleChromeLauncher.java:168)
at org.openqa.selenium.server.browserlaunchers.GoogleChromeLauncher.launch(GoogleChromeLauncher.java:82)
at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchHTMLSuite(AbstractBrowserLauncher.java:47)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:145)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:196)
at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:611)
at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:285)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:243)
at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:54)
Any help will be appreciated.
Specifying the webdriver in java helps.
System.setProperty("webdriver.chrome.driver", "c:/chromedriver.exe");
driver = new ChromeDriver();
Download link for chrome driver http://code.google.com/p/chromedriver/downloads/list
I got it working, somehow sending flags to chrome in the command causes selenium to throw null pointer exception. So what I did was add chrome to the PATH in mi xp node, use Selenium plugin to run html test suites in jenkins and specify a start url that begins with "https://" using google chrome and a start url that begins with "file:///" was a mess and couldn't get it to work like that. I also added the -trustAllSSLCertificates in "others" input box.
For me on Windows it work:
java -jar "c:\selenium-server-standalone-2.35.0.jar" -forcedBrowserMode "*googlechrome c:\Program Files\Google\Chrome\Application\chrome.exe"