Can we handle gauge threads programmatically? #2287
rahulbhaviri
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a framework in gauge using java. We use multi threading. When multiple threads instantiated, gauge automatically assigns each thread with a spec and they execute parallelly.
What I want to do is, if a specific thread picked a spec and for that spec a BeforeSpec condition is not met, I want to skip the spec and retry it again after some time (or after some other specs got executed). Please note that I want to revisit the skipped spec again - because in my framework the threads use a common test data resource pool which might not be available at one point but eventually becomes available. I want to run the spec then.
So is there a way to do it? Right now my code is written in such a way that if the spec doesn't get the required resource, it waits infinitely until it finds the resource. Instead I want to skip this spec and run another spec which might not want this common resource and revisit the first spec after some time. Can we handle the gauge threads though code so that I can prioritise or deprioritise specs in runtime?
Beta Was this translation helpful? Give feedback.
All reactions