Git Product home page Git Product logo

Comments (3)

mwyrodek avatar mwyrodek commented on July 28, 2024

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.

csvipin31 avatar csvipin31 commented on July 28, 2024

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.

mwyrodek avatar mwyrodek commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.