Comments (3)
Hi Vipin.
Thanks for using our tool!
Could you tell me a little more what are you trying to achieve?
Usually, you shouldn't rerun test from the teardown - that should be handled by a separate mechanism, for example on the level of ci pipeline.
But, there is a plugin for specflow that allows this : https://www.nuget.org/packages/specflow.retry
But I haven't used it so I can't guarantee it will work with Ocaramba.
There are other ways you can try:
https://stackoverflow.com/a/31402364
https://stackoverflow.com/questions/31380000/webdriver-use-afterscenario-to-rerun-failed-test-before-report-is-generated
from ocaramba.
Thanks for the reply.
I have some flaky UI test, which sometime fails and some time passes. so I am thinking of putting some logic to check if the test scenario fails, i would re-run these test cases once more.
In Azure build pipeline we could do re-run the test cases based on mim Faliure Count or %.
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/vstest?view=azure-devops
"rerunFailedTests
"
1.I could not find anything silimar in teamcity.
2.Or I thought if I could check the status of test in [AfterScenario] and if its fails, re-run it.
from ocaramba.
I see, Unfortunately, As I stated above this shouldn't be resolved on the level of Ocaramba code.
I had asked around, and the most common solution is to write a custom script for TeamCity to enable test reruns.
If you would like to pursue the path of doing it inside your solution you could try the plugin I mentioned ( https://www.nuget.org/packages/specflow.retry)
Or build something similar to the idea from this article: https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206869065-Can-you-make-TeamCity-automatically-re-run-individual-tests-when-they-have-failed
or
https://github.com/atinfo/at.info-knowledge-base/tree/master/programming/java/junit/run_failed_tests
Unfortunately, Ocaramba out of the box doesn't provide this functionality, we believe it should be handled on CI level.
from ocaramba.
Related Issues (20)
- Noob Questions/Issues Possibly... HOT 4
- Support for .NET Standard / .NET Core / SpecFlow 3.x? HOT 5
- Ocaramba.Features starts 5 instances of Chrome per test HOT 9
- Add an Example for DriverContext.CrossBrowserEnvironment Property HOT 1
- Parallel Execution SpecFlow using Zalenium HOT 2
- How can I run tests in parallel using MS Test and Selenium grid please help with an example HOT 1
- How can I run tests using Headless browser using this framework HOT 1
- Cannot run Chrome in Browserstack HOT 2
- Appium driver HOT 1
- Not all files created when installing NuGet package HOT 1
- AngularPageNavigationTest - may be failing on chrome 77+ HOT 1
- Tests in Test Explorer are grayed out and not running after updating test project to .Net Core 2.2 HOT 2
- Edge Chromium does not support
- .NET core and Firefox tests are extremely slow
- Spelling: EdgeChrominium should be replaced with EdgeChromium?
- I am looking for a means to change the folders at run time HOT 1
- Incorrect test duration recorded
- reference to teamcity found in logs HOT 2
- .NET Core 3.1 End of Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaramba.